/* ============================================================
   KUBIK PROPIEDADES DEL SUR — Estilos
   Azul rey + Naranja · motivo de cubo · premium / confiable
   ============================================================ */

:root {
  /* Marca */
  --azul:       #1A3D8F;   /* azul rey */
  --azul-claro: #2B57C9;
  --azul-900:   #0B1E4D;   /* navy profundo (secciones oscuras / footer) */
  --azul-700:   #122C6B;
  --naranja:    #FF6B16;   /* naranja Kubik */
  --naranja-600:#E85B08;
  --naranja-100:#FFE9DB;

  /* Neutrales cálidos */
  --bg:       #FAF8F4;
  --surface:  #FFFFFF;
  --tinta:    #14171F;
  --gris:     #5C6373;
  --gris-200: #ECE8E1;
  --linea:    #E7E2D9;

  /* Sistema */
  --radio:    18px;
  --radio-sm: 12px;
  --sombra:   0 1px 2px rgba(11,30,77,.04), 0 8px 28px rgba(11,30,77,.07);
  --sombra-lg:0 24px 60px rgba(11,30,77,.14);
  --max:      1240px;
  --display:  "Space Grotesk", "Segoe UI", sans-serif;
  --body:     "Manrope", "Segoe UI", sans-serif;
  --paso:     cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--tinta);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* Etiqueta de sección */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 600;
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--naranja-600);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--naranja); border-radius: 2px;
}

/* ============================================================
   Botones
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 15.5px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--paso), background .2s, box-shadow .25s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--naranja); color: #fff; box-shadow: 0 8px 22px rgba(255,107,22,.32); }
.btn-primary:hover { background: var(--naranja-600); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,107,22,.4); }
.btn-azul { background: var(--azul); color: #fff; }
.btn-azul:hover { background: var(--azul-700); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--azul); border-color: var(--linea); }
.btn-ghost:hover { border-color: var(--azul); background: #fff; transform: translateY(-2px); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1eb858; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37,211,102,.36); }

/* ============================================================
   Cubo (logo)
   ============================================================ */
.cubo { display: block; }
.cubo .top   { fill: #fff; }
.cubo .left  { fill: var(--azul); }
.cubo .right { fill: var(--naranja); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .name { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; line-height: 1; }
.brand .name b { display: block; font-size: 22px; }
.brand .name span { display: block; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gris); font-weight: 600; margin-top: 3px; }

/* ============================================================
   Header / Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,248,244,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--linea); box-shadow: 0 6px 24px rgba(11,30,77,.05); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--tinta); position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--naranja); transition: width .25s var(--paso); }
.nav-links a:hover { color: var(--azul); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 24px; height: 2.5px; background: var(--tinta); border-radius: 2px; transition: .3s; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 64px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -180px; right: -160px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(255,107,22,.10), transparent 62%); z-index: 0;
}
.hero::after {
  content: ""; position: absolute; bottom: -220px; left: -200px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,61,143,.10), transparent 62%); z-index: 0;
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 560px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 66px); margin: 20px 0 0; }
.hero h1 .azul { color: var(--azul); }
.hero h1 .naranja { color: var(--naranja); }
.hero-sub { font-size: 18.5px; color: var(--gris); margin: 22px 0 30px; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 30px; margin-top: 36px; }
.hero-trust .t b { font-family: var(--display); font-size: 26px; color: var(--azul); display: block; }
.hero-trust .t span { font-size: 13.5px; color: var(--gris); }

.hero-media { position: relative; }
.hero-media image-slot { width: 100%; height: 520px; box-shadow: var(--sombra-lg); }
.hero-media .hero-photo { width: 100%; height: 520px; object-fit: cover; border-radius: 20px; box-shadow: var(--sombra-lg); display: block; }
.hero-badge {
  position: absolute; left: -22px; bottom: 36px; background: #fff; border-radius: var(--radio);
  padding: 16px 20px; box-shadow: var(--sombra-lg); display: flex; align-items: center; gap: 14px; z-index: 3;
}
.hero-badge .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--naranja-100); display: grid; place-items: center; }
.hero-badge .ico svg { width: 22px; height: 22px; stroke: var(--naranja-600); }
.hero-badge b { font-family: var(--display); display: block; font-size: 15px; }
.hero-badge span { font-size: 12.5px; color: var(--gris); }
.hero-cube { position: absolute; top: -26px; right: -18px; z-index: 3; filter: drop-shadow(0 14px 30px rgba(11,30,77,.22)); }

/* ============================================================
   Barra de búsqueda
   ============================================================ */
.searchbar {
  position: relative; z-index: 5; margin: -46px auto 0; max-width: 1080px;
  background: #fff; border-radius: 20px; box-shadow: var(--sombra-lg);
  padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 6px; align-items: stretch;
}
.searchbar .field { display: flex; flex-direction: column; padding: 8px 16px; border-right: 1px solid var(--linea); }
.searchbar .field:last-of-type { border-right: none; }
.searchbar label { font-family: var(--display); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); font-weight: 600; }
.searchbar select { border: none; background: none; font-family: var(--body); font-size: 16px; font-weight: 600; color: var(--tinta); padding: 4px 0; cursor: pointer; outline: none; }
.searchbar .btn { border-radius: 14px; }

/* ============================================================
   Tipos de propiedad
   ============================================================ */
.section { padding: 92px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 46px); margin: 16px 0 14px; }
.section-head p { color: var(--gris); font-size: 17.5px; }

.tipos-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tipo-card {
  background: var(--surface); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 26px 18px; text-align: center; cursor: pointer; transition: .3s var(--paso);
}
.tipo-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--sombra-lg); }
.tipo-card .ico { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 14px; background: var(--azul); display: grid; place-items: center; transition: background .3s; }
.tipo-card:hover .ico { background: var(--naranja); }
.tipo-card .ico svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.8; }
.tipo-card b { font-family: var(--display); font-size: 15.5px; display: block; }

/* ============================================================
   Propiedades
   ============================================================ */
.filtros { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filtro {
  font-family: var(--display); font-weight: 600; font-size: 14.5px; padding: 10px 20px;
  border-radius: 999px; border: 1.5px solid var(--linea); background: #fff; color: var(--gris);
  cursor: pointer; transition: .22s var(--paso);
}
.filtro:hover { border-color: var(--azul); color: var(--azul); }
.filtro.active { background: var(--azul); border-color: var(--azul); color: #fff; }

.props-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.prop {
  background: var(--surface); border-radius: var(--radio); overflow: hidden;
  border: 1px solid var(--linea); transition: .35s var(--paso); display: flex; flex-direction: column;
}
.prop:hover { transform: translateY(-7px); box-shadow: var(--sombra-lg); border-color: transparent; }
.prop-media { position: relative; }
.prop-media image-slot { width: 100%; height: 230px; border-radius: 0; }
.prop-tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; z-index: 2; }
.tag { font-family: var(--display); font-weight: 600; font-size: 12px; padding: 6px 13px; border-radius: 999px; color: #fff; backdrop-filter: blur(4px); }
.tag.venta { background: rgba(26,61,143,.92); }
.tag.renta { background: rgba(255,107,22,.95); }
.fav { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; display: grid; place-items: center; cursor: pointer; transition: .2s; }
.fav:hover { background: #fff; transform: scale(1.08); }
.fav svg { width: 19px; height: 19px; stroke: var(--azul); fill: none; stroke-width: 1.8; transition: .2s; }
.fav.on svg { fill: var(--naranja); stroke: var(--naranja); }
.prop-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.prop-price { font-family: var(--display); font-size: 23px; font-weight: 700; color: var(--azul); }
.prop-price small { font-size: 13px; color: var(--gris); font-weight: 600; }
.prop-title { font-family: var(--display); font-size: 17.5px; font-weight: 600; margin: 8px 0 6px; }
.prop-loc { display: flex; align-items: center; gap: 6px; color: var(--gris); font-size: 14.5px; }
.prop-loc svg { width: 15px; height: 15px; stroke: var(--naranja); fill: none; stroke-width: 1.8; }
.prop-specs { display: flex; gap: 18px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--linea); color: var(--gris); font-size: 13.5px; font-weight: 600; }
.prop-specs .spec { display: flex; align-items: center; gap: 7px; }
.prop-specs svg { width: 17px; height: 17px; stroke: var(--azul); fill: none; stroke-width: 1.8; }
.prop-foot { margin-top: 18px; display: flex; gap: 10px; }
.prop-foot .btn { flex: 1; padding: 12px 16px; font-size: 14.5px; }
.props-more { text-align: center; margin-top: 46px; }

/* ============================================================
   Nosotros
   ============================================================ */
.nosotros { background: var(--azul-900); color: #fff; position: relative; overflow: hidden; }
.nosotros::before { content: ""; position: absolute; top: -160px; right: -120px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(255,107,22,.16), transparent 60%); }
.nosotros .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.nosotros .eyebrow { color: var(--naranja); }
.nosotros h2 { font-size: clamp(30px, 3.8vw, 46px); margin: 16px 0 20px; color: #fff; }
.nosotros p.lead { color: rgba(255,255,255,.72); font-size: 17.5px; margin-bottom: 28px; }
.valores { display: grid; gap: 18px; }
.valor { display: flex; gap: 16px; align-items: flex-start; }
.valor .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.valor .ico svg { width: 22px; height: 22px; stroke: var(--naranja); fill: none; stroke-width: 1.8; }
.valor b { font-family: var(--display); font-size: 17px; display: block; margin-bottom: 3px; }
.valor span { color: rgba(255,255,255,.66); font-size: 15px; }
.nosotros-media image-slot { width: 100%; height: 460px; box-shadow: var(--sombra-lg); }
.nosotros-media { position: relative; }
.stat-float { position: absolute; bottom: -24px; right: -22px; background: var(--naranja); color: #fff; border-radius: var(--radio); padding: 22px 26px; box-shadow: var(--sombra-lg); }
.stat-float b { font-family: var(--display); font-size: 34px; display: block; line-height: 1; }
.stat-float span { font-size: 13.5px; opacity: .92; }

/* ============================================================
   Contacto
   ============================================================ */
.contacto .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contacto-info h2 { font-size: clamp(30px, 3.8vw, 46px); margin: 16px 0 16px; }
.contacto-info p { color: var(--gris); font-size: 17px; margin-bottom: 30px; max-width: 420px; }
.contacto-list { display: grid; gap: 14px; }
.contacto-item { display: flex; gap: 15px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio-sm); transition: .25s var(--paso); }
.contacto-item:hover { border-color: var(--azul); transform: translateX(4px); }
.contacto-item .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--naranja-100); display: grid; place-items: center; }
.contacto-item .ico svg { width: 22px; height: 22px; stroke: var(--naranja-600); fill: none; stroke-width: 1.8; }
.contacto-item span { font-size: 12.5px; color: var(--gris); display: block; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.contacto-item b { font-family: var(--display); font-size: 16.5px; font-weight: 600; }
.social-row { display: flex; gap: 12px; margin-top: 24px; }
.social-row a { width: 46px; height: 46px; border-radius: 12px; background: var(--azul); display: grid; place-items: center; transition: .25s var(--paso); }
.social-row a:hover { background: var(--naranja); transform: translateY(-3px); }
.social-row svg { width: 22px; height: 22px; fill: #fff; }

.form-card { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 34px; box-shadow: var(--sombra); }
.form-card h3 { font-size: 24px; margin-bottom: 6px; }
.form-card .form-note { color: var(--gris); font-size: 14.5px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-group { margin-bottom: 18px; }
.field-group label { font-family: var(--display); font-size: 13.5px; font-weight: 600; display: block; margin-bottom: 7px; }
.field-group input, .field-group select, .field-group textarea {
  width: 100%; font-family: var(--body); font-size: 15.5px; padding: 13px 15px;
  border: 1.5px solid var(--linea); border-radius: var(--radio-sm); background: var(--bg); color: var(--tinta);
  transition: border-color .2s, background .2s; outline: none;
}
.field-group input:focus, .field-group select:focus, .field-group textarea:focus { border-color: var(--azul); background: #fff; }
.field-group textarea { resize: vertical; min-height: 96px; }
.form-card .btn { width: 100%; margin-top: 6px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--azul-900); color: rgba(255,255,255,.7); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand .name b { color: #fff; }
.footer .brand .name span { color: rgba(255,255,255,.5); }
.footer-col h4 { font-family: var(--display); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; font-size: 14.5px; color: rgba(255,255,255,.7); margin-bottom: 11px; transition: color .2s; }
.footer-col a:hover { color: var(--naranja); }
.footer-tag { font-size: 14.5px; color: rgba(255,255,255,.6); margin: 18px 0 0; max-width: 260px; font-style: italic; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 13.5px; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: var(--naranja); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 90; width: 60px; height: 60px;
  border-radius: 50%; background: #25D366; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.45); transition: transform .25s var(--paso);
  animation: waPulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
@keyframes waPulse { 0%,100% { box-shadow: 0 10px 30px rgba(37,211,102,.45); } 50% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 12px rgba(37,211,102,.12); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--paso), transform .7s var(--paso); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  /* Colapsa la navegación antes para evitar desbordamiento */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 88px; left: 0; right: 0;
    background: #fff; padding: 22px 24px; gap: 18px; border-bottom: 1px solid var(--linea); box-shadow: var(--sombra); z-index: 70;
  }
  .burger { display: flex; }
  .nav-cta .btn-ghost { display: none; }

  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; }
  .hero-media image-slot { height: 360px; }
  .hero-media .hero-photo { height: 360px; }
  .hero-cube { display: none; }
  .nosotros .wrap, .contacto .wrap { grid-template-columns: 1fr; gap: 44px; }
  .tipos-grid { grid-template-columns: repeat(3, 1fr); }
  .props-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .searchbar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 70px; }
  .hero-trust { gap: 22px; }
  .searchbar { grid-template-columns: 1fr; margin-top: 32px; }
  .searchbar .field { border-right: none; border-bottom: 1px solid var(--linea); }
  .searchbar .field:last-of-type { border-bottom: none; }
  .tipos-grid { grid-template-columns: repeat(2, 1fr); }
  .props-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-float { right: 12px; bottom: -16px; padding: 16px 20px; }
  .stat-float b { font-size: 26px; }
}

/* ============================================================
   Tarjeta de propiedad con foto real
   ============================================================ */
.prop-media .prop-photo { width: 100%; height: 230px; object-fit: cover; display: block; }

/* ============================================================
   Página de detalle de propiedad
   ============================================================ */
.detalle { padding: 40px 0 90px; }
.volver { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 14.5px; color: var(--gris); margin-bottom: 22px; transition: color .2s; }
.volver:hover { color: var(--azul); }
.volver svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }

.detalle-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.detalle-head .tag { position: static; margin-bottom: 12px; display: inline-block; }
.detalle-head h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 10px; }
.detalle-loc { display: flex; align-items: center; gap: 7px; color: var(--gris); font-size: 16px; }
.detalle-loc svg { width: 18px; height: 18px; stroke: var(--naranja); fill: none; stroke-width: 1.8; }
.detalle-precio { text-align: right; }
.detalle-precio b { font-family: var(--display); font-size: clamp(26px, 4vw, 38px); color: var(--azul); display: block; line-height: 1; }
.detalle-precio span { font-size: 14px; color: var(--gris); font-weight: 600; }

/* Galería */
.galeria { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 180px; gap: 12px; margin-bottom: 16px; }
.galeria .g-item { position: relative; overflow: hidden; border-radius: 14px; cursor: pointer; background: var(--gris-200); }
.galeria .g-item:first-child { grid-column: 1; grid-row: span 2; }
.galeria .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--paso); }
.galeria .g-item:hover img { transform: scale(1.06); }
.galeria .g-more { position: absolute; inset: 0; background: rgba(11,30,77,.62); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 20px; backdrop-filter: blur(2px); }

.detalle-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; margin-top: 50px; align-items: start; }
.car-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 24px 0 0; }
.car { display: flex; align-items: center; gap: 13px; padding: 16px 18px; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio-sm); }
.car .ico { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--naranja-100); display: grid; place-items: center; }
.car .ico svg { width: 21px; height: 21px; stroke: var(--naranja-600); fill: none; stroke-width: 1.8; }
.car span { font-size: 12px; color: var(--gris); display: block; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.car b { font-family: var(--display); font-size: 17px; }
.detalle-desc h2 { font-size: 26px; margin: 0 0 14px; }
.detalle-desc p { color: var(--gris); font-size: 16.5px; margin-bottom: 14px; }
.amen-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 8px; }
.amen-list li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; color: var(--tinta); }
.amen-list li svg { width: 18px; height: 18px; stroke: var(--azul); fill: none; stroke-width: 2; flex: none; }

.detalle-cta { background: var(--azul-900); color: #fff; border-radius: var(--radio); padding: 30px; position: sticky; top: 100px; }
.detalle-cta h3 { font-size: 21px; color: #fff; margin-bottom: 8px; }
.detalle-cta p { color: rgba(255,255,255,.7); font-size: 14.5px; margin-bottom: 20px; }
.detalle-cta .btn { width: 100%; margin-bottom: 12px; }
.detalle-cta .agente { display: flex; align-items: center; gap: 13px; margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.detalle-cta .agente .av { width: 46px; height: 46px; border-radius: 50%; background: var(--naranja); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #fff; }
.detalle-cta .agente b { display: block; font-family: var(--display); font-size: 15.5px; }
.detalle-cta .agente span { font-size: 13px; color: rgba(255,255,255,.6); }

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(8,18,42,.94); z-index: 200; display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 90vw; max-height: 84vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,.12); border: none; color: #fff; cursor: pointer; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.lb-close { top: 22px; right: 22px; width: 48px; height: 48px; font-size: 26px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 30px; }
.lb-prev { left: 22px; } .lb-next { right: 22px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.28); }
.lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-family: var(--display); font-size: 14px; }

@media (max-width: 980px) {
  .detalle-grid { grid-template-columns: 1fr; gap: 32px; }
  .detalle-cta { position: static; }
  .galeria { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .galeria .g-item:first-child { grid-column: 1 / -1; grid-row: span 1; height: 240px; }
}
@media (max-width: 680px) {
  .galeria { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
  .car-list { grid-template-columns: 1fr; }
  .amen-list { grid-template-columns: 1fr; }
  .detalle-precio { text-align: left; }
}
