/* =========================================================================
   KAPRA GROUP · Estilos premium
   Paleta: Azul marino · Blanco · Dorado
   ========================================================================= */

/* Tipografía Kapra = la de inditexpeople.com → ABC Monument Grotesk
   (comercial, ABC Dinamo). Se usa si está instalada/licenciada (local()).
   Respaldo libre de aspecto casi idéntico: Space Grotesk (texto/titulares)
   y Space Mono (etiquetas tipo "Semi-Mono"). */
@font-face {
  font-family: "ABC Monument Grotesk";
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: local("ABC Monument Grotesk"), local("ABCMonumentGrotesk"),
       local("ABC Monument Grotesk Light"), local("ABCMonumentGrotesk-Light"),
       local("ABC Monument Grotesk Regular"), local("ABCMonumentGrotesk-Regular"),
       local("ABC Monument Grotesk Medium"), local("ABCMonumentGrotesk-Medium");
}
@font-face {
  font-family: "ABC Monument Grotesk Mono";
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: local("ABC Monument Grotesk Semi-Mono"), local("ABCMonumentGroteskSemiMono"),
       local("ABC Monument Grotesk Mono"), local("ABCMonumentGroteskMono");
}

:root {
  --navy: #0d1330;
  --navy-800: #131a3d;
  --navy-700: #1c254f;
  --gold: #d9b45f;
  --gold-soft: #e6cd8f;
  --gold-dark: #b8933f;
  --white: #ffffff;
  --cream: #f7f5ef;
  --ink: #1a1d29;
  --muted: #6b6f7a;
  --line: rgba(13, 19, 48, 0.1);
  --radius: 0px;
  --radius-lg: 0px;
  --shadow: 0 24px 60px -28px rgba(13, 19, 48, 0.45);
  --shadow-sm: 0 10px 30px -18px rgba(13, 19, 48, 0.4);
  --serif: "ABC Monument Grotesk", "Space Grotesk", sans-serif;
  --sans: "ABC Monument Grotesk", "Space Grotesk", sans-serif;
  --mono: "ABC Monument Grotesk Mono", "Space Mono", "Space Grotesk", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.container { width: min(1200px, 92%); margin-inline: auto; }

/* ---------- Tipografía ---------- */
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
}
.title-light { color: var(--white); }

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold-dark);
  margin-bottom: 0.8rem;
}
.eyebrow-light { color: var(--gold); }

.section-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 2.2rem;
}
.section-dark .section-lead,
.section-navy .section-lead { color: rgba(255, 255, 255, 0.75); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: 0;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.78rem; }
.btn-block { width: 100%; }

.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy); box-shadow: 0 14px 30px -14px rgba(217, 180, 95, 0.7); }
.btn-gold:hover { box-shadow: 0 20px 40px -14px rgba(217, 180, 95, 0.85); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.6); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-glass { border-color: var(--gold); color: var(--gold); background: rgba(217, 180, 95, 0.08); backdrop-filter: blur(6px); letter-spacing: 0.08em; }
.btn-glass:hover { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy); box-shadow: 0 18px 38px -16px rgba(217, 180, 95, 0.8); }
.btn-gold-outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-gold-outline:hover { background: var(--gold); color: var(--navy); box-shadow: 0 18px 38px -16px rgba(217, 180, 95, 0.8); }
.btn-ghost { border-color: var(--line); color: var(--muted); background: transparent; }
.btn-ghost:hover { color: var(--navy); border-color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s;
}
.site-header.scrolled {
  background: rgba(13, 19, 48, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.7rem 0;
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.7);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { color: var(--white); font-weight: 700; letter-spacing: 0.16em; font-size: 1.02rem; }
.brand-text small { color: var(--gold); font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; }

.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 0.3rem 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px;
  background: var(--gold); transition: width 0.35s var(--ease);
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: flex; gap: 0.15rem; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 0; padding: 0.2rem; }
.lang-switch button {
  background: none; border: none; color: rgba(255, 255, 255, 0.7); cursor: pointer;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem; border-radius: 0; transition: 0.3s;
}
.lang-switch button.active { background: var(--gold); color: var(--navy); }
.lang-switch button:hover:not(.active) { color: var(--white); }

.nav-toggle { display: none; position: relative; z-index: 1002; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; transition: opacity 0.35s var(--ease), visibility 0.35s; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: 0.35s var(--ease); border-radius: 2px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 19, 48, 0.55) 0%, rgba(13, 19, 48, 0.35) 40%, rgba(13, 19, 48, 0.9) 100%),
    radial-gradient(120% 80% at 20% 20%, rgba(13, 19, 48, 0.4), transparent);
}
.hero-content { max-width: 780px; padding-top: 4rem; }
.hero-eyebrow { font-family: var(--mono); letter-spacing: 0.35em; font-size: 0.78rem; font-weight: 500; color: var(--gold); margin-bottom: 1.2rem; }
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.hero-subtitle { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 560px; color: rgba(255, 255, 255, 0.88); margin-bottom: 2.2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 20px; }
.hero-scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: var(--gold); border-radius: 4px; transform: translateX(-50%); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ---------- KPIs ---------- */
.kpis { background: var(--navy); padding: 3rem 0; }
.kpis-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.kpi { position: relative; }
.kpi-num, .kpi-suffix { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; color: var(--gold); }
.kpi-label { display: block; color: rgba(255, 255, 255, 0.7); font-size: 0.78rem; letter-spacing: 0.05em; margin-top: 0.3rem; }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-navy { background: linear-gradient(160deg, var(--navy-800), var(--navy)); color: var(--white); }
.section-light { background: var(--cream); }

.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

/* ---------- Nosotros ---------- */
.about-logo-section {
  position: relative; overflow: hidden;
}
.about-logo-section::before {
  content: ""; position: absolute; inset: 0;
  background: url('../img/logo.png') no-repeat center right -8%;
  background-size: auto 150%;
  opacity: 0.06; pointer-events: none;
}
.about-logo-section .container { position: relative; z-index: 1; }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
.about-logo-img { aspect-ratio: 1/1 !important; object-fit: contain !important; background: var(--navy-800); padding: 1.5rem; border: 1px solid rgba(217, 180, 95, 0.25); }
.about-media-badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--white);
  padding: 1rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--gold);
}
.about-media-badge strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--navy); }
.about-media-badge span { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.about-logo-section .about-text p { color: rgba(255, 255, 255, 0.7); margin-bottom: 1.4rem; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
.value { padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); transition: 0.4s var(--ease); }
.about-logo-section .value { border-color: rgba(255, 255, 255, 0.14); }
.value:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.value h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); margin-bottom: 0.4rem; }
.about-logo-section .value h3 { color: var(--white); }
.about-logo-section .value p { color: rgba(255, 255, 255, 0.6); }
.value p { font-size: 0.86rem; margin: 0; }

.team-block { margin-top: 5rem; text-align: center; }
.team-block .eyebrow, .team-block .section-title { text-align: center; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.team-photo { margin: 2.5rem 0 0; width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.team-photo img { width: 100%; height: 340px; object-fit: cover; display: block; box-shadow: var(--shadow); }
.team-card { text-align: center; }
.team-avatar { width: 100%; height: 320px; border-radius: 0; margin: 0 auto 1rem; background-size: cover; background-position: center; box-shadow: var(--shadow-sm); }
.team-card h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); }
.team-card span { font-size: 0.8rem; color: var(--muted); }

/* ---------- Servicios ---------- */
.services-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; margin-top: 2.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.service-row {
  display: flex; align-items: center; gap: 1.4rem;
  padding: 1.6rem 0.6rem; border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: 0.4s var(--ease); cursor: pointer; text-decoration: none;
}
.service-row:hover { padding-left: 1.4rem; background: rgba(217, 180, 95, 0.06); }
.service-num { font-family: var(--mono); font-size: 0.78rem; color: var(--gold); letter-spacing: 0.06em; }
.service-body { flex: 1; }
.service-body h3 { font-family: var(--serif); font-size: 1.25rem; color: var(--white); margin: 0 0 0.25rem; font-weight: 500; }
.service-body p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); margin: 0; }
.service-arrow { color: var(--gold); font-size: 1.1rem; opacity: 0; transform: translateX(-8px); transition: 0.4s var(--ease); }
.service-row:hover .service-arrow { opacity: 1; transform: translateX(0); }

/* ---------- Valoración ---------- */
.valuation-grid, .mortgage-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.check-list { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.8rem; }
.check-list li { position: relative; padding-left: 2rem; color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: var(--gold); color: var(--navy); border-radius: 0; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; }

/* ---------- Formularios ---------- */
.card-form { background: var(--navy); padding: 2.6rem; border-radius: 0; border: 1px solid rgba(217, 180, 95, 0.3); box-shadow: var(--shadow); display: grid; gap: 1.4rem; }
[hidden] { display: none !important; }
.section-navy .card-form { background: rgba(255, 255, 255, 0.05); border-color: rgba(217, 180, 95, 0.35); backdrop-filter: blur(6px); }
.form-row { position: relative; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 1.1rem 1rem 0.7rem; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 0;
  font-family: var(--sans); font-size: 0.9rem; color: var(--white); background: rgba(255, 255, 255, 0.04); transition: border 0.3s, background 0.3s;
}
.form-row select option { color: var(--ink); }
.form-row textarea { resize: vertical; padding-top: 1.1rem; }
.form-row select { padding-top: 0.85rem; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, 0.07); }
.form-row label {
  position: absolute; left: 1rem; top: 0.95rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.55);
  pointer-events: none; transition: 0.2s var(--ease);
}
.form-row input:focus + label, .form-row input:not(:placeholder-shown) + label,
.form-row textarea:focus + label, .form-row textarea:not(:placeholder-shown) + label {
  top: 0.3rem; font-size: 0.66rem; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase;
}
.consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.78rem; color: rgba(255, 255, 255, 0.65); }
.consent input { margin-top: 0.2rem; accent-color: var(--gold); }
.consent a { color: var(--gold); }
.form-note { font-size: 0.82rem; text-align: center; min-height: 1rem; color: rgba(255, 255, 255, 0.8); }
.form-note.ok { color: #7ddc9f; }
.form-note.err { color: #ff8a7a; }

/* ---------- Calculadora hipotecaria ---------- */
.mortgage-calc { background: var(--navy); border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow-sm); }
.calc-field { margin-bottom: 1.5rem; }
.calc-field label { display: flex; justify-content: space-between; font-size: 0.82rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); margin-bottom: 0.6rem; letter-spacing: 0.03em; }
.calc-field label strong { color: var(--gold); font-size: 0.95rem; }

/* Barras (sliders) doradas */
.calc-field input[type="range"] {
  width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 0;
  background: rgba(255, 255, 255, 0.15); outline: none; cursor: pointer; margin: 0.4rem 0;
}
.calc-field input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 0; background: transparent; }
.calc-field input[type="range"]::-moz-range-track { height: 6px; border-radius: 0; background: rgba(255, 255, 255, 0.15); }
.calc-field input[type="range"]::-moz-range-progress { height: 6px; background: var(--gold); }
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -7px;
  background: var(--gold); border: 2px solid var(--navy); border-radius: 50%; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); transition: transform 0.15s var(--ease);
}
.calc-field input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.calc-field input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; background: var(--gold); border: 2px solid var(--navy); border-radius: 50%;
  cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.calc-result { background: var(--navy); border-radius: var(--radius); padding: 1.6rem; text-align: center; color: var(--white); margin-top: 0.5rem; border: 1px solid rgba(217, 180, 95, 0.3); }
.calc-result > span { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.calc-result > strong { display: block; font-family: var(--serif); font-size: 3rem; font-weight: 600; color: var(--gold); line-height: 1.1; }
.calc-sub { display: flex; justify-content: space-around; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.calc-sub span { display: flex; flex-direction: column; font-size: 0.72rem; color: rgba(255, 255, 255, 0.7); }
.calc-sub b { color: var(--white); font-size: 1rem; margin-top: 0.2rem; }
.calc-disclaimer { font-size: 0.72rem; color: var(--muted); margin-top: 1rem; text-align: center; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 2.5rem; width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.blog-card { background: var(--white); border-radius: 0; overflow: hidden; box-shadow: none; transition: 0.4s var(--ease); }
.blog-card:hover { transform: none; box-shadow: none; }
.blog-img { aspect-ratio: 16/10; background-size: cover; background-position: center; }
.blog-body { padding: 1.5rem; }
.blog-tag { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-dark); font-weight: 700; }
.blog-body h3 { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); margin: 0.5rem 0; line-height: 1.15; }
.blog-body p { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.link-more { color: var(--navy); font-weight: 600; font-size: 0.82rem; text-decoration: none; transition: 0.3s; }
.link-more:hover { color: var(--gold-dark); }

/* ---------- Contacto ---------- */
.contact-list { list-style: none; display: grid; gap: 1rem; margin: 1.5rem 0 2rem; }
.contact-list li { display: flex; align-items: center; gap: 0.9rem; }
.contact-list span { width: 40px; height: 40px; border-radius: 0; background: var(--cream); display: grid; place-items: center; font-size: 1.1rem; }
.contact-list a { color: var(--ink); text-decoration: none; font-size: 0.95rem; transition: 0.3s; }
.contact-list a:hover { color: var(--gold-dark); }

/* Lista de contacto sobre fondo navy (sección unificada) */
.contact-list-navy { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem 2rem; margin: 2.5rem auto 0; max-width: 820px; }
.contact-list-navy li { align-items: center; }
.contact-list-navy span { background: rgba(217, 180, 95, 0.15); }
.contact-list-navy a { color: rgba(255, 255, 255, 0.85); }
.contact-list-navy a:hover { color: var(--gold); }

/* Alternativa: contacto por email */
.contact-alt { text-align: center; margin: 2rem auto 0; max-width: 620px; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; line-height: 1.6; }
.contact-alt a { display: inline-block; margin-top: 0.6rem; color: var(--gold); font-weight: 600; text-decoration: none; letter-spacing: 0.02em; }
.contact-alt a:hover { text-decoration: underline; }

/* Selector de modo: cita o email */
.contact-toggle { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 1.6rem 0 2rem; }
.contact-toggle-btn { font-family: var(--sans); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(217, 180, 95, 0.35); padding: 0.7rem 1.4rem; border-radius: 0; cursor: pointer; transition: color var(--ease) .3s, background var(--ease) .3s, border-color var(--ease) .3s; }
.contact-toggle-btn:hover { color: #fff; border-color: var(--gold); }
.contact-toggle-btn.is-active { color: var(--navy); background: var(--gold); border-color: var(--gold); }

/* Formulario de email */
.mail-form { max-width: 560px; margin: 0 auto; }
.mail-form-lead { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; line-height: 1.6; margin: 0 0 0.4rem; }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); height: 260px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.7); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-brand strong { color: var(--white); font-size: 1.2rem; letter-spacing: 0.16em; display: block; }
.footer-brand small { color: var(--gold); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; }
.footer-brand p { font-size: 0.85rem; margin-top: 1rem; max-width: 300px; }
.footer-col h4 { color: var(--white); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 0.85rem; margin-bottom: 0.55rem; transition: 0.3s; }
.footer-col a:hover { color: var(--gold); }
.footer-portals { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.footer-portals span { font-size: 0.68rem; padding: 0.3rem 0.7rem; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 0; color: rgba(255, 255, 255, 0.6); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; font-size: 0.78rem; flex-wrap: wrap; gap: 1rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.footer-legal a:hover { color: var(--gold); }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 58px; height: 58px; border-radius: 0;
  background: #25d366; color: var(--white); display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6); transition: transform 0.35s var(--ease);
  animation: pulse 2.6s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ---------- Backdrop menú móvil ---------- */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 990;
  background: rgba(13, 19, 48, 0.6); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.nav-backdrop.show { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* ---------- Animación de aparición ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal].in { transition: none; opacity: 1; transform: none; }
  * { animation: none !important; }
}

/* ---------- Animaciones de entrada del hero ---------- */
@keyframes heroUp { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
.hero-eyebrow { animation: heroUp 0.9s var(--ease) both; }
.hero-title { animation: heroUp 1s var(--ease) 0.12s both; }
.hero-subtitle { animation: heroUp 1s var(--ease) 0.24s both; }
.hero-cta { animation: heroUp 1s var(--ease) 0.36s both; }

/* ---------- Micro-interacciones ---------- */
.value, .blog-card, .service-row, .btn, .contact-list span, .footer-portals span, .lang-switch button { will-change: transform; }
.blog-card { transition: transform 0.45s var(--ease); }
.blog-card:hover { transform: translateY(-6px); }
.blog-img { transition: transform 0.6s var(--ease); }
.blog-card:hover .blog-img { transform: scale(1.05); }
.contact-list li { transition: transform 0.3s var(--ease); }
.contact-list li:hover { transform: translateX(6px); }
.value:hover { transform: translateY(-4px); }
.btn-gold, .btn-navy, .btn-outline, .btn-outline-light { position: relative; overflow: hidden; }
.btn-gold::after, .btn-navy::after, .btn-outline::after, .btn-outline-light::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg); transition: left 0.6s var(--ease);
}
.btn-gold:hover::after, .btn-navy:hover::after, .btn-outline:hover::after, .btn-outline-light:hover::after { left: 130%; }

/* ---------- Agenda / Calendario de cita ---------- */
.cal-embed {
  margin: 2.5rem auto 0;
  max-width: none;
  width: 100%;
  border: 1px solid rgba(217, 180, 95, 0.35);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.cal-embed iframe {
  width: 100%;
  min-height: 700px;
  border: 0;
  display: block;
  background: transparent;
}
@media (max-width: 640px) {
  .cal-embed iframe { min-height: 620px; }
}
@media (max-width: 420px) {
  .cal-embed iframe { min-height: 560px; }
}

.agenda-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem;
  align-items: start; max-width: 820px; margin-left: 0; margin-right: auto;
}
.agenda-cal, .agenda-slots { padding: 1.4rem; min-width: 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 1rem; }
.cal-month {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.9rem; color: var(--white); font-weight: 600; text-align: center; flex: 1;
}
.cal-nav {
  flex: 0 0 auto; width: 32px; height: 32px; border: 1px solid rgba(217, 180, 95, 0.4); background: transparent;
  color: var(--gold); font-size: 1.2rem; line-height: 1; cursor: pointer; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.cal-nav:hover { background: rgba(217, 180, 95, 0.12); border-color: var(--gold); }
.cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px;
}
.cal-weekdays span {
  text-align: center; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em;
  color: var(--muted); text-transform: uppercase; padding: 4px 0; min-width: 0;
}
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  aspect-ratio: 1 / 1; min-width: 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent; background: rgba(255, 255, 255, 0.04); color: var(--white);
  font-family: var(--sans); font-size: 0.82rem; cursor: pointer; border-radius: 0; padding: 0;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.cal-day:hover:not(.is-disabled):not(.is-empty) { border-color: var(--gold); color: var(--gold); }
.cal-day.is-empty { background: transparent; cursor: default; }
.cal-day.is-disabled { color: rgba(255, 255, 255, 0.2); cursor: not-allowed; background: transparent; }
.cal-day.is-today { border-color: rgba(217, 180, 95, 0.5); }
.cal-day.is-selected { background: var(--gold); color: var(--navy); font-weight: 700; border-color: var(--gold); }

.slots-title {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.8rem; color: var(--gold); margin-bottom: 1.2rem;
}
.slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot-btn {
  padding: 0.75rem 0.5rem; min-width: 0; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.04);
  color: var(--white); font-family: var(--mono); font-size: 0.9rem; cursor: pointer; border-radius: 0;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.slot-btn:hover { border-color: var(--gold); color: var(--gold); }
.slot-btn.is-selected { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 700; }

.agenda-summary { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.summary-line { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--muted); }
.summary-value { color: var(--white); font-size: 1.05rem; margin: 0.3rem 0 1.2rem; text-transform: capitalize; }
.form-row-inline { margin-bottom: 1.2rem; }
.link-cal { display: inline-block; margin-top: 1rem; color: var(--gold); }

/* ---------- Valoraciones / Testimonios ---------- */
.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem;
}
.review-card {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem; margin: 0; display: flex; flex-direction: column; gap: 1.1rem;
  transition: transform 0.45s var(--ease), border-color 0.3s var(--ease);
}
.review-card:hover { transform: translateY(-6px); border-color: rgba(217, 180, 95, 0.5); }
.review-stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 0.15em; }
.review-card blockquote {
  margin: 0; color: rgba(255, 255, 255, 0.9); font-size: 1.02rem; line-height: 1.65;
  font-style: italic; flex: 1;
}
.review-card figcaption { display: flex; flex-direction: column; gap: 0.2rem; }
.review-name { color: var(--white); font-weight: 600; letter-spacing: 0.02em; }
.review-role {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.7rem; color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-list { grid-template-columns: 1fr; gap: 0; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 860px) {
  /* Evita que backdrop-filter del header atrape el panel de menú fixed */
  .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(13, 19, 48, 0.97); }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; z-index: 1001; width: min(340px, 84%);
    background: var(--navy-800); flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 6rem 2.4rem 2.4rem; gap: 1.4rem; transform: translateX(100%);
    transition: transform 0.45s var(--ease); box-shadow: -20px 0 60px -20px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
  }
  .main-nav.open { transform: none; }
  .main-nav a { font-size: 1.15rem; color: var(--white); width: 100%; padding: 0.5rem 0; }
  .nav-toggle { display: flex; }
  /* La hamburguesa solo se ve en la pantalla principal; al bajar se oculta */
  .nav-toggle.hide-toggle { opacity: 0; visibility: hidden; pointer-events: none; }
  .header-cta { display: none; }
  .valuation-grid, .mortgage-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  /* Quiénes somos mantiene imagen a la izquierda + texto a la derecha */
  .about-grid { grid-template-columns: 0.7fr 1.3fr; gap: 1.5rem; }
  .values-grid, .kpis-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .agenda-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .about-media-badge { left: 12px; }
  .about-logo-section::before { background-size: auto 90%; opacity: 0.05; }
  .about-logo-img { max-width: 100%; margin: 0; padding: 0.9rem; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .kpis-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-form { padding: 1.5rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-content { padding-top: 5rem; }
  .brand-text small { display: none; }
  .lang-switch button { padding: 0.3rem 0.45rem; font-size: 0.68rem; }
  .header-actions { gap: 0.6rem; }
  .team-photo img { height: 220px; }
  .values-grid { grid-template-columns: 1fr; }
  .map-embed { height: 220px; }
  .agenda-cal, .agenda-slots { padding: 1.3rem; }
  .cal-days, .cal-weekdays { gap: 3px; }
  .cal-day { font-size: 0.85rem; }
  .cal-nav { width: 34px; height: 34px; font-size: 1.2rem; }
  .cal-month { font-size: 0.8rem; letter-spacing: 0.1em; }
  .slots-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .slot-btn { padding: 0.6rem 0.3rem; font-size: 0.82rem; }
}
@media (max-width: 420px) {
  .container { width: 90%; }
  .kpis-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text strong { font-size: 0.9rem; letter-spacing: 0.1em; }
  .lang-switch { padding: 0.15rem; }
  .service-row { padding: 1.2rem 0.4rem; gap: 1rem; }
  .about-logo-img { max-width: 100%; padding: 0.6rem; }
  .agenda-cal, .agenda-slots { padding: 1rem; }
  .cal-days, .cal-weekdays { gap: 2px; }
  .cal-day { font-size: 0.8rem; }
  .cal-weekdays span { font-size: 0.62rem; letter-spacing: 0.04em; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
}

