/* Colivea · estilo común para páginas secundarias
   Consistente con index.html (Inter, azul #1e40af, amber CTA #f59e0b) */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: #1f2937;
  line-height: 1.65;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

a { color: #1e40af; text-decoration: none; transition: color 0.15s; }
a:hover { color: #1e3a8a; text-decoration: underline; }

/* NAV */
.c-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0; padding: 14px 24px;
}
.c-nav-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.c-nav-logo { font-weight: 800; font-size: 22px; color: #1e40af; letter-spacing: -0.5px; }
.c-nav-logo span { color: #f59e0b; }
.c-nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; font-weight: 600; }
.c-nav-links a { color: #475569; }
.c-nav-links a:hover { color: #1e40af; }
.c-nav-cta {
  background: #f59e0b; color: #1e3a8a !important; padding: 9px 18px; border-radius: 8px;
  font-weight: 700; transition: transform 0.15s;
}
.c-nav-cta:hover { transform: translateY(-1px); text-decoration: none !important; }

/* CONTAINER */
.c-container { max-width: 800px; margin: 0 auto; padding: 40px 24px; }
.c-container-wide { max-width: 1180px; margin: 0 auto; padding: 40px 24px; }

/* HEADINGS */
h1 {
  color: #1e3a8a; font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  letter-spacing: -0.5px; margin: 0 0 20px; line-height: 1.15;
}
h2 { color: #1e40af; font-size: 22px; font-weight: 700; margin: 30px 0 12px; }
h3 { color: #1e40af; font-size: 18px; font-weight: 700; margin: 22px 0 8px; }

/* CARDS */
.c-card {
  background: white; border-radius: 14px; padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(30,64,175,0.04);
  margin: 20px 0; border: 1px solid #e2e8f0;
}

/* MUTED / META */
.c-muted { color: #64748b; font-size: 14px; }
.c-tag {
  display: inline-block; padding: 4px 12px; background: #dbeafe; color: #1e40af;
  border-radius: 999px; font-size: 12px; font-weight: 600; margin: 2px;
}

/* CTA BUTTONS */
.c-cta {
  display: inline-block; background: #1e40af; color: white !important;
  padding: 12px 28px; border-radius: 10px; font-weight: 700; font-size: 15px;
  transition: transform 0.15s, box-shadow 0.2s; margin: 6px 4px;
  box-shadow: 0 4px 14px rgba(30,64,175,0.25);
}
.c-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(30,64,175,0.35); text-decoration: none !important; }
.c-cta.amber { background: #f59e0b; color: #1e3a8a !important; box-shadow: 0 4px 14px rgba(245,158,11,0.35); }
.c-cta.wa { background: #25d366; box-shadow: 0 4px 14px rgba(37,211,102,0.3); }
.c-cta.ghost { background: transparent; color: #1e40af !important; border: 2px solid #1e40af; box-shadow: none; }

/* FORMS */
.c-form { background: white; padding: 32px; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.c-form label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 14px; color: #374151; }
.c-form input, .c-form select, .c-form textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid #cbd5e1; border-radius: 8px;
  font-family: inherit; font-size: 15px; transition: border 0.15s;
}
.c-form input:focus, .c-form select:focus, .c-form textarea:focus {
  outline: none; border-color: #1e40af;
}
.c-form textarea { min-height: 100px; resize: vertical; }
.c-form .c-hint { margin: 6px 0 0; font-size: 12.5px; color: #64748b; line-height: 1.4; }
.c-form input:invalid:not(:placeholder-shown) { border-color: #dc2626; }

/* DETAILS / FAQ */
details.c-faq {
  background: white; padding: 14px 20px; border-radius: 10px;
  margin: 10px 0; border: 1px solid #e2e8f0; transition: border 0.15s;
}
details.c-faq[open] { border-color: #1e40af; background: #f8fafc; }
details.c-faq summary {
  font-weight: 700; cursor: pointer; color: #1e40af; list-style: none; user-select: none;
  display: flex; justify-content: space-between; align-items: center;
}
details.c-faq summary::-webkit-details-marker { display: none; }
details.c-faq summary::after { content: "+"; font-size: 22px; color: #64748b; }
details.c-faq[open] summary::after { content: "−"; }
details.c-faq p { margin: 12px 0 4px 0; color: #334155; }

/* TABLES */
.c-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.c-table th, .c-table td { padding: 12px 14px; border-bottom: 1px solid #e2e8f0; text-align: left; font-size: 14px; }
.c-table th { background: #f1f5f9; font-weight: 700; color: #1e3a8a; }

/* BLOG ARTICLES */
.c-article { border-bottom: 1px solid #e2e8f0; padding: 24px 0; }
.c-article h2 { margin: 0 0 6px; }
.c-article h2 a { color: #1e40af; }
.c-article .excerpt { color: #475569; margin: 10px 0; }

/* CTA BOX */
.c-cta-box {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  padding: 22px 26px; border-radius: 12px; margin: 28px 0;
  border-left: 4px solid #1e40af;
}

/* ALERT / NOTICE */
.c-alert { padding: 16px 20px; border-radius: 10px; margin: 16px 0; font-size: 14px; }
.c-alert.ok { background: #d1fae5; color: #065f46; }
.c-alert.err { background: #fee2e2; color: #991b1b; }
.c-alert.warn { background: #fef3c7; color: #92400e; }
.c-alert.info { background: #dbeafe; color: #1e40af; }

/* FOOTER */
.c-footer {
  background: #0f172a; color: #cbd5e1; padding: 40px 24px; margin-top: 60px;
  text-align: center; font-size: 13px; line-height: 1.8;
}
.c-footer a { color: #94a3b8; }
.c-footer a:hover { color: white; }

/* BACK LINK */
.c-back { color: #1e40af; display: inline-block; margin-bottom: 16px; font-weight: 600; font-size: 14px; }
.c-back::before { content: "← "; }

/* HERO COMPACTO */
.c-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white; padding: 50px 30px; border-radius: 16px; margin: 24px 0;
  text-align: center;
}
.c-hero h1 { color: white; }
.c-hero .c-muted { color: #dbeafe; }

/* LANG SWITCH */
.c-lang { position: absolute; top: 20px; right: 24px; font-size: 13px; color: #64748b; }
.c-lang strong { color: #1e40af; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .c-container { padding: 24px 18px; }
  .c-nav { padding: 12px 16px; }
  .c-nav-links { gap: 14px; font-size: 13px; }
  h1 { font-size: 28px; }
  .c-form { padding: 20px; }
}
