/* ==============================================
   ENTENDER EL DERECHO — Sistema de diseño
   ============================================== */

:root {
  --navy: #1E2761;
  --navy-deep: #0E1530;
  --ice: #CADCFC;
  --gold: #F3B61F;
  --gold-soft: #FCEAB6;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --text: #0E1530;
  --muted: #6B7280;
  --border: #E5E7EB;
  --green: #16A34A;
  --red: #DC2626;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-weight: 700; }
h2 { font-weight: 600; }

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ==============================================
   HEADER (compartido)
   ============================================== */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,250,252,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}
.logo {
  display: flex; align-items: center;
  padding: 6px 0;
  flex-shrink: 0;
  min-width: 0;
}
.logo img, .logo svg {
  height: 72px; width: auto;
  max-width: none;
  max-height: none;
  display: block;
  transition: transform .2s;
}
.logo:hover img, .logo:hover svg {
  transform: scale(1.03);
}
@media (max-width: 720px) {
  .logo img, .logo svg { height: 60px; }
}
@media (max-width: 480px) {
  .logo img, .logo svg { height: 48px; }
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.btn-nav {
  background: var(--navy); color: var(--white) !important;
  padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: transform .15s, background .2s;
}
.btn-nav:hover { background: var(--navy-deep); transform: translateY(-1px); }
@media (max-width: 720px) {
  .nav-links a:not(.btn-nav) { display: none; }
}

/* ==============================================
   BUTTONS
   ============================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 999px; font-weight: 600; font-size: 16px;
  border: none; cursor: pointer; transition: all .2s;
}
.btn-primary {
  background: var(--gold); color: var(--navy-deep);
}
.btn-primary:hover { background: #FFD256; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(243,182,31,0.3); }
.btn-secondary {
  background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-outline {
  background: transparent; color: var(--navy); border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ==============================================
   HERO genérico
   ============================================== */
.hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at 80% 20%, rgba(243,182,31,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(202,220,252,0.12) 0%, transparent 50%);
  color: var(--white);
  padding: 100px 0 120px;
  position: relative; overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.hero h1 {
  font-size: clamp(36px, 6vw, 72px); margin-bottom: 24px; color: var(--white);
}
.hero h1 .accent { font-style: italic; color: var(--gold); font-weight: 600; }
.hero p.lead {
  font-size: 19px; color: var(--ice); margin-bottom: 36px; max-width: 680px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 880px) {
  .hero { padding: 60px 0 80px; }
}

/* ==============================================
   SECTIONS comunes
   ============================================== */
section { padding: 100px 0; }
.section-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(30px, 5vw, 48px); color: var(--navy); margin-bottom: 16px;
  max-width: 720px;
}
.section-subtitle {
  font-size: 18px; color: var(--muted); max-width: 680px; margin-bottom: 56px;
}

/* ==============================================
   CARDS
   ============================================== */
.cards-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.cards-2 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.card {
  background: var(--white); border-radius: 20px; padding: 36px 32px;
  border: 1px solid var(--border); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(30,39,97,0.08); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gold-soft); display: grid; place-items: center;
  margin-bottom: 20px;
  font-size: 24px;
}
.card h3 { font-size: 22px; color: var(--navy); margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--muted); line-height: 1.65; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; font-weight: 600; font-size: 15px; color: var(--navy);
  transition: gap .2s;
}
.card-link:hover { gap: 12px; }
.card-link::after { content: '→'; }
@media (max-width: 880px) { .cards-3 { grid-template-columns: 1fr; } .cards-2 { grid-template-columns: 1fr; } }

/* ==============================================
   FOOTER (compartido)
   ============================================== */
footer.site-footer {
  background: var(--navy-deep); color: var(--ice); padding: 64px 0 32px; font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px;
}
.footer-grid h4 {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.footer-grid a { display: block; padding: 6px 0; color: var(--ice); transition: color .2s; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  color: rgba(202,220,252,0.6); font-size: 13px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==============================================
   FAB WhatsApp
   ============================================== */
.fab-wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  background: #25D366; color: white; border-radius: 50%;
  width: 60px; height: 60px; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
  transition: transform .2s;
}
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 32px; height: 32px; fill: white; }

/* ==============================================
   ARTÍCULOS (blog)
   ============================================== */
.article-card {
  background: var(--white); border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(30,39,97,0.08); }
.article-card-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--white); padding: 32px;
}
.article-tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: rgba(243,182,31,0.2); color: var(--gold);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.article-card-header h3 {
  color: var(--white); font-size: 22px; margin-bottom: 8px;
}
.article-card-meta { font-size: 13px; color: var(--ice); }
.article-card-body { padding: 32px; flex: 1; display: flex; flex-direction: column; }
.article-card-body p { font-size: 15px; color: var(--muted); margin-bottom: 20px; flex: 1; }

/* Artículo individual */
article.post {
  max-width: 760px; margin: 0 auto; padding: 60px 24px;
}
article.post .post-meta {
  font-size: 13px; color: var(--muted); margin-bottom: 16px;
}
article.post h1 {
  font-size: clamp(32px, 5vw, 52px); color: var(--navy); margin-bottom: 24px;
}
article.post .lead-paragraph {
  font-size: 20px; line-height: 1.6; color: var(--text);
  margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border);
}
article.post h2 {
  font-size: 28px; color: var(--navy); margin-top: 40px; margin-bottom: 16px;
}
article.post p {
  font-size: 17px; color: var(--text); margin-bottom: 16px; line-height: 1.7;
}
article.post ul, article.post ol {
  font-size: 17px; padding-left: 24px; margin-bottom: 16px;
}
article.post li { margin-bottom: 8px; }
article.post blockquote {
  border-left: 4px solid var(--gold); padding: 8px 24px;
  margin: 24px 0; font-style: italic; color: var(--muted); font-size: 18px;
}

/* ==============================================
   SERVICIOS
   ============================================== */
.service-row {
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: flex-start;
  padding: 32px 0; border-bottom: 1px solid var(--border);
}
.service-row:last-child { border-bottom: none; }
.service-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--gold-soft); display: grid; place-items: center;
  flex-shrink: 0; font-size: 28px;
}
.service-content h3 { font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.service-content p { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.service-content ul { padding-left: 20px; font-size: 14px; color: var(--text); }
.service-content li { margin-bottom: 4px; }

/* ==============================================
   FORMULARIO contacto
   ============================================== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600; font-size: 14px;
  margin-bottom: 8px; color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 14px 18px; border-radius: 12px;
  border: 1px solid var(--border); font-size: 16px; font-family: inherit;
  background: var(--white); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,39,97,0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* CTA section reutilizable */
.cta-final {
  background: var(--navy);
  background-image: radial-gradient(ellipse at 50% 100%, rgba(243,182,31,0.25) 0%, transparent 60%);
  color: var(--white); text-align: center; padding: 100px 0;
}
.cta-final h2 { color: var(--white); font-size: clamp(32px, 5vw, 56px); margin-bottom: 24px; }
.cta-final p { font-size: 19px; color: var(--ice); margin-bottom: 40px; max-width: 580px; margin-left: auto; margin-right: auto; }
