/* ===========================
   FESTÍN INMOBILIARIO — CSS
   Tipografía: Poppins
   Paleta:
   #3841F2 #2573D9 #04BF68 #82D9B0 #96E7FA #F2F2F2
=========================== */

:root{
  --brand-1:#3841F2;
  --brand-2:#2573D9;
  --green:#04BF68;
  --accent-2:#82D9B0;
  --accent-3:#96E7FA;
  --bg:#F2F2F2;

  --white:#ffffff;
  --ink:#0f172a;
  --muted:#475569;
  --line:rgba(15,23,42,.10);

  --radius:12px;
  --radius-sm:10px;

  --shadow: 0 18px 45px rgba(15,23,42,.10);
  --shadow-sm: 0 12px 28px rgba(15,23,42,.10);

  --container:1120px;
}

/* ==========================
   RESET
========================== */

*{ box-sizing:border-box; }

html,body{ height:100%; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:"Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height:1.55;
}

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

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

button,input,select,textarea{
  font-family:inherit;
}

button{
  appearance:none;
  -webkit-appearance:none;
}

::selection{
  background: rgba(150,231,250,.8);
}

/* ==========================
   HELPERS
========================== */

.container{
  width:min(var(--container), calc(100% - 40px));
  margin-inline:auto;
}

.section{
  padding:72px 0;
}

.section--tight{
  padding:44px 0;
}

.section-title{
  font-size: clamp(24px, 2.2vw, 34px);
  line-height:1.15;
  margin:0 0 12px;
  letter-spacing:-0.02em;
}

.section-lead{
  margin:0 0 28px;
  color: var(--muted);
  max-width:72ch;
}

.section-title--inverse{
  color:#F2F2F2;
}

.section-lead--inverse{
  color: rgba(242,242,242,.86);
}

.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* separador */
.section-split{
  border-top:10px solid #F2F2F2;
}

/* ==========================
   PILLS
========================== */

.pill{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:10px 14px;
  border-radius:999px;
  background: rgba(150,231,250,.45);
  border:1px solid rgba(37,115,217,.25);
  color: rgba(15,23,42,.88);
  font-size:13px;
  font-weight:500;
}

.pill--inverse{
  background: rgba(242,242,242,.16);
  border:1px solid rgba(242,242,242,.25);
  color:#F2F2F2;
}

/* ==========================
   BUTTONS
========================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:10px;
  border:1px solid transparent;
  cursor:pointer;
  font-weight:600;
  letter-spacing:.01em;
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    background .12s ease,
    border-color .12s ease,
    color .12s ease;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active{
  transform: translateY(1px);
}

.btn-primary{
  background: var(--green);
  color: var(--white);
  box-shadow: 0 14px 24px rgba(4,191,104,.20);
}

.btn-primary:hover{
  background:#02ab5c;
}

.btn-secondary{
  background: rgba(255,255,255,.15);
  color: var(--white);
  border:1px solid rgba(255,255,255,.25);
}

.btn-secondary:hover{
  background: rgba(255,255,255,.22);
}

.btn-ghost{
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover{
  border-color: rgba(56,65,242,.22);
  box-shadow: 0 12px 24px rgba(56,65,242,.08);
}

.btn-ghost--inverse{
  border-color: rgba(242,242,242,.40);
  color:#F2F2F2;
}

.btn-ghost--inverse:hover{
  border-color: rgba(242,242,242,.65);
  box-shadow: 0 12px 24px rgba(0,0,0,.10);
}

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

.header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 22px rgba(0,0,0,.08);
}

.header--green{
  background: rgba(4,191,104,.98);
  border-bottom:1px solid rgba(242,242,242,.18);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:14px;
}

.brand-logo{
  width:180px;
  height:auto;
  display:block;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:18px;
}

.nav-links a{
  font-size:13px;
  font-weight:700;
  padding:10px 10px;
  border-radius:10px;
}

.nav-links--inverse a{
  color:#F2F2F2;
}

.nav-links--inverse a:hover{
  background: rgba(242,242,242,.16);
}

.nav-cta{
  display:flex;
  gap:10px;
  align-items:center;
}

/* botones header */
.header .nav-cta .btn{
  background:#82D9B0;
  color:#ffffff;
  border:1px solid rgba(255,255,255,.25);
  box-shadow:0 10px 22px rgba(0,0,0,.12);
}

.header .nav-cta .btn:hover{
  background:#74d3aa;
  box-shadow:0 14px 28px rgba(0,0,0,.16);
}

.header .nav-cta .btn:active{
  transform: translateY(1px);
  box-shadow:0 8px 18px rgba(0,0,0,.12);
}

.burger{
  display:none;
  border-radius:10px;
  padding:10px 12px;
  border:1px solid rgba(242,242,242,.25);
  background: rgba(242,242,242,.14);
  color:#F2F2F2;
}

.burger svg{
  width:22px;
  height:22px;
}

/* ==========================
   MOBILE NAV
========================== */

@media (max-width: 920px){

  .brand-logo{
    width:140px;
  }

  .burger{
    display:inline-flex;
  }

  .nav-cta{
    display:none;
  }

  .nav-links{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:68px;
    padding:12px 20px 18px;
    background: rgba(4,191,104,.98);
    border-bottom:1px solid rgba(242,242,242,.18);
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }

  .nav-links.open{
    display:flex;
  }

  .nav-links a{
    width:100%;
    padding:12px 12px;
  }
}

/* ==========================
   SECTION BACKGROUNDS
========================== */

.section-bg{
  position:relative;
  overflow:hidden;
}

.section-bg-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, rgba(15,23,42,.55), rgba(4,191,104,.25));
  z-index:1;
}

.section-bg--soft .section-bg-overlay--light{
  background: linear-gradient(135deg, rgba(15,23,42,.35), rgba(4,191,104,.14));
}

.section-bg-inner{
  position:relative;
  z-index:2;
}

/* ==========================
   BAND / GLASS
========================== */

.band{
  background: var(--white);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow: var(--shadow-sm);
  padding:20px;
}

.band--glass{
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border:1px solid rgba(255,255,255,.55);
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
}

/* ==========================
   SLIDER
========================== */

.slider{
  position:relative;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
}

.slider-track{
  display:flex;
  transition: transform .45s ease;
  will-change: transform;
}

.slide{
  min-width:100%;
  aspect-ratio: 16 / 9;
  background: rgba(15,23,42,.06);
}

.slide img{
  width:100%;
  height:100%;
  object-fit: cover;
}

.slider-arrow{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background: rgba(15,23,42,.35);
  color: var(--white);
  font-size:28px;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index:3;
  transition: background .12s ease, transform .12s ease;
}

.slider-arrow:hover{
  background: rgba(15,23,42,.50);
}

.slider-arrow:active{
  transform: translateY(-50%) scale(.98);
}

.slider-arrow.prev{ left:12px; }
.slider-arrow.next{ right:12px; }

.slider-dots{
  position:absolute;
  left:0;
  right:0;
  bottom:10px;
  display:flex;
  justify-content:center;
  gap:8px;
  z-index:3;
  padding:6px 10px;
}

.slider-dot{
  width:9px;
  height:9px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.30);
  cursor:pointer;
}

.slider-dot.is-active{
  background: var(--green);
  border-color: rgba(4,191,104,.9);
}

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

.hero--bg{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  padding:84px 0 24px;
}

.hero-bg,
.hero-overlay{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.hero-bg{
  background-size:cover;
  background-position:center;
}

.hero-overlay{
  background: linear-gradient(135deg, rgba(15,23,42,.55), rgba(37,115,217,.55));
  z-index:1;
}

.hero--bg .container{
  position:relative;
  z-index:2;
}

.hero-wrap{
  border-radius:18px;
  overflow:hidden;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: var(--shadow);
  border:1px solid rgba(255,255,255,.12);
}

.hero-wrap--transparent{
  background: transparent;
  box-shadow:none;
  border:none;
}

.hero-inner{
  padding: clamp(22px, 4vw, 48px);
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  align-items:center;
  color: var(--white);
}

.hero h1{
  margin:10px 0 10px;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height:1.05;
  letter-spacing:-0.03em;
}

.hero p{
  margin:0 0 22px;
  max-width:60ch;
  color: rgba(255,255,255,.88);
  font-weight:500;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.hero-help{
  color: rgba(255,255,255,.82);
  margin-top:16px;
}

.hero-panel{
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  border-radius:14px;
  padding:16px;
}

.hero-panel .row{
  display:grid;
  gap:12px;
}

.kpi{
  background: rgba(15,23,42,.18);
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  padding:12px;
}

.kpi b{
  display:block;
  font-size:16px;
}

.kpi span{
  display:block;
  font-size:13px;
  color: rgba(255,255,255,.85);
  font-weight:500;
}

@media (max-width: 920px){
  .hero--bg{
    padding:70px 0 14px;
  }

  .hero-inner{
    grid-template-columns: 1fr;
  }
}

/* ==========================
   GRIDS
========================== */

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}

@media (max-width: 920px){
  .grid-3{
    grid-template-columns: 1fr;
  }
}

/* ==========================
   EVENTO CARDS
========================== */

#evento .feature--img{
  background:#F3E3BA;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 16px 32px rgba(0,0,0,.06);
  overflow:hidden;
  padding:0;
  border-radius: var(--radius);
}

#evento .feature--img .feature-media{
  width:100%;
  aspect-ratio: 1 / 1;
  background: rgba(15,23,42,.06);
}

#evento .feature--img .feature-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

#evento .feature--img .feature-body{
  padding:16px 16px 18px;
}

#evento .feature--img h3{
  margin:0 0 8px;
  color:#0f172a;
  font-size:16px;
  letter-spacing:-0.01em;
}

#evento .feature--img p{
  margin:0;
  color:#334155;
  font-size:14px;
}

/* ==========================
   EXPERIENCIAS
========================== */

.experiencias-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:22px;
}

.exp-card{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  cursor:pointer;
  min-height:320px;
}

.exp-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition: transform .6s ease;
}

.exp-card:hover img{
  transform: scale(1.08);
}

.exp-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.75) 0%,
    rgba(0,0,0,.55) 40%,
    rgba(0,0,0,.20) 100%
  );
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:26px;
  color:white;
}

.exp-overlay h3{
  margin:0 0 10px;
  font-size: clamp(22px, 2vw, 30px);
  font-weight:700;
  line-height:1.1;
  letter-spacing:-0.02em;
}

.exp-overlay p{
  margin:0;
  font-size:15px;
  line-height:1.4;
  opacity:.95;
  font-weight:500;
}

@media(max-width:920px){
  .experiencias-grid{
    grid-template-columns: 1fr;
  }

  .exp-card{
    min-height:280px;
  }

  .exp-overlay h3{
    font-size:24px;
  }
}

/* fondo experiencias */
.experiencias-bg{
  position:relative;
  background-image:url("../img/bg-experiencias.jpg");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  overflow:hidden;
}

.experiencias-bg-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, rgba(15,23,42,.62), rgba(4,191,104,.22));
  z-index:1;
}

/* ==========================
   PARALLAX GLOBAL
========================== */

.has-parallax{
  position:relative;
  overflow:hidden;
}

.has-parallax .parallax-bg{
  position:absolute;
  inset:-18% 0;
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center;
  transform: translate3d(0,0,0);
  will-change: transform;
  z-index:0;
}

.section-bg-overlay,
.parallax-overlay{
  position:absolute;
  inset:0;
  z-index:1;
}

.section-bg-inner,
.parallax-content{
  position:relative;
  z-index:2;
}

.parallax{
  min-height:520px;
  display:flex;
  align-items:center;
}

.parallax-overlay{
  background: linear-gradient(135deg, rgba(15,23,42,.60), rgba(56,65,242,.45));
}

.parallax-content{
  color:#F2F2F2;
  padding:90px 0;
  max-width:70ch;
}

.parallax-content h2{
  margin:10px 0 10px;
  font-size: clamp(26px, 2.8vw, 44px);
  letter-spacing:-0.02em;
  line-height:1.05;
}

.parallax-content p{
  margin:0 0 22px;
  color: rgba(242,242,242,.90);
  font-weight:500;
  font-size:16px;
}

@media (max-width: 920px){
  .has-parallax .parallax-bg{
    inset:0;
    transform:none !important;
  }

  .parallax{
    min-height:380px;
  }
}

/* ==========================
   FOOTER
========================== */

.footer{
  position:relative;
  padding:22px 0 34px;
  font-size:13px;
}

.footer--green{
  background: linear-gradient(
    to bottom,
    rgba(4,191,104,.98) 0%,
    rgba(4,191,104,1) 60%,
    rgba(3,170,92,1) 100%
  );
  color: rgba(242,242,242,.92);
}

.footer::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background: rgba(255,255,255,.35);
}

.footer-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:16px 0;
  border-top:1px solid rgba(242,242,242,.20);
}

.footer--green a{
  color:#F2F2F2;
  font-weight:700;
}

.footer--green a:hover{
  opacity:.92;
}

.footer-bottom{
  padding-top:10px;
  border-top:1px solid rgba(242,242,242,.18);
  color: rgba(242,242,242,.88);
}

/* ==========================
   REVEAL
========================== */

.reveal{
  opacity:0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}

.reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity:1;
    transform:none;
    transition:none;
  }
}

/* ==========================
   FORMS
========================== */

input,
select,
textarea{
  width:100%;
  padding:12px;
  border-radius:10px;
  border:1px solid rgba(15,23,42,.15);
  font-size:14px;
  background:#fff;
}

input:focus,
select:focus,
textarea:focus{
  outline:none;
  border-color:#04BF68;
  box-shadow:0 0 0 3px rgba(4,191,104,.15);
}

label{
  display:block;
  font-size:13px;
  margin-bottom:6px;
  font-weight:600;
}

small{
  display:block;
}

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

.video-hero{
  position:relative;
  width:100%;
  line-height:0;
  overflow:hidden;
  background: transparent;
}

.video-hero video{
  display:block;
  width:100%;
  height:auto;
  background: transparent;
}

/* si no hay texto encima, ocultamos capas antiguas */
.video-hero-overlay,
.video-hero-content{
  display:none;
}

.video-sound{
  position:absolute;
  right:30px;
  bottom:30px;
  z-index:3;
  background:#82D9B0;
  color:#ffffff;
  border:1px solid rgba(255,255,255,.25);
  border-radius:10px;
  padding:12px 16px;
  font-weight:600;
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  transition:
    background .2s ease,
    transform .12s ease,
    box-shadow .2s ease;
}

.video-sound:hover{
  background:#74d3aa;
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
}

.video-sound:active{
  transform:translateY(1px);
}

/* versión interior / inscripción */
.video-hero--inner{
  position:relative;
  width:100%;
  max-width:1100px;
  margin:0 auto;
  line-height:0;
  overflow:hidden;
  background: transparent;
}

.video-hero--inner video{
  display:block;
  width:100%;
  height:auto;
  background: transparent;
}

@media (max-width: 920px){
  .video-sound{
    right:18px;
    bottom:18px;
    padding:10px 14px;
    font-size:14px;
  }
}

/* ==========================
   MOBILE GLOBAL
========================== */

@media (max-width: 520px){
  .container{
    width: calc(100% - 28px);
  }

  .footer-top{
    flex-direction:column;
  }
}
/* ==========================
   VIDEO WRAPPERS
   ========================== */

/* mismo look del bloque del slider */
.video-shell{
  border-radius:16px;
  overflow:hidden;
  box-shadow: var(--shadow-sm);
}

/* index: mismo ancho visual que el slider */
.video-shell--slider{
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px;
}

/* inscripción: mismo ancho del formulario, sin crecer más */
.video-shell--form{
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

/* el video ocupa el ancho de su wrapper */
.video-hero,
.video-hero--inner{
  width:100%;
  margin:0;
  border-radius:14px;
  overflow:hidden;
}