/* ═══════════════════════════════════════════════════
   CH INMOBILIARIA — CSS
   Paleta:
   --rojo:    #8B1A2F  (burdeos logo)
   --rojo-oscuro: #6b1424
   --gris-ch: #C8C8C8  (letras CH)
   --gris-oscuro: #4a4a4a
   --crema:   #F7F4EF
   --piedra:  #EDE8E0
   --blanco:  #FFFFFF
   --texto:   #2a2a2a
═══════════════════════════════════════════════════ */

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

:root {
  --rojo:        #8B1A2F;
  --rojo-oscuro: #6b1424;
  --rojo-tarjeta: #7F1F31;
  --rojo-tarjeta-hover: #6f1a2a;
  --rojo-suave:  #c8a0a8;
  --gris-ch:     #C8C8C8;
  --gris-medio:  #8a8a8a;
  --gris-oscuro: #3a3a3a;
  --crema:       #F7F4EF;
  --piedra:      #EDE8E0;
  --blanco:      #FFFFFF;
  --texto:       #2a2a2a;
  --texto-suave: #6b6b6b;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(0,0,0,0.09);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--texto);
  background: var(--crema);
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.25; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── HEADER ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ede8e0;
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.1); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-link { display: flex; align-items: center; }
.logo-img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gris-oscuro);
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--rojo); }

.nav-idealista {
  background: var(--rojo) !important;
  color: white !important;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-idealista:hover { background: var(--rojo-oscuro) !important; color: white !important; }

.nav-calculadora {
  background: var(--gris-oscuro) !important;
  color: white !important;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-calculadora:hover { background: #222 !important; color: white !important; }

.nav-ayudas {
  background: #F5E4DF !important;
  color: var(--rojo-oscuro) !important;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-ayudas:hover { background: #eecdc6 !important; color: var(--rojo-oscuro) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gris-oscuro);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(20,10,12,0.75) 0%,
    rgba(20,10,12,0.50) 55%,
    rgba(20,10,12,0.25) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  max-width: 660px;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--rojo-suave);
  margin-bottom: 16px;
  display: block;
}
.hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero-title em {
  font-style: italic;
  color: var(--gris-ch);
}
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.80);
  margin-bottom: 36px;
  line-height: 1.65;
  max-width: 520px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.55);
  animation: bounce 2s infinite;
}
.hero-scroll svg { width: 32px; height: 32px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--rojo); color: white; }
.btn-primary:hover {
  background: var(--rojo-oscuro);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139,26,47,0.35);
}
.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}
.btn-full { width: 100%; }

/* ─── STATS ─── */
.stats-bar {
  background: var(--gris-oscuro);
  padding: 28px 0;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.2;
}
.stat-label {
  font-size: 12px;
  color: var(--gris-ch);
  letter-spacing: 0.5px;
  margin-top: 3px;
  opacity: 0.8;
}
.stat-divider {
  width: 1px; height: 48px;
  background: rgba(255,255,255,0.12);
}

/* ─── SECTIONS ─── */
.section { padding: 96px 0; }
.section--dark { background: var(--gris-oscuro); color: white; }
.section--stone { background: var(--piedra); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 10px;
}
.section-eyebrow--light { color: var(--rojo-suave); }

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--gris-oscuro);
  margin-bottom: 14px;
}
.section--dark .section-title { color: white; }

.section-sub { font-size: 16px; color: var(--texto-suave); line-height: 1.65; }
.section-sub--light { color: rgba(255,255,255,0.65); }

/* ─── CATEGORIES ─── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--rojo-tarjeta);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1.5px solid transparent;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s, background 0.22s;
  text-decoration: none;
  color: inherit;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--rojo-tarjeta-hover);
  border-color: rgba(255,255,255,0.3);
}
.cat-icon {
  width: 64px;
  height: 64px;
  background: var(--piedra);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: background 0.2s;
}
.cat-card:hover .cat-icon { background: white; }
.cat-icon svg { width: 100%; height: 100%; }

.cat-info { flex: 1; }
.cat-title {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
}
.cat-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.55;
}
.cat-arrow {
  font-size: 13px;
  font-weight: 600;
  color: white;
  transition: opacity 0.2s;
  margin-top: auto;
}
.cat-card:hover .cat-arrow { opacity: 0.85; }

.cat-card--cta {
  background: var(--gris-oscuro);
  align-items: center;
  justify-content: center;
  border-color: transparent !important;
}
.cat-cta-inner { text-align: center; }
.cta-count {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 700;
  color: white;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.cta-label { font-size: 15px; color: var(--gris-ch); margin-bottom: 24px; line-height: 1.5; }
.cat-card--cta:hover { transform: translateY(-4px); }

/* ─── SERVICIOS ─── */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.servicio-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-top: 3px solid transparent;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.servicio-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--rojo);
}
.servicio-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
}
.servicio-icon svg { width: 100%; height: 100%; }
.servicio-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gris-oscuro);
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
}
.servicio-card p {
  font-size: 14px;
  color: var(--texto-suave);
  line-height: 1.65;
}
.servicio-card--highlight {
  background: var(--rojo);
  border-top-color: var(--rojo-oscuro);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.servicio-card--highlight h3 { color: white; }
.servicio-card--highlight p { color: rgba(255,255,255,0.82); }
.servicio-card--highlight:hover { border-top-color: var(--rojo-oscuro); }
.servicio-card--highlight .btn-primary {
  background: white;
  color: var(--rojo);
}
.servicio-card--highlight .btn-primary:hover {
  background: var(--piedra);
  box-shadow: none;
}

/* ─── LA ZONA ─── */
.zona-subtitulo {
  text-align: center;
  margin: 48px 0 28px;
}
.zona-subtitulo-h {
  font-size: 24px;
  font-weight: 600;
  color: white;
  margin-top: 8px;
}

.zona-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.zona-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: background 0.2s;
}
.zona-card:hover { background: rgba(255,255,255,0.10); }
.zona-icon { width: 52px; height: 52px; margin-bottom: 16px; }
.zona-icon svg { width: 100%; height: 100%; }
.zona-card h3 { font-size: 17px; font-weight: 600; color: white; margin-bottom: 10px; }
.zona-card p { font-size: 14px; color: rgba(255,255,255,0.62); line-height: 1.6; }

.galeria-zona {
  margin-bottom: 48px;
}
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.galeria-item {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16/9;
}
.galeria-item--wide {
  grid-column: span 2;
}
.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  filter: brightness(0.92) saturate(1.05);
}
.galeria-item:hover img {
  transform: scale(1.04);
  filter: brightness(1) saturate(1.1);
}

.zona-actividades {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 32px 36px;
  border: 1px solid rgba(255,255,255,0.08);
}
.actividades-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gris-ch);
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}
.actividades-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.actividades-list span {
  background: rgba(139,26,47,0.2);
  color: rgba(255,255,255,0.82);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 14px;
  border: 1px solid rgba(139,26,47,0.3);
  transition: background 0.2s;
}
.actividades-list span:hover { background: rgba(139,26,47,0.35); }

/* ─── NOSOTROS ─── */
.nosotros-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.nosotros-text .section-eyebrow { margin-bottom: 10px; }
.nosotros-text h2 { margin-bottom: 22px; }
.nosotros-text p { font-size: 16px; color: var(--texto-suave); margin-bottom: 16px; line-height: 1.7; }

.nosotros-valores { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.valor {
  display: flex;
  flex-direction: column;
  padding-left: 16px;
  border-left: 3px solid var(--rojo);
}
.valor strong { font-size: 15px; font-weight: 600; color: var(--gris-oscuro); margin-bottom: 2px; }
.valor span { font-size: 14px; color: var(--texto-suave); }

.nosotros-logo-card {
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  border-top: 4px solid var(--rojo);
}
.nosotros-logo {
  width: 220px;
  height: auto;
  object-fit: contain;
}
.nosotros-datos {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  justify-content: center;
}
.dato {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}
.dato-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--rojo);
}
.dato-label { font-size: 12px; color: var(--texto-suave); margin-top: 2px; }
.dato-sep { width: 1px; height: 40px; background: var(--piedra); }
.nosotros-tel {
  font-size: 16px;
  font-weight: 600;
  color: var(--rojo);
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nosotros-tel:hover { color: var(--rojo-oscuro); }

/* ─── CONTACTO ─── */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: start;
}
.contacto-info { display: flex; flex-direction: column; gap: 28px; }
.contacto-item { display: flex; gap: 16px; align-items: flex-start; }
.contacto-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--rojo); margin-top: 2px; }
.contacto-item div { display: flex; flex-direction: column; }
.contacto-item strong { font-size: 14px; font-weight: 600; color: var(--gris-oscuro); margin-bottom: 2px; }
.contacto-item span, .contacto-item a { font-size: 15px; color: var(--texto-suave); line-height: 1.5; }
.contacto-item a:hover { color: var(--rojo); }

.contacto-form {
  background: white;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--gris-oscuro); letter-spacing: 0.2px; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid #e0ddd8;
  border-radius: 7px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--texto);
  background: var(--crema);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--rojo);
  box-shadow: 0 0 0 3px rgba(139,26,47,0.1);
}
.form-group textarea { resize: vertical; }
.form-notice {
  font-size: 12px;
  color: var(--texto-suave);
  text-align: center;
  margin-top: 10px;
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  overflow: hidden;
}

.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; font-size: 13px; color: var(--texto-suave); }
.form-check a { color: var(--rojo); text-decoration: underline; }
.form-check input { margin-top: 2px; accent-color: var(--rojo); }

/* ─── FOOTER ─── */
.site-footer { background: var(--gris-oscuro); padding: 32px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: inline-flex;
  background: white;
  padding: 8px 16px;
  border-radius: 8px;
}
.footer-logo { height: 34px; width: auto; object-fit: contain; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.9); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
  .galeria-item--wide { grid-column: span 2; }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .zona-grid { grid-template-columns: repeat(2, 1fr); }
  .nosotros-inner { grid-template-columns: 1fr; gap: 48px; }
  .nosotros-logo-card { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    border-top: 1px solid var(--piedra);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 24px; width: 100%; color: var(--gris-oscuro); }
  .nav-idealista, .nav-calculadora, .nav-ayudas { margin: 8px 16px; width: calc(100% - 32px); text-align: center; }

  .galeria-grid { grid-template-columns: 1fr; }
  .galeria-item--wide { grid-column: span 1; }
  .servicios-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-inner { gap: 20px; flex-direction: column; }
  .stat-divider { width: 40px; height: 1px; }
  .zona-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; text-align: center; justify-content: center; }
  .section { padding: 64px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .contacto-form { padding: 24px 18px; }
}

/* ─── PÁGINA INTERIOR: CABECERA (Ayudas / Calculadora) ─── */
.page-hero {
  background: var(--gris-oscuro);
  padding: 76px 0 56px;
  text-align: center;
}
.page-hero .hero-eyebrow { color: var(--rojo-suave); justify-content: center; }
.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  color: white;
  margin: 10px 0 16px;
}
.page-hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 640px;
  margin: 0 auto;
}
.main-nav a.active { color: var(--rojo); }

/* ─── AYUDAS (página propia, tarjetas grandes) ─── */
.ayudas-grid-big {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.ayuda-card-big {
  background: white;
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border: 1.5px solid transparent;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.ayuda-card-big:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--rojo-suave);
}
.ayuda-icon-big {
  font-size: 36px;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--piedra);
  border-radius: 14px;
  margin-bottom: 18px;
}
.ayuda-card-big .ayuda-quien {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--rojo-oscuro);
  margin-bottom: 10px;
}
.ayuda-card-big h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--gris-oscuro);
  margin-bottom: 12px;
}
.ayuda-card-big p {
  font-size: 15px;
  color: var(--texto-suave);
  line-height: 1.7;
}
.ayuda-card-big--cta {
  background: var(--gris-oscuro);
}
.ayuda-card-big--cta h3,
.ayuda-card-big--cta p { color: white; }
.ayuda-card-big--cta p { color: rgba(255,255,255,0.65); }
.ayuda-card-big--cta .ayuda-icon-big { background: rgba(255,255,255,0.1); }

@media (max-width: 800px) {
  .ayudas-grid-big { grid-template-columns: 1fr; }
}

.calc-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.calc-field label { font-size: 13px; font-weight: 600; color: var(--gris-oscuro); letter-spacing: 0.2px; }
.calc-field input,
.calc-field select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1.5px solid #e0ddd8;
  border-radius: 7px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--texto);
  background: var(--crema);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.calc-field select {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--rojo);
  box-shadow: 0 0 0 3px rgba(139,26,47,0.1);
}

/* ─── CALCULADORA (página propia) ─── */
.calc-wrapper-big {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
}
.calc-input-panel-big {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.calc-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gris-oscuro);
  margin-bottom: 22px;
}
.calc-panel-note {
  font-size: 13px;
  color: var(--texto-suave);
  line-height: 1.6;
  margin-top: 18px;
}

.calc-results-big {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  min-height: 420px;
}
.calc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 340px;
  color: var(--texto-suave);
}
.calc-empty-icon { width: 64px; height: 64px; margin-bottom: 20px; }
.calc-empty p { max-width: 320px; font-size: 15px; line-height: 1.6; }

.calc-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  background: var(--crema);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 36px;
}
.calc-summary-item { text-align: center; }
.calc-summary-item span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--texto-suave);
  margin-bottom: 6px;
}
.calc-summary-item strong {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--gris-oscuro);
}
.calc-summary-item--total strong { color: var(--rojo); font-size: 26px; }
.calc-summary-divider {
  font-size: 20px;
  color: var(--rojo-suave);
  font-weight: 700;
}

.calc-detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gris-oscuro);
  margin-bottom: 18px;
}

.calc-row {
  border-top: 1px solid var(--piedra);
  padding: 20px 0;
}
.calc-row:last-of-type { border-bottom: 1px solid var(--piedra); }
.calc-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 6px;
}
.calc-row-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--gris-oscuro);
}
.calc-row-amount {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--rojo);
  white-space: nowrap;
}
.calc-row-desc {
  font-size: 13.5px;
  color: var(--texto-suave);
  line-height: 1.6;
}

.calc-nota {
  background: var(--crema);
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--texto-suave);
  line-height: 1.6;
}
.calc-nota ul { margin: 8px 0 8px 18px; }
.calc-nota li { margin-bottom: 4px; }

.calc-aviso {
  margin-top: 28px;
  background: #FBF2F1;
  border: 1px solid #F0DCDA;
  border-radius: var(--radius);
  padding: 20px 22px;
  font-size: 13.5px;
  color: var(--texto-suave);
  line-height: 1.65;
}

.calc-itp-info {
  background: var(--crema);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 28px;
}
.calc-itp-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gris-oscuro);
  margin-bottom: 8px;
}
.calc-itp-info > p {
  font-size: 13.5px;
  color: var(--texto-suave);
  line-height: 1.6;
  margin-bottom: 16px;
}
.calc-itp-info-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 8px;
}
.calc-itp-info-comunidad { margin-bottom: 16px; }
.calc-itp-info-comunidad:last-child { margin-bottom: 0; }
.calc-itp-info-comunidad ul {
  margin: 0;
  padding-left: 18px;
}
.calc-itp-info-comunidad li {
  font-size: 13px;
  color: var(--texto-suave);
  line-height: 1.6;
  margin-bottom: 4px;
}
.calc-itp-info-comunidad li strong { color: var(--gris-oscuro); }

@media (max-width: 900px) {
  .calc-wrapper-big { grid-template-columns: 1fr; }
  .calc-input-panel-big { position: static; }
  .calc-summary { grid-template-columns: 1fr; }
  .calc-summary-divider { display: none; }
  .calc-results-big { padding: 28px 22px; }
}

/* ─── MERCADO E INFORMACIÓN ─── */
.mercado-updated {
  margin-top: 18px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.3px;
}

.mercado-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.mercado-stat {
  background: white;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.mercado-stat-value {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--rojo);
  margin-bottom: 8px;
}
.mercado-stat-label {
  display: block;
  font-size: 13px;
  color: var(--texto-suave);
  line-height: 1.4;
}
.mercado-stat-municipio {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin-bottom: 10px;
}
.mercado-stat-var {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-top: 6px;
}
.mercado-stat-var--up { color: #3f7d4f; }
.mercado-stat-var--down { color: var(--rojo); }
.mercado-stat--variacion .mercado-stat-value { color: var(--gris-oscuro); }

@media (max-width: 900px) {
  .mercado-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .mercado-stats-grid { grid-template-columns: 1fr; }
}

.mercado-noticias-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
}
.mercado-noticia-item {
  padding: 20px 0;
  border-bottom: 1px solid #e4dfd5;
}
.mercado-noticia-item:last-child { border-bottom: none; }
.mercado-noticia-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.mercado-noticia-punto {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rojo);
  flex-shrink: 0;
}
.mercado-noticia-temporada {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--texto-suave);
}
.mercado-noticia-texto {
  font-size: 15px;
  color: var(--gris-oscuro);
  line-height: 1.6;
  margin: 0;
}
.mercado-noticia-enlace { margin: 8px 0 0; }
.mercado-noticia-enlace a {
  font-size: 13px;
  font-weight: 600;
  color: var(--rojo);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mercado-noticia-enlace a:hover { color: var(--rojo-oscuro); }

/* ─── GUÍA DEL COMPRADOR ─── */
.guia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.guia-card {
  background: #FBF2F1;
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1.5px solid #F0DCDA;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.guia-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--rojo-suave);
}
.guia-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--rojo-oscuro);
  background: white;
  border-radius: 20px;
  padding: 5px 12px;
  margin-bottom: 16px;
}
.guia-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gris-oscuro);
  margin-bottom: 10px;
}
.guia-card p {
  font-size: 14px;
  color: var(--texto-suave);
  line-height: 1.65;
}
.guia-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rojo);
  transition: color 0.2s;
}
.guia-link:hover { color: var(--rojo-oscuro); }

@media (max-width: 900px) {
  .guia-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .guia-grid { grid-template-columns: 1fr; }
}

/* ─── VENDE CON NOSOTROS ─── */
.vende-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.vende-card {
  position: relative;
  background: white;
  border-radius: var(--radius);
  padding: 32px 24px 28px;
  box-shadow: var(--shadow);
  border: 1.5px solid transparent;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.vende-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--rojo-suave);
}
.vende-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--rojo-suave);
}
.vende-icon {
  width: 64px;
  height: 64px;
  background: var(--piedra);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 18px;
  transition: background 0.2s;
}
.vende-card:hover .vende-icon { background: #f5e0e4; }
.vende-icon svg { width: 100%; height: 100%; }
.vende-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gris-oscuro);
  margin-bottom: 8px;
}
.vende-card p {
  font-size: 14px;
  color: var(--texto-suave);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .vende-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .vende-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
  .nosotros-logo { width: 160px; }
}

/* ─── WHATSAPP FLOTANTE ─── */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 92px;
  width: 56px;
  height: 56px;
  background: var(--rojo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 999;
  transition: transform 0.2s, background 0.2s;
}
.whatsapp-btn:hover {
  background: var(--rojo-oscuro);
  transform: scale(1.06);
}
.whatsapp-btn svg {
  width: 26px;
  height: 26px;
  color: white;
}

.telegram-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--rojo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 999;
  transition: transform 0.2s, background 0.2s;
}
.telegram-btn:hover {
  background: var(--rojo-oscuro);
  transform: scale(1.06);
}
.telegram-btn svg {
  width: 26px;
  height: 26px;
  color: white;
}

@media (max-width: 480px) {
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    bottom: 18px;
    right: 78px;
  }
  .whatsapp-btn svg {
    width: 24px;
    height: 24px;
  }
  .telegram-btn {
    width: 50px;
    height: 50px;
    bottom: 18px;
    right: 18px;
  }
  .telegram-btn svg {
    width: 24px;
    height: 24px;
  }
}


