/* Conversion landings — Dr. Juan José de Benito */
:root {
  --emerald: #059669;
  --emerald-700: #047857;
  --emerald-soft: #10b981;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #fff;
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --container: 720px;
  --sticky-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding-left: 1.2rem; }
li { margin-bottom: 0.45rem; color: var(--slate-700); }

.container { width: min(var(--container), calc(100% - 2rem)); margin: 0 auto; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 1rem;
}
.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title { font-weight: 800; font-size: 0.95rem; color: var(--emerald-700); }
.brand-sub { font-size: 0.75rem; color: var(--slate-500); font-weight: 500; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--emerald); color: var(--white);
  font-weight: 700; font-size: 0.9rem;
  padding: 0.65rem 1rem; border-radius: 999px;
}
.nav-cta:hover { background: var(--emerald-700); }

/* Hero */
.hero {
  background: linear-gradient(160deg, #020617 0%, #0f172a 55%, #064e3b 100%);
  color: var(--white);
  padding: 2.75rem 0 3rem;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.72rem; font-weight: 700; color: #6ee7b7; margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 0.85rem;
}
.hero-lead { font-size: 1.05rem; color: rgba(255,255,255,0.82); margin-bottom: 1.5rem; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.trust-pill {
  font-size: 0.78rem; font-weight: 600;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
  padding: 0.4rem 0.7rem; border-radius: 999px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 1.25rem; border-radius: 12px;
  border: 2px solid transparent; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--emerald); color: var(--white); }
.btn-primary:hover { background: var(--emerald-700); }
.btn-secondary {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); }
.btn-outline {
  background: var(--white); color: var(--emerald-700);
  border-color: var(--emerald); 
}
.btn-outline:hover { background: #ecfdf5; }
.btn-ghost {
  background: var(--slate-100); color: var(--slate-900); border-color: var(--slate-200);
}
.btn-ghost:hover { background: var(--slate-200); }
.btn-block { width: 100%; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe57; }

/* Sections */
.section { padding: 2.75rem 0; }
.section-muted { background: var(--slate-100); }
.section h2 {
  font-size: 1.35rem; line-height: 1.25; margin-bottom: 0.75rem; letter-spacing: -0.01em;
}
.section > .container > p.lead,
.section .lead { color: var(--slate-600); margin-bottom: 1.25rem; }
.section p { margin-bottom: 0.9rem; color: var(--slate-700); }

.card-list { display: grid; gap: 0.75rem; }
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-md);
}
.card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.card p { margin: 0; font-size: 0.95rem; }

.check-list { list-style: none; padding: 0; }
.check-list li {
  position: relative; padding-left: 1.7rem; margin-bottom: 0.65rem; color: var(--slate-700);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35rem;
  width: 1rem; height: 1rem; border-radius: 999px;
  background: #ecfdf5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/0.65rem no-repeat;
  border: 1px solid #a7f3d0;
}

.two-col { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .two-col { grid-template-columns: 1fr 1fr; } }

.sede-card, .cred-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.sede-card strong, .cred-card strong { display: block; margin-bottom: 0.25rem; }
.sede-card span, .cred-card span { color: var(--slate-600); font-size: 0.92rem; }

/* FAQ */
.faq details {
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
  background: var(--white);
}
.faq summary {
  font-weight: 700; cursor: pointer; list-style: none;
  color: var(--slate-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { margin-bottom: 0.5rem; color: var(--emerald-700); }
.faq details p { margin: 0; font-size: 0.95rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #047857 0%, #059669 54%, #0d9488 100%);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.88); margin-bottom: 1.25rem; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-secondary { color: #fff; }

/* Footer */
.footer {
  padding: 2rem 0 1.5rem;
  border-top: 1px solid var(--slate-200);
  font-size: 0.85rem; color: var(--slate-500); text-align: center;
}
.footer a { color: var(--emerald-700); font-weight: 600; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  justify-content: center; margin: 0.75rem 0 1rem;
}
.footer-links a { color: var(--slate-600); font-weight: 500; }
.footer-links a:hover { color: var(--emerald-700); }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--slate-200);
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.08);
}
.sticky-cta-inner {
  width: min(var(--container), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.sticky-cta .btn { padding: 0.75rem 0.5rem; font-size: 0.88rem; }
.sticky-cta .btn-primary { grid-column: 1 / -1; }
.sticky-cta.wa-on .btn-primary { grid-column: auto; }

.note {
  font-size: 0.88rem; color: var(--slate-500);
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 12px; padding: 0.85rem 1rem; margin-top: 1rem;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 0; }
.tag {
  font-size: 0.75rem; font-weight: 600;
  background: #ecfdf5; color: var(--emerald-700);
  border: 1px solid #a7f3d0;
  padding: 0.3rem 0.6rem; border-radius: 999px;
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
}
