/* ============================================================
   Autolíder San Miguel — hoja de estilos del sitio público
   ============================================================ */

:root {
  --navy:        #0E1A2B;
  --navy-2:      #16263D;
  --azul:        #1668E3;
  --azul-osc:    #0F4FB5;
  --celeste:     #4FA3F7;
  /* El verde brillante de WhatsApp queda SOLO en el botón flotante, donde se
     espera que grite. En los botones de la página se usa un verde profundo:
     mantiene la señal de "esto es WhatsApp" sin el brillo de neón. */
  --wa:          #25D366;
  --wa-btn:      #0F7A57;
  --wa-btn-osc:  #0A5C42;
  --ambar:       #FFB020;

  --tinta:       #101A26;
  --texto:       #46586E;
  --tenue:       #8496AC;
  --linea:       #E2E8F1;
  --fondo:       #FFFFFF;
  --fondo-alt:   #F4F7FB;

  --r:           14px;
  --r-lg:        22px;
  --sombra:      0 2px 6px rgba(16, 26, 38, .06), 0 12px 30px rgba(16, 26, 38, .07);
  --sombra-alta: 0 8px 20px rgba(16, 26, 38, .10), 0 24px 60px rgba(16, 26, 38, .14);
  --trans:       .22s cubic-bezier(.4, 0, .2, 1);
  --wrap:        1240px;
}

/* ------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--texto);
  background: var(--fondo);
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: Outfit, Inter, sans-serif;
  color: var(--tinta);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); }
h3 { font-size: 1.18rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--azul); color: #fff; padding: .8rem 1.2rem;
}
.skip:focus { left: 0; }

.eyebrow {
  font-family: Outfit, sans-serif;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--azul); margin-bottom: .55rem;
}

.lead { font-size: 1.06rem; color: var(--texto); max-width: 62ch; }

/* ------------------------------------------------- botones */
.btn {
  --bg: var(--azul); --bg2: var(--azul-osc);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: Outfit, sans-serif; font-weight: 700; font-size: .95rem;
  padding: .72rem 1.35rem; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--bg), var(--bg2));
  color: #fff; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(22, 104, 227, .28);
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(22, 104, 227, .38); }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; }

.btn--lg  { padding: .95rem 1.8rem; font-size: 1rem; }
.btn--sm  { padding: .5rem 1rem; font-size: .85rem; box-shadow: none; }
.btn--full{ width: 100%; }

.btn--wa { --bg: var(--wa-btn); --bg2: var(--wa-btn-osc); box-shadow: 0 4px 14px rgba(10, 92, 66, .22); }
.btn--wa:hover { box-shadow: 0 8px 22px rgba(10, 92, 66, .3); }

.btn--ghost {
  background: transparent; color: var(--azul);
  border: 1.5px solid var(--linea); box-shadow: none;
}
.btn--ghost:hover { border-color: var(--azul); background: #F2F7FE; box-shadow: none; }

/* ------------------------------------------------- topbar */
.topbar {
  background: var(--navy); color: #A9BBD1; font-size: .84rem;
}
.topbar__in {
  display: flex; align-items: center; gap: 1.4rem; min-height: 40px; flex-wrap: wrap;
}
.topbar__right { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.topbar__item {
  display: inline-flex; align-items: center; gap: .4rem;
  color: inherit; transition: color var(--trans);
}
.topbar__item svg { width: 15px; height: 15px; opacity: .7; }
a.topbar__item:hover { color: #fff; }
.topbar__red {
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; color: #A9BBD1; transition: var(--trans);
}
.topbar__red svg { width: 16px; height: 16px; }
.topbar__red:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ------------------------------------------------- header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea);
  transition: box-shadow var(--trans);
}
.header.is-stuck { box-shadow: 0 4px 20px rgba(16, 26, 38, .09); }

.header__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px;
}

/* El logo entregado por el cliente es lettering BLANCO sobre transparente.
   En el header (claro) se apoya sobre una placa navy; en el footer (oscuro)
   va directo. */
.logo { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.logo__marca { width: auto; height: 34px; }

.header .logo {
  background: var(--navy); padding: .55rem .95rem; border-radius: 12px;
  transition: transform var(--trans), box-shadow var(--trans);
}
.header .logo:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(14, 26, 43, .28); }
.header .logo__marca { height: 28px; }

.logo--footer { margin-bottom: 1.1rem; }
.logo--footer .logo__marca { height: 40px; }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav__a {
  position: relative;
  font-family: Outfit, sans-serif; font-weight: 600; font-size: .95rem;
  color: var(--tinta); padding: .55rem .8rem; border-radius: 10px;
  transition: var(--trans);
}
.nav__a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem;
  height: 2px; border-radius: 2px; background: var(--azul);
  transform: scaleX(0); transform-origin: left; transition: transform var(--trans);
}
.nav__a:hover { color: var(--azul); }
.nav__a:hover::after { transform: scaleX(1); }
.nav__a.is-active { color: var(--azul); }
.nav__a.is-active::after { transform: scaleX(1); }

/* teléfono + WhatsApp: solo dentro del menú desplegado en mobile */
.nav__extra { display: none; }

/* zona de acciones a la derecha del header */
.acciones { display: flex; align-items: center; gap: .8rem; }
.acciones__tel {
  display: flex; align-items: center; gap: .5rem; color: var(--tinta);
  transition: var(--trans);
}
.acciones__tel:hover { color: var(--azul); }
.acciones__tel svg { width: 22px; height: 22px; color: var(--azul); flex-shrink: 0; }
.acciones__tel span { display: grid; line-height: 1.2; }
.acciones__tel small {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--tenue); font-weight: 600;
}
.acciones__tel b { font-family: Outfit, sans-serif; font-size: .95rem; }

.burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; border-radius: 12px;
}
.burger span {
  display: block; height: 2.5px; background: var(--tinta); border-radius: 2px;
  transition: var(--trans);
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ------------------------------------------------- hero */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }

.hero__fondo { position: absolute; inset: 0; z-index: -1; background: var(--navy); }

.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
  will-change: opacity, transform;
}
.hero__slide.is-activa { opacity: 1; }

/* Veladura para que el texto se lea sobre cualquier foto. */
.hero__velo {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, #0B1626 8%, rgba(11, 22, 38, .72) 46%, rgba(11, 22, 38, .35) 100%),
    linear-gradient(180deg, rgba(11, 22, 38, .55), rgba(11, 22, 38, .25) 40%, rgba(11, 22, 38, .75));
}

/* Modo "zoom": acercamiento lento y continuo sobre la primera imagen. */
.hero--zoom .hero__slide.is-activa { animation: hero-zoom 22s ease-in-out infinite alternate; }

/* Modo "slider": además del fundido, cada foto se acerca mientras está visible. */
.hero--slider .hero__slide.is-activa { animation: hero-zoom-suave 9s ease-out forwards; }

@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.14); }
}
@keyframes hero-zoom-suave {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

.hero__puntos {
  position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
  display: flex; gap: .5rem; z-index: 2;
}
.hero__punto {
  width: 34px; height: 4px; border: 0; padding: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .35); transition: var(--trans);
}
.hero__punto:hover { background: rgba(255, 255, 255, .6); }
.hero__punto.is-activa { background: #fff; width: 48px; }

.hero__in {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem;
  align-items: center; padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}
.hero__txt h1 { color: #fff; margin-bottom: 1rem; }
.hero__txt .eyebrow { color: var(--celeste); }
.hero__txt .lead { color: #C4D4E8; font-size: 1.12rem; }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.6rem 0; }
.chip {
  font-size: .84rem; font-weight: 600; padding: .42rem .9rem; border-radius: 999px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
  color: #DCE7F5;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* buscador */
.buscador {
  background: #fff; border-radius: var(--r-lg); padding: 1.6rem;
  box-shadow: var(--sombra-alta); display: grid; gap: .9rem;
}
.buscador__t { font-size: 1.25rem; margin-bottom: .2rem; }
.buscador label,
.filtros label,
.form label {
  display: grid; gap: .35rem;
  font-family: Outfit, sans-serif; font-size: .82rem; font-weight: 700;
  color: var(--tinta); text-transform: uppercase; letter-spacing: .05em;
}
.buscador select, .buscador input,
.filtros select, .filtros input,
.form input, .form textarea, .orden select {
  font-family: Inter, sans-serif; font-size: .95rem; font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--tinta);
  padding: .7rem .9rem; border: 1.5px solid var(--linea); border-radius: 11px;
  background: #fff; width: 100%; transition: var(--trans);
}
.buscador select:focus, .buscador input:focus,
.filtros select:focus, .filtros input:focus,
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(22, 104, 227, .14);
}

/* ------------------------------------------------- métricas */
.metricas { background: var(--navy-2); }
.metricas__in {
  display: grid; grid-template-columns: repeat(4, 1fr);
  text-align: center; padding: 2rem 0;
}
.metricas__in > div { border-right: 1px solid rgba(255, 255, 255, .10); padding: .3rem 1rem; }
.metricas__in > div:last-child { border-right: 0; }
.metricas b {
  display: block; font-family: Outfit, sans-serif; font-size: 2.1rem;
  font-weight: 800; color: #fff; line-height: 1;
}
.metricas span { font-size: .85rem; color: #93A8C2; }

/* ------------------------------------------------- secciones */
.seccion { padding: clamp(3rem, 6vw, 5rem) 0; }
.seccion--alt { background: var(--fondo-alt); }

.seccion__head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 2.2rem; flex-wrap: wrap;
}
.seccion__head--centro { justify-content: center; text-align: center; }
.seccion__head--centro .lead { margin-inline: auto; }

.cabecera {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(160deg, #0E1A2B, #17293F);
  color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0;
}

/* Variante con foto de fondo (la usa /nosotros). */
.cabecera--foto { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.cabecera__fondo {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  animation: hero-zoom 26s ease-in-out infinite alternate;
}
.cabecera__fondo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, #0B1626 6%, rgba(11, 22, 38, .78) 48%, rgba(11, 22, 38, .42) 100%),
    linear-gradient(180deg, rgba(11, 22, 38, .5), rgba(11, 22, 38, .3) 45%, rgba(11, 22, 38, .8));
}
.cabecera--foto .lead { color: #D5E2F1; }
.cabecera--foto h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.cabecera--foto .hero__cta { margin-top: 1.6rem; }
.cabecera h1 { color: #fff; margin-bottom: .6rem; }
.cabecera .lead { color: #BCCDE2; }
.cabecera .eyebrow { color: var(--celeste); }

.miga { font-size: .85rem; color: #8FA6C2; margin-bottom: 1rem; }
.miga a:hover { color: #fff; text-decoration: underline; }
.miga span { opacity: .5; margin: 0 .3rem; }
.miga--ficha { color: var(--tenue); padding-top: 1.5rem; }
.miga--ficha a:hover { color: var(--azul); }

/* ------------------------------------------------- categorías */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.cat {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  min-height: 340px; display: flex; align-items: flex-end;
  isolation: isolate; background: var(--navy);
  transition: transform var(--trans), box-shadow var(--trans);
}
.cat:hover { transform: translateY(-5px); box-shadow: var(--sombra-alta); }

/* foto real del stock de fondo */
.cat__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .6, .2, 1);
}
.cat:hover .cat__img { transform: scale(1.07); }

/* velado con el color de la categoría, para que el texto blanco resalte */
.cat__velo {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 17, 28, .18) 0%, rgba(9, 17, 28, .55) 45%, rgba(9, 17, 28, .92) 100%),
    var(--tinte);
  mix-blend-mode: normal;
}
.cat--usados { --tinte: linear-gradient(150deg, rgba(22, 104, 227, .55), rgba(9, 17, 28, .1) 62%); }
.cat--0km    { --tinte: linear-gradient(150deg, rgba(23, 160, 92, .58), rgba(9, 17, 28, .1) 62%); }

.cat__cuerpo { position: relative; padding: 2.2rem; width: 100%; }

/* El color va forzado: estas tarjetas siempre son texto blanco sobre foto. */
.cat__t {
  color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  font-weight: 800; margin-bottom: .45rem; text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.cat p { color: rgba(255, 255, 255, .92); max-width: 42ch; }

.cat__n {
  display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .9rem;
  font-family: Outfit, sans-serif; font-size: .76rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .26);
  padding: .34rem .85rem; border-radius: 999px; backdrop-filter: blur(6px);
}

.cat__go {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.3rem;
  font-family: Outfit, sans-serif; font-weight: 700; font-size: .95rem; color: #0E1A2B;
  background: #fff; padding: .7rem 1.35rem; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  transition: gap var(--trans), background var(--trans), color var(--trans);
}
.cat--usados:hover .cat__go { background: var(--azul); color: #fff; }
.cat--0km:hover    .cat__go { background: #17A05C; color: #fff; }
.cat__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.cat:hover .cat__go { gap: .8rem; }

/* ------------------------------------------------- grilla de vehículos */
.grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
}

.card {
  background: #fff; border: 1px solid var(--linea); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sombra-alta); border-color: transparent; }
.card--vendido { opacity: .78; }

.card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--fondo-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.05); }

.tag {
  position: absolute; top: .8rem; left: .8rem;
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: Outfit, sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .32rem .7rem; border-radius: 999px; color: #fff;
  backdrop-filter: blur(4px);
}
.tag svg { width: 13px; height: 13px; }
.tag--0km       { background: rgba(23, 160, 92, .95); }
.tag--promo     { background: rgba(203, 44, 44, .95); }
.tag--destacado { background: rgba(255, 176, 32, .95); color: #3A2A00; }
.tag--vendido   { background: rgba(203, 44, 44, .95); }

.card__body { padding: 1.15rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card__marca {
  font-family: Outfit, sans-serif; font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--azul);
}
.card__titulo { font-size: 1.05rem; margin: .15rem 0 .8rem; line-height: 1.3; }
.card__titulo a { transition: color var(--trans); }
.card__titulo a:hover { color: var(--azul); }

.specs {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: flex; flex-wrap: wrap; gap: .35rem .9rem;
  font-size: .85rem; color: var(--tenue);
}
.specs li { display: inline-flex; align-items: center; gap: .3rem; }
.specs svg { width: 16px; height: 16px; opacity: .65; }

.card__pie {
  margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--linea);
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
}
.precio {
  font-family: Outfit, sans-serif; font-size: 1.28rem; font-weight: 800;
  color: var(--tinta); letter-spacing: -.02em;
}
.precio--consultar { font-size: .95rem; font-weight: 700; color: var(--azul); }

/* ------------------------------------------------- beneficios */
.benes { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.bene {
  background: #fff; border: 1px solid var(--linea); border-radius: var(--r-lg);
  padding: 1.8rem 1.5rem; transition: var(--trans);
}
.bene:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: transparent; }
.bene__ico {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(140deg, #EBF3FE, #DCE9FC); color: var(--azul);
  margin-bottom: 1rem;
}
.bene__ico svg { width: 26px; height: 26px; }
.bene h3 { margin-bottom: .4rem; }
.bene p { font-size: .93rem; }

/* los 4 bloques, pisando el borde inferior del hero */
.seccion--benes { padding-top: 0; margin-top: -3.5rem; position: relative; z-index: 3; }
.seccion--benes .bene { background: #fff; box-shadow: var(--sombra); border-color: transparent; }
.bene__t { font-size: 1.18rem; font-weight: 700; margin-bottom: .4rem; }

/* ------------------------------------------------- franja institucional */
.destacar {
  background: var(--fondo-alt);
  border-block: 1px solid var(--linea);
}
.destacar__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding: 2.6rem 0; flex-wrap: wrap;
}
.destacar__txt {
  font-family: Outfit, sans-serif; font-size: clamp(1.1rem, .95rem + .7vw, 1.5rem);
  font-weight: 600; color: var(--tinta); line-height: 1.45; max-width: 68ch;
}

/* ------------------------------------------------- recuadros configurables */
.recuadros {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.recuadro {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--r-lg);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.recuadro:hover { transform: translateY(-5px); box-shadow: var(--sombra-alta); border-color: transparent; }
.recuadro__img { aspect-ratio: 16 / 10; background: var(--fondo-alt); overflow: hidden; }
.recuadro__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.recuadro:hover .recuadro__img img { transform: scale(1.05); }
.recuadro__ico {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px;
  background: linear-gradient(140deg, #EBF3FE, #DCE9FC); color: var(--azul);
  margin: 1.6rem 1.6rem 0;
}
.recuadro__ico svg { width: 28px; height: 28px; }
.recuadro__body { padding: 1.4rem 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.recuadro__body h3 { margin-bottom: .45rem; }
.recuadro__body p { font-size: .95rem; }
.recuadro__go {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: 1rem;
  font-family: Outfit, sans-serif; font-weight: 700; color: var(--azul);
}
.recuadro__go svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.5;
  transition: transform var(--trans);
}
.recuadro__go:hover svg { transform: translateX(4px); }

/* ------------------------------------------------- banner */
.banner { background: linear-gradient(120deg, var(--azul-osc), var(--azul) 55%, var(--celeste)); color: #fff; }
.banner__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding: 3rem 0; flex-wrap: wrap;
}
.banner h2 { color: #fff; margin-bottom: .5rem; }
.banner p { color: rgba(255, 255, 255, .9); max-width: 60ch; }

/* ------------------------------------------------- nosotros / mapa */
.nosotros-home { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.nosotros-home .btn { margin-top: 1.4rem; }
.nosotros-home .btn svg { fill: none; stroke: currentColor; stroke-width: 2.5; }

.mapa { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sombra); }
.mapa iframe { width: 100%; height: 340px; border: 0; }
.mapa--alto iframe { height: 260px; }

/* ------------------------------------------------- catálogo */
.catalogo { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }

.filtros {
  position: sticky; top: 96px;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--r-lg);
  padding: 1.5rem; box-shadow: var(--sombra);
}
.filtros form { display: grid; gap: .9rem; }
.filtros__t { font-size: 1.15rem; }
.filtros__limpiar { font-size: .85rem; color: var(--tenue); text-align: center; }
.filtros__limpiar:hover { color: var(--azul); text-decoration: underline; }

.resultados__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap;
}
.resultados__head p { color: var(--tenue); font-size: .95rem; }
.resultados__head b { color: var(--tinta); font-size: 1.05rem; }
.orden label {
  display: flex; align-items: center; gap: .6rem;
  font-family: Outfit, sans-serif; font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--tinta);
}
.orden select { width: auto; padding: .5rem .8rem; }

.vacio {
  text-align: center; padding: 4rem 1rem; background: var(--fondo-alt);
  border-radius: var(--r-lg);
}
.vacio p { margin-bottom: 1.2rem; color: var(--tenue); }

.paginacion { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.paginacion a {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .7rem;
  border: 1.5px solid var(--linea); border-radius: 12px;
  font-family: Outfit, sans-serif; font-weight: 700; transition: var(--trans);
}
.paginacion a:hover { border-color: var(--azul); color: var(--azul); }
.paginacion a.is-active { background: var(--azul); border-color: var(--azul); color: #fff; }

/* ------------------------------------------------- ficha */
.ficha {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 2.5rem;
  align-items: start; padding-bottom: 1rem;
}

.galeria__principal {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--fondo-alt); box-shadow: var(--sombra); cursor: zoom-in;
}
.galeria__principal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.galeria__thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: .6rem; margin-top: .8rem;
}
.thumb {
  padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden;
  background: none; cursor: pointer; transition: var(--trans); aspect-ratio: 4 / 3;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--celeste); }
.thumb.is-active { border-color: var(--azul); }

.ficha__panel {
  position: sticky; top: 96px;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--r-lg);
  padding: 1.8rem; box-shadow: var(--sombra); display: grid; gap: .75rem;
}
.ficha__t { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); }
.ficha__precio {
  font-family: Outfit, sans-serif; font-size: 2.1rem; font-weight: 800;
  color: var(--azul); letter-spacing: -.03em; line-height: 1.1;
}
.ficha__precio.precio--consultar { font-size: 1.3rem; }
.ficha__anticipo {
  font-size: .88rem; background: #FFF6E5; border: 1px solid #FFE3AE;
  border-radius: 12px; padding: .7rem .9rem; color: #7A5100;
}

.ficha__specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: .1rem;
  border: 1px solid var(--linea); border-radius: var(--r); overflow: hidden; margin: .3rem 0;
}
.ficha__specs > div { padding: .7rem .9rem; background: var(--fondo-alt); }
.ficha__specs dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--tenue); font-weight: 600; }
.ficha__specs dd { margin: 0; font-family: Outfit, sans-serif; font-weight: 700; color: var(--tinta); }

.ficha__nota {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--tenue);
}
.ficha__nota svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--azul); }

.aviso-vendido {
  background: #FDECEC; border: 1px solid #F8C9C9; color: #A32020;
  border-radius: 12px; padding: .8rem 1rem; font-size: .9rem;
}

.descripcion {
  max-width: 78ch; font-size: 1.02rem;
}
.descripcion h2 { margin-bottom: 1rem; }
.descripcion h3 { margin: 1.5rem 0 .6rem; font-size: 1.15rem; }
.descripcion p { margin-bottom: .9rem; }
.descripcion ul { margin: 0 0 1.2rem 1.2rem; padding: 0; }
.descripcion li { margin-bottom: .35rem; }
.descripcion strong { color: var(--tinta); }
.descripcion img { border-radius: var(--r); margin: 1rem 0; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(9, 15, 24, .94);
  display: grid; place-items: center; padding: 3rem 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 10px; }
.lightbox__x, .lightbox__nav {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff;
  border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px;
  font-size: 1.8rem; line-height: 1; display: grid; place-items: center;
  transition: var(--trans);
}
.lightbox__x:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .26); }
.lightbox__x { top: 1.2rem; right: 1.2rem; }
.lightbox__nav--prev { left: 1.2rem; }
.lightbox__nav--next { right: 1.2rem; }

/* ------------------------------------------------- contacto */
.contacto { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: start; }
.contacto__datos { display: grid; gap: 1.4rem; }

.datos-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.datos-lista li { display: flex; gap: .85rem; align-items: start; }
.datos-lista svg { width: 20px; height: 20px; color: var(--azul); flex-shrink: 0; margin-top: .2rem; }
.datos-lista b {
  display: block; font-family: Outfit, sans-serif; font-size: .76rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--tenue); font-weight: 700;
}
.datos-lista a:hover { color: var(--azul); }

.form {
  background: #fff; border: 1px solid var(--linea); border-radius: var(--r-lg);
  padding: 1.9rem; box-shadow: var(--sombra); display: grid; gap: 1rem;
}
.form__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.alerta { border-radius: 12px; padding: .8rem 1rem; font-size: .92rem; }
.alerta--ok    { background: #E7F8EE; border: 1px solid #B7E7CB; color: #12693C; }
.alerta--error { background: #FDECEC; border: 1px solid #F8C9C9; color: #A32020; }
.alerta a { text-decoration: underline; font-weight: 600; }

/* ------------------------------------------------- franja contacto + footer */
.contacto-franja { background: linear-gradient(120deg, var(--azul-osc), var(--azul)); color: #fff; }
.contacto-franja__in {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; padding: 1.8rem 0;
}
.cbox { display: flex; align-items: center; gap: .8rem; transition: var(--trans); }
a.cbox:hover { transform: translateY(-2px); }
.cbox svg { width: 26px; height: 26px; flex-shrink: 0; opacity: .9; }
.cbox span { display: grid; font-size: .92rem; line-height: 1.4; }
.cbox b {
  font-family: Outfit, sans-serif; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; opacity: .8;
}

.footer { background: var(--navy); color: #9DB2CC; padding-top: 3.5rem; }
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer h4 {
  color: #fff; margin-bottom: 1rem; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .1em;
}
.footer nav a { display: block; padding: .3rem 0; transition: var(--trans); }
.footer nav a:hover { color: #fff; padding-left: .3rem; }
.footer__desc { font-size: .92rem; margin-bottom: 1.2rem; max-width: 42ch; }
.footer__linea { display: flex; gap: .6rem; align-items: start; font-size: .92rem; margin-bottom: .6rem; }
.footer__linea svg { width: 18px; height: 18px; color: var(--celeste); flex-shrink: 0; margin-top: .2rem; }
.footer .btn { margin-top: .8rem; }

.redes { display: flex; gap: .5rem; }
.redes a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .09); transition: var(--trans);
}
.redes a:hover { background: var(--azul); color: #fff; transform: translateY(-2px); }

.footer__legal { border-top: 1px solid rgba(255, 255, 255, .10); padding: 1.2rem 0; }
.footer__legal-in {
  display: flex; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; font-size: .85rem;
}
.footer__legal a { color: var(--celeste); }
.footer__legal a:hover { text-decoration: underline; }

/* ------------------------------------------------- WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  display: grid; place-items: center; width: 58px; height: 58px;
  border-radius: 50%; background: var(--wa); color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform var(--trans);
  animation: wa-pulso 2.6s ease-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

@keyframes wa-pulso {
  0%   { box-shadow: 0 8px 24px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .5); }
  70%  { box-shadow: 0 8px 24px rgba(37, 211, 102, .45), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {
  .hero__in       { grid-template-columns: 1fr; gap: 2.5rem; }
  .catalogo       { grid-template-columns: 1fr; }
  .filtros        { position: static; }
  .filtros form   { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: end; }
  .filtros__t     { grid-column: 1 / -1; }
  .ficha          { grid-template-columns: 1fr; }
  .ficha__panel   { position: static; }
}

@media (max-width: 1180px) {
  .acciones__tel { display: none; }   /* se conserva el botón de WhatsApp */
}

@media (max-width: 980px) {
  /* Se ancla al header (que es sticky, o sea contenedor de posicionamiento),
     así queda siempre justo debajo sin depender de la altura de la topbar. */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: .1rem;
    background: #fff; padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--linea);
    box-shadow: var(--sombra-alta);
    transform: translateY(-130%); transition: transform .3s ease;
  }
  .nav.is-open   { transform: translateY(0); }
  .nav__a        { padding: .85rem 1rem; border-radius: 10px; }
  .nav__a:hover  { background: var(--fondo-alt); }
  .nav__a::after { display: none; }
  .nav__a.is-active { background: #EBF3FE; }
  .nav__extra {
    display: grid; gap: .6rem;
    margin-top: .9rem; padding-top: 1rem; border-top: 1px solid var(--linea);
  }
  .acciones { display: none; }
  .burger   { display: block; }

  .cats, .nosotros-home, .contacto, .footer__grid { grid-template-columns: 1fr; }
  .contacto-franja__in { grid-template-columns: 1fr 1fr; }
  .metricas__in        { grid-template-columns: 1fr 1fr; gap: 1.5rem 0; }
  .metricas__in > div:nth-child(2) { border-right: 0; }
  .seccion--benes      { margin-top: 0; padding-top: clamp(3rem, 6vw, 5rem); }
  .destacar__in        { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .topbar__hor { display: none; }
}

@media (max-width: 560px) {
  .topbar__dir { display: none; }
  .topbar__in { justify-content: center; }
  .topbar__right { margin: 0 auto; }
  .hero__puntos { bottom: .6rem; }
  .metricas__in, .contacto-franja__in { grid-template-columns: 1fr; }
  .metricas__in > div { border-right: 0; }
  .form__fila { grid-template-columns: 1fr; }
  .ficha__specs { grid-template-columns: 1fr; }
  .hero__cta .btn, .banner .btn { width: 100%; }
  .footer__legal-in { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  /* sin animación el fundido no corre: la imagen activa tiene que verse igual */
  .hero__slide.is-activa { opacity: 1; }
}

/* Fecha de publicación al pie del detalle: es un dato, no un titular. */
.descripcion__fecha {
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--linea);
  font-size: .87rem; color: var(--tenue);
}

