/* ============================================================
   Escritorio Jurídico Rojas Salazar — Hoja de estilos
   Paleta: azul marino + dorado (temporal)
   Tipografía: Playfair Display (títulos) + Inter (texto)
   Tecnología: CSS puro, sin JavaScript. 100% responsive.
   ============================================================ */

:root {
  --navy-900: #061225;
  --navy-800: #0a1c3a;
  --navy-700: #102a52;
  --navy-600: #173665;
  --gold-500: #c9a227;
  --gold-600: #9a7a12;
  --gold-700: #7a5f0e;
  --gold-soft: #f5ecd3;
  --ink-900: #0c1626;
  --ink-700: #25334a;
  --ink-500: #4c5a70;
  --ink-300: #8492a6;
  --line: #e4e9f0;
  --bg-soft: #f6f8fb;
  --white: #ffffff;
  --danger: #b3242a;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;

  --radius: 8px;
  --shadow: 0 14px 40px rgba(8, 22, 46, 0.10);
  --shadow-sm: 0 2px 12px rgba(8, 22, 46, 0.07);
}

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

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

body {
  font-family: var(--sans);
  color: var(--ink-700);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

a { color: var(--navy-700); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--gold-600); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy-800);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.section { padding: 110px 0; content-visibility: auto; contain-intrinsic-size: auto 600px; }
.section--soft { background: var(--bg-soft); }
.section--hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(201,162,39,0.18), rgba(201,162,39,0) 60%),
    linear-gradient(130deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  color: #d7e0ee;
  position: relative;
  overflow: hidden;
}
.section--hero .eyebrow { color: var(--gold-500); }
.section--hero .section-head h2 { color: #fff; }
.section--hero .section-head p { color: #c3cfdf; }
.section--hero .pillar { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); box-shadow: none; }
.section--hero .pillar h3 { color: #fff; }
.section--hero .pillar p { color: #c3cfdf; }
.section--hero .pillar .pillar-num { color: var(--gold-500); }

.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.25rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-500); font-size: 1.06rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-700);
  font-weight: 700;
  margin-bottom: 12px;
}

.accent { color: var(--gold-600); }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  border: 2px solid transparent;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-600); color: var(--navy-900); }
.btn-navy { background: var(--navy-700); color: #fff; }
.btn-navy:hover { background: var(--navy-600); color: #fff; }
.btn-outline { background: transparent; color: var(--navy-700); border-color: var(--navy-700); }
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1d22; color: #fff; }
.btn-block { display: block; width: 100%; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-900); color: #c5d1e0; font-size: 0.85rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: #c5d1e0; }
.topbar a:hover { color: var(--gold-500); }
.topbar .tb-group { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar .sep { color: #4a5d79; }

/* ---------- Cabecera ---------- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner { display: flex; align-items: center; gap: 16px; min-height: 78px; }

.logo { display: flex; flex-direction: column; gap: 4px; line-height: 1.1; color: var(--navy-800); flex-shrink: 0; }
.logo .logo-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--navy-800); letter-spacing: 0.01em; }
.logo .logo-tag { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }
.logo:hover .logo-name { color: var(--gold-600); }

.nav-menu { margin-left: auto; }

.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }

.nav-link {
  display: block;
  padding: 9px 12px;
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover { color: var(--gold-600); }

.has-dropdown > .nav-link::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 7px;
  margin-bottom: 3px;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 200;
}
.has-dropdown:hover > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--ink-700);
  font-size: 0.92rem;
  white-space: normal;
}
.dropdown a:hover { background: var(--bg-soft); color: var(--gold-600); }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta .btn { padding: 11px 17px; font-size: 0.85rem; white-space: nowrap; }

.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; transition: all .2s ease; }

/* ---------- Hero ---------- */
.hero {
  background-color: var(--navy-900);
  background-image:
    radial-gradient(900px 420px at 85% -10%, rgba(201,162,39,0.16), rgba(201,162,39,0) 60%),
    linear-gradient(rgba(6,18,37,0.86), rgba(23,54,101,0.9)),
    url('../img/hero-main.jpg');
  background-size: 900px 420px, cover, cover;
  background-position: 85% -10%, center, center;
  background-repeat: no-repeat;
  color: #d7e0ee;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 120px; }
.hero .eyebrow { color: var(--gold-500); }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3rem); max-width: 760px; margin-bottom: 22px; line-height: 1.15; }
.hero .lead { color: #d5dfec; font-size: 1.15rem; max-width: 640px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-strip { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 68px; padding-top: 34px; display: flex; gap: 24px 48px; flex-wrap: wrap; }
.hero-strip .hs-item { font-size: 0.95rem; color: #c3cfdd; }
.hero-strip .hs-item strong { display: block; font-family: var(--serif); color: var(--gold-500); font-size: 1.08rem; font-weight: 600; margin-bottom: 2px; }

/* ---------- Tarjetas de servicios ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: #cfd7e4; }
.card .card-icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--gold-soft); color: var(--gold-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.16rem; margin-bottom: 10px; line-height: 1.25; }
.card p { color: var(--ink-500); font-size: 0.95rem; flex: 1; }
.card .card-link { margin-top: 18px; font-weight: 600; font-size: 0.9rem; color: var(--gold-700); }
.card .card-link:hover { color: var(--navy-700); }

/* ---------- Ver más servicios (solo móvil) ---------- */
.ver-mas-toggle { display: none; }
.ver-mas-btn {
  display: none;
  margin: 28px auto 0;
  padding: 12px 30px;
  border: 2px solid var(--navy-700);
  border-radius: var(--radius);
  color: var(--navy-700);
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  text-align: center;
  width: fit-content;
}
.ver-mas-btn::after { content: "Ver más servicios"; }
.ver-mas-toggle:checked ~ .ver-mas-btn::after { content: "Ver menos"; }
.ver-mas-toggle:checked ~ .ver-mas-btn { background: var(--navy-700); color: #fff; }

/* ---------- Pilares ---------- */
.pillar { text-align: center; padding: 34px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pillar .pillar-num { font-family: var(--serif); font-size: 2.2rem; color: var(--gold-700); font-weight: 700; }
.pillar h3 { font-size: 1.14rem; margin: 14px 0 10px; }
.pillar p { color: var(--ink-500); font-size: 0.95rem; }

/* ---------- La Firma resumen ---------- */
.firma { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 64px; align-items: stretch; }
.firma-photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 430px; }
.firma-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.firma-body { display: flex; flex-direction: column; justify-content: center; }
.firma-body h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); margin-bottom: 16px; }
.firma-body p { color: var(--ink-500); margin-bottom: 14px; }
.firma-meta { list-style: none; margin: 20px 0 26px; }
.firma-meta li { padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--ink-700); }
.firma-meta li strong { color: var(--navy-800); }

/* ---------- CTA final ---------- */
.cta-band { background: var(--navy-800); color: #fff; text-align: center; padding: 96px 0; content-visibility: auto; contain-intrinsic-size: auto 300px; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 12px; }
.cta-band p { color: #d5dfec; max-width: 640px; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Página interior: cabecera ---------- */
.page-hero { background: linear-gradient(130deg, var(--navy-900), var(--navy-600)); color: #d7e0ee; }
.page-hero--penal, .page-hero--civil, .page-hero--cobranzas, .page-hero--mercantil, .page-hero--petrolero,
.page-hero--permisos, .page-hero--administrativo, .page-hero--asesoria, .page-hero--firma, .page-hero--contacto,
.page-hero--legal, .page-hero--privacidad { background-size: cover; background-position: center; }
.page-hero--penal { background-image: linear-gradient(rgba(6,18,37,0.84), rgba(23,54,101,0.9)), url('../img/hero-penal.jpg'); }
.page-hero--civil { background-image: linear-gradient(rgba(6,18,37,0.84), rgba(23,54,101,0.9)), url('../img/hero-civil.jpg'); }
.page-hero--cobranzas { background-image: linear-gradient(rgba(6,18,37,0.84), rgba(23,54,101,0.9)), url('../img/hero-cobranzas.jpg'); }
.page-hero--mercantil { background-image: linear-gradient(rgba(6,18,37,0.84), rgba(23,54,101,0.9)), url('../img/hero-mercantil.jpg'); }
.page-hero--petrolero { background-image: linear-gradient(rgba(6,18,37,0.84), rgba(23,54,101,0.9)), url('../img/hero-petrolero.jpg'); }
.page-hero--permisos { background-image: linear-gradient(rgba(6,18,37,0.84), rgba(23,54,101,0.9)), url('../img/hero-permisos.jpg'); }
.page-hero--administrativo { background-image: linear-gradient(rgba(6,18,37,0.84), rgba(23,54,101,0.9)), url('../img/hero-administrativo.jpg'); }
.page-hero--asesoria { background-image: linear-gradient(rgba(6,18,37,0.84), rgba(23,54,101,0.9)), url('../img/hero-asesoria.jpg'); }
.page-hero--firma { background-image: linear-gradient(rgba(6,18,37,0.84), rgba(23,54,101,0.9)), url('../img/hero-firma.jpg'); }
.page-hero--contacto { background-image: linear-gradient(rgba(6,18,37,0.84), rgba(23,54,101,0.9)), url('../img/hero-contacto.jpg'); }
.page-hero--legal { background-image: linear-gradient(rgba(6,18,37,0.84), rgba(23,54,101,0.9)), url('../img/hero-penal.jpg'); }
.page-hero--privacidad { background-image: linear-gradient(rgba(6,18,37,0.84), rgba(23,54,101,0.9)), url('../img/hero-asesoria.jpg'); }
.page-hero .container { padding-top: 88px; padding-bottom: 88px; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 8px 0 12px; }
.page-hero p { color: #d5dfec; max-width: 700px; }
.breadcrumb { font-size: 0.85rem; color: #bccadb; margin-bottom: 4px; }
.breadcrumb a { color: #bccadb; }
.breadcrumb a:hover { color: var(--gold-500); }

/* ---------- Contenido de servicio ---------- */
.service-layout { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: start; }
.service-content h2 { font-size: clamp(1.4rem, 2.6vw, 1.7rem); margin: 36px 0 14px; }
.service-content h2:first-child { margin-top: 0; }
.service-content p { color: var(--ink-500); margin-bottom: 14px; }
.service-content ul { margin: 0 0 18px 20px; color: var(--ink-500); }
.service-content ul li { margin-bottom: 9px; }
.service-content ul li strong { color: var(--ink-700); }

.sidebar { position: sticky; top: 104px; }
.sidebar .side-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.side-card h3 { font-size: 1.02rem; margin-bottom: 12px; }
.side-card ul { list-style: none; }
.side-card ul li a { display: block; padding: 8px 0; color: var(--ink-500); font-size: 0.92rem; border-bottom: 1px dashed var(--line); }
.side-card ul li a:hover { color: var(--gold-600); }
.side-card.side-cta { background: var(--navy-800); color: #d5dfec; border: none; }
.side-cta h4 { color: #fff; }
.side-cta p { font-size: 0.9rem; margin-bottom: 16px; }
.side-cta .btn { width: 100%; margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); margin-top: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 6px;
  font-weight: 600; color: var(--navy-800); font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold-600); line-height: 1; font-weight: 500; }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding: 0 6px 16px; color: var(--ink-500); }

/* ---------- Formulario ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--navy-800); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.95rem; color: var(--ink-700); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201,162,39,0.16);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--ink-500); line-height: 1.55; }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 2px; }
.form-actions .btn { width: 100%; }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact-grid > div { min-width: 0; }
.contact-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item .ci-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-700); font-weight: 700; }
.contact-item .ci-value { font-weight: 600; color: var(--navy-800); font-size: 1.05rem; }
.contact-item .ci-value a { color: var(--navy-800); overflow-wrap: anywhere; }
.contact-item .ci-value a:hover { color: var(--gold-600); }
.contact-item .ci-sub { font-size: 0.88rem; color: var(--ink-500); }

/* ---------- Pie de página ---------- */
.footer { background: var(--navy-900); color: #b2c1d4; content-visibility: auto; contain-intrinsic-size: auto 400px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.15fr; gap: 40px; padding: 84px 0 60px; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 18px; letter-spacing: 0.01em; }
.footer .f-about p { font-size: 0.92rem; margin: 16px 0; line-height: 1.65; }
.footer .f-about .logo-name { color: #fff; }
.footer .f-about .logo-tag { color: var(--gold-500); }
.footer .f-links { list-style: none; }
.footer .f-links li { margin-bottom: 10px; }
.footer .f-links a { color: #b2c1d4; font-size: 0.92rem; }
.footer .f-links a:hover { color: var(--gold-500); }
.footer .f-contact { list-style: none; }
.footer .f-contact li { margin-bottom: 12px; font-size: 0.92rem; }
.footer .f-contact a { color: #b2c1d4; overflow-wrap: anywhere; }
.footer .f-contact a:hover { color: var(--gold-500); }
.footer .social { display: flex; gap: 10px; margin-top: 18px; }
.footer .social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid #2a3b57; display: flex; align-items: center; justify-content: center;
  color: #b2c1d4;
}
.footer .social a svg { width: 18px; height: 18px; }
.footer .social a:hover { border-color: var(--gold-500); color: var(--gold-500); }

.footer-bottom { border-top: 1px solid #1d2b45; padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 0.85rem; }
.footer-bottom a { color: #b2c1d4; }
.footer-bottom a:hover { color: var(--gold-500); }
.footer-legal-note { font-size: 0.82rem; color: #a5b5ca; line-height: 1.6; margin-top: 20px; }

/* ---------- Disclaimer / aviso ---------- */
.disclaimer {
  background: var(--bg-soft); border-left: 4px solid var(--gold-500);
  padding: 16px 20px; border-radius: var(--radius); font-size: 0.9rem; color: var(--ink-500);
  margin: 26px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tabletas grandes: activar menú hamburguesa */
@media (max-width: 1280px) {
  .nav-burger { display: block; order: 3; }
  .nav-cta { margin-left: auto; order: 2; }
  .nav-cta .btn-emergency { display: none; }
  .nav-cta .btn { padding: 11px 18px; }

  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .32s ease;
    box-shadow: var(--shadow);
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 18px; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li:last-child { border-bottom: none; }
  .nav-link { padding: 14px 0; font-size: 1.02rem; }

  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; min-width: 0; padding: 0 0 6px 10px;
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .has-dropdown > .nav-link { font-weight: 600; color: var(--navy-800); }
  .has-dropdown:focus-within > .dropdown,
  .has-dropdown:active > .dropdown { max-height: 520px; }
  .dropdown a { padding: 9px 8px; }

  .nav-toggle:checked ~ .nav-menu { max-height: 82vh; overflow-y: auto; }
}

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .service-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .firma { grid-template-columns: 1fr; gap: 32px; }
  .firma-photo { max-width: 420px; min-height: 0; aspect-ratio: 4/5; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid > div:last-child { order: -1; }
  .hero .container { padding-top: 88px; padding-bottom: 88px; }
  .section { padding: 80px 0; }
  .cta-band { padding: 72px 0; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .nav-cta { display: none; }
  .nav-burger { margin-left: auto; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .form-actions { grid-template-columns: 1fr; }
  .hero-strip { gap: 22px 36px; }
  .section { padding: 64px 0; }
  .card-extra { display: none; }
  .ver-mas-btn { display: block; }
  .ver-mas-toggle:checked ~ .grid .card-extra { display: flex; }
  .contact-grid { gap: 32px; }
  .contact-item { padding: 14px 0; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .topbar .sep { display: none; }
  .topbar .container { justify-content: center; }
  .topbar .tb-group { justify-content: center; }
  .nav-inner { gap: 10px; min-height: 66px; }
  .logo .logo-name { font-size: 1.2rem; }
  .nav-cta .btn { padding: 10px 14px; font-size: 0.82rem; }

  .hero .container { padding-top: 64px; padding-bottom: 64px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .cta-band { padding: 60px 0; }
  .page-hero .container { padding-top: 60px; padding-bottom: 60px; }

  .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .section-head h2 { font-size: 1.55rem; }
}

/* ============================================================
   TEMA ALTERNATIVO: BEIGE CREMA
   Toggle CSS-only (sin JavaScript) mediante checkbox oculto.
   ============================================================ */

.tema-toggle { display: none; }

.tema-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 300;
  background: var(--navy-700);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 10px 16px;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  font-family: var(--sans);
  user-select: none;
}
.tema-btn::after { content: "Modo Beige"; }
body:has(#tema:checked) .tema-btn::after { content: "Modo Azul"; }
body:has(#tema:checked) .tema-btn { background: var(--gold-500); color: var(--navy-900); border-color: rgba(0,0,0,0.12); }

body:has(#tema:checked) {
  --navy-900: #5d5140;
  --navy-800: #52483a;
  --navy-700: #6e6150;
  --navy-600: #837558;
  --gold-500: #b8922a;
  --gold-600: #96770f;
  --gold-700: #7a5f0e;
  --gold-soft: #ece0c0;
  --ink-900: #40382b;
  --ink-700: #4c4334;
  --ink-500: #6d6250;
  --ink-300: #94876f;
  --line: #e2d7c2;
  --bg-soft: #f6efe0;
  --white: #fdf9f0;
  --danger: #a3363b;
}

body:has(#tema:checked) .topbar .sep { color: rgba(255,255,255,0.45); }
body:has(#tema:checked) .field input,
body:has(#tema:checked) .field select,
body:has(#tema:checked) .field textarea { background: #fffdf7; }
body:has(#tema:checked) .topbar { color: #f0ebdf; }
body:has(#tema:checked) .topbar a { color: #f0ebdf; }
body:has(#tema:checked) .footer { color: #ece5d6; }
body:has(#tema:checked) .footer a,
body:has(#tema:checked) .footer .social a { color: #ece5d6; }
body:has(#tema:checked) .footer h3,
body:has(#tema:checked) .footer .f-about .logo-name { color: #fffdf7; }
body:has(#tema:checked) .footer-legal-note { color: #d8cfbd; }
body:has(#tema:checked) .tema-btn { color: var(--ink-900); }

/* ============================================================
   ANIMACIONES LIGERAS AL HACER SCROLL
   Aparición suave (fade + deslizamiento) con timeline de scroll.
   Sin JavaScript; con fallback y respeto a prefers-reduced-motion.
   ============================================================ */

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: rise 0.7s ease-out backwards; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; }
  .reveal.in { animation: none !important; }
}

/* ============================================================
   BANNER DE COOKIES
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  background: var(--navy-900);
  color: #c6d0df;
  padding: 16px 24px;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.25);
  font-size: 0.9rem;
}
.cookie-banner-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.cookie-banner p { margin: 0; max-width: 720px; line-height: 1.55; }
.cookie-banner a { color: var(--gold-500); }
.cookie-banner a:hover { text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn { padding: 10px 18px; font-size: 0.85rem; }

@media (max-width: 560px) {
  .cookie-banner { padding: 14px 18px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner-actions { flex-direction: column; }
  .cookie-banner .btn { width: 100%; }
}

/* ---------- Consentimiento en el formulario ---------- */
.field-consent { display: flex; align-items: flex-start; }
.consent-label {
  font-size: 0.9rem;
  color: var(--ink-500);
  display: flex;
  gap: 9px;
  align-items: flex-start;
  cursor: pointer;
  line-height: 1.5;
}
.consent-label input[type="checkbox"] { width: auto; margin-top: 3px; flex-shrink: 0; }
.consent-label a { color: var(--navy-700); text-decoration: underline; }
