:root{ color-scheme: light dark; }

body{ font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

.backdrop-blur{ backdrop-filter: blur(10px); }

.hero-drag-area{
  cursor:grab;
  user-select:none;
}

.hero-drag-area.is-dragging{ cursor:grabbing; }

.hero-text-carousel{
  position:relative;
  width:min(980px, 100%);
  min-height:clamp(510px, 62vh, 700px);
  color:#fff;
  padding-bottom:0;
  overflow:visible;
}

.hero-text-slide{
  position:absolute;
  left:0;
  top:0;
  width:100%;
  opacity:0 !important;
  visibility:hidden;
  pointer-events:none;
  transform:none;
  filter:none;
  transition:
    opacity .42s cubic-bezier(.16,1,.3,1),
    visibility .42s cubic-bezier(.16,1,.3,1);
}

.hero-text-slide.is-active{
  opacity:1 !important;
  visibility:visible;
  pointer-events:auto;
  transform:none;
  filter:none;
  z-index:2;
}

.hero-text-slide.enter-from-right{ --hero-enter-x:28px; }
.hero-text-slide.enter-from-left{ --hero-enter-x:-28px; }
.hero-text-slide.exit-to-left,
.hero-text-slide.exit-to-right{ opacity:0 !important; visibility:hidden; }

.hero-text-slide.is-active .hero-kicker,
.hero-text-slide.is-active .hero-title,
.hero-text-slide.is-active .hero-desc,
.hero-text-slide.is-active .hero-tags,
.hero-text-slide.is-active .hero-actions{
  animation:heroTextIn .62s cubic-bezier(.16,1,.3,1) both;
}

.hero-text-slide.is-active .hero-kicker{ animation-delay:.04s; }
.hero-text-slide.is-active .hero-title{ animation-delay:.12s; }
.hero-text-slide.is-active .hero-desc{ animation-delay:.22s; }
.hero-text-slide.is-active .hero-tags{ animation-delay:.32s; }
.hero-text-slide.is-active .hero-actions{ animation-delay:.42s; }

@keyframes heroTextIn{
  from{
    opacity:0;
    transform:translateX(var(--hero-enter-x, 42px));
    filter:blur(10px);
  }
  to{
    opacity:1;
    transform:translateX(0);
    filter:blur(0);
  }
}

.hero-kicker{
  display:flex;
  align-items:center;
  gap:.55rem;
  margin-bottom:1.35rem;
  color:#376a70;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  white-space:nowrap;
  background: rgb(0 0 0 / 3%);
  border-bottom: 1px solid rgb(84 21 29 / 47%);
  border-radius:.45rem .45rem .2rem .2rem;
  width:max-content;
  padding:.45rem .75rem;
}

.hero-kicker::before{
  content:"";
  flex:0 0 2.25rem;
  width:2.25rem;
  height:1px;
  background:currentColor;
}

.hero-kicker-sale{
  width:max-content;
  max-width:100%;
  color:#722F37;
  background: rgb(0 0 0 / 3%);
  border-bottom: 1px solid rgb(84 21 29 / 47%);
  border-radius:.45rem .45rem .2rem .2rem;
  padding:.45rem .75rem;
  box-shadow:0 14px 30px rgba(0,0,0,.24);
}

.hero-title{
  max-width:940px;
  color:#fff;
  font-size:clamp(2.6rem, 6vw, 6.8rem);
  line-height:.96;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:0;
  text-wrap:normal;
  text-shadow:0 14px 36px rgba(0,0,0,.34);
}

.hero-title span{ color:#8bced6; }
.hero-title .hero-title-burgundy{ color:#722F37; }

.hero-desc{
  margin-top:1.4rem;
  max-width:46rem;
  color:rgba(255,255,255,.9);
  font-size:clamp(1rem, 2vw, 1.45rem);
  line-height:1.55;
}

.hero-tags{
  display:flex;
  flex-wrap:wrap;
  gap:.65rem;
  margin-top:2rem;
}

.hero-tags span{
  display:inline-flex;
  align-items:center;
  min-height:2.25rem;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(47,114,106,.72);
  color:#fff;
  padding:.55rem .85rem;
  border-radius:.35rem;
  backdrop-filter:blur(10px);
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.8rem;
  margin-top:2.4rem;
}

.hero-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:3rem;
  padding:.85rem 1.15rem;
  border-radius:.45rem;
  font-weight:800;
  transition:transform .25s ease, background-color .25s ease, border-color .25s ease;
}

.hero-btn-primary{ background:#fff; color:#111827; }
.hero-btn-primary:hover{ background:#fdd700; }
.hero-btn-secondary{ border:1px solid rgba(255,255,255,.58); color:#fff; }
.hero-btn-secondary:hover{ background:rgba(255,255,255,.12); }

.hero-text-controls{
  position:absolute;
  left:0;
  bottom:.35rem;
  z-index:8;
  display:flex;
  align-items:center;
  gap:.7rem;
  margin-top:0;
  pointer-events:auto;
}

.hero-text-controls button{
  width:2.6rem;
  height:.38rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(255,255,255,.35);
  cursor:pointer;
  position:relative;
  z-index:9;
  transition:background-color .25s ease, transform .25s ease, width .25s ease;
}

.hero-text-controls button:hover{ background:rgba(255,255,255,.68); transform:translateY(-1px); }
.hero-text-controls button.is-active{ width:3.25rem; background:#fdd700; }

@media (prefers-reduced-motion: reduce){
  .hero-text-slide{ transition:none; }
  .hero-text-slide.is-active .hero-kicker,
  .hero-text-slide.is-active .hero-title,
  .hero-text-slide.is-active .hero-desc,
  .hero-text-slide.is-active .hero-tags,
  .hero-text-slide.is-active .hero-actions{ animation:none; }
}

@media (max-width: 640px){
  .hero-title{ font-size:clamp(2.3rem, 13vw, 4rem); }
  .hero-desc{ font-size:1rem; }
  .hero-tags span{ font-size:.85rem; }
  .hero-text-carousel{ min-height:620px; padding-bottom:0; }
}

#metodo,
#venta,
#contacto,
#asesoria{
  scroll-margin-top:120px;
}

.mask-gradient{
  -webkit-mask-image:linear-gradient(to bottom, rgb(0 0 0), rgb(0 0 0) 60%, #000000 100%);

  mask-image:linear-gradient(to bottom, rgb(0 0 0), rgb(0 0 0) 60%, #000000 100%);

}

.mask-gradient{

  -webkit-mask-image:linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,.6) 60%, transparent 100%);

  mask-image: linear-gradient(to bottom, rgb(0 0 0), rgb(0 0 0 / 59%) 60%, #0000001f 100%);

}

.nav-wrap{ transition: transform .5s cubic-bezier(.2,.8,.2,1), background-color .3s, height .3s; }

.nav-wrap.shrink{ transform: translateY(-6px); background: rgba(17,24,39,.7) !important }

.nav-brand{ transition: transform .3s; }

.shrink .nav-brand{ transform: scale(.92); }

.magnetic:hover{ transform: translateY(-2px); }

.chip{ border:1px solid rgba(255,255,255,.35); }

.filter-btn.active{ background:#a11b54; color:#fff; } /* brand-600 */

.header-intent-btn{
  align-items:center;
  gap:.45rem;
  min-height:2.5rem;
  padding:.62rem .9rem;
  border-radius:.35rem;
  font-size:.86rem;
  font-weight:800;
  line-height:1;
  letter-spacing:0;
  border:1px solid rgba(255,255,255,.2);
  box-shadow:0 12px 28px rgba(0,0,0,.18);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}

.header-intent-btn i{ font-size:.85rem; }

.header-intent-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 36px rgba(0,0,0,.25);
}

.header-intent-sell{
  color:#fff;
  background:linear-gradient(135deg, rgba(114,47,55,.98), rgba(112,32,42,.84));
  border-color:rgba(253,215,0,.3);
}

.header-intent-buy{
  color:#061313;
  background:linear-gradient(135deg, rgba(139,206,214,.98), rgba(253,215,0,.82));
  border-color:rgba(255,255,255,.34);
}

.contact-verify-row{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:1rem;
  flex-wrap:nowrap;
}

.privacy-inline-btn{
  flex:0 0 auto;
  width: 41%;
  white-space:normal;
  line-height:1.15;
  text-align:center;
}

@media (max-width: 560px){
  .contact-verify-row{
    justify-content:flex-start;
    flex-wrap:wrap;
  }
}





/* ===== Galería expandible con transición SUAVE ===== */

.xp-gallery{

  display:flex; gap:clamp(8px,1.5vw,16px);

  height:clamp(240px,38vh,460px);

  align-items:stretch;

}

.xp-card{

  position:relative;

  /* clave: animamos width en % */

  width:var(--w, 33.333%);

  flex:0 0 auto;

  border-radius: 3px; overflow:hidden; cursor:pointer;

  transition: width .75s cubic-bezier(.22,.61,.36,1), filter .3s ease, box-shadow .3s ease;

  will-change: width, filter;

  outline:none;

}

.xp-card:not(.active){ filter:grayscale(.15) brightness(.9); }

.xp-card.active{ filter:none; box-shadow:0 12px 30px rgba(0,0,0,.25); }



/* imagen */

.xp-img{

  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;

  transform:scale(1.02);

  transition: transform .75s cubic-bezier(.22,.61,.36,1);

  will-change: transform;

}

.xp-card.active .xp-img{ transform:scale(1.08); }



/* overlay & textos (igual que antes) */

.xp-gradient{ position:absolute; inset:0;

  background:linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,.0) 60%); pointer-events:none;

}

.xp-gradient{

    background:

      linear-gradient(to top, rgba(0,0,0,.46), rgba(0,0,0,0) 60%),

      radial-gradient(120% 60% at 0% 100%, rgba(161,27,84,.18), transparent 60%);

  }

.xp-badge{ position:absolute; left:14px; top:14px; display:inline-flex; gap:8px;

  font-size:12px; padding:8px 12px; border-radius:12px;

  background:rgba(255,255,255,.75); color:#0f172a; backdrop-filter:blur(6px);

  border:1px solid rgba(255,255,255,.45);

}

.xp-badge{

  background: rgba(255,255,255,.78);

  border: 1px solid rgba(255,255,255,.45);

  color: #111; /* legible sobre blanco translúcido */

}

.xp-copy{ position:absolute; left:16px; right:16px; bottom:16px; color:#fff; text-shadow:0 6px 20px rgba(0,0,0,.35); }

.xp-title{ font-weight:800; font-size:clamp(18px,2.4vw,26px); line-height:1.1; }

.xp-desc{ margin-top:6px; font-size:14px; opacity:.92; }



/* foco teclado */

.xp-card:focus-visible{ box-shadow:0 0 0 3px rgba(76,123,255,.55); }



/* Contenedor del texto dentro de cada tarjeta */

.xp-info{

  position:absolute; inset:auto 16px 16px 16px; /* abajo = overlay */

  opacity:0; transform: translateY(8px);

  transition: opacity .35s ease, transform .35s ease;

  pointer-events:none; /* no clickeable si está oculto */

}



/* Oculta/enseña con “stagger” por elemento (badge, h3, p, botón…) */

.xp-info > *{

  opacity:0; transform: translateY(6px);

  transition: opacity .35s ease, transform .35s ease;

}



/* Cuando la tarjeta está activa (expandida) */

.xp-card.active .xp-info{

  opacity:1; transform: translateY(0);

  pointer-events:auto;

}



/* Stagger suave */

.xp-card.active .xp-info > *:nth-child(1){ opacity:1; transform:none; transition-delay:.05s; }

.xp-card.active .xp-info > *:nth-child(2){ opacity:1; transform:none; transition-delay:.12s; }

.xp-card.active .xp-info > *:nth-child(3){ opacity:1; transform:none; transition-delay:.18s; }

.xp-card.active .xp-info > *:nth-child(4){ opacity:1; transform:none; transition-delay:.24s; }



/* Accesible: si navegan con teclado (focus-visible) también muestra */

.xp-card:focus-visible .xp-info{

  opacity:1; transform: translateY(0); pointer-events:auto;

}

.xp-card:focus-visible .xp-info > *{

  opacity:1; transform:none;

}



.xp-info .xp-copy{

  position: static; /* anula el absolute previo */

  left:auto; right:auto; bottom:auto;

}



.xp-card.active .xp-img{ filter: brightness(.9) saturate(1.05); }



.active-nav:not(.contc)

  {

  background: #722F37 !important;

  color: #fff !important;

  border-radius: 0.2rem;       /* 12px */

  padding: 0.5rem 0.75rem;      /* px-3 py-2 aprox */

}



.contc

  {

  border: 1px solid #797979 !important;

  color: #fff !important;

  border-radius: 0.2rem;       /* 12px */

  padding: 0.5rem 0.75rem;      /* px-3 py-2 aprox */

}



/* Marco con efecto “card fotográfica” del mockup */

.fx-img{

  position:relative;

  border-radius:22px;

  overflow:hidden;

  isolation:isolate;                 /* para mezclar sin afectar fuera */

  box-shadow:0 18px 48px rgba(0,0,0,.35); /* sombra profunda */

}

/* 1) Luz de canto (highlight diagonal) + micro-ring */

.fx-img::before{

  content:"";

  position:absolute; inset:0; border-radius:inherit; pointer-events:none;

  /* micro ring sutil */

  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);

  /* highlight diagonal arriba-derecha + leve luz superior */

  background:

    linear-gradient(135deg, rgba(255,255,255,.20), rgba(255,255,255,0) 45%) no-repeat,

    linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,0) 38%) no-repeat;

  mix-blend-mode:soft-light;

}

/* 2) Halo exterior hacia la esquina sup. derecha (color de marca) + 3) Vignette */

.fx-img::after{

  content:"";

  position:absolute; inset:-1px; border-radius:inherit; pointer-events:none;

  background:

    radial-gradient(120% 80% at 92% 8%, rgba(199,51,116,.28), transparent 58%),

    radial-gradient(140% 100% at 50% 120%, rgba(0,0,0,.24), transparent 60%);

  /* el primero es el halo “rosa”, el segundo un vignette suave inferior */

}



/* Imagen interna */

.fx-img > img{

  display:block; width:100%; height:100%; object-fit:cover;

  filter: saturate(1.02) contrast(1.03);   /* punch sutil */

}

.about-logo-overlay{
  position:absolute;
  z-index:2;
  left:57%;
  top:50%;
  width:min(52%, 340px);
  height:auto;
  max-height:68%;
  transform:translate(-50%, -50%);
  object-fit:contain;
  padding:clamp(.6rem, 2vw, 1rem);
  background:rgba(255,255,255,.82);
  border-radius:.45rem;
  box-shadow:0 14px 34px rgba(0,0,0,.22);
}

html,
body{
  max-width:100%;
  overflow-x:hidden;
}

img,
video,
canvas,
svg{
  max-width:100%;
}

.mobile-menu-btn{
  color:#fff;
  border-color:rgba(255,255,255,.5);
  background:rgba(10,14,22,.55);
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}

.mobile-menu-panel{
  margin:0 .75rem .85rem;
  padding:.55rem;
  border:1px solid rgba(255,255,255,.12);
  border-radius:1rem;
  background:linear-gradient(145deg, rgba(8,13,20,.92), rgba(22,30,42,.76));
  box-shadow:0 22px 45px rgba(0,0,0,.32);
}

.mobile-menu-link{
  display:flex;
  align-items:center;
  gap:.7rem;
  min-height:2.75rem;
  padding:.72rem .85rem;
  border-radius:.75rem;
  color:#fff;
  font-weight:800;
  line-height:1.1;
}

.mobile-menu-link i{
  width:1.1rem;
  color:#8bced6;
  text-align:center;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus-visible{
  background:rgba(255,255,255,.09);
  outline:none;
}

.mobile-menu-cta{
  margin-top:.35rem;
  border:1px solid rgba(255,255,255,.14);
}

.mobile-menu-sell{
  background:rgba(114,47,55,.82);
}

.mobile-menu-buy{
  color:#071316;
  background:linear-gradient(135deg, rgba(139,206,214,.95), rgba(253,215,0,.76));
}

.mobile-menu-buy i{
  color:#071316;
}

@media (max-width: 767px){
  body{
    font-size:15px;
  }

  .nav-wrap{
    width:calc(100% - 1rem);
    margin-top:.55rem;
    border-radius:1rem;
  }

  .nav-wrap nav{
    padding:.72rem .85rem;
  }

  .nav-brand img{
    max-width:8.4rem;
    height:auto !important;
  }

  section[class*="py-24"],
  section[class*="py-36"]{
    padding-top:4rem !important;
    padding-bottom:4rem !important;
  }

  section h1,
  section h2,
  section h3{
    overflow-wrap:anywhere;
    letter-spacing:0 !important;
  }

  section h2{
    font-size:clamp(1.85rem, 7.2vw, 2.45rem) !important;
    line-height:1.12 !important;
  }

  section h3{
    line-height:1.16 !important;
  }

  .hero-drag-area{
    padding-top:5.4rem !important;
  }

  .hero-drag-area > div{
    height:auto !important;
    min-height:calc(100svh - .5rem) !important;
  }

  .hero-drag-area .relative.z-10{
    min-height:calc(100svh - .5rem);
    align-items:center;
    padding-top:1rem;
    padding-bottom:2.25rem;
  }

  .hero-text-carousel{
    width:100%;
    min-height:var(--hero-carousel-height, 650px);
    padding-bottom:0;
  }

  .hero-text-slide{
    position:absolute;
    left:0;
    top:0;
    display:block;
    width:100%;
  }

  .hero-text-slide.is-active{
    display:block;
  }

  .hero-kicker{
    max-width:100%;
    margin-bottom:1rem;
    white-space:normal;
    font-size:.68rem;
    line-height:1.2;
    letter-spacing:.14em;
  }

  .hero-kicker::before{
    flex-basis:1.35rem;
    width:1.35rem;
  }

  .hero-title{
    max-width:100%;
    font-size:clamp(2.35rem, 12.2vw, 4rem) !important;
    line-height:1 !important;
  }

  .hero-desc{
    margin-top:1rem;
    font-size:.98rem;
    line-height:1.5;
  }

  .hero-tags{
    margin-top:1.25rem;
    gap:.5rem;
  }

  .hero-tags span{
    min-height:2rem;
    padding:.48rem .65rem;
    font-size:.78rem;
  }

  .hero-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:.65rem;
    margin-top:1.2rem;
  }

  .hero-btn{
    width:100%;
    min-height:2.85rem;
    padding:.78rem .9rem;
  }

  .hero-text-controls{
    position:absolute;
    left:0;
    bottom:0;
    margin-top:0;
  }

  .hero-text-controls button{
    height:.34rem;
  }

  .about-logo-card{
    display:flex;
    flex-direction:column;
    gap:.9rem;
    padding:1rem;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.08);
  }

  .about-logo-overlay{
    position:relative;
    left:auto;
    top:auto;
    width:min(70%, 280px);
    max-height:none;
    margin:0 auto;
    transform:none;
    padding:.65rem;
    background:rgba(255,255,255,.9);
  }

  .about-logo-bg{
    height:13.5rem !important;
    border-radius:1rem;
  }

  .xp-gallery{
    display:grid;
    grid-template-columns:1fr;
    height:auto;
    gap:1rem;
  }

  .xp-card{
    width:100% !important;
    min-height:14.5rem;
  }

  .xp-card:not(.active){
    filter:none;
  }

  .xp-info,
  .xp-info > *{
    opacity:1;
    transform:none;
  }

  .xp-title{
    font-size:1.35rem;
  }

  .page-hero{
    padding-top:5.3rem !important;
  }

  .page-hero > div > .relative{
    height:clamp(25rem, 76svh, 34rem) !important;
  }

  .page-hero .js-parallax-img{
    height:150% !important;
  }

  .page-hero-copy{
    left:1.25rem !important;
    right:1.25rem !important;
    bottom:4rem !important;
  }

  .page-hero-kicker{
    max-width:100%;
    white-space:normal;
    font-size:.83rem !important;
    line-height:1.2;
    padding:.45rem .65rem;
  }

  .page-hero-title{
    font-size:clamp(2.15rem, 10.5vw, 3.65rem) !important;
    line-height:1.05 !important;
  }

  .page-hero-title-nosotros{
    font-size:clamp(1.75rem, 8vw, 3rem) !important;
    line-height:1.06 !important;
  }

  .page-hero-title-nosotros .\-mt-6{
    margin-top:.15rem !important;
  }

  .page-hero-subtitle{
    margin-top:1rem !important;
    font-size:1rem !important;
    line-height:1.45;
  }

  .investment-media{
    height:auto !important;
    min-height:42rem;
  }

  .investment-content{
    height:auto !important;
    min-height:42rem;
    display:flex !important;
    flex-direction:column;
    justify-content:center;
    gap:1.2rem;
    padding:2rem 1rem !important;
  }

  .investment-content > div{
    padding:0 !important;
  }

  .investment-copy h3{
    font-size:clamp(2rem, 9vw, 3rem) !important;
    line-height:1.08 !important;
  }

  .investment-copy p{
    font-size:.95rem;
    line-height:1.55;
  }

  .investment-process{
    align-items:stretch;
  }

  .investment-process-card{
    padding:1rem !important;
  }

  .investment-process-card > .absolute{
    position:static !important;
    margin-bottom:.75rem;
  }

  .investment-process-card .swiper{
    margin-top:.75rem !important;
  }

  .investment-process-card h3{
    font-size:1.35rem !important;
    line-height:1.15 !important;
    color:#fff !important;
  }

  .investment-process-card p{
    color:rgba(255,255,255,.82) !important;
    font-size:.95rem !important;
    line-height:1.45 !important;
  }

  #metodo .relative.mt-12 > svg{
    display:none;
  }

  #metodo .relative.mt-12 > .absolute.inset-0{
    position:static !important;
    display:grid;
    gap:1rem;
  }

  #metodo .relative.mt-12 > .absolute.inset-0 > div{
    position:relative !important;
    left:auto !important;
    top:auto !important;
    transform:none !important;
    padding:1rem 1rem 1rem 2.25rem;
    border-left:2px solid rgba(253,215,0,.55);
    border-radius:.9rem;
    background:rgba(255,255,255,.04);
  }

  #metodo .relative.mt-12 > .absolute.inset-0 > div > .w-3{
    position:absolute;
    left:-.45rem;
    top:1.15rem;
  }

  #contacto .contact-verify-row{
    justify-content:flex-start;
    gap:.75rem;
  }
}

@media (max-width: 420px){
  .hero-title{
    font-size:clamp(2rem, 11vw, 3.4rem) !important;
  }

  .hero-tags span{
    max-width:100%;
  }

  .page-hero-title{
    font-size:clamp(1.95rem, 10vw, 3.2rem) !important;
  }

  .investment-media,
  .investment-content{
    min-height:45rem;
  }
}

