/* Daniel Agusto Abogados — hoja de estilos compartida (sin dependencias, carga instantánea). */

:root {
  --navy: #0b1220;
  --navy-2: #0f1828;
  --card: #141e31;
  --line: #25324a;
  --gold: #d4af37;
  --gold-2: #e8c96a;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --cream: #f7f4ec;
  --ink: #0f172a;
  --text: #e8edf5;
  --muted: #9aa8bf;
  --green: #25d366;
  --green-2: #1da851;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --font-title: "Cinzel", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--navy-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-light { background: var(--cream); color: var(--ink); }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 16px; letter-spacing: 0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #c9d3e3; max-width: 640px; }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.section-light .eyebrow { color: #a37f12; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }

/* Barra superior y cabecera */
.topbar { background: #070c16; border-bottom: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.topbar strong { color: var(--text); }
.header { position: sticky; top: 0; z-index: 50; background: rgba(11, 18, 32, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; border: 1px solid rgba(212, 175, 55, 0.35); }
.brand-name { font-family: var(--font-title); font-weight: 700; font-size: 1.05rem; line-height: 1.1; color: #fff; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: none; gap: 28px; font-size: 0.92rem; }
.nav a { text-decoration: none; color: #c9d3e3; }
.nav a:hover { color: #fff; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: 14px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-wa { background: var(--green); color: #052e16; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.25); }
.btn-wa:hover { background: #3ee07a; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid #3a4a66; }
.btn-ghost:hover { border-color: var(--gold); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 0.92rem; border-radius: 12px; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; background: radial-gradient(900px 420px at 85% -10%, rgba(212, 175, 55, 0.14), transparent 60%), linear-gradient(180deg, #0a1120, var(--navy)); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(20, 30, 49, 0.7); font-size: 0.82rem; color: #c9d3e3; margin-bottom: 22px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.9rem; color: #c9d3e3; }
.checks li::before, .list-check li::before { content: "✓"; color: var(--gold); font-weight: 800; margin-right: 8px; }

/* Tarjeta del abogado */
.lawyer { background: linear-gradient(180deg, #172238, var(--card)); border: 1px solid rgba(212, 175, 55, 0.35); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.lawyer-photo { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 4.2; background: #1b2436; }
.lawyer-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.lawyer-badge { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(11, 18, 32, 0.88); border: 1px solid var(--line); font-size: 0.82rem; }
.lawyer h3 { margin: 18px 0 4px; font-size: 1.2rem; }
.list-check { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 0.92rem; color: #c9d3e3; }

/* Tarjeta lateral del hero (sin foto) */
.hero-card { background: linear-gradient(180deg, #172238, var(--card)); border: 1px solid rgba(212, 175, 55, 0.35); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.hero-card-logo { width: 96px; height: 96px; border-radius: 18px; margin: 0 auto 18px; border: 1px solid rgba(212, 175, 55, 0.35); }
.hero-card h3 { text-align: center; color: var(--gold); font-size: 1.05rem; }
.hero-card .list-check { font-size: 0.95rem; gap: 12px; }
.hero-card-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); }

/* Sección "Quién te atiende" */
.about { display: grid; gap: 28px; align-items: center; }
.about-photo { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 240px; width: 100%; margin: 0 auto; border: 1px solid rgba(212, 175, 55, 0.4); box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }

/* Tarjetas genéricas */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card-link { text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; display: block; }
.card-link:hover { border-color: rgba(212, 175, 55, 0.6); transform: translateY(-2px); }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid rgba(212, 175, 55, 0.3); color: var(--gold); font-size: 1.3rem; margin-bottom: 16px; }
.section-light .card { background: #fff; border-color: #e6e0d0; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06); }
.section-light .card p { color: #475569; }
.quote-card { border-left: 4px solid var(--gold); font-weight: 600; font-size: 1.02rem; }

/* Pasos */
.steps { counter-reset: paso; display: grid; gap: 18px; }
.step { position: relative; padding-left: 0; }
.step-num { font-family: var(--font-title); font-size: 2.2rem; color: var(--gold); line-height: 1; margin-bottom: 12px; display: block; }

/* Oferta / garantía */
.offer { display: grid; gap: 28px; align-items: center; background: linear-gradient(135deg, #1a2540, #0f1828); border: 1px solid rgba(212, 175, 55, 0.45); border-radius: 28px; padding: 34px; box-shadow: var(--shadow); }
.offer-price { font-family: var(--font-title); font-size: 2.2rem; color: #fff; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
/* Valores fijos (tarjetas de precio; se ordenan con .grid-3) */
.precio { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.precio-dest { border-color: rgba(212, 175, 55, 0.6); background: linear-gradient(180deg, #172238, var(--card)); }
.precio h3 { font-size: 1.08rem; margin-bottom: 6px; }
.precio > p { color: var(--muted); font-size: 0.92rem; margin: 0 0 16px; }
.precio > .precio-valor { margin: auto 0 0; font-family: var(--font-title); font-size: 1.75rem; color: #fff; line-height: 1.2; }
.precio-valor small { font-family: var(--font-body, inherit); font-size: 0.9rem; color: var(--muted); }
.precio > .precio-valor-texto { font-size: 1.25rem; }
.precio .tag { align-self: flex-start; }
.precio > .precio-nota { font-size: 0.82rem; color: var(--gold); margin: 4px 0 16px; }
.precio .btn { width: 100%; }
.alert { border: 1px solid rgba(212, 175, 55, 0.4); background: rgba(212, 175, 55, 0.08); border-radius: 16px; padding: 18px 20px; color: #f1e4b8; }

/* Herramientas interactivas */
.tool { background: var(--card); border: 1px solid rgba(212, 175, 55, 0.35); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.85rem; font-weight: 700; color: #d6deea; }
.field input, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid #33425e; background: #0b1322; color: #fff; font-size: 1rem; font-family: inherit; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); }
.row { display: grid; gap: 14px; }
.result { display: none; margin-top: 22px; padding: 22px; border-radius: 16px; background: rgba(212, 175, 55, 0.08); border: 1px solid rgba(212, 175, 55, 0.45); text-align: center; }
.result.show { display: block; }
.result-amount { font-family: var(--font-title); font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--gold); margin: 6px 0 10px; }
.small { font-size: 0.82rem; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 22px; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: #c9d3e3; font-size: 0.96rem; }

/* CTA final */
.cta-final { text-align: center; background: radial-gradient(700px 300px at 50% 0%, rgba(212, 175, 55, 0.16), transparent 70%), var(--navy-2); }

/* Pie */
.footer { background: #060a13; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; padding: 56px 0 120px; }
.footer-grid { display: grid; gap: 28px; margin-bottom: 32px; }
.footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }
.legal-note { border-top: 1px solid #141c2c; padding-top: 22px; font-size: 0.78rem; color: #6f7c93; }

/* Barra fija en móvil */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(6, 10, 19, 0.96); border-top: 1px solid var(--line); }
.mobile-bar .btn { min-height: 48px; padding: 10px; font-size: 0.92rem; }

/* Aviso de cookies */
/* Aviso de cookies: franja compacta que no tapa el contenido ni los botones de contacto. */
.cookies { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: 80px; max-width: 460px; margin: 0 auto; background: rgba(16, 26, 44, 0.97); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 14px; box-shadow: var(--shadow); font-size: 0.8rem; line-height: 1.35; display: none; align-items: center; gap: 10px; }
.cookies.show { display: flex; }
.cookies p { margin: 0; flex: 1; color: #c9d3e3; }
.cookies .btns { gap: 6px; flex-wrap: nowrap; flex-shrink: 0; }
.cookies .btn-sm { min-height: 34px; padding: 6px 12px; font-size: 0.8rem; border-radius: 9px; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: 1.25fr 0.85fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .offer { grid-template-columns: 1.4fr 1fr; padding: 48px; }
  .about { grid-template-columns: 240px 1fr; gap: 48px; }
  .mobile-bar { display: none; }
  .cookies { bottom: 16px; left: 16px; right: auto; margin: 0; }
  .footer { padding-bottom: 56px; }
}
@media (max-width: 639px) {
  .topbar .container > :last-child { display: none; }
  .header .btn-desktop { display: none; }
  .section { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
