/* =============================================
   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; }
.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 .2s;
}
.btn:hover { opacity: .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 .25s, opacity .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-color: #8d8d8d;
  mix-blend-mode: multiply;
  opacity: .58;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(40px, 6vw, 120px) clamp(20px, 8vw, 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
}

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

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

.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: flex-start;
}

.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);
}

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

/* =============================================
   GALLERY (instalaciones)
   ============================================= */
.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;
}

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

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

/* =============================================
   SERVICES GRID
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 40px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #ccc;
  font-family: var(--subtitulo-font-family);
  font-weight: var(--subtitulo-font-weight);
  font-size: clamp(15px, 1.5vw, 24px);
  line-height: 1.3;
  color: #000;
}

.service-item:nth-child(3n+1):nth-last-child(-n+3),
.service-item:nth-child(3n+1):nth-last-child(-n+3) ~ .service-item {
  /* remove bottom border for last row */
}

.service-icon {
  width: clamp(48px, 5vw, 84px);
  height: clamp(48px, 5vw, 84px);
  flex-shrink: 0;
}

.service-item--more {
  border-bottom: none;
}

/* =============================================
   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: .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;
}

.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-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: 32px; height: 32px; }

.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;
}

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

/* =============================================
   TABLET  (641px – 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .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; }

  /* layout */
  .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; }
}
