/* =============================================
   BASE / RESET
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #fff;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =============================================
   LAYOUT UTILS
   ============================================= */
.container {
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 180px);
}

.section-pad {
  padding-block: clamp(48px, 6vw, 96px);
}
.mt-32 {
  margin-top: 32px;
}
.mt-48 {
  margin-top: 48px;
}

.btn-wrap {
  display: flex;
  justify-content: center;
}

.bg-cream {
  background-color: #f0eade80;
}
.entorno {
  background-color: #ffffff;
}
.bg-blue {
  background-color: #01579e;
}

/* =============================================
   TYPOGRAPHY HELPERS
   ============================================= */
.h2 {
  font-family: var(--h-2-font-family);
  font-weight: var(--h-2-font-weight);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  color: #000;
  margin: 0 0 8px;
}
.h2--white {
  color: #fff;
}

.subtitle {
  font-family: var(--subtitulo-font-family);
  font-weight: var(--subtitulo-font-weight);
  font-size: clamp(16px, 2vw, 24px);
  line-height: var(--subtitulo-line-height);
  color: #000;
  margin: 0;
}

.body-copy {
  font-family: var(--p-font-family);
  font-weight: var(--p-font-weight);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: var(--p-line-height);
  color: #000;
  margin: 0;
}

.section-desc {
  max-width: 900px;
}

.divider {
  border: none;
  border-top: 1px solid #ccc;
  margin-block: 24px;
  width: 100%;
}
.full-divider {
  max-width: 100%;
}

.section-label-row {
  margin-bottom: 12px;
}
.section-label-bg {
  display: inline-block;
  width: 80px;
  height: 8px;
  background: #f0eade;
  border-radius: 4px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 55px;
  font-family: "Gabarito", Helvetica;
  font-weight: 600;
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.btn:hover {
  opacity: 0.85;
}

.btn--lg {
  padding: 16px 32px;
}
.btn--blue {
  background-color: #01579e;
  color: #fff;
}
.btn--cream {
  background-color: #f0eade;
  color: #1e1e1e;
}

/* =============================================
   HEADER / NAVBAR
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #f0eade;
  box-shadow: 0 4px 16px #00000040;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-block: 12px;
  padding-inline: clamp(20px, 5vw, 188px);
  position: relative;
}

.logo-int {
  width: clamp(140px, 15vw, 287px);
  height: auto;
  flex-shrink: 0;
}

.navbar {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  flex-wrap: wrap;
  margin-left: auto;
}

.nav-link {
  font-family: "DM Sans", Helvetica;
  font-weight: 600;
  font-size: clamp(13px, 1.1vw, 18px);
  color: #000;
  white-space: nowrap;
}

.nav-link.nav-cta {
  background-color: #01579e;
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
}

.nav-link.nav-secondary {
  font-weight: 500;
  font-size: clamp(12px, 0.9vw, 15px);
}

.cas-eus {
  font-family: "DM Sans", Helvetica;
  font-size: clamp(13px, 1vw, 16px);
  color: #000;
  white-space: nowrap;
}
.cas-eus--white {
  color: #fff;
}

/* hamburger toggle – hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #01579e;
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.25s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: clamp(400px, 55vw, 812px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(40px, 6vw, 120px) clamp(16px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1480px;
  box-sizing: border-box;
}

.hero-label {
  font-family: "DM Sans", Helvetica;
  font-weight: 600;
  color: #f0eade;
  font-size: clamp(14px, 1.5vw, 24px);
  letter-spacing: 0.05em;
  margin: 0;
}

.hero-title {
  font-family: var(--h-1-font-family);
  font-weight: var(--h-1-font-weight);
  font-size: clamp(26px, 4.2vw, 64px);
  line-height: 1.15;
  color: #fff;
  margin: 0;
  text-align: center;
  max-width: 100%;
}

.hero-title__line {
  display: block;
}

@media (min-width: 900px) {
  .hero-title__line {
    white-space: nowrap;
  }
}

.hero-subtitle {
  font-family: var(--subtitulo-font-family);
  font-weight: var(--subtitulo-font-weight);
  font-size: clamp(16px, 2vw, 28px);
  color: #fff;
  margin: 0;
}

.hero-badge-row {
  display: none;
}

/* =============================================
   ABOUT
   ============================================= */
.about-inner {
  display: flex;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.about-text {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-story {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-image {
  flex: 0 0 clamp(280px, 40%, 632px);
  display: flex;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 24px;
}

.about-image--logo {
  justify-content: center;
}

.about-image--logo img {
  width: min(100%, 420px);
  margin-inline: auto;
  object-fit: contain;
  border-radius: 0;
}

/* =============================================
   GALLERY (instalaciones)
   ============================================= */
.carousel {
  margin-top: 40px;
}

.carousel__viewport {
  overflow: hidden;
  width: 100%;
}

.carousel__track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
}

.carousel[data-per-view='1'] .carousel__slide {
  flex-basis: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 503/432;
  object-fit: cover;
  display: block;
}

.gallery-label {
  background-color: #f0eade;
  font-family: "DM Sans", Helvetica;
  font-weight: 600;
  font-size: clamp(15px, 1.5vw, 22px);
  padding: 12px 16px;
}

.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.gallery-arrow {
  width: 48px;
  height: 48px;
  cursor: pointer;
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
}

.gallery-arrow img {
  width: 48px;
  height: 48px;
  display: block;
  pointer-events: none;
}

.gallery-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d9d9d9;
  display: inline-block;
  border: none;
  padding: 0;
  cursor: pointer;
}
.dot--active {
  background: #01579e;
}
.dot--white {
  background: rgba(255, 255, 255, 0.5);
}
.dot--white-active {
  background: #f0eade;
}

/* =============================================
   SERVICES ACCORDION LIST
   ============================================= */
.srv-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  max-width: 860px;
}

.srv-list__item {
  border-bottom: 1px solid #ccc;
}

.srv-list__item:first-child {
  border-top: 1px solid #ccc;
}

/* plain (non-accordion) items */
.srv-list__item:not(.srv-list__item--accordion) {
  display: flex;
  align-items: center;
  padding: 18px 0;
}

.srv-list__name {
  font-family: var(--subtitulo-font-family);
  font-weight: var(--subtitulo-font-weight);
  font-size: clamp(16px, 1.5vw, 22px);
  color: #000;
  line-height: 1.3;
}

/* accordion trigger button */
.srv-list__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 18px 0;
  cursor: pointer;
  text-align: left;
}

.srv-list__btn:hover .srv-list__name {
  color: #01579e;
}

.srv-list__arrow {
  flex-shrink: 0;
  color: #01579e;
  transition: transform 0.25s ease;
}

.srv-list__btn[aria-expanded="true"] .srv-list__arrow {
  transform: rotate(180deg);
}

/* sub-list */
.srv-list__sub {
  list-style: none;
  margin: 0;
  padding: 0 0 4px 16px;
  display: none;
  flex-direction: column;
  gap: 0;
  border-left: 3px solid #01579e;
  margin-left: 8px;
  margin-bottom: 14px;
}

.srv-list__sub.is-open {
  display: flex;
}

.srv-list__sub li {
  font-family: var(--p-font-family);
  font-weight: var(--p-font-weight);
  font-size: clamp(14px, 1.2vw, 18px);
  color: #333;
  line-height: 1.5;
  padding: 6px 0 6px 12px;
}

.srv-list__sub li + li {
  border-top: 1px solid #eee;
}

/* =============================================
   EQUIPO CARDS
   ============================================= */
.equipo-layout {
  display: flex;
  gap: clamp(24px, 4vw, 64px);
  align-items: flex-start;
  margin-top: 40px;
}

.equipo-cards {
  flex: 1 1 400px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.equipo-card {
  background: #fff;
  box-shadow: var(--sombra-cajas);
  padding: clamp(20px, 2.5vw, 45px) clamp(16px, 2vw, 45px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.equipo-card__icon {
  width: clamp(48px, 5vw, 84px);
  height: auto;
}

.equipo-card__title {
  font-family: var(--subtitulo-font-family);
  font-weight: var(--subtitulo-font-weight);
  font-size: clamp(16px, 1.5vw, 24px);
  line-height: 1.3;
  color: #000;
  margin: 0;
}

.equipo-card__text {
  font-family: var(--p-font-family);
  font-weight: var(--p-font-weight);
  font-size: clamp(14px, 1.2vw, 20px);
  line-height: var(--p-line-height);
  color: #000;
  margin: 0;
}

.equipo-image {
  flex: 0 0 clamp(240px, 33%, 510px);
}
.equipo-image img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
}

/* =============================================
   CTA BAND (blue strip)
   ============================================= */
.cta-band {
  position: relative;
  background-color: #01579e;
  overflow: hidden;
  padding-block: clamp(48px, 6vw, 80px);
}

.cta-band__vector {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
  opacity: 0.3;
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.cta-band__title {
  font-family: var(--h-2-font-family);
  font-size: clamp(22px, 3vw, 48px);
  font-weight: var(--h-2-font-weight);
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.cta-band__subtitle {
  font-family: var(--subtitulo-font-family);
  font-size: clamp(15px, 1.8vw, 24px);
  color: #fff;
  margin: 0;
  max-width: 800px;
}

/* =============================================
   TESTIMONIOS
   ============================================= */
.testimonios {
  background-color: #01579e;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.carousel .testimonios-grid,
.carousel--testimonios .carousel__track {
  margin-top: 0;
}

.carousel--testimonios {
  margin-top: 40px;
}

.carousel--testimonios .carousel__slide {
  display: flex;
}

.carousel--testimonios .testimonio-card {
  width: 100%;
}

.testimonio-card {
  background: #fff;
  box-shadow: 0 4px 16px #00000040;
  padding: clamp(20px, 2.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testimonio-card__stars {
  width: clamp(100px, 12vw, 166px);
  height: auto;
}

.testimonio-card__text {
  font-family: var(--p-font-family);
  font-size: clamp(14px, 1.2vw, 20px);
  line-height: var(--p-line-height);
  color: #000;
  margin: 0;
  flex: 1;
}

.testimonio-card__author {
  font-family: "DM Sans", Helvetica;
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 20px);
  color: #000;
  margin: 0;
}

.gallery-nav--white {
  margin-top: 32px;
}

/* =============================================
   NOTICIAS
   ============================================= */
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.noticia-card {
  background: #fff;
  box-shadow: var(--sombra-cajas);
  display: flex;
  flex-direction: column;
}

.noticia-card__img {
  width: 100%;
  aspect-ratio: 503/292;
  object-fit: cover;
}

.noticia-card__body {
  padding: clamp(16px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.noticia-card__title {
  font-family: var(--subtitulo-font-family);
  font-weight: var(--subtitulo-font-weight);
  font-size: clamp(15px, 1.4vw, 22px);
  color: #000;
  margin: 0;
  line-height: 1.3;
}

.noticia-card__text {
  font-family: var(--p-font-family);
  font-size: clamp(13px, 1.1vw, 20px);
  line-height: var(--p-line-height);
  color: #000;
  margin: 0;
}

.noticia-card__link {
  font-family: "DM Sans", Helvetica;
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 20px);
  color: #000;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.noticia-card__link img {
  width: 60px;
  height: auto;
}

/* =============================================
   CTA FULL IMAGE
   ============================================= */
.cta-full {
  position: relative;
  overflow: hidden;
  min-height: clamp(280px, 35vw, 578px);
  display: flex;
  align-items: center;
}

.cta-full__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-full__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  padding-block: clamp(48px, 6vw, 100px);
}

.cta-full__title {
  font-family: var(--h-2-font-family);
  font-size: clamp(22px, 3vw, 48px);
  font-weight: var(--h-2-font-weight);
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.cta-full__subtitle {
  font-family: var(--subtitulo-font-family);
  font-size: clamp(15px, 1.8vw, 24px);
  color: #fff;
  margin: 0;
  max-width: 800px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer-main {
  padding-block: clamp(40px, 5vw, 80px);
}

.footer-main__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Footer order: logo → nav → contact → cert logos */
.footer-main__inner > .footer-logo {
  order: 1;
}
.footer-main__inner > .footer-nav {
  order: 2;
}
.footer-main__inner > .footer-contact {
  order: 3;
}
.footer-main__inner > .footer-cert-logos {
  order: 4;
}

.footer-cert-logos {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  flex-shrink: 0;
}

.footer-cert-logo {
  width: clamp(90px, 9vw, 130px);
  height: auto;
  mix-blend-mode: multiply;
  flex-shrink: 0;
}

.footer-cert-logo--sm {
  width: clamp(60px, 6vw, 88px);
}

.footer-logo {
  width: clamp(160px, 16vw, 265px);
  height: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.footer-contact__item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--p-font-family);
  font-size: clamp(14px, 1.2vw, 20px);
  color: #1e1e1e;
}

.footer-contact__item img {
  width: 48px;
  height: 48px;
}

.footer-bottom {
  padding-block: 16px;
}

.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-inline: clamp(20px, 5vw, 180px);
}

.footer-bottom__copy {
  font-family: "DM Sans", Helvetica;
  font-size: 14px;
  color: #fff;
  margin: 0;
}

/* =============================================
   FORM STATUS
   ============================================= */
.form-status {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: "DM Sans", Helvetica;
  font-size: 15px;
  line-height: 1.4;
}

.form-status--success {
  background: #e8f5e9;
  color: #1b5e20;
}

.form-status--error {
  background: #ffebee;
  color: #b71c1c;
}

/* =============================================
   FLOATING WIDGET
   ============================================= */
.group-34 {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 88px;
  height: auto;
  z-index: 200;
  display: block;
  line-height: 0;
}

.group-34 img {
  width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   TABLET  (641px – 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .carousel__slide {
    flex-basis: calc((100% - 24px) / 2);
  }

  .hero-title {
    font-size: clamp(26px, 3.6vw, 48px);
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid .gallery-item:last-child {
    grid-column: 1 / -1;
  }

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

  .equipo-layout {
    flex-direction: column;
  }
  .equipo-image {
    flex: none;
    width: 100%;
    max-width: 600px;
    align-self: center;
  }
  .equipo-cards {
    width: 100%;
  }

  .testimonios-grid {
    grid-template-columns: 1fr 1fr;
  }
  .noticias-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-inner {
    flex-direction: column;
  }
  .about-image {
    flex: none;
    width: 100%;
    max-width: 600px;
  }

  .navbar {
    gap: 12px;
  }
  .nav-link.nav-secondary {
    display: none;
  }
  .cas-eus {
    display: none;
  }
}

/* =============================================
   MOBILE  (≤ 640px)
   ============================================= */
@media (max-width: 640px) {
  /* nav */
  .nav-toggle {
    display: flex;
  }

  .navbar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #f0eade;
    box-shadow: 0 8px 24px #0002;
    padding: 16px 24px 24px;
    gap: 16px;
    z-index: 50;
  }
  .navbar.is-open {
    display: flex;
  }

  .nav-link {
    font-size: 16px;
  }
  .nav-link.nav-secondary {
    display: flex;
    font-size: 15px;
  }
  .cas-eus {
    display: block;
  }
  .nav-link.nav-cta {
    text-align: center;
  }

  /* hero */
  .hero-content {
    padding-inline: 20px;
    gap: 14px;
  }

  .hero-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  /* layout */
  .carousel__slide {
    flex-basis: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid .gallery-item:last-child {
    grid-column: auto;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .equipo-cards {
    grid-template-columns: 1fr;
  }
  .testimonios-grid {
    grid-template-columns: 1fr;
  }
  .noticias-grid {
    grid-template-columns: 1fr;
  }

  /* footer */
  .footer-contact {
    flex-direction: column;
    align-items: center;
  }
  .footer-bottom__inner {
    justify-content: center;
  }

  /* floating widget */
  .group-34 {
    width: 64px;
    bottom: 16px;
    right: 16px;
  }
}
