/* ==========================================================
   INARQ.CO — Estilos compartidos
   Colores principales:
     Azul INARQ   #0F6F7F  (oscuro #0B5561, profundo #083F48)
     Blanco       #FFFFFF
     Tinta        #1B2224
     Dorado       #E2C47A (MYSTRAL)
     Azul LA MAR  #22355F
   ========================================================== */

body {
  margin: 0;
  font-family: 'Archivo', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  background: #F3EFE6;
  color: #1B2224;
}
p, span, a, button, input, select, label, strong, h1, h2, h3, li { font-family: inherit; }

a { color: #0F6F7F; }
a:hover { color: #0B5561; }
body.page-mystral { background: #0B0B0B; color: #F4EFE4; }
/* :where() mantiene baja la prioridad para que los botones conserven su color */
:where(body.page-mystral) a { color: #E2C47A; }
:where(body.page-mystral) a:hover { color: #F1D995; }
:where(body.page-lamar) a { color: #22355F; }
:where(body.page-lamar) a:hover { color: #152340; }

section[id] { scroll-margin-top: 120px; }
/* Texto solo para lectores de pantalla y buscadores */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Fondos con foto ---------- */
.arena-hero   { background-image: url(../assets/img/arena/arena-hero-fondo.jpg); background-size: cover; background-position: center; }
.mystral-hero { background-image: url(../assets/img/mystral-hero-poster.jpg); background-size: cover; background-position: center; }
.lamar-hero   { background-image: url(../assets/img/lamar/lamar-hero-poster.jpg); background-size: cover; background-position: center; }
.lamar-foto   { background-image: url(../assets/img/lamar-portada.jpg); background-size: cover; background-position: center; }
.mystral-foto { background-image: url(../assets/img/mystral-portada.jpg); background-size: cover; background-position: center; }
.arena-card   { background-image: url(../assets/img/arena2/piscina-noche.jpg); background-size: cover; background-position: center 70%; }
.arenamar-hero { background-image: url(../assets/img/arena-del-mar/portada-piscinas.jpg); background-size: cover; background-position: center; }
.arenamar-card { background-image: url(../assets/img/arena-del-mar/portada-piscinas.jpg); background-size: cover; background-position: center; }

/* ---------- Barra de navegación (barra azul INARQ, se oculta al bajar) ---------- */
.site-header { position: sticky; top: 0; z-index: 20; height: 0; }
/* Única pieza con efecto vidrio: azul INARQ translúcido con desenfoque */
.nav-wrap {
  background: rgba(15,111,127,0.55);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border-bottom: 1px solid rgba(255,255,255,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 8px 28px rgba(4,40,46,0.18);
  transition: transform .4s ease, opacity .3s ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-wrap { background: rgba(15,111,127,0.94); }
}
.nav-wrap.nav-hidden { transform: translateY(-110%); opacity: 0; pointer-events: none; }
.nav-bar {
  max-width: 1280px; margin: 0 auto; padding: 10px 24px; box-sizing: border-box;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
}
.main-nav { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; font-size: 15px; font-weight: 500; }
.nav-link { text-decoration: none; color: #FFFFFF !important; padding: 10px 14px; border-radius: 8px; white-space: nowrap; transition: background .2s; }
.nav-link:hover { background: rgba(255,255,255,0.12); }
.nav-on { background: rgba(255,255,255,0.16); }
.nav-cta {
  text-decoration: none; white-space: nowrap; background: #FFFFFF; color: #0F6F7F !important; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; margin-left: 6px;
}
.nav-cta:hover { background: #E6F2F4; }
@media (max-width: 760px) {
  .nav-bar { padding: 10px 16px; }
  .main-nav { flex-wrap: nowrap !important; overflow-x: auto; width: 100%; scrollbar-width: none; }
}

/* ---------- Tarjetas y botones (estilo plano: azul INARQ y blanco) ----------
   Las clases .glass* se conservan para no tocar cada página, pero ya no llevan
   efecto vidrio: son superficies sólidas. */
.glass {
  background: #FFFFFF; color: #1B2224; border: 1px solid #DCE7E9;
  box-shadow: 0 10px 30px rgba(8,63,72,0.12);
}
.glass-dark {
  background: rgba(8,63,72,0.92); color: #FFFFFF; border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
body.page-mystral .glass-dark { background: #161616; border-color: rgba(226,196,122,0.25); }
.glass-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  padding: 15px 26px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer;
  color: #0F6F7F; background: #FFFFFF; border: 1.5px solid #0F6F7F;
  transition: transform .2s ease, background .2s, color .2s;
}
.glass-btn:hover { background: #0F6F7F; color: #FFFFFF; }
.glass-btn.glass-btn-dark { color: #FFFFFF; background: transparent; border-color: rgba(255,255,255,0.8); }
.glass-btn.glass-btn-dark:hover { background: #FFFFFF; color: #0F6F7F; }
body.page-mystral .glass-btn.glass-btn-dark:hover { color: #15120B; }
.glass-btn:active, .press:active { transform: scale(0.96); }
.press { transition: transform .2s ease; }
.glass-round { width: 48px; height: 48px; padding: 0; }
.glass-input {
  font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 12px; color: #1B2224;
  background: #FFFFFF; border: 1px solid #C9DADD;
}
.glass-wa { background: #1F8A4C; box-shadow: 0 10px 30px rgba(0,0,0,0.25); transition: transform .2s ease; }
.glass-wa:active { transform: scale(0.92); }

/* ---------- Inicio: secciones al estilo corporativo ---------- */
.sec { max-width: 1280px; margin: 0 auto; padding: 96px 24px; box-sizing: border-box; }
.sec-eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #0F6F7F; }
.sec-title { margin: 12px 0 0; font-stretch: 125%; font-size: clamp(32px, 4vw, 50px); font-weight: 800; line-height: 1.02; letter-spacing: -1px; color: #1B2224; }
.sec-sub { margin: 16px 0 0; max-width: 620px; font-size: 17px; line-height: 1.6; color: #4A5658; }
.on-blue .sec-eyebrow { color: #9FD6DE; }
.on-blue .sec-title { color: #FFFFFF; }
.on-blue .sec-sub { color: rgba(255,255,255,0.78); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 700; padding: 15px 28px; border-radius: 999px; border: 1.5px solid transparent; text-align: center;
  transition: background .2s, color .2s, transform .2s;
}
.btn:active { transform: scale(0.96); }
.btn-azul { background: #0F6F7F; color: #FFFFFF !important; }
.btn-azul:hover { background: #0B5561; }
.btn-blanco { background: #FFFFFF; color: #0F6F7F !important; }
.btn-blanco:hover { background: #E6F2F4; }
.btn-linea { background: transparent; color: #FFFFFF !important; border-color: rgba(255,255,255,0.85); }
.btn-linea:hover { background: #FFFFFF; color: #0F6F7F !important; }

.hero-overlay { position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(4,40,46,0.72) 0%, rgba(4,40,46,0.35) 45%, rgba(4,40,46,0) 75%), linear-gradient(0deg, rgba(4,40,46,0.55) 0%, rgba(4,40,46,0) 40%); }
.hero-ctrl { width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.8); background: transparent; color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.hero-ctrl:hover { background: #FFFFFF; color: #0F6F7F; }

.stat { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; }
.stat strong { font-stretch: 125%; font-size: clamp(34px, 4vw, 48px); font-weight: 800; line-height: 1; color: #FFFFFF; }
.stat span { font-size: 14px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.75); }

/* Sección "¿Qué hace diferente…?" con foto de fondo y capa azul para que el texto se lea */
.dif-fondo {
  background-color: #083F48;
  background-image: linear-gradient(90deg, rgba(8,63,72,0.94) 0%, rgba(8,63,72,0.8) 45%, rgba(8,63,72,0.5) 100%), url(../assets/img/fachada-trasera.jpg);
  background-size: cover; background-position: center 35%;
}
.dif { background: #FFFFFF; border: 1px solid #DCE7E9; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, box-shadow .2s; }
.dif:hover { border-color: #0F6F7F; box-shadow: 0 14px 36px rgba(8,63,72,0.12); }
.dif-ico { width: 52px; height: 52px; border-radius: 12px; background: #E6F2F4; color: #0F6F7F; display: flex; align-items: center; justify-content: center; }
.dif h3 { margin: 0; font-size: 19px; font-weight: 700; }
.dif p { margin: 0; font-size: 15px; line-height: 1.55; color: #4A5658; }

.proy { background: #FFFFFF; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(8,63,72,0.1); }
.proy-media { position: relative; height: 300px; background-color: #0B5561; overflow: hidden; }
/* Tarjeta con dos fotos que se alternan (fundido cada 5 s) */
.fotos-cambian img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fotos-cambian img + img { opacity: 0; animation: fotoCambio 10s ease-in-out infinite; }
@keyframes fotoCambio { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fotos-cambian img + img { animation: none; } }
.proy-badge { position: absolute; top: 14px; left: 14px; z-index: 1; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 12px; border-radius: 6px; background: #0F6F7F; color: #FFFFFF; }
.proy-badge.obra { background: #FFFFFF; color: #0F6F7F; }
.proy-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.proy-loc { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #0F6F7F; }
.proy-body h3 { margin: 0; font-stretch: 125%; font-size: 24px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.proy-body p { margin: 0; font-size: 15px; line-height: 1.55; color: #4A5658; }
.proy-tags { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; align-content: flex-start; }
.proy-tags span { font-size: 13px; font-weight: 600; color: #0B5561; background: #E6F2F4; padding: 6px 10px; border-radius: 6px; }

.galeria { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-auto-rows: 240px; gap: 14px; }
.galeria figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: #0B5561; }
.galeria figure.ancha { grid-column: span 2; }
@media (max-width: 620px) { .galeria figure.ancha { grid-column: auto; } }
.galeria img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.galeria figure:hover img { transform: scale(1.05); }
.galeria figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 14px; font-size: 14px; font-weight: 600; color: #FFFFFF; background: linear-gradient(0deg, rgba(4,40,46,0.8), rgba(4,40,46,0)); }

.campo { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: #FFFFFF; }
.campo input, .campo select, .campo textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 13px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: #FFFFFF; box-sizing: border-box; width: 100%; }
.campo select option { color: #1B2224; }
.campo input::placeholder, .campo textarea::placeholder { color: rgba(255,255,255,0.55); }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 2px solid #9FD6DE; outline-offset: 1px; }

.pie a { color: rgba(255,255,255,0.8); text-decoration: none; }
.pie a:hover { color: #FFFFFF; }
.pie h4 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #FFFFFF; }
.red { width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; width: 62px; height: 62px; border-radius: 999px;
  color: #FFFFFF !important; display: flex; align-items: center; justify-content: center; z-index: 10;
}

/* ---------- Portada del inicio: videos que se turnan (corte directo) sobre fondo de marca ---------- */
.turno { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
.turno.is-on { visibility: visible; }
.portada-color {
  position: relative; overflow: hidden; height: 100svh; min-height: 520px; max-height: 960px;
  background:
    radial-gradient(70% 60% at 85% 15%, rgba(159,214,222,0.35) 0%, rgba(159,214,222,0) 60%),
    radial-gradient(60% 55% at 10% 90%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(135deg, #0F6F7F 0%, #0B5561 50%, #083F48 100%);
}

/* Tarjeta de contacto sobre la portada: azul translúcido, sin desenfoque */
.portada-tarjeta {
  position: absolute; z-index: 1; left: max(24px, calc((100% - 1280px) / 2 + 24px)); bottom: 56px;
  width: min(520px, calc(100% - 48px)); box-sizing: border-box; padding: 32px;
  background: rgba(8,63,72,0.72); border: 1px solid rgba(255,255,255,0.18); border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.28); color: #FFFFFF;
}
.portada-tarjeta .sec-eyebrow { color: #9FD6DE; }
/* Título de la portada en Montserrat (letra más comercial); el resto del sitio sigue en Archivo */
.portada-tarjeta h1 { margin: 12px 0 0; font-family: 'Montserrat', 'Archivo', system-ui, sans-serif; font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; line-height: 1.12; letter-spacing: -0.5px; }
.portada-texto { margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,0.85); }
.portada-botones { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.portada-datos { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.18); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: rgba(255,255,255,0.8); }
.portada-datos a { color: #FFFFFF; font-weight: 600; text-decoration: none; }
.portada-datos a:hover { text-decoration: underline; }
@media (max-width: 620px) {
  .portada-tarjeta { left: 16px; right: 16px; bottom: 16px; width: auto; padding: 22px; }
  .portada-texto { font-size: 15px; }
  .portada-botones .btn { flex: 1 1 100%; padding: 13px 20px; }
}

/* ---------- Slider de portada (inicio) ---------- */
.slide { display: none; }
.slide.is-active { display: flex; }

/* ---------- Galerías ---------- */
.thumb {
  flex: 0 0 auto; width: 112px; height: 76px; padding: 0; border-radius: 16px; overflow: hidden; cursor: pointer;
  background: #C9C0AC; border: 3px solid transparent; opacity: 0.75;
}
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: #0F6F7F; opacity: 1; }
body.page-mystral .thumb { background: #222; opacity: 0.65; }
body.page-mystral .thumb.is-active { border-color: #E2C47A; opacity: 1; }

/* ---------- Pestañas Apto 01 / Apto 02 (MYSTRAL) ---------- */
.tab-btn {
  font: inherit; font-size: 15px; font-weight: 600; border: 0; cursor: pointer; padding: 11px 20px; border-radius: 999px;
  background: transparent; color: #FFFFFF;
}
.tab-btn.is-active { background: linear-gradient(180deg, #E8C873 0%, #B8913A 100%); color: #15120B; }
.tab-panel[hidden] { display: none !important; }

/* ---------- Tarjeta del showroom (efecto recorrido 360°) ---------- */
.tour-pan { animation: tourPan 26s ease-in-out infinite alternate; }
@keyframes tourPan { 0% { transform: translateX(0); } 100% { transform: translateX(-23.08%); } }
.tour-compass { animation: tourSpin 26s ease-in-out infinite alternate; }
@keyframes tourSpin { 0% { transform: rotate(-35deg); } 100% { transform: rotate(35deg); } }
.hotspot { position: absolute; width: 0; height: 0; }
.hs-dot {
  position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 999px; background: #FFFFFF;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.28), 0 4px 12px rgba(0,0,0,0.35);
}
.hs-ring {
  position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 999px;
  border: 2px solid #FFFFFF; animation: hsPulse 2.2s ease-out infinite;
}
@keyframes hsPulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(3); opacity: 0; } }
.hs-label { position: absolute; left: 18px; top: -15px; white-space: nowrap; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .tour-pan, .tour-compass, .hs-ring { animation: none; }
}
