/* Bru & Muñoz Abogados — Solicitor Malaga
   Sistema de diseño: navy #0c1e35 + dorado #c9a96e (colores reales de marca, extraídos del logo),
   tipografía editorial + sans limpia. */


:root {
  /* Paleta */
  --navy-950: #0c1e35;
  --navy-900: #122a48;
  --navy-800: #1a3a5f;
  --navy-700: #254e7d;
  --sand-50:  #faf7f0;
  --sand-100: #f4ecdb;
  --sand-200: #e9dcbd;
  --gold-700: #b3904f;
  --gold-600: #c9a96e;
  --gold-100: #f2e8d5;
  --ink-900: #1c2530;
  --ink-600: #4b5a68;
  --ink-400: #7c8994;
  --line: #dfd6c2;
  --white: #ffffff;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 51, 0.06), 0 1px 1px rgba(11, 31, 51, 0.04);
  --shadow-md: 0 12px 32px -12px rgba(11, 31, 51, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--sand-50);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--navy-950);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }

p { margin: 0 0 1em; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 0.9rem;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
@media (max-width: 720px) {
  section { padding: 56px 0; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy-950); line-height: 1.15; }
.logo-text small { display: block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-700); font-weight: 700; margin-top: 2px; }

nav.main-nav { display: flex; align-items: center; gap: 30px; }
nav.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
nav.main-nav a.nav-link {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-900);
}
nav.main-nav a.nav-link:hover { color: var(--gold-700); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: -20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 260px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.15s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-900);
}
.dropdown a:hover { background: var(--sand-100); color: var(--gold-700); }
.dropdown .dropdown-sub { padding-left: 22px; font-size: 0.85rem; color: var(--ink-600); }

.lang-switch { display: flex; gap: 4px; font-size: 0.8rem; font-weight: 700; }
.lang-switch a {
  text-decoration: none;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  color: var(--ink-600);
}
.lang-switch a.is-active { background: var(--navy-950); color: var(--white); }
.lang-switch a:hover:not(.is-active) { background: var(--sand-100); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.93rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--gold-700); color: var(--white); }
.btn-primary:hover { background: var(--gold-600); }
.btn-outline { background: transparent; color: var(--navy-950); border-color: var(--navy-950); }
.btn-outline:hover { background: var(--navy-950); color: var(--white); }

.mobile-toggle { display: none; }

@media (max-width: 980px) {
  /* menú cerrado: se oculta el contenido del nav; solo se ve el botón hamburguesa */
  nav.main-nav ul, .lang-switch, .header-cta { display: none; }
  .mobile-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: none; border: 1.5px solid var(--navy-950); border-radius: var(--radius-sm);
    cursor: pointer;
  }
  /* menú abierto: panel apilado con enlaces + selector de idioma + botón */
  nav.main-nav.is-open {
    position: absolute; top: 84px; left: 0; right: 0;
    background: var(--sand-50); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 14px 24px 22px;
    display: flex; flex-direction: column; align-items: stretch; gap: 16px;
  }
  nav.main-nav.is-open ul {
    display: flex; flex-direction: column; gap: 2px;
    position: static; padding: 0; background: none; border: none;
  }
  nav.main-nav.is-open .lang-switch {
    display: flex; justify-content: center; gap: 8px;
    padding-top: 14px; border-top: 1px solid var(--line);
  }
  nav.main-nav.is-open .lang-switch a { padding: 8px 14px; }
  nav.main-nav.is-open .header-cta { display: block; }
  nav.main-nav.is-open .header-cta .btn { display: block; width: 100%; text-align: center; }
  nav.main-nav.is-open .dropdown { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; border: none; padding-left: 12px; }
  nav.main-nav.is-open li.has-dropdown.is-expanded .dropdown { display: block; }
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: var(--sand-50);
  padding: 76px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -160px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.30) 0%, rgba(201,169,110,0) 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero .eyebrow { color: var(--gold-600); }
.hero h1 { color: var(--white); font-weight: 500; }
.hero-sub { font-size: 1.15rem; color: var(--sand-100); max-width: 46ch; margin-top: 22px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero .btn-outline { border-color: var(--sand-100); color: var(--sand-50); }
.hero .btn-outline:hover { background: var(--sand-50); color: var(--navy-950); }

.trust-strip {
  margin-top: 46px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(250,247,240,0.18);
}
.trust-item { display: flex; align-items: baseline; gap: 8px; }
.trust-item strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold-600); }
.trust-item span { font-size: 0.85rem; color: var(--sand-100); }

.hero-card {
  background: var(--sand-50);
  border-radius: var(--radius-md);
  padding: 34px;
  color: var(--ink-900);
  box-shadow: var(--shadow-md);
}
.hero-card h3 { font-size: 1.1rem; margin-bottom: 16px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hero-card li { display: flex; gap: 10px; font-size: 0.95rem; align-items: flex-start; }
.hero-card li::before { content: "✓"; color: var(--gold-700); font-weight: 700; flex-shrink: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Intro block */
.intro { max-width: 780px; }
.intro p { font-size: 1.08rem; color: var(--ink-600); }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}
@media (max-width: 780px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
}
.service-card .service-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.service-card .service-icon svg { width: 27px; height: 27px; display: block; }
.service-card:hover .service-icon { background: var(--gold-600); color: var(--white); transform: scale(1.06); }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--ink-600); font-size: 0.96rem; }
.service-card a.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.88rem; color: var(--navy-950);
  text-decoration: none; margin-top: 8px;
}
.service-card a.card-link:hover { color: var(--gold-700); }

/* Why us / split */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split-block + .split-block { margin-top: 40px; }
.split-block p { color: var(--ink-600); }

.lang-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.lang-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--sand-100);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-900);
}

.stat-panel {
  background: var(--navy-950);
  color: var(--sand-50);
  border-radius: var(--radius-md);
  padding: 40px;
}
.stat-panel .stat-row { display: flex; gap: 40px; margin-bottom: 30px; }
.stat-panel .stat strong { font-family: var(--font-display); font-size: 2.1rem; display: block; color: var(--gold-600); }
.stat-panel .stat span { font-size: 0.85rem; color: var(--sand-100); }
.stat-panel p:last-child { margin-bottom: 0; color: var(--sand-100); font-size: 0.95rem; }

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  margin-top: 48px;
  counter-reset: step;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 44px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-700);
  position: absolute; top: 0; left: 0;
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--ink-600); margin: 0; }

/* FAQ accordion */
.faq-list { max-width: 820px; margin-top: 40px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy-950);
}
.faq-q .icon { flex-shrink: 0; font-size: 1.3rem; color: var(--gold-700); transition: transform 0.2s ease; }
.faq-item.is-open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { color: var(--ink-600); padding-bottom: 22px; max-width: 68ch; }
.faq-item.is-open .faq-a { max-height: 400px; }

/* Reviews */
.reviews-panel {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 50px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 44px;
  margin-top: 44px;
}
@media (max-width: 860px) { .reviews-panel { grid-template-columns: 1fr; } }
.reviews-score { text-align: center; }
.reviews-score strong { font-family: var(--font-display); font-size: 3.2rem; color: var(--navy-950); display: block; }
.stars { color: var(--gold-700); font-size: 1.3rem; letter-spacing: 2px; margin: 6px 0; }
.reviews-score span { font-size: 0.88rem; color: var(--ink-600); }
.reviews-note p { color: var(--ink-600); font-size: 1.02rem; }

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: var(--sand-50);
  border-radius: var(--radius-md);
  padding: 64px;
  text-align: center;
}
@media (max-width: 720px) { .final-cta { padding: 44px 26px; } }
.final-cta h2 { color: var(--white); margin-bottom: 18px; }
.final-cta p { color: var(--sand-100); max-width: 56ch; margin: 0 auto 30px; }
.final-cta .hero-actions { justify-content: center; }
.final-cta .lang-pill { background: rgba(250,247,240,0.1); border-color: rgba(250,247,240,0.2); color: var(--sand-50); }

/* Footer */
footer.site-footer { background: var(--navy-950); color: var(--sand-100); padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250,247,240,0.14);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--sand-50); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--sand-100); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-600); }
.footer-brand p { color: var(--sand-100); font-size: 0.9rem; max-width: 32ch; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 0.82rem; color: var(--ink-400); flex-wrap: wrap; gap: 12px; }
.footer-bottom .lang-switch a { color: var(--sand-100); }
.footer-bottom .lang-switch a.is-active { background: var(--gold-700); color: var(--white); }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy-950); color: white;
  padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============================================================
   Logos reales (marca)
   ============================================================ */
.logo-icon-img { width: 42px; height: auto; flex-shrink: 0; display: block; }
.footer-logo-img { height: 52px; width: auto; display: block; }
.hero-logo-mark { display: flex; justify-content: flex-start; margin-bottom: 22px; }
.hero-logo-mark img { height: 34px; width: auto; opacity: 0.92; }

/* ============================================================
   Header: se contrae y se vuelve más opaco al hacer scroll
   ============================================================ */
.site-header { transition: height 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease, background-color 0.35s ease; }
.header-inner { transition: height 0.35s cubic-bezier(0.22,1,0.36,1); }
.site-header.is-scrolled { background: rgba(250, 247, 240, 0.98); box-shadow: 0 8px 24px -16px rgba(12,30,53,0.35); }
.site-header.is-scrolled .header-inner { height: 66px; }
.site-header.is-scrolled .logo-icon-img { width: 34px; }

/* ============================================================
   Movimiento ambiental del hero
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero::after { animation: heroDrift 14s ease-in-out infinite alternate; }
}
@keyframes heroDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 30px) scale(1.12); }
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
    transition-delay: var(--reveal-delay, 0s);
  }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Botones: sheen dorado al pasar el ratón
   ============================================================ */
.btn { position: relative; overflow: hidden; transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease, background-color 0.25s ease; }
.btn::before {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn:hover::before { left: 130%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(179,144,79,0.55); }
.btn-outline:hover { transform: translateY(-2px); }

/* ============================================================
   Cards: lift + acento dorado al pasar el ratón
   ============================================================ */
.service-card, .stat-panel, .reviews-panel, .hero-card {
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -24px rgba(12,30,53,0.28);
  border-color: var(--gold-600);
}

/* ============================================================
   Nav: subrayado animado
   ============================================================ */
nav.main-nav a.nav-link { position: relative; }
nav.main-nav a.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--gold-600);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
nav.main-nav a.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ============================================================
   Entrada del hero al cargar la página
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero-sub, .hero-actions, .trust-strip, .hero-card {
    opacity: 0;
    animation: heroFadeUp 0.8s cubic-bezier(0.22,1,0.36,1) forwards;
  }
  .hero .eyebrow   { animation-delay: 0.05s; }
  .hero h1         { animation-delay: 0.15s; }
  .hero-sub        { animation-delay: 0.28s; }
  .hero-actions    { animation-delay: 0.4s; }
  .trust-strip     { animation-delay: 0.5s; }
  .hero-card       { animation-delay: 0.32s; }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Contador animado (trust-strip)
   ============================================================ */
.trust-item strong { display: inline-block; font-variant-numeric: tabular-nums; }

/* ============================================================
   Páginas internas: hero de una columna, breadcrumb, artículo
   ============================================================ */
.hero.hero-page { padding: 52px 0 60px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--sand-100); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; color: var(--sand-100); opacity: 0.8; }
.breadcrumb a:hover { opacity: 1; color: var(--gold-600); }
.breadcrumb span.sep { opacity: 0.5; }
.hero-page h1 { max-width: 20ch; }
.hero-page .hero-sub { max-width: 60ch; }

.article-layout { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }
.article-body h2 { margin-bottom: 16px; }
.article-body h2:not(:first-child) { margin-top: 44px; }
.article-body p { color: var(--ink-600); font-size: 1.02rem; }
.article-body ol { padding-left: 22px; color: var(--ink-600); }
.article-body ol li { margin-bottom: 10px; padding-left: 6px; }
.article-body ol li::marker { color: var(--gold-600); font-family: var(--font-display); font-weight: 700; }

.checklist { list-style: none; margin: 20px 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-600); }
.checklist li::before { content: "✓"; color: var(--gold-700); font-weight: 700; flex-shrink: 0; }

.side-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  position: sticky;
  top: 100px;
}
.side-panel h3 { font-size: 1.05rem; margin-bottom: 14px; }
.side-panel ul { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.side-panel ul a { text-decoration: none; font-size: 0.92rem; font-weight: 600; color: var(--ink-900); }
.side-panel ul a:hover { color: var(--gold-700); }
.side-panel .btn { width: 100%; justify-content: center; }

/* ============================================================
   Formulario de contacto
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 0.8fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--navy-900); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-900);
  transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold-600);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.contact-info-card {
  background: var(--navy-950); color: var(--sand-50);
  border-radius: var(--radius-md); padding: 34px;
}
.contact-info-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 20px; }
.contact-info-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.contact-info-row span.label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-600); font-weight: 700; }
.contact-info-row a, .contact-info-row span.value { color: var(--sand-100); text-decoration: none; font-size: 0.98rem; }
.contact-info-row a:hover { color: var(--white); }

/* ============================================================
   Scroll Hero — parallax con revelado por clip-path
   (réplica en CSS/JS vanilla de un componente React/framer-motion)
   ============================================================ */
.scroll-hero {
  position: relative;
  width: 100%;
  height: calc(var(--scroll-hero-height, 1000px) + 100vh);
}
.scroll-hero-bg {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--navy-950);
  clip-path: polygon(25% 25%, 75% 25%, 75% 75%, 25% 75%);
}
.scroll-hero-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 170%;
}
/* Hero principal = scroll-hero: la foto se revela detrás del H1 */
.hero.scroll-hero {
  padding: 0;
  overflow: visible;
  background: none;
}
.hero.scroll-hero::after { display: none; }
.hero.scroll-hero .scroll-hero-bg {
  display: flex;
  /* alineado desde arriba (no centrado) para que el logo quede SIEMPRE a la misma
     altura en todos los idiomas, sin importar cuántas líneas ocupe el título/subtítulo */
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(72px, 9vh, 104px);
  background: var(--navy-950);
  /* estado inicial: ventana casi completa (marco discreto, no un recorte "roto") */
  clip-path: polygon(6% 6%, 94% 6%, 94% 94%, 6% 94%);
}
.hero.scroll-hero .scroll-hero-image { background-size: 125%; }
.hero-overlay-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,30,53,0.62) 0%, rgba(12,30,53,0.55) 45%, rgba(12,30,53,0.78) 100%);
}
.hero-overlay-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.hero-overlay-content .hero-logo-mark { justify-content: center; margin: 0 auto 12px; }
.hero-overlay-content .hero-logo-mark img {
  height: 160px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  display: block;
  opacity: 1;
  filter: drop-shadow(0 4px 18px rgba(12,30,53,0.55));
}
.hero-overlay-content .eyebrow { color: var(--gold-600); }
.hero-overlay-content h1 { color: var(--white); font-size: clamp(1.7rem, 2.9vw, 2.4rem); }
.hero-overlay-content .hero-sub { color: var(--sand-100); margin-left: auto; margin-right: auto; margin-top: 16px; }
.hero-overlay-content .hero-actions { justify-content: center; margin-top: 26px; }
.hero-overlay-content .trust-strip { justify-content: center; border-top-color: rgba(250,247,240,0.18); margin-top: 22px; padding-top: 16px; }

/* Card "Who We Help", ahora fuera del hero, flotando sobre la transición */
.who-we-help-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 36px 40px;
  position: relative;
  z-index: 3;
  margin-top: -64px;
}
.who-we-help-card h3 { margin-bottom: 18px; }
.who-we-help-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.who-we-help-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--ink-600); }
.who-we-help-list li::before { content: "✓"; color: var(--gold-700); font-weight: 700; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .scroll-hero { height: 80vh; }
  .scroll-hero-bg { position: relative; height: 100%; clip-path: none; }
  .scroll-hero-image { background-size: cover; }
}

@media (max-width: 720px) {
  /* En móvil la animación de "revelado por scroll" queda mal (bandas azules):
     se desactiva el recorte y se muestra la foto completa de fondo, como en desktop.
     El !important gana a los estilos inline que pone main.js durante el scroll. */
  .scroll-hero { height: auto; }
  .hero.scroll-hero .scroll-hero-bg {
    position: relative; height: auto; min-height: 80vh;
    clip-path: none !important;
    padding-top: clamp(64px, 8vh, 92px); padding-bottom: 40px;
  }
  .scroll-hero-image { background-size: cover !important; }
  .who-we-help-card { margin-top: -40px; padding: 26px; }
  .who-we-help-list { grid-template-columns: 1fr; }
  .hero-overlay-content .hero-logo-mark { margin: 0 auto 8px; }
  .hero-overlay-content .hero-logo-mark img { height: 100px; }
  .hero-overlay-content h1 { font-size: 1.5rem; }
  .hero-overlay-content .hero-sub { margin-top: 10px; }
  .hero-overlay-content .hero-actions { margin-top: 16px; }
  .hero-overlay-content .trust-strip { margin-top: 18px; padding-top: 12px; }
}

/* ============================================================
   Sección de la fundadora / CEO
   ============================================================ */
.founder {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; gap: 32px; } }
.founder-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-900);
  aspect-ratio: 4 / 5;
  position: relative;
  box-shadow: var(--shadow-md);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-photo .founder-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--sand-100);
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
}
.founder-photo .founder-photo-placeholder .ph-mark {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-600);
}
.founder-body .eyebrow { color: var(--gold-700); }
.founder-body h2 { margin-bottom: 8px; }
.founder-body .founder-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-700);
  margin-bottom: 20px;
}
.founder-body p { color: var(--ink-600); }
.founder-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* Estado del formulario de contacto */
.form-status { margin-top: 16px; font-size: 0.95rem; font-weight: 600; min-height: 1.2em; }
.form-status.is-success { color: #2e7d52; }
.form-status.is-error { color: #b23b3b; }

/* ============================================================
   Sección "Dónde estamos" (oficina / Edificio Lorca)
   ============================================================ */
.office-location {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .office-location { grid-template-columns: 1fr; gap: 32px; } }
.office-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.office-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.office-body .eyebrow { color: var(--gold-700); }
.office-body h2 { margin-bottom: 18px; }
.office-body p { color: var(--ink-600); }
.office-body .office-note {
  margin-top: 22px;
  padding: 16px 20px;
  background: var(--sand-100);
  border-left: 3px solid var(--gold-600);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  color: var(--navy-900);
}

/* Mapa embebido */
.office-map {
  margin-top: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  line-height: 0;
  position: relative;
}
.office-map iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(0.15); }
@media (max-width: 720px) { .office-map iframe { height: 320px; } }
.office-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy-950);
  text-decoration: none;
  line-height: 1.4;
}
.office-map-link:hover { color: var(--gold-700); }

/* ---- Botón flotante de WhatsApp (todas las páginas, como la web antigua) ---- */
.wa-float{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:150;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 18px 12px 13px;
  border-radius:999px;
  background:#25d366;
  color:#fff;
  font-family:var(--font-body);
  font-weight:600;
  font-size:15px;
  line-height:1;
  text-decoration:none;
  box-shadow:0 6px 20px rgba(0,0,0,.22);
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.wa-float:hover{
  background:#1ebe5b;
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 10px 26px rgba(0,0,0,.28);
}
.wa-float:focus-visible{
  outline:3px solid var(--gold-600);
  outline-offset:3px;
}
.wa-float-icon{ width:26px; height:26px; flex:0 0 auto; }
.wa-float-label{ white-space:nowrap; }
@media (max-width:600px){
  .wa-float{ right:16px; bottom:16px; padding:14px; }
  .wa-float-label{ display:none; }
}
@media (prefers-reduced-motion: reduce){
  .wa-float{ transition:none; }
  .wa-float:hover{ transform:none; }
}

/* ---- Texto de contenido justificado a ambos márgenes (el hero y las CTAs se dejan como están) ---- */
.article-body p,
.service-card p,
.split-block p,
.stat-panel p,
.founder-body p,
.reviews-note p,
.office-body p,
.faq-a p,
.intro p {
  text-align: justify;
  hyphens: auto;
}
