/* =====================================================
   Mirano Inmobiliaria — Main Stylesheet
   Fuente: Montserrat (Google Fonts)
   Paleta: #0D2263 (azul), #c9a84c (dorado), #8EA8B8 (steel)
   ===================================================== */

/* ── Fuente local NeueMontreal-Light (subir archivo a assets/fonts/) ── */
@font-face {
  font-family: 'NeueMontreal-Light';
  src: url('../fonts/NeueMontreal-Light.woff2') format('woff2'),
       url('../fonts/NeueMontreal-Light.woff')  format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ── SF Pro Display ── */
@font-face {
  font-family: 'SF Pro Display';
  src: local('SF Pro Display'), local('SFProDisplay-Regular'),
       url('../../admin/assets/font/SF-Pro-Display-Regular.20d41694c3031c6c0ef8.woff2') format('woff2'),
       url('../fonts/SF-Pro-Display-Regular.woff2') format('woff2'),
       url('../fonts/SF-Pro-Display-Regular.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SF Pro Display';
  src: local('SF Pro Display Medium'), local('SFProDisplay-Medium'),
       url('../fonts/SF-Pro-Display-Medium.woff2') format('woff2'),
       url('../fonts/SF-Pro-Display-Medium.woff')  format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:   #0D2263;
  --gold:   #c9a84c;
  --steel:  #8EA8B8;
  --steel-bg: #9cb6c1;
  --white:  #ffffff;
  --gray:   #f5f5f5;
  --text:   #1a1a2e;
  --font:   'Montserrat', sans-serif;
  --transition: .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
  /* sin background aquí — evita flash azul→transparente al cargar */
  transition: background .4s ease, box-shadow .4s ease;
}

/* Transparent mode (home page, over slider) */
.site-header.is-transparent {
  background: linear-gradient(to bottom, rgba(0,0,0,.38) 0%, transparent 100%);
  box-shadow: none;
}
.site-header.is-transparent.scrolled,
.site-header.is-transparent.menu-open {
  background: var(--blue);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.site-header.is-solid {
  background: var(--blue);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.header-logo img { height: 32px; width: auto; filter: brightness(0) invert(1); }

/* Nav */
.header-nav { display: flex; align-items: center; gap: 36px; }
.header-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  padding-bottom: 4px;
  position: relative;
  transition: color var(--transition);
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--white);
  transition: width var(--transition);
}
.header-nav a:hover,
.header-nav a.active { color: var(--white); }
.header-nav a:hover::after,
.header-nav a.active::after { width: 100%; }

/* Social icons */
.header-social { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-social a {
  color: rgba(255,255,255,.75);
  font-size: 16px;
  transition: color var(--transition);
}
.header-social a:hover { color: var(--white); }

/* Hamburger (mobile) */
.header-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  min-width: 44px; min-height: 44px; /* touch target */
  background: none; border: none;
  flex-shrink: 0;
}
.header-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform .25s, opacity .25s;
  pointer-events: none;
}
.header-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-toggle.open span:nth-child(2) { opacity: 0; }
.header-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Backdrop oscuro detrás del menú mobile */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 70px 0 0 0;
  background: rgba(0,0,0,.45);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Responsive: ocultar nav en tablets/móviles ── */
@media (max-width: 1100px) {
  /* Reducir gaps en pantallas medianas antes de colapsar */
  .header-nav { gap: 20px; }
  .header-inner { padding: 0 20px; gap: 16px; }
}

/* Mobile nav — menú colapsado */
@media (max-width: 960px) {
  .header-social { display: none; } /* se mueve dentro del menú */

  .header-nav {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--cf-blue);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 24px;
    z-index: 999;
    /* Oculto: transform + visibility para que iOS Safari no lo muestre */
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .28s ease, opacity .28s ease, visibility 0s linear .28s;
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .header-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform .28s ease, opacity .28s ease, visibility 0s linear 0s;
  }
  .header-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px 28px;
    font-size: 13px;
    letter-spacing: 1.8px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    color: rgba(255,255,255,.8);
  }
  .header-nav a:last-child { border-bottom: none; }
  .header-nav a::after { display: none; }
  .header-nav a.active,
  .header-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }

  /* Redes sociales al pie del menú mobile */
  .header-nav-social {
    display: flex !important;
    align-items: center;
    gap: 20px;
    padding: 18px 28px 4px;
  }
  .header-nav-social a {
    padding: 0 !important;
    border-bottom: none !important;
    background: none !important;
    width: auto !important;
    font-size: 18px !important;
    letter-spacing: 0 !important;
  }

  .header-toggle { display: flex; }
  .nav-backdrop { display: block; }

  /* Bloquear scroll del body cuando menú está abierto */
  body.nav-open { overflow: hidden; }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
  .site-header { height: 60px; }
  .header-logo img { height: 26px; }
  .header-inner { padding: 0 16px; }
  .header-nav { top: 60px; max-height: calc(100vh - 60px); }
  .nav-backdrop { top: 60px; }

  /* Reducir el offset del header fijo en páginas internas */
  .cp-section, .pac-section, .legal-section, .lr-section { padding-top: 60px !important; }
  .proyectos-page-header { padding-top: 108px; } /* 48px + 60px */
  .nos-hero { padding-top: 120px !important; }   /* 60px + 60px */
}

/* =====================================================
   HERO SLIDER
   ===================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: transparent;
  /* Grid para que flechas y dots se superpongan sobre el track */
  display: grid;
}

/* Track y overlays (flechas, dots) comparten la misma celda */
.slider-track,
.slider-arrow,
.slider-dots {
  grid-area: 1 / 1;
}

/* Grid stacking: todas las slides ocupan la misma celda.
   La altura del contenedor la dicta la imagen activa. */
.slider-track {
  display: grid;
  width: 100%;
  align-self: start;
}

.slider-slide {
  grid-area: 1 / 1;         /* todas en la misma celda */
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  overflow: hidden;
  min-height: 0;
  /* pointer-events lo gestiona el JS para evitar clicks en slides ocultos */
}

/* El primer slide visible antes de que corra el JS */
.slider-slide:first-child {
  opacity: 1;
}

/* picture debe ser block */
.slider-slide picture {
  display: block;
  width: 100%;
}

/* Imagen: ancho completo, alto proporcional — sin recorte */
.slider-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Arrows */
.slider-arrow {
  position: relative;   /* dentro del grid-area, no absolute */
  align-self: center;
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
  opacity: .8;
  pointer-events: auto;
}
.slider-arrow:hover { opacity: 1; }
.slider-arrow.prev {
  justify-self: start;
  margin-left: 20px;
}
.slider-arrow.next {
  justify-self: end;
  margin-right: 20px;
}
/* SVG inline — forzar tamaño */
.slider-arrow svg {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  display: block;
}
.slider-arrow img { width: 32px; height: 32px; }
.slider-arrow span[aria-hidden] svg {
  width: 32px !important;
  height: 32px !important;
}
/* Fallback if no custom SVG */
.slider-arrow-fallback {
  font-size: 28px;
  color: var(--white);
  line-height: 1;
  user-select: none;
}

/* Dots */
.slider-dots {
  position: relative;
  align-self: end;
  justify-self: center;
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  z-index: 10;
  pointer-events: auto;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: background .25s, transform .25s;
  border: none;
}
.slider-dot.active {
  background: var(--white);
  transform: scale(1.25);
}

/* Hotspot invisible — solo área clicable */
.hs-invisible {
  position: absolute;
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 5;
}

/* =====================================================
   BANNER + SLOGAN WRAP
   ===================================================== */
.banner-slogan-wrap {
  position: relative; /* contexto para el absolute del slogan */
}

/* =====================================================
   SLOGAN SECTION
   ===================================================== */
.slogan-section {
  position: absolute;   /* se ancla al fondo del wrap */
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(50%); /* baja la mitad de su alto: partido 50/50 */
  z-index: 10;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.slogan-block {
  pointer-events: auto;
  width: 90%;
  max-width: 820px;
  padding: 48px 64px;
  text-align: center;
  box-sizing: border-box;
}

.slogan-text {
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.35;
  margin: 0;
}

@media (max-width: 768px) {
  .slogan-block {
    width: 100%;
    padding: 32px 24px;
  }
}

/* =====================================================
   SECTION COMMONS
   ===================================================== */
.section-title-vert {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  font-size: clamp(56px, 7vw, 100px);
  font-weight: 100;
  font-family: 'NeueMontreal-Light', 'Neue Montreal', Montserrat, sans-serif;
  letter-spacing: 5px;
  color: var(--blue);
  text-transform: uppercase;
  writing-mode: vertical-lr;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =====================================================
   PROYECTOS SECTION
   ===================================================== */

/* Título de la página /proyectos */
.proyectos-page-header {
  background: var(--white);
  padding: 118px 0 0; /* 48px + 70px offset header fijo */
  text-align: center;
}

.proyectos-page-title {
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 400;
  color: var(--blue);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
}

.proyectos-page-title strong {
  font-weight: 700;
}

.section-proyectos {
  padding: 80px 0 80px;
  background: var(--white);
  position: relative;
  z-index: 1;
  /* padding-top lo ajusta JS dinámicamente cuando hay slogan */
}

.proyectos-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px 0 120px; /* left: espacio para el texto vertical */
  position: relative;
}

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 56px;
}

.proyecto-card { }

.proyecto-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  min-height: 40px;
  gap: 12px;
}

.proyecto-card-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--blue);
  text-transform: uppercase;
  flex: 1;
}

/* Logo del estudio de arquitectos (imagen) */
.proyecto-card-arch-logo {
  max-height: 36px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.proyecto-card-img-link,
.proyecto-card-img--empty {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;   /* portrait estándar: alto > ancho */
  overflow: hidden;
  background: #f0f0f0;
}

.proyecto-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}

.proyecto-card-img-link:hover .proyecto-card-img {
  transform: scale(1.03);
}

.proyecto-card-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: #e8ecf0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* Footer de la card: descripción + etapa + botón */
.proyecto-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.proyecto-card-footer-left {
  flex: 1;
  min-width: 0;
}

.proyecto-card-desc {
  font-size: 13px;
  color: var(--blue);
  line-height: 1.45;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.proyecto-card-etapa {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .5px;
  display: block;
}

.proyecto-card-btn {
  display: inline-block;
  flex-shrink: 0;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}

.proyecto-card-btn:hover {
  background: var(--blue);
  color: #fff;
}

.proyecto-card-btn--disabled {
  opacity: .4;
  cursor: default;
  pointer-events: none;
}

.proyecto-card-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: #aaa;
  font-size: 14px;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .proyectos-inner { padding: 0 24px; }
  .proyectos-grid  { grid-template-columns: 1fr; gap: 32px; }
  .section-title-vert { display: none; }
}

/* =====================================================
   ENTREGADOS SECTION
   ===================================================== */
.section-entregados {
  padding: 72px 0 80px;
  background: var(--steel-bg);
  position: relative;
}

.entregados-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.entregados-header {
  margin-bottom: 40px;
}

.entregados-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.entregados-line {
  height: 3px;
  background: linear-gradient(to right, var(--white) 150px, rgba(255,255,255,.2) 150px);
}

.entregados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.entregado-card { }

.entregado-card-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2.8;
  overflow: hidden;
  margin-bottom: 12px;
  background: rgba(255,255,255,.15);
}

.entregado-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}

.entregado-slide.active { opacity: 1; }

.entregado-slide-empty {
  background: rgba(255,255,255,.15);
}

.entregado-slider-prev,
.entregado-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.35);
  color: #fff;
  border: none;
  width: 26px;
  height: 44px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .2s;
  padding: 0;
}

.entregado-slider-prev:hover,
.entregado-slider-next:hover { background: rgba(0,0,0,.6); }

.entregado-slider-prev { left: 0; }
.entregado-slider-next { right: 0; }

.entregado-slider-dots {
  position: absolute;
  bottom: 6px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  z-index: 2;
}

.e-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .2s;
  flex-shrink: 0;
}

.e-dot.active { background: #fff; }

.entregado-card-placeholder {
  width: 100%;
  aspect-ratio: 3/2.8;
  background: rgba(255,255,255,.15);
  margin-bottom: 12px;
}

.section-title-vert--white {
  color: #fff;
}

.entregado-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.35);
  margin-bottom: 6px;
}

.entregado-card-name {
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.entregado-card-district {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
}

.entregado-card-status {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .entregados-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .entregados-inner { padding: 0 20px; }
  .entregados-grid  { grid-template-columns: 1fr; }
}

/* =====================================================
   NOSOTROS SECTION
   ===================================================== */
.section-nosotros {
  position: relative;
  background: var(--white);
}

.nos-hero {
  position: relative;
  overflow: visible;       /* permite que el círculo sobresalga */
  background-color: var(--blue);
  background-size: cover;
  background-position: center;
  padding: 160px 0 210px; /* 90px + 70px offset header fijo */
  border:none!important;
}

/* Cuña blanca diagonal en la base — de arriba-izquierda a abajo-derecha */
.nos-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: var(--white);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  z-index: 1;
  pointer-events: none;
}

.nos-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

/* ── Texto descriptivo ── */
.nos-text {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,.9);
  line-height: 1.8;
  letter-spacing: .2px;
}

.nos-text p { margin-bottom: 16px; }
.nos-text p:last-child { margin-bottom: 0; }
.nos-text b, .nos-text strong { font-weight: 700; }

/* ── Slogan ── */
.nos-slogan {
  text-align: right;
}

.nos-slogan-line {
  display: block;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.05;
}

.nos-slogan-line--bold {
  font-size: clamp(28px, 3.3vw, 50px);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
}

.nos-slogan-line--light {
  font-size: clamp(28px, 3.3vw, 50px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,.45);
}

/* ── Imagen de proyecto en círculo ── */
.nos-circle-wrap {
  position: absolute;
  bottom: 0px;
  left: 80px;
  z-index: 3;
}

.nos-circle-img {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  object-fit: cover;
  border: 15px solid hsla(0, 0%, 100%, .322);
  display: block;
}

/* ── Estadísticas ── */
.nos-stats-wrap {
  background: var(--white);
  padding: 130px 0 130px;   /* top: compensa el círculo que sobresale */
}

.nos-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 120px;
}

.nos-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 2.5px solid var(--blue);
}

.nos-stat-num {
  font-size: clamp(64px, 7vw, 96px);
  color: var(--blue);
  letter-spacing: -2px;
  line-height: 1;
  display: block;
}

.nos-stat-text {
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  line-height: 1.55;
  margin-top: 10px;
  display: block;
}

@media (max-width: 1024px) {
  .nos-inner        { padding: 0 48px; }
  .nos-stats-inner  { padding: 0 48px; padding-left: 320px; }
  .nos-circle-wrap  { left: 48px; }
}

@media (max-width: 768px) {
  .nos-hero         { padding: 130px 0 180px; } /* 60px + 70px offset */
  .nos-inner        { grid-template-columns: 1fr; gap: 40px; padding: 0 24px; }
  .nos-slogan       { text-align: right; }
  .nos-circle-wrap  { left: 24px; bottom: -70px; }
  .nos-circle-img   { width: 170px; height: 170px; }
  .nos-stats-inner  { grid-template-columns: 1fr 1fr; padding: 0 24px; padding-left: 220px; }
  .nos-stats-wrap   { padding-top: 100px; }
}

@media (max-width: 520px) {
  .nos-stats-inner  { grid-template-columns: 1fr; padding-left: 24px; padding-top: 100px; }
  .nos-stats-wrap   { padding-top: 90px; }
}

/* =====================================================
   CONTACTO SECTION
   ===================================================== */
:root {
  --cf-blue: #19265a;
}

.section-contacto {
  padding: 80px 0;
  background: var(--white);
}

.contacto-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}

.contacto-left-title {
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  color: var(--cf-blue);
  line-height: 1;
}

/* Línea vertical — borde izquierdo del form-wrap */
.contacto-form-wrap {
  border-left: 1.5px solid var(--cf-blue);
  padding-left: 52px;
}

.cf-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 32px;
  margin-bottom: 0;
}

.cf-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 32px;
}

/* Underline-only inputs */
.cf-field {
  border: none;
  border-bottom: 1.5px solid var(--cf-blue);
  padding: 12px 0 8px;
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cf-blue);
  background: transparent;
  outline: none;
  width: 100%;
  margin-bottom: 28px;
  transition: border-color var(--transition);
}
.cf-field::placeholder {
  color: rgba(25,38,90,.55);
  font-weight: 600;
}
.cf-field:focus { border-bottom-color: var(--gold); }

.cf-field-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M0 0l6 7 6-7z' fill='%2319265a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 20px;
}

/* ── Custom dropdown ── */
.cf-select-wrap {
  position: relative;
  margin-bottom: 28px;
}

.cf-select-hidden {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cf-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--cf-blue);
  padding: 12px 0 8px;
  cursor: pointer;
  user-select: none;
  outline: none;
}

.cf-dropdown:focus {
  border-bottom-color: var(--gold);
}

.cf-dropdown-value {
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(25,38,90,.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  transition: color .2s;
}

.cf-dropdown.has-value .cf-dropdown-value {
  color: var(--cf-blue);
}

.cf-dropdown-arrow {
  color: var(--cf-blue);
  flex-shrink: 0;
  margin-left: 8px;
  transition: transform .2s ease;
  display: flex;
  align-items: center;
}

.cf-dropdown.open .cf-dropdown-arrow {
  transform: rotate(180deg);
}

.cf-dropdown-list {
  position: absolute;
  top: calc(100% + 2px);
  left: -16px;
  right: -16px;
  background: #fff;
  border: none;
  box-shadow: 0 8px 32px rgba(25,38,90,.13), 0 2px 8px rgba(0,0,0,.08);
  z-index: 200;
  max-height: 240px;
  overflow-y: auto;
  display: none;
  padding: 6px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(25,38,90,.2) transparent;
}

.cf-dropdown.open .cf-dropdown-list {
  display: block;
  animation: cfDropIn .18s ease;
}

@keyframes cfDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cf-dropdown-item {
  padding: 11px 20px;
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--cf-blue);
  cursor: pointer;
  transition: background .15s, color .15s;
  line-height: 1.3;
}

.cf-dropdown-item:hover,
.cf-dropdown-item.focused {
  background: rgba(25,38,90,.07);
  color: var(--cf-blue);
}

.cf-dropdown-item.selected {
  background: rgba(25,38,90,.1);
  font-weight: 700;
}

.cf-dropdown-placeholder {
  color: rgba(25,38,90,.4);
  font-weight: 400;
  letter-spacing: 1px;
  font-style: italic;
}

/* Bottom row: email + proyecto + button */
.cf-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr 220px;
  gap: 0 32px;
  align-items: end;
}

/* el wrapper del dropdown custom debe alinearse con los cf-field */
.cf-bottom-row .cf-select-wrap {
  align-self: end;
}

.cf-btn {
  background: var(--cf-blue);
  color: var(--white);
  border: none;
  padding: 14px 0;
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: background var(--transition);
  margin-bottom: 28px;
}
.cf-btn:hover { background: #0c1280; }

.cf-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.cf-check-row input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: var(--cf-blue);
  cursor: pointer;
  flex-shrink: 0;
}
.cf-check-row label {
  font-size: 11px;
  color: #444;
  letter-spacing: .3px;
  cursor: pointer;
}
.cf-check-row a {
  color: var(--cf-blue);
  font-weight: 700;
  text-decoration: none;
}
.cf-check-row a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .contacto-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 24px;
  }
  .contacto-form-wrap {
    border-left: none;
    border-top: 1.5px solid var(--cf-blue);
    padding-left: 0;
    padding-top: 32px;
  }
  .cf-row, .cf-row-2, .cf-bottom-row {
    grid-template-columns: 1fr;
  }
  .cf-btn { margin-top: 8px; }
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--blue);
  color: var(--white);
  padding: 40px 0 28px;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Top: nav links row */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding-bottom: 24px;
}

.footer-nav a,
.footer-nav span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  transition: color var(--transition);
  padding: 0 14px;
}
.footer-nav a:hover { color: var(--white); }
.footer-nav .sep {
  color: rgba(255,255,255,.3);
  padding: 0;
  font-size: 11px;
  user-select: none;
}

/* Bottom row */
.footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.footer-logo img {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-contact {
  text-align: center;
}
.footer-contact-phones {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .5px;
  color: rgba(255,255,255,.85);
  margin-bottom: 4px;
}
.footer-contact-address {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  letter-spacing: .3px;
  margin-bottom: 2px;
}
.footer-contact-address:last-child { margin-bottom: 0; }

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-libro img {
  height: 52px;
  width: auto;
  display: block;
}

.footer-credits {
  font-size: 10px;
  color: rgba(255,255,255,.4);
  letter-spacing: .5px;
  text-align: right;
}

@media (max-width: 800px) {
  .footer-inner { padding: 0 24px; }
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-logo { margin: 0 auto; }
  .footer-right { align-items: center; }
  .footer-credits { text-align: center; }
  .footer-nav { gap: 0; }
  .footer-nav a { padding: 4px 10px; }
}

/* =====================================================
   WHATSAPP FLOAT
   ===================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 2000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.6);
}
.whatsapp-float svg {
  width: 30px; height: 30px;
  fill: #fff;
}

/* Wrap para múltiples números (menú) */
.whatsapp-float-wrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.whatsapp-float-wrap .whatsapp-float {
  position: static;
}

/* Menú de opciones */
.wa-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.whatsapp-float-wrap.is-open .wa-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.wa-menu-item {
  display: inline-block;
  background: #fff;
  color: #1a1a2e;
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, color .15s;
  border-left: 3px solid #25D366;
}
.wa-menu-item:hover {
  background: #25D366;
  color: #fff;
}

/* =====================================================
   UTILITIES
   ===================================================== */
/* .pt-header ya no se usa como div vacío — el padding se aplica
   directamente en el primer bloque de contenido de cada página */
.pt-header { padding-top: 70px; }

/* Primer bloque en páginas internas absorbe la altura del header fijo.
   El padding-top se define directamente en cada sección más abajo. */
.proyectos-page-header { padding-top: 118px; } /* 48px original + 70px offset */

/* =====================================================
   PÁGINA DE CONTACTO (/contacto)
   ===================================================== */
.cp-section {
  min-height: calc(100vh - 70px);
  background-color: var(--blue);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  padding-top: 130px; /* 70px header + 60px spacing */
}

/* Tarjeta blanca central */
.cp-card {
  background: #fff;
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: 400px 2px 1fr;
  gap: 0;
  min-height: 520px;
}

/* Columna izquierda */
.cp-left {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cp-title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  color: var(--blue);
  line-height: 1.25;
  margin: 0 0 24px;
}

.cp-subtitle {
  font-size: 13px;
  color: var(--blue);
  line-height: 1.65;
  margin: 0;
}

/* Línea divisora vertical */
.cp-divider {
  width: 3px;
  background: #19265a;
  margin: 40px 0;
}

/* Columna derecha */
.cp-right {
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cp-form-intro {
  font-size: 12px;
  color: #555;
  letter-spacing: .3px;
  margin-bottom: 28px;
}

/* Flash message */
.cp-flash {
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 20px;
  font-weight: 500;
}
.cp-flash--success { background: #d4edda; color: #155724; }
.cp-flash--error   { background: #f8d7da; color: #721c24; }

/* Fila de dos columnas */
.cp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  margin-bottom: 0;
}

.cp-field-wrap { position: relative; }

/* Campo underline */
.cp-field {
  display: block;
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--blue);
  padding: 11px 0 8px;
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--blue);
  background: transparent;
  outline: none;
  margin-bottom: 26px;
  transition: border-color .2s;
}
.cp-field::placeholder {
  color: rgba(25,38,90,.45);
  font-weight: 600;
}
.cp-field:focus { border-bottom-color: var(--gold); }

/* Dropdown de proyectos (reutiliza lógica del home) */
.cp-select-wrap {
  position: relative;
  margin-bottom: 26px;
}

.cp-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--blue);
  padding: 11px 0 8px;
  cursor: pointer;
  user-select: none;
  outline: none;
}
.cp-dropdown:focus { border-bottom-color: var(--gold); }

.cp-dropdown-value {
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: rgba(25,38,90,.45);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s;
}
.cp-dropdown.has-value .cp-dropdown-value { color: var(--blue); }

.cp-dropdown-arrow {
  color: var(--blue);
  flex-shrink: 0;
  margin-left: 8px;
  transition: transform .2s;
  display: flex;
  align-items: center;
}
.cp-dropdown.open .cp-dropdown-arrow { transform: rotate(180deg); }

.cp-dropdown-list {
  position: absolute;
  top: calc(100% + 2px);
  left: -12px; right: -12px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(25,38,90,.13), 0 2px 8px rgba(0,0,0,.07);
  z-index: 200;
  max-height: 220px;
  overflow-y: auto;
  display: none;
  padding: 6px 0;
  scrollbar-width: thin;
}
.cp-dropdown.open .cp-dropdown-list {
  display: block;
  animation: cfDropIn .18s ease;
}

.cp-dropdown-item {
  padding: 10px 18px;
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--blue);
  cursor: pointer;
  transition: background .15s;
  line-height: 1.3;
}
.cp-dropdown-item:hover,
.cp-dropdown-item.focused { background: rgba(25,38,90,.06); }
.cp-dropdown-item.selected { background: rgba(25,38,90,.1); font-weight: 700; }
.cp-dropdown-placeholder { color: rgba(25,38,90,.4); font-weight: 400; font-style: italic; }

/* Plataforma radios */
.cp-platform-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 4px;
}

.cp-platform-label {
  font-size: 11px;
  color: #555;
  letter-spacing: .3px;
  margin-right: 4px;
}

.cp-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--blue);
  cursor: pointer;
  font-weight: 500;
  letter-spacing: .3px;
}
.cp-radio-label input[type="radio"] {
  accent-color: var(--blue);
  width: 14px; height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Botón enviar */
.cp-btn {
  margin-top: 24px;
  padding: 14px 48px;
  background: var(--blue);
  color: #fff;
  border: none;
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
  display: block;
}
.cp-btn:hover { filter: brightness(1.15); }

/* Responsive */
@media (max-width: 900px) {
  .cp-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 0 auto;
  }
  .cp-divider {
    width: auto; height: 1px;
    margin: 0 40px;
  }
  .cp-left  { padding: 40px 32px 32px; }
  .cp-right { padding: 32px 32px 40px; }
}

@media (max-width: 600px) {
  .cp-row { grid-template-columns: 1fr; }
  .cp-left  { padding: 32px 20px 24px; }
  .cp-right { padding: 24px 20px 36px; }
  .cp-btn   { width: 100%; padding: 14px; }
}

/* ══════════════════════════════════════════════════════════
   PROTECCIÓN AL CONSUMIDOR (.pac-*)
══════════════════════════════════════════════════════════ */
.pac-section {
  padding: 56px 0 80px;
  padding-top: 126px; /* 70px header + 56px spacing */
  background: #f5f6f8;
  min-height: calc(100vh - 72px);
}

.pac-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.pac-page-title {
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 300;
  color: var(--blue);
  margin: 0 0 40px;
  letter-spacing: -0.3px;
}

.pac-empty {
  color: #666;
  font-size: 15px;
}

/* ── Layout principal ── */
.pac-layout {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* ── Sidebar proyectos ── */
.pac-sidebar {
  width: 270px;
  flex-shrink: 0;
  padding-right: 32px;
}

.pac-sidebar-title {
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--blue);
  margin: 0 0 28px;
  line-height: 1.4;
}

.pac-project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pac-project-item {
  font-family: 'SF Pro Display', 'Montserrat', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.8px;
  color: var(--blue);
  cursor: pointer;
  transition: color 0.2s;
  outline: none;
  user-select: none;
}
.pac-project-item:hover { color: var(--blue); opacity: 0.7; }
.pac-project-item.is-active {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
}

/* ── Divisor vertical ── */
.pac-divider {
  width: 1px;
  background: #cdd4dc;
  align-self: stretch;
  flex-shrink: 0;
  margin: 0 40px;
}

/* ── Contenido derecha ── */
.pac-content {
  flex: 1;
  min-width: 0;
}

.pac-docs-title {
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  color: var(--blue);
  margin: 0 0 24px;
}

.pac-no-docs {
  color: #888;
  font-size: 14px;
}

/* ── Grid de capítulos ── */
.pac-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ── Item (capítulo) ── */
.pac-item {
  background: #fff;
  border: 1px solid #d3dce6;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.pac-item:hover { border-color: #b0bfcc; }

.pac-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  min-height: 54px;
  user-select: none;
}
.pac-item.has-pdf .pac-item-row:hover,
.pac-item.has-subs .pac-item-row:hover {
  background: #f0f4f8;
}

.pac-item-icon {
  color: var(--blue);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.pac-item-label {
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  color: var(--blue);
  line-height: 1.35;
  flex: 1;
}

.pac-item-num {
  margin-right: 4px;
}

.pac-item-arrow {
  color: var(--blue);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
  margin-left: auto;
}
.pac-item.is-open .pac-item-arrow {
  transform: rotate(180deg);
}

/* ── Subtítulos expandidos ── */
.pac-subs {
  list-style: none;
  margin: 0;
  padding: 0 16px 12px 16px;
  border-top: 1px solid #e8ecf0;
  display: none;
}
.pac-item.is-open .pac-subs {
  display: block;
}

.pac-sub-item {
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f5;
}
.pac-sub-item:last-child { border-bottom: none; }

.pac-sub-item a,
.pac-sub-no-pdf {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 12.5px;
  color: var(--blue);
  text-decoration: none;
  line-height: 1.4;
}
.pac-sub-item a:hover { text-decoration: underline; text-underline-offset: 2px; }
.pac-sub-no-pdf { opacity: 0.6; }

.pac-sub-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--blue);
  display: flex;
  align-items: center;
}

.pac-sub-letra {
  font-weight: 600;
  margin-right: 3px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .pac-layout    { flex-direction: column; gap: 32px; }
  .pac-sidebar   { width: 100%; padding-right: 0; }
  .pac-divider   { width: 100%; height: 1px; align-self: auto; margin: 0; }
  .pac-project-list { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; }
}

@media (max-width: 600px) {
  .pac-container { padding: 0 20px; }
  .pac-section   { padding: 40px 0 60px; }
  .pac-grid      { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   PÁGINAS LEGALES (.legal-*)
══════════════════════════════════════════════════════════ */
.legal-section {
  padding: 60px 0 90px;
  padding-top: 130px; /* 70px header + 60px spacing */
  background: #fff;
  min-height: calc(100vh - 72px);
}

.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}

.legal-title {
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 40px;
}

.legal-body {
  color: var(--blue);
}

.legal-p {
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: #333;
  margin: 0 0 18px;
}

.legal-p--heading {
  font-weight: 600;
  color: var(--blue);
  margin-top: 24px;
}

.legal-p strong,
.legal-p b {
  font-weight: 600;
  color: var(--blue);
}

.legal-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-link:hover { opacity: 0.75; }

.legal-list {
  margin: 0 0 18px 20px;
  padding: 0;
  list-style: disc;
}
.legal-list li {
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 8px;
}

/* Tabla de empresas */
.legal-table-wrap {
  margin-top: 12px;
  border: 1px solid #d0d8e4;
  overflow: hidden;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
}

.legal-table thead tr {
  background: var(--blue);
}

.legal-table thead th {
  padding: 12px 20px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 11px;
  color: #fff;
  text-align: left;
  border: none;
}

.legal-table tbody tr {
  border-bottom: 1px solid #e8ecf2;
}
.legal-table tbody tr:last-child { border-bottom: none; }
.legal-table tbody tr:nth-child(odd) { background: #f7f9fc; }

.legal-table tbody td {
  padding: 10px 20px;
  color: #333;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .legal-container { padding: 0 20px; }
  .legal-section   { padding: 40px 0 60px; padding-top: 100px !important; }
  .legal-table tbody td,
  .legal-table thead th { padding: 9px 12px; }
}

/* ══════════════════════════════════════════════════════════
   LIBRO DE RECLAMACIONES (.lr-*)
══════════════════════════════════════════════════════════ */
.lr-section {
  padding: 60px 0 90px;
  padding-top: 130px; /* 70px header + 60px spacing */
  background: #f5f6f8;
  min-height: calc(100vh - 72px);
}

.lr-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Cabecera */
.lr-header {
  margin-bottom: 36px;
}

.lr-title {
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.lr-subtitle {
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  max-width: 700px;
  margin: 0;
}

/* Flash */
.lr-flash {
  padding: 12px 18px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 28px;
  line-height: 1.5;
}
.lr-flash--success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.lr-flash--error   { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }

/* Formulario */
.lr-form {
  background: #fff;
  border: 1px solid #dde3ec;
  padding: 40px 40px 48px;
}

.lr-section-title {
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin: 32px 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue);
}
.lr-form .lr-section-title:first-child { margin-top: 0; }

.lr-section-subtitle {
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.65;
}

/* Grid 3 columnas */
.lr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 24px;
}

.lr-field-wrap {
  min-width: 0;
}

.lr-field-wrap--full {
  grid-column: 1 / -1;
}

/* Campos underline */
.lr-field {
  display: block;
  width: 100%;
  border: none;
  border-bottom: 1.5px solid rgba(13, 34, 99, 0.35);
  padding: 11px 0 8px;
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--blue);
  background: transparent;
  outline: none;
  margin-bottom: 20px;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.lr-field::placeholder {
  color: rgba(13, 34, 99, 0.4);
  font-weight: 400;
}
.lr-field:focus {
  border-bottom-color: var(--blue);
}

/* Select con flecha custom */
.lr-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='6'%3E%3Cpath d='M0 0l5.5 6L11 0z' fill='%230D2263'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 22px;
  color: rgba(13, 34, 99, 0.4);
}
.lr-select:focus,
.lr-select:valid { color: var(--blue); }

/* Textarea */
.lr-textarea {
  resize: vertical;
  min-height: 90px;
  padding-top: 10px;
  line-height: 1.55;
}

/* Botón */
.lr-submit-row {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.lr-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 15px 64px;
  font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}
.lr-btn:hover { opacity: 0.85; }

/* Responsive */
@media (max-width: 700px) {
  .lr-form { padding: 28px 20px 36px; }
  .lr-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .lr-container { padding: 0 16px; }
  .lr-section   { padding: 40px 0 60px; padding-top: 100px !important; }
  .lr-grid      { grid-template-columns: 1fr; }
  .lr-btn       { width: 100%; padding: 14px; }
}


