/* =========================================================
   NAVEGACIÓN ENTRE SECCIONES
   ========================================================= */

html {
  scroll-behavior: smooth;

  /*
   * Compensa el header sticky
   * y deja un pequeño espacio visual.
   */
  scroll-padding-top: 5.75rem;
}



#nosotros {
  scroll-margin-top: 7.7rem;
}

/* =========================================================
   PÁGINA PÚBLICA - LOS OLIVOS
   ========================================================= */

@import "../components/footer.css";


.public-page {
  overflow-x: clip;

  background: #fff;
}

#main-content:focus {
  outline: none;
}

/* =========================================================
   ICONOS LUCIDE
   ========================================================= */

.public-page svg.lucide {
  display: block;

  width: 1.25rem;
  height: 1.25rem;

  flex: 0 0 auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;

  top: 0;
  z-index: 50;

  border-bottom:
    1px solid
    rgba(223, 228, 240, .8);

  background:
    rgba(255, 255, 255, .96);

  backdrop-filter: blur(16px);
}


.site-header__inner {
  display: flex;

  width: min(
    calc(100% - 2rem),
    1220px
  );

  min-height: 82px;

  align-items: center;
  justify-content: space-between;

  gap: 1.5rem;

  margin-inline: auto;
}


.site-header .brand {
  flex: 0 0 auto;
}


/* =========================================================
   NAVEGACIÓN
   ========================================================= */

.site-nav {
  display: flex;

  align-items: center;

  gap: .4rem;
}


.site-nav > a:not(.button) {
  display: inline-flex;

  min-height: 44px;

  align-items: center;

  border-radius: 10px;

  padding:
    0
    .9rem;

  color: #414b68;

  font-size: .95rem;
  font-weight: 700;

  text-decoration: none;

  transition:
    background-color .18s ease,
    color .18s ease;
}


.site-nav > a:not(.button):hover {
  background: var(--surface);

  color: var(--navy);
}


.site-nav .button--nav {
  display: inline-flex;

  min-height: 44px;

  align-items: center;

  padding-inline: 1.15rem;

  font-size: .95rem;
}


/* =========================================================
   BOTÓN MENÚ
   ========================================================= */

.menu-button {
  display: none;

  width: 44px;
  height: 44px;

  place-items: center;

  border: 1px solid var(--border);
  border-radius: 11px;

  background: #fff;

  color: var(--navy);

  cursor: pointer;
}

.menu-button svg.lucide {
  width: 22px;
  height: 22px;
}

.menu-button:hover {
  background: var(--surface);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  display: grid;

  min-height: 670px;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(380px, .92fr);

  align-items: center;

  gap:
    clamp(
      2rem,
      5vw,
      5rem
    );

  padding-block:
    clamp(
      4rem,
      9vw,
      7.5rem
    );
}

.hero__actions .button svg.lucide {
  width: 18px;
  height: 18px;
}


/* =========================================================
   HERO - TEXTO
   ========================================================= */

.hero__copy {
  min-width: 0;
}


.hero__copy h1 {
  max-width: 750px;

  margin-bottom: 1.35rem;

  color: var(--navy-dark);

  font-size:
    clamp(
      2.9rem,
      6vw,
      5.65rem
    );

  font-weight: 860;

  letter-spacing: -.066em;
  line-height: .96;
}


.hero__copy h1 em {
  color: var(--red);

  font-family:
    Georgia,
    serif;

  font-weight: 600;
}


.hero__lead {
  max-width: 640px;

  margin-bottom: 1.8rem;

  color: var(--muted);

  font-size:
    clamp(
      1.02rem,
      1.5vw,
      1.2rem
    );

  line-height: 1.75;
}


.hero__actions {
  display: flex;

  flex-wrap: wrap;

  gap: .8rem;
}


/* =========================================================
   HERO - CARACTERÍSTICAS
   ========================================================= */

.trust-row {
  display: flex;

  flex-wrap: wrap;

  gap:
    .7rem
    1.2rem;

  margin-top: 2.1rem;

  color: #4a5571;

  font-size: .84rem;
  font-weight: 650;
}


.trust-row span {
  display: inline-flex;

  align-items: center;

  gap: .38rem;
}


.trust-row svg.lucide {
  width: 30px;
  height: 30px;

  color: var(--success);

  stroke-width: 2.3;
}

/* =========================================================
   HERO - IMAGEN
   ========================================================= */

.hero__visual {
  position: relative;

  isolation: isolate;

  display: flex;

  min-width: 0;

  align-items: center;
  justify-content: center;
}


.hero__visual::before,
.hero__visual::after {
  position: absolute;

  z-index: -1;

  border-radius: 50%;

  content: "";
}




/* Imagen */

.hero__image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center bottom;

  border-radius:
    0
    0
    32px
    32px;

  box-shadow:
    0 2px 0
    rgba(32, 47, 118, .08);
}

/* =========================================================
   SERVICIOS
   ========================================================= */

.services-section {
  padding-block:
    clamp(
      4.5rem,
      9vw,
      7.5rem
    );
}


.section-heading {
  display: grid;

  grid-template-columns:
    1.2fr
    .8fr;

  align-items: end;

  gap: 2rem;

  margin-bottom: 2rem;
}


.section-heading h2,
.about-copy h2,
.contact-section h2 {
  margin-bottom: 0;

  color: var(--navy-dark);

  font-size:
    clamp(
      2.1rem,
      4vw,
      3.65rem
    );

  letter-spacing: -.045em;
  line-height: 1.06;
}


.section-heading > p {
  max-width: 520px;

  margin-bottom: .25rem;

  color: var(--muted);

  line-height: 1.7;
}


/* =========================================================
   GRID DE SERVICIOS
   ========================================================= */

.service-grid {
  display: grid;

  grid-template-columns:
    repeat(
      6,
      minmax(0, 1fr)
    );

  gap: 1rem;
}


.service-card {
  position: relative;

  grid-column: span 2;

  min-width: 0;
  min-height: 260px;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  padding: 1.55rem;

  background: #fff;

  box-shadow: var(--shadow-sm);

  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}


/*
 * Al existir siete servicios,
 * la última tarjeta queda centrada.
 */
.service-card:last-child {
  grid-column:
    3 / span 2;
}


.service-card:hover {
  transform:
    translateY(-5px);

  border-color: #c2cae1;

  box-shadow: var(--shadow-md);
}


.service-card::after {
  position: absolute;

  right: -25px;
  bottom: -35px;

  width: 115px;
  height: 115px;

  border-radius: 50%;

  background: var(--surface-blue);

  content: "";
}

.service-card__icon svg.lucide {
  width: 27px;
  height: 27px;

  stroke-width: 1.9;
}


/* =========================================================
   SERVICIO - NÚMERO
   ========================================================= */

.service-card__number {
  position: absolute;

  top: 1.2rem;
  right: 1.3rem;

  color: #c8cede;

  font-size: .72rem;
  font-weight: 850;

  letter-spacing: .1em;
}


/* =========================================================
   SERVICIO - ICONO
   ========================================================= */

.service-card__icon {
  display: grid;

  width: 56px;
  height: 56px;

  place-items: center;

  margin-bottom: 1.6rem;

  border-radius: 16px;

  background: var(--navy);

  color: #fff;
}


.service-card:nth-child(2n)
.service-card__icon {
  background: var(--red);
}


/* =========================================================
   SERVICIO - CONTENIDO
   ========================================================= */

.service-card h3 {
  position: relative;

  z-index: 1;

  margin-bottom: .65rem;

  color: var(--navy-dark);

  font-size: 1.2rem;
}


.service-card p {
  position: relative;

  z-index: 1;

  margin-bottom: 0;

  color: var(--muted);

  font-size: .93rem;
  line-height: 1.65;
}


/* =========================================================
   NOSOTROS
   ========================================================= */

.about-section {
  position: relative;

  margin-block: 2rem;

  overflow: hidden;

  background: var(--navy);

  color: #fff;
}


.about-section::after {
  position: absolute;

  top: -190px;
  right: -140px;

  width: 450px;
  height: 450px;

  border:
    70px solid
    rgba(255, 255, 255, .035);

  border-radius: 50%;

  content: "";
}


.about-section__inner {
  position: relative;

  z-index: 1;

  padding-block:
    clamp(
      4.5rem,
      8vw,
      6.5rem
    );
}


.about-copy {
  width: 100%;
}


.about-copy h2 {
  max-width: 760px;

  color: #fff;
}

.public-page .eyebrow span {
  background: var(--red);
}

.eyebrow--light span {
  background: var(--red);
}


/* =========================================================
   NOSOTROS - DECORACIÓN
   ========================================================= */

.about-section__paw {
  position: absolute;

  top: 1.5rem;
  right: 2rem;

  z-index: 0;

  width: 290px;
  height: 290px;

  color: rgba(255, 255, 255, .045);

  pointer-events: none;
  user-select: none;
}


.about-section__paw svg.lucide {
  display: block;

  width: 100%;
  height: 100%;

  stroke-width: .9;

  transform: rotate(180deg);
  transform-origin: center;
}

/* =========================================================
   MISIÓN Y VISIÓN
   ========================================================= */

.about-statements {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 1rem;

  margin-top: 2rem;
}


.about-statement {
  min-width: 0;

  border:
    1px solid
    rgba(255, 255, 255, .14);

  border-radius: 22px;

  padding: 1.6rem;

  background:
    rgba(255, 255, 255, .07);
}

.about-statement__heading {
  display: flex;

  align-items: center;

  gap: .7rem;

  margin-bottom: .8rem;
}


.about-statement__icon {
  display: grid;

  width: 44px;
  height: 44px;

  place-items: center;

  margin-bottom: 1rem;

  border-radius: 12px;

  background:
    rgba(255, 255, 255, .12);

  color: #fff;
}

.about-statement__icon svg.lucide {
  width: 28px;
  height: 28px;

  stroke-width: 2.1;
}


.about-statement h3 {
  margin: 0;

  color: #fff;

  font-size: 1.3rem;
}


.about-statement p {
  margin: 0;

  color: #dce2ff;

  line-height: 1.7;
}

/* =========================================================
   VALORES
   ========================================================= */

.about-values {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 1rem;

  margin-top: 1rem;
}


.about-values > div {
  display: grid;

  min-width: 0;

  gap: .35rem;

  border-top:
    1px solid
    rgba(255, 255, 255, .14);

  padding-top: 1rem;
}


.about-values strong {
  color: #fff;
}


.about-values span {
  color: #cfd5f4;

  font-size: .9rem;
  line-height: 1.55;
}


/* =========================================================
   CONTACTO
   ========================================================= */

.contact-section {
  padding-block:
    1rem
    5rem;
}


.contact-section__copy {
  display: grid;

  max-width: 760px;

  margin-bottom: 2rem;
}


.contact-section__copy > p:not(.eyebrow) {
  margin-top: 1rem;

  color: var(--muted);

  line-height: 1.7;
}


/* =========================================================
   CONTACTO - GRID
   ========================================================= */

.contact-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 1rem;
}


.contact-card {
  display: flex;

  min-width: 0;
  min-height: 160px;

  gap: 1rem;

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  padding: 1.5rem;

  background: var(--surface);
}


.contact-card__icon {
  display: grid;

  width: 48px;
  height: 48px;

  flex: 0 0 48px;

  place-items: center;

  border-radius: 14px;

  background: var(--navy);

  color: #fff;
}

.contact-card__icon svg.lucide,
.contact-map-card__pin svg.lucide {
  width: 23px;
  height: 23px;

  stroke-width: 1.9;
}


.contact-card > div {
  display: grid;

  min-width: 0;

  align-content: start;

  gap: .25rem;
}


.contact-card small {
  color: var(--red);

  font-size: .7rem;
  font-weight: 850;

  letter-spacing: .09em;

  text-transform: uppercase;
}


.contact-card a {
  color: var(--navy);

  font-size: 1.25rem;
  font-weight: 820;

  text-decoration: none;
}


.contact-card address {
  max-width: 590px;

  overflow-wrap: anywhere;

  color: var(--navy-dark);

  font-size: 1.08rem;
  font-style: normal;
  font-weight: 720;

  line-height: 1.55;
}

/* =========================================================
   CONTACTO - TELÉFONOS
   ========================================================= */

.contact-phone {
  margin: 0;

  color: var(--navy);

  font-size: 1.25rem;
  font-weight: 820;

  line-height: 1.45;

  user-select: none;
}


/* =========================================================
   CONTACTO - ENLACE DEL MAPA
   ========================================================= */

.contact-map-link {
  display: inline-flex;

  width: fit-content;

  align-items: center;

  gap: .45rem;

  margin-top: .85rem;

  color: var(--red) !important;

  font-size: .9rem !important;
  font-weight: 750 !important;

  text-decoration: none;

  transition:
    color .18s ease,
    gap .18s ease;
}


.contact-map-link:hover {
  gap: .65rem;

  color: var(--red-dark) !important;
}


.contact-map-link svg {
  width: 17px;
  height: 17px;
}


/* =========================================================
   MAPA
   ========================================================= */

.contact-map-card {
  grid-column: 1 / -1;

  min-width: 0;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  background: var(--surface);

  box-shadow: var(--shadow-sm);
}


.contact-map-card__header {
  display: flex;

  align-items: flex-start;

  gap: 1rem;

  padding: 1.35rem 1.5rem;
}



.contact-map-card__header > div {
  display: grid;

  min-width: 0;

  gap: .25rem;
}


.contact-map-card__header small {
  color: var(--red);

  font-size: .7rem;
  font-weight: 850;

  letter-spacing: .09em;

  text-transform: uppercase;
}



.contact-map-card__header h3 {
  margin: 0;

  color: var(--navy-dark);

  font-size: 1.15rem;
  font-weight: 780;
}

.contact-map-card__header address {
  max-width: 800px;

  margin-top: .15rem;

  color: var(--muted);

  font-size: .92rem;
  font-style: normal;

  line-height: 1.55;
}

.contact-map-card__pin {
  display: grid;

  width: 48px;
  height: 48px;

  flex: 0 0 48px;

  place-items: center;

  border-radius: 14px;

  background: var(--navy);

  color: #fff;
}

.contact-map {
  width: 100%;
  height: 380px;

  overflow: hidden;

  border-top: 1px solid var(--border);

  background: #e9ecf5;
}

.contact-map iframe {
  display: block;

  width: 100%;
  height: 100%;

  border: 0;
}


/* =========================================================
   HORARIO
   ========================================================= */

.contact-card--schedule {
  min-height: 160px;
}


.contact-card--schedule p {
  margin:
    .15rem
    0
    .3rem;

  color: var(--muted);

  line-height: 1.55;
}


.contact-card--schedule strong {
  color: var(--red-dark);

  font-size: .96rem;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  /* Header */

  .site-header__inner {
    width:
      calc(100% - 1.5rem);
  }


  /* Hero */

  .hero {
    min-height: auto;

    grid-template-columns: 1fr;

    gap: 3rem;

    padding-block: 4rem;
  }


  .hero__copy h1 {
    max-width: 700px;
  }


  .hero__visual {
    width:
      min(
        100%,
        650px
      );

    margin-inline: auto;
  }


  /* Servicios */

  .section-heading {
    grid-template-columns: 1fr;

    align-items: start;

    gap: 1rem;
  }


  .service-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }


  .service-card,
  .service-card:last-child {
    grid-column: auto;
  }


  /*
   * Con siete tarjetas en tablet,
   * la última aprovecha el ancho.
   */
  .service-card:last-child {
    grid-column: 1 / -1;
  }


  /* Nosotros */

  .about-statements {
    grid-template-columns: 1fr;
  }


  .about-values {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }
}


/* =========================================================
   NAVEGACIÓN MÓVIL
   ========================================================= */

@media (max-width: 760px) {


    html {
    scroll-padding-top: 5rem;
  }

  @media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

}

  .site-header__inner {
    position: relative;

    min-height: 72px;
  }


  .menu-button {
    display: grid;
  }


  .site-nav {
    position: absolute;

    top:
      calc(100% + .5rem);

    right: 0;
    left: 0;

    display: none;

    grid-template-columns: 1fr;

    align-items: stretch;

    gap: .3rem;

    border: 1px solid var(--border);
    border-radius: 14px;

    padding: .6rem;

    background: #fff;

    box-shadow:
      0 16px 35px
      rgba(25, 36, 78, .14);
  }


  .site-nav[data-open="true"] {
    display: grid;
  }


  .site-nav > a:not(.button),
  .site-nav .button--nav {
    width: 100%;

    min-height: 46px;

    justify-content: flex-start;

    padding-inline: .9rem;
  }


  .site-nav .button--nav {
    justify-content: center;

    margin-top: .2rem;
  }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 620px) {

  /* Hero */

  .hero {
    gap: 2rem;

    padding-block:
      2.5rem
      3.5rem;
  }


  .hero__copy h1 {
    font-size:
      clamp(
        2.5rem,
        13vw,
        4rem
      );
  }


  .hero__lead {
    font-size: 1rem;
  }


  .hero__actions {
    display: grid;

    grid-template-columns: 1fr;
  }


  .hero__actions .button {
    width: 100%;

    justify-content: center;
  }


  .trust-row {
    align-items: flex-start;

    flex-direction: column;

    gap: .7rem;
  }


  .hero__image-frame {
    border-radius: 28px;

    padding:
      .8rem
      .9rem
      .5rem;
  }
  .hero__visual::before {
    right: -8%;

    width: 140px;
    height: 140px;
  }


.hero__visual::after {
    bottom: -3%;
    left: -7%;

    width: 110px;
    height: 110px;
  }


  /* Servicios */

  .services-section {
    padding-block: 3.5rem;
  }


  .service-grid {
    grid-template-columns: 1fr;
  }


  .service-card,
  .service-card:last-child {
    grid-column: auto;
  }


  .service-card {
    min-height: auto;
  }


  /* Nosotros */

  .about-section {
    margin-block: 1rem;
  }


  .about-statements,
  .about-values {
    grid-template-columns: 1fr;
  }


  /* Contacto */

  .contact-section {
    padding-block:
      1rem
      3rem;
  }

 .contact-grid {
    grid-template-columns: 1fr;
  }


  .contact-card,
  .contact-card--schedule,
  .contact-map-card {
    grid-column: auto;
  }


  .contact-map {
    height: 320px;
  }


  .contact-map-card__header {
    padding: 1.2rem;
  }

  .about-section__paw {
  top: -1.5rem;
  right: -2rem;

  width: 220px;
  height: 220px;
  }
}


/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 440px) {

  .site-header__inner {
    width:
      calc(100% - 1rem);
  }


  .hero {
    padding-top: 2rem;
  }


  .hero__copy h1 {
    letter-spacing: -.05em;
  }


  .service-card,
  .about-statement,
  .contact-card {
    padding: 1.2rem;
  }


  .contact-card {
    flex-direction: column;
  }

  .contact-map {
    height: 280px;
  }
  
}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .service-card,
  .site-nav > a {
    transition: none;
  }


  .service-card:hover {
    transform: none;
  }
}