/* =============================================
   CALCULADORA FINIQUITO — ESTILOS GLOBALES
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=DM+Sans:wght@400;500&display=swap');

:root {
  --blue:        #1d4ed8;
  --blue-dark:   #1e3a8a;
  --blue-light:  #eff6ff;
  --blue-mid:    #bfdbfe;
  --green:       #059669;
  --green-light: #ecfdf5;
  --amber:       #d97706;
  --amber-light: #fffbeb;
  --red:         #dc2626;
  --red-light:   #fef2f2;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-400:    #9ca3af;
  --gray-600:    #4b5563;
  --gray-700:    #374151;
  --gray-900:    #111827;
  --white:       #ffffff;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 10px 40px rgba(0,0,0,.12);
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --font-head:   'Sora', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --max-width:   1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
  background: #f7f9fc;
}

/* ---- TIPOGRAFÍA ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--gray-900);
  line-height: 1.25;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem;   font-weight: 600; }

p { margin-bottom: 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .4rem; }
strong { font-weight: 600; color: var(--gray-900); }

/* ---- LAYOUT ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =============================================
   MISC / UTILS
   ============================================= */
.text-center { text-align: center; }
.margin-auto { margin: 0 auto; }

/* =============================================
   SISTEMA DE PASOS (GUIDE)
   ============================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.step-card {
  background: var(--blue-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.step-card-success {
  background: var(--green-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1.5px solid #6ee7b7;
}
.step-card-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}
.step-card-text {
  font-size: .9rem;
  color: var(--gray-600);
  margin: 0;
}
.calc-section {
  background: #f7f9fc;
  padding: 4rem 0 5rem;
}
.section-header-center {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* =============================================
   HEADER / NAV
   ============================================= */
header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .85rem;
  padding-bottom: .85rem;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.logo-icon {
  width: 32px; height: 32px;
  background: var(--blue);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  padding: 0;
}
nav ul a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color .2s;
}
nav ul a:hover { color: var(--blue); text-decoration: none; }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  font-size: .88rem !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; }

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 60%, #2563eb 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}
.hero p {
  font-size: 1.15rem;
  opacity: .88;
  max-width: 640px;
  margin: 0 auto 2rem;
  position: relative;
}
.hero-badges {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  position: relative;
}
.badge {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  padding: .3rem .85rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
}

/* =============================================
   BOTONES
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-white {
  background: var(--white);
  color: var(--blue);
}
.btn-white:hover { background: var(--blue-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-700);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-ghost {
  background: var(--gray-100);
  color: var(--gray-700);
}
.btn-ghost:hover { background: var(--gray-200); }

.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-lg { padding: .9rem 2.2rem; font-size: 1.05rem; }

/* =============================================
   CALCULADORA
   ============================================= */
.calc-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  margin-top: -2rem;
}

.calc-header {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  color: var(--white);
  padding: 1.5rem 2rem;
}
.calc-header h2 {
  color: var(--white);
  font-size: 1.3rem;
  margin: 0;
}
.calc-header p { margin: .3rem 0 0; font-size: .9rem; opacity: .85; }

.calc-body { padding: 2rem; }

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: .4rem; }

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
  font-family: var(--font-head);
}

.form-group input,
.form-group select {
  padding: .7rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}
.form-group input.error { border-color: var(--red); }

.form-group .error-msg {
  color: var(--red);
  font-size: .78rem;
  display: none;
}
.form-group .hint {
  font-size: .78rem;
  color: var(--gray-400);
  font-style: italic;
}

.checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: .6rem;
}
.checkbox-row input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.checkbox-row label { font-size: .88rem; font-weight: 500; }

.smi-warning {
  display: none;
  align-items: center;
  gap: .5rem;
  background: var(--amber-light);
  border: 1px solid #fcd34d;
  color: var(--amber);
  padding: .7rem 1rem;
  border-radius: var(--radius-md);
  font-size: .85rem;
  margin-bottom: 1rem;
}
.smi-warning.show { display: flex; }

.calc-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
}

/* Resultados */
.results {
  display: none;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1.5px solid var(--gray-200);
  animation: slideUp .4s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.result-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
}
.result-card-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .3rem;
}
.result-card-value {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
}
.result-card-sub { font-size: .8rem; color: var(--gray-400); margin-top: .2rem; }

.result-total {
  background: var(--green-light);
  border: 1.5px solid #6ee7b7;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.result-total-label {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
}
.result-total-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
}

/* Barras */
.chart-section { margin-bottom: 1.25rem; }
.chart-item { margin-bottom: .85rem; }
.chart-row {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  margin-bottom: .3rem;
  font-weight: 500;
}
.chart-track {
  height: 8px;
  background: var(--gray-200);
  border-radius: 99px;
  overflow: hidden;
}
.chart-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s cubic-bezier(.4,0,.2,1);
  width: 0;
}
.fill-blue   { background: var(--blue); }
.fill-green  { background: var(--green); }
.fill-amber  { background: var(--amber); }

.result-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.result-disclaimer {
  text-align: center;
  font-size: .8rem;
  color: var(--gray-400);
  margin-top: 1rem;
}

.cap-warning {
  display: none;
  font-size: .8rem;
  color: var(--amber);
  background: var(--amber-light);
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  margin-top: .4rem;
}

/* =============================================
   SECCIONES GENERALES
   ============================================= */
section { padding: 4rem 0; }
section.alt { background: var(--white); }

.section-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: .5rem;
}
.section-title { margin-bottom: .5rem; }
.section-sub { color: var(--gray-600); max-width: 600px; }

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 2rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}
.stat-label { font-size: .85rem; color: var(--gray-600); margin-top: .3rem; }

/* =============================================
   TABLA DE TIPOS
   ============================================= */
.table-container { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
thead tr { background: var(--blue); }
thead th {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .88rem;
  padding: .85rem 1.1rem;
  text-align: left;
}
tbody tr { border-bottom: 1px solid var(--gray-200); transition: background .15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--blue-light); }
td {
  padding: .85rem 1.1rem;
  font-size: .92rem;
}
.tag-yes { color: var(--green); font-weight: 600; }
.tag-no  { color: var(--red);   font-weight: 600; }

/* =============================================
   FAQ
   ============================================= */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-900);
  gap: 1rem;
}
.faq-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform .25s, background .2s;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--blue);
  color: var(--white);
}
.faq-answer {
  display: none;
  padding: 0 1.25rem 1.1rem;
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.faq-item.active .faq-answer { display: block; }

/* =============================================
   BLOG GRID
   ============================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 999px;
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.blog-card h2, .blog-card h3 {
  font-size: 1.05rem;
  margin-bottom: .6rem;
  line-height: 1.4;
}
.blog-card h2 a, .blog-card h3 a { color: var(--gray-900); }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--blue); text-decoration: none; }
.blog-excerpt { font-size: .88rem; color: var(--gray-600); flex: 1; margin-bottom: 1rem; }
.blog-read-more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.blog-read-more:hover { text-decoration: none; gap: .5rem; }

/* =============================================
   BREADCRUMBS
   ============================================= */
.breadcrumbs {
  font-size: .82rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--blue); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: var(--gray-400); }

/* =============================================
   ARTÍCULO
   ============================================= */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
.article-body { min-width: 0; }
.article-body h1 { margin-bottom: 1.5rem; }
.article-body h2 { margin-top: 2.5rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--blue-light); }
.article-body h3 { margin-top: 1.75rem; }
.article-body p, .article-body li { font-size: .97rem; line-height: 1.8; }
.article-body ul, .article-body ol { margin-bottom: 1rem; }

.key-box {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.key-box h4 { color: var(--blue); margin-bottom: .6rem; }
.key-box li { font-size: .9rem; }

.toc-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.toc-box h5 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-400); margin-bottom: .75rem; }
.toc-box ul { list-style: none; padding: 0; }
.toc-box li { margin-bottom: .4rem; }
.toc-box a { font-size: .88rem; color: var(--blue); }

.cta-box {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}
.cta-box h3 { color: var(--white); margin-bottom: .5rem; }
.cta-box p { opacity: .85; margin-bottom: 1.25rem; font-size: .92rem; }

/* Sidebar */
.article-sidebar { position: sticky; top: 90px; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-card h4 {
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-400);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--gray-200);
}
.sidebar-links { list-style: none; padding: 0; }
.sidebar-links li { margin-bottom: .5rem; }
.sidebar-links a { font-size: .88rem; color: var(--gray-700); }
.sidebar-links a:hover { color: var(--blue); }

/* =============================================
   CONTACTO
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-form { background: var(--white); border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-md); }
.contact-form h2 { margin-bottom: 1.5rem; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.contact-info-text h4 { font-size: .92rem; margin-bottom: .2rem; }
.contact-info-text p { font-size: .88rem; color: var(--gray-600); margin: 0; }

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.legal-content h1 { margin-bottom: .5rem; }
.legal-date { color: var(--gray-400); font-size: .85rem; margin-bottom: 2.5rem; }
.legal-content h2 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: .75rem; color: var(--blue-dark); }
.legal-content p, .legal-content li { font-size: .93rem; line-height: 1.8; }
.legal-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.legal-grid {
  display: grid;
  gap: 1rem;
}
.legal-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.legal-card h2 {
  margin-top: 0;
  border: 0;
  padding-bottom: 0;
}
.legal-note {
  background: var(--amber-light);
  border: 1px solid #fcd34d;
  color: var(--amber);
  border-radius: var(--radius-md);
  padding: .9rem 1rem;
  font-size: .88rem;
}
.legal-list {
  list-style: none;
  padding: 0;
}
.legal-list li {
  padding-left: 0;
  margin-bottom: .6rem;
}
.legal-inline-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.cookie-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  width: min(460px, calc(100vw - 2rem));
}
.cookie-consent__panel {
  background: rgba(17, 24, 39, 0.97);
  color: #e5e7eb;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}
.cookie-consent__eyebrow {
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.cookie-consent__panel h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: .6rem;
}
.cookie-consent__panel p {
  color: #cbd5e1;
  font-size: .9rem;
  margin-bottom: .8rem;
}
.cookie-consent__links {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  font-size: .84rem;
}
.cookie-consent__links a {
  color: #bfdbfe;
}
.cookie-consent__actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.cookie-consent__preferences {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 1rem;
  padding-top: 1rem;
}
.cookie-toggle {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cookie-toggle:last-of-type {
  border-bottom: 0;
}
.cookie-toggle strong {
  color: var(--white);
  display: block;
  margin-bottom: .15rem;
}
.cookie-toggle small {
  display: block;
  color: #94a3b8;
  line-height: 1.55;
}
.cookie-toggle input[type="checkbox"] {
  margin-top: .2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  flex-shrink: 0;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--gray-900);
  color: #cbd5e1;
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { color: var(--white); margin-bottom: .75rem; display: block; }
.footer-brand p { font-size: .88rem; line-height: 1.7; color: #94a3b8; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { font-size: .88rem; color: #94a3b8; transition: color .2s; }
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: #94a3b8; }

/* =============================================
   404
   ============================================= */
.not-found {
  text-align: center;
  padding: 6rem 1.25rem;
}
.not-found h1 { font-size: 6rem; color: var(--blue); margin-bottom: 1rem; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .calc-grid { grid-template-columns: 1fr; }
  .result-cards { grid-template-columns: 1fr; }
  nav ul { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 3rem 0 5rem; }
  .calc-actions { flex-direction: column; }
  .result-total { flex-direction: column; text-align: center; gap: .5rem; }
  .cookie-consent {
    right: .75rem;
    left: .75rem;
    bottom: .75rem;
    width: auto;
  }
  .cookie-consent__actions {
    flex-direction: column;
  }
}

@media print {
  header, footer, .calc-actions, .result-actions, nav { display: none; }
  .results { display: block !important; }
}
