/* ============================================================
   KEKO MOLINA — NEXT BIENES RAÍCES
   Sitio web premium para asesor inmobiliario
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--gris-oscuro);
  color: var(--blanco);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---- CSS VARIABLES ---- */
:root {
  --rojo-next:      #C8102E;
  --rojo-hover:     #A00C24;
  --rojo-glow:      rgba(200, 16, 46, 0.15);
  --gris-oscuro:    #1A1A1A;
  --gris-medio:     #2C2C2C;
  --gris-card:      #242424;
  --gris-borde:     #3A3A3A;
  --gris-texto:     #A0A0A0;
  --blanco:         #FFFFFF;
  --blanco-suave:   #F5F5F5;
  --dorado-acento:  #C9A84C;
  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- CURSOR PERSONALIZADO ---- */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--rojo-next);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}
.cursor-halo {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(200, 16, 46, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}
body.cursor-hover .cursor-halo {
  width: 52px;
  height: 52px;
  border-color: var(--rojo-next);
}

/* ---- TIPOGRAFÍA ---- */
h1, h2 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h3, h4 { font-family: 'Inter', sans-serif; font-weight: 600; }
h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 2.5rem;
  color: var(--blanco);
}
h2 em { font-style: italic; color: var(--rojo-next); }

.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rojo-next);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--rojo-next);
  flex-shrink: 0;
}

/* ---- LAYOUT ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- SECTION NUMBER WATERMARK ---- */
.section-number-bg {
  position: absolute;
  top: -20px;
  right: 2rem;
  font-family: 'Playfair Display', serif;
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rojo-next);
  color: var(--blanco);
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-primary:hover {
  background: var(--rojo-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,16,46,0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--blanco);
  padding: 13px 28px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: var(--transition);
}
.btn-secondary:hover {
  border-color: var(--blanco);
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--rojo-next);
  padding: 11px 24px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--rojo-next);
  transition: var(--transition);
  margin-top: 1.5rem;
}
.btn-outline:hover {
  background: var(--rojo-next);
  color: var(--blanco);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gris-borde);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  line-height: 1.1;
  margin-right: auto;
}
.nav-nombre {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.nav-foto {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rojo-next);
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blanco);
  letter-spacing: 2px;
}
.logo-tagline {
  font-size: 10px;
  font-weight: 500;
  color: var(--rojo-next);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gris-texto);
  padding: 6px 14px;
  border-radius: 4px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-li-cta { display: none; }
.nav-link:hover { color: var(--blanco); }
.nav-link.active { color: var(--blanco); }
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--rojo-next);
  color: var(--blanco);
  padding: 9px 22px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-nav-cta:hover { background: var(--rojo-hover); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&h=1080&q=80');
  background-size: cover;
  background-position: center top;
  background-attachment: scroll;
  z-index: 0;
}
@media (min-width: 769px) {
  .hero-bg { background-attachment: fixed; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.93) 0%, rgba(10,10,10,0.65) 100%);
  z-index: 1;
}
.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.hero-content { max-width: 620px; }
.hero-eyebrow { margin-bottom: 1.25rem; }
.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-name-gradient {
  background: linear-gradient(90deg, #fff 0%, var(--rojo-next) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Foto agente hero */
.hero-photo { flex-shrink: 0; }
.photo-frame {
  position: relative;
  width: 320px;
  height: 400px;
}
.photo-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 0 100%);
  border: 2px solid var(--rojo-next);
  box-shadow: 0 0 40px rgba(200,16,46,0.25), 0 0 80px rgba(200,16,46,0.1);
  display: block;
}
.photo-deco-line {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 60%;
  height: 60%;
  border-right: 2px solid var(--rojo-next);
  border-bottom: 2px solid var(--rojo-next);
  pointer-events: none;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 1.5px solid rgba(255,255,255,0.3);
  border-bottom: 1.5px solid rgba(255,255,255,0.3);
  transform: rotate(45deg);
  animation: scrollBounce 1.6s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
  50% { transform: rotate(45deg) translateY(5px); opacity: 1; }
}

/* ============================================================
   ANIMACIONES DE ENTRADA
   ============================================================ */
.animate-in {
  animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: var(--delay, 0s);
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: #0D0D0D;
  padding: 5rem 0;
  position: relative;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item {
  padding: 2rem 1rem;
  border-top: 1px solid var(--gris-borde);
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--rojo-next);
  line-height: 1;
}
.stat-plus, .stat-percent {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--rojo-next);
  font-weight: 700;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--gris-texto);
  margin-top: 0.75rem;
  letter-spacing: 0.5px;
}

/* ============================================================
   SOBRE MÍ
   ============================================================ */
.sobre-mi {
  background: var(--gris-medio);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}
.sobre-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.sobre-imagen { position: relative; }
.sobre-photo-frame {
  position: relative;
  width: 100%;
  padding-bottom: 120%;
}
.sobre-photo-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--rojo-next);
  clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 15% 100%, 0 85%);
  box-shadow: 0 0 60px rgba(200,16,46,0.2);
  display: block;
}
.sobre-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--rojo-next);
  color: var(--blanco);
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(200,16,46,0.4);
}

.sobre-credenciales {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--rojo-next);
  margin-bottom: 1.25rem;
  opacity: 0.9;
}
.sobre-bio {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.9;
}
.sobre-info-extra {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--gris-borde);
  border-radius: 8px;
}
.sobre-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.5;
}
.sobre-info-item svg { color: var(--rojo-next); flex-shrink: 0; margin-top: 2px; }
.sobre-info-item a { color: rgba(255,255,255,0.68); text-decoration: none; transition: color 0.2s; }
.sobre-info-item a:hover { color: #fff; }
.sobre-info-item strong { color: rgba(255,255,255,0.85); font-weight: 600; }
.sobre-lic-badge {
  position: absolute;
  bottom: -42px;
  right: -8px;
  background: var(--gris-medio);
  border: 1px solid var(--gris-borde);
  color: var(--dorado-acento);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 5px 12px;
  border-radius: 3px;
}
.diferenciadores { margin-bottom: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.diferenciador-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.dif-icon {
  width: 48px;
  height: 48px;
  background: rgba(200,16,46,0.1);
  border: 1px solid rgba(200,16,46,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rojo-next);
  flex-shrink: 0;
}
.diferenciador-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--blanco);
}
.diferenciador-item p {
  font-size: 0.875rem;
  color: var(--gris-texto);
  line-height: 1.6;
}

/* ============================================================
   PROPIEDADES
   ============================================================ */
.propiedades {
  background: var(--gris-oscuro);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}
.filtros {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.filtro-btn {
  padding: 9px 22px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gris-texto);
  border: 1px solid var(--gris-borde);
  transition: var(--transition);
  background: transparent;
}
.filtro-btn:hover, .filtro-btn.active {
  background: var(--rojo-next);
  border-color: var(--rojo-next);
  color: var(--blanco);
}
.propiedades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* Card de propiedad */
.prop-card {
  background: var(--gris-card);
  border: 1px solid var(--gris-borde);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s cubic-bezier(0.4,0,0.2,1);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  cursor: pointer;
}
.prop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--rojo-glow), 0 4px 16px rgba(0,0,0,0.4);
}

.prop-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.prop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.prop-card:hover .prop-img { transform: scale(1.05); }
.prop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(200,16,46,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
  opacity: 0;
  transition: var(--transition);
}
.prop-card:hover .prop-overlay { opacity: 1; }

.prop-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: 3px;
  text-transform: uppercase;
}
.prop-badge.venta   { background: var(--rojo-next);   color: var(--blanco); }
.prop-badge.renta   { background: #1a6b3c;            color: var(--blanco); }
.prop-badge.pre-venta { background: var(--dorado-acento); color: #0D0D0D; }
.prop-badge.vendida { background: #555;               color: #ccc; }

/* ---- PROPIEDADES TEASER (index.html) ---- */
.props-intro {
  color: var(--gris-texto);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 0 2.5rem;
  line-height: 1.75;
}
.props-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.props-teaser-card {
  background: var(--gris-card);
  border: 1px solid var(--gris-borde);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
}
.props-teaser-card:hover {
  border-color: rgba(200,16,46,0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.ptc-icon {
  width: 52px; height: 52px; border-radius: 8px;
  background: rgba(200,16,46,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--rojo-next);
  margin-bottom: 0.25rem;
}
.props-teaser-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600; color: var(--blanco);
}
.props-teaser-card p {
  font-size: 0.88rem; color: var(--gris-texto); line-height: 1.65;
  flex-grow: 1;
}
.ptc-badge {
  display: inline-block;
  background: rgba(200,16,46,0.12);
  color: var(--rojo-next);
  font-size: 0.72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 3px;
  letter-spacing: 0.05em; text-transform: uppercase;
  width: fit-content;
}
.ptc-link {
  font-size: 0.84rem; font-weight: 600; color: var(--rojo-next);
  transition: var(--transition); margin-top: 0.25rem;
}
.ptc-link:hover { color: var(--blanco); }

@media (max-width: 768px) {
  .props-teaser-grid { grid-template-columns: 1fr; }
}

/* ---- FILTROS TIPO ---- */
.filtros-tipo {
  margin-top: 0.75rem;
  gap: 0.5rem;
}
.filtro-tipo-btn {
  padding: 7px 14px;
  border: 1px solid var(--gris-borde);
  border-radius: 4px;
  background: transparent;
  color: var(--gris-texto);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.filtro-tipo-btn:hover,
.filtro-tipo-btn.active {
  background: var(--gris-borde);
  color: var(--blanco);
  border-color: var(--gris-borde);
}

/* ---- CONTADOR Y BOTÓN VER MÁS ---- */
.props-contador {
  font-size: 0.85rem;
  color: var(--gris-texto);
  margin: 1rem 0 1.5rem;
  text-align: center;
}
.props-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}
.btn-ver-mas {
  padding: 14px 36px;
  border: 1px solid var(--gris-borde);
  background: transparent;
  color: var(--blanco);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 4px;
}
.btn-ver-mas:hover {
  background: var(--rojo-next);
  border-color: var(--rojo-next);
}

.prop-body { padding: 1.5rem; }
.prop-precio {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: 0.4rem;
}
.prop-precio span { font-size: 0.85rem; color: var(--gris-texto); font-family: 'Inter', sans-serif; font-weight: 400; }
.prop-titulo {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--blanco);
  margin-bottom: 0.2rem;
  line-height: 1.4;
}
.prop-colonia {
  font-size: 0.825rem;
  color: var(--gris-texto);
  margin-bottom: 1rem;
}
.prop-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gris-borde);
}
.prop-specs span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--gris-texto);
}
.prop-specs svg { color: var(--rojo-next); flex-shrink: 0; }
.prop-clave {
  font-size: 0.75rem;
  color: rgba(160,160,160,0.6);
  margin-bottom: 1rem;
  font-style: italic;
}
.btn-prop {
  display: block;
  text-align: center;
  background: transparent;
  border: 1px solid var(--rojo-next);
  color: var(--rojo-next);
  padding: 10px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-prop:hover {
  background: var(--rojo-next);
  color: var(--blanco);
}

/* ============================================================
   NEXT AGENCIA
   ============================================================ */
.next-agencia {
  background: var(--gris-medio);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}
.next-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
.next-logo-wrap {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--gris-borde);
  background: var(--gris-card);
  border-radius: 8px;
  position: sticky;
  top: 90px;
}
.next-logo-img {
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.next-highlights { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.next-highlight-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.nh-icon {
  width: 44px;
  height: 44px;
  background: rgba(200,16,46,0.1);
  border: 1px solid rgba(200,16,46,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rojo-next);
  flex-shrink: 0;
}
.next-highlight-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blanco);
  margin-bottom: 0.2rem;
}
.next-highlight-item p {
  font-size: 0.85rem;
  color: var(--gris-texto);
}
.next-contact-info {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gris-borde);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.next-contact-info p {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--gris-texto);
  line-height: 1.4;
}
.next-contact-info p svg { color: var(--rojo-next); flex-shrink: 0; }
.next-social-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.next-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gris-texto);
  transition: var(--transition);
  padding: 3px 0;
}
.next-social-btn:hover { color: var(--blanco); }
.next-social-btn svg { color: var(--rojo-next); flex-shrink: 0; }
.next-social-btn.wapp svg { color: #25D366; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios {
  background: var(--gris-oscuro);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.servicio-card {
  background: var(--gris-card);
  border: 1px solid var(--gris-borde);
  padding: 2.5rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.servicio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--rojo-next);
  transition: height 0.4s ease;
}
.servicio-card:hover::before { height: 100%; }
.servicio-card:hover {
  border-color: rgba(200,16,46,0.25);
  box-shadow: 0 8px 32px var(--rojo-glow);
  transform: translateY(-4px);
}
.srv-icon {
  width: 60px;
  height: 60px;
  background: rgba(200,16,46,0.1);
  border: 1px solid rgba(200,16,46,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rojo-next);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.servicio-card:hover .srv-icon {
  background: rgba(200,16,46,0.2);
}
.servicio-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blanco);
  margin-bottom: 0.75rem;
}
.servicio-card p {
  font-size: 0.9rem;
  color: var(--gris-texto);
  line-height: 1.7;
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonios {
  background: var(--gris-medio);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.test-card {
  background: var(--gris-card);
  border: 1px solid var(--gris-borde);
  border-left: 3px solid var(--rojo-next);
  padding: 2rem;
  border-radius: 0 8px 8px 0;
  transition: var(--transition);
}
.test-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.test-stars {
  color: var(--dorado-acento);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
}
.test-texto {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.test-autor {
  display: flex;
  align-items: center;
  gap: 12px;
}
.test-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(200,16,46,0.15);
  border: 1px solid rgba(200,16,46,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rojo-next);
  flex-shrink: 0;
}
.test-autor strong {
  display: block;
  font-size: 0.9rem;
  color: var(--blanco);
  font-weight: 600;
}
.test-autor span {
  font-size: 0.78rem;
  color: var(--gris-texto);
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto {
  background: var(--gris-oscuro);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: start;
}

.contacto-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gris-texto);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--gris-card);
  border: 1px solid var(--gris-borde);
  border-radius: 6px;
  padding: 13px 16px;
  color: var(--blanco);
  font-size: 0.95rem;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A0A0A0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-group select option { background: var(--gris-card); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--rojo-next);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(160,160,160,0.5); }
.btn-submit { margin-top: 0.5rem; justify-content: center; width: 100%; }

/* Contacto info */
.contacto-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--blanco);
  margin-bottom: 1.75rem;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--gris-texto);
}
.contact-list svg { color: var(--rojo-next); flex-shrink: 0; }
.contact-list a {
  color: var(--gris-texto);
  transition: var(--transition);
}
.contact-list a:hover { color: var(--rojo-next); }
.mapa-embed {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gris-borde);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0A0A0A;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.footer-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.012) 40px,
      rgba(255,255,255,0.012) 41px
    );
  pointer-events: none;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 200px 220px;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--gris-borde);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.footer-logos {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}
.footer-foto-keko {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--rojo-next);
  flex-shrink: 0;
}
.footer-next-placeholder {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--rojo-next);
  letter-spacing: 3px;
  line-height: 1.1;
}
.footer-next-placeholder span {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gris-texto);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
}
/* para cuando llegue el logo real de NEXT */
.footer-next-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.footer-desc {
  font-size: 0.85rem;
  color: var(--gris-texto);
  margin-top: 0.75rem;
  line-height: 1.8;
}
.footer-links h4, .footer-social h4 {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gris-texto);
  margin-bottom: 1rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(160,160,160,0.7);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--blanco); }

.footer-social { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-social h4 { margin-bottom: 0.5rem; }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(160,160,160,0.7);
  transition: var(--transition);
}
.footer-contact-item svg { color: var(--rojo-next); }
.footer-contact-item:hover { color: var(--blanco); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(160,160,160,0.5);
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: var(--rojo-next); }
.footer-bottom a:hover { color: var(--rojo-hover); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
}
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  /* Sobre mí */
  .sobre-grid { grid-template-columns: 1fr; gap: 3rem; }
  .sobre-imagen { max-width: 320px; margin: 0 auto; }
  .sobre-photo-frame { padding-bottom: 110%; }

  /* NEXT — apilado vertical, logo centrado */
  .next-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .next-logo-wrap {
    max-width: 200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: static;
  }
  .next-logo-img { max-width: 150px; }
  .next-content { text-align: left; }
  .next-highlight-item { align-items: flex-start; }

  /* Grids */
  .propiedades-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonios-grid { grid-template-columns: repeat(2, 1fr); }
  .servicios-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; gap: 3rem; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE — 768px (móvil)
   ============================================================ */
@media (max-width: 768px) {
  /* Base */
  .container { padding: 0 1.25rem; }
  h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); margin-bottom: 1.75rem; }

  /* Padding secciones */
  .hero { padding-top: 70px; }
  .stats { padding: 3rem 0; }
  .sobre-mi,
  .propiedades,
  .next-agencia,
  .servicios,
  .testimonios,
  .contacto { padding: 4rem 0; }

  /* Watermark número */
  .section-number-bg { font-size: 60px; right: 0.75rem; top: -10px; }

  /* ---- NAVBAR ---- */
  .nav-container { position: relative; gap: 0.75rem; padding: 0 1.25rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 1rem 1.5rem 1.75rem;
    gap: 0;
    border-bottom: 1px solid var(--gris-borde);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-link {
    font-size: 1rem;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    width: 100%;
  }
  .nav-link:last-child { border-bottom: none; }
  .hamburger { display: flex; }
  .btn-nav-cta { display: none; }
  /* WA CTA inside mobile dropdown */
  .nav-links.open .nav-li-cta { display: block; border-bottom: none; padding-top: 0.75rem; }
  .nav-links.open .nav-li-cta a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #25D366; color: #fff; padding: 13px 20px; border-radius: 6px;
    font-size: 0.9rem; font-weight: 700; width: 100%;
  }

  /* ---- HERO ---- */
  .hero-container {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.25rem 5rem;
    gap: 2rem;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-eyebrow { justify-content: center; }
  .hero-photo { display: flex; justify-content: center; }
  .photo-frame { width: 200px; height: 260px; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-desc { font-size: 0.95rem; }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .hero-ctas a { width: 100%; max-width: 320px; justify-content: center; }
  .scroll-indicator { display: none; }

  /* ---- STATS ---- */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .stat-item {
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--gris-borde);
    border-right: 1px solid var(--gris-borde);
  }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-number { font-size: 2.8rem; }
  .stat-plus, .stat-percent { font-size: 1.6rem; }

  /* ---- SOBRE MÍ ---- */
  .sobre-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .sobre-imagen { max-width: 240px; margin: 0 auto; }
  .sobre-photo-frame { padding-bottom: 120%; }
  .sobre-badge {
    position: static;
    right: auto; bottom: auto;
    font-size: 0.78rem; padding: 8px 16px;
    margin: 10px auto 0;
    white-space: nowrap;
    width: fit-content;
    justify-content: center;
  }
  .sobre-lic-badge { display: none; }
  .diferenciadores { gap: 1.25rem; }
  .diferenciador-item { gap: 1rem; }
  .diferenciador-item h4 { font-size: 0.9rem; }

  /* ---- NEXT ---- */
  .next-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .next-logo-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    position: static;
  }
  .next-logo-img { max-width: 130px; }
  .next-content { text-align: left; }
  .next-highlights { gap: 1.25rem; }
  .next-highlight-item { gap: 0.75rem; }
  .nh-icon { width: 38px; height: 38px; flex-shrink: 0; }
  .next-highlight-item h4 { font-size: 0.9rem; }
  .next-social-links { gap: 0.5rem; }
  .next-social-btn { font-size: 0.85rem; }

  /* ---- PROPIEDADES ---- */
  .propiedades-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .filtros { gap: 0.5rem; flex-wrap: wrap; }
  .filtro-btn { padding: 8px 14px; font-size: 0.8rem; }
  .prop-img-wrap { height: 200px; }
  .prop-body { padding: 1.25rem; }
  .prop-precio { font-size: 1.3rem; }

  /* ---- SERVICIOS ---- */
  .servicios-grid { grid-template-columns: 1fr; gap: 1rem; }
  .servicio-card { padding: 1.75rem 1.5rem; }
  .srv-icon { width: 50px; height: 50px; margin-bottom: 1.25rem; }

  /* ---- TESTIMONIOS ---- */
  .testimonios-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .test-card { padding: 1.5rem; }

  /* ---- CONTACTO ---- */
  .contacto-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .mapa-embed iframe { height: 180px; }
  .contacto-info h3 { font-size: 1.2rem; }

  /* ---- FOOTER ---- */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
  }
  .footer-brand { grid-column: auto; }
  .footer-logos { gap: 1rem; align-items: center; }
  .footer-foto-keko { width: 52px; height: 52px; }
  .footer-next-logo { height: 40px; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
    font-size: 0.75rem;
  }

  /* ---- CURSOR off en touch ---- */
  .cursor-dot, .cursor-halo { display: none; }
  body { cursor: auto; }
}

/* ============================================================
   RESPONSIVE — 480px (móvil pequeño)
   ============================================================ */
@media (max-width: 480px) {
  .hero-container { padding: 2rem 1.25rem 4rem; }
  .hero-container { padding: 2rem 1rem 4rem; }
  .photo-frame { width: 170px; height: 220px; }
  .hero-title { font-size: 1.85rem; }
  .hero-desc { font-size: 0.9rem; }

  .stat-number { font-size: 2.4rem; }
  .stat-label { font-size: 0.78rem; }

  .sobre-imagen { max-width: 210px; }
  .diferenciador-item { flex-direction: row; }

  .next-logo-wrap { max-width: 100%; }
  .next-logo-img { max-width: 130px; }

  .props-teaser-grid { gap: 16px; }
  .props-teaser-card { padding: 1.5rem; }

  .prop-specs { gap: 0.4rem 0.75rem; }
  .prop-specs span { font-size: 0.75rem; }

  .test-texto { font-size: 0.85rem; }

  .form-group input,
  .form-group select,
  .form-group textarea { padding: 11px 14px; font-size: 0.9rem; }

  .footer-logos { flex-direction: row; flex-wrap: wrap; }
  .section-number-bg { display: none; }

  /* Navbar very small screens */
  .nav-nombre { font-size: 0.85rem; }
  .nav-foto { width: 32px; height: 32px; }
}

/* ---- PROP CARD HIDDEN STATE ---- */
.prop-card.hidden {
  display: none;
}

/* ---- PROPIEDADES SECTION z-index fix ---- */
.propiedades > .container,
.servicios > .container,
.testimonios > .container,
.contacto > .container,
.sobre-mi > .container,
.next-agencia > .container {
  position: relative;
  z-index: 1;
}
