/* ============================================================
   STYLES.CSS - Checker Alquiler Legal (Zonas Tensionadas)
   Mobile-first, aspecto institucional/legal con efectos modernos
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-900: #1a365d;
  --blue-800: #1e3a5f;
  --blue-700: #234e7a;
  --blue-600: #2b6cb0;
  --blue-500: #3182ce;
  --blue-100: #ebf4ff;
  --blue-50: #f0f7ff;

  --green-700: #276749;
  --green-600: #2f855a;
  --green-500: #48bb78;
  --green-100: #c6f6d5;
  --green-50: #f0fff4;

  --red-700: #9b2c2c;
  --red-600: #c53030;
  --red-500: #e53e3e;
  --red-100: #fed7d7;
  --red-50: #fff5f5;

  --orange-600: #dd6b20;
  --orange-500: #ed8936;
  --orange-100: #feebc8;

  --yellow-600: #d69e2e;
  --yellow-100: #fefcbf;

  --gray-900: #1a202c;
  --gray-800: #2d3748;
  --gray-700: #4a5568;
  --gray-600: #718096;
  --gray-500: #a0aec0;
  --gray-400: #cbd5e0;
  --gray-300: #e2e8f0;
  --gray-200: #edf2f7;
  --gray-100: #f7fafc;
  --gray-50: #fafbfc;

  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-glow: 0 8px 30px rgba(43, 108, 176, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1100px;
  --max-width-narrow: 720px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

/* ============================================================
   NAVBAR - Sticky with backdrop blur
   ============================================================ */
.navbar {
  background: rgba(26, 54, 93, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand:hover { text-decoration: none; }

.nav-brand span {
  opacity: 0.6;
  font-weight: 400;
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
  text-decoration: none;
}

.nav-cta {
  background: var(--orange-500) !important;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--orange-600) !important;
  transform: translateY(-1px);
}

/* --- Hamburger Menu (mobile) --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 640px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 280px;
    height: 100vh;
    background: var(--blue-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 28px 32px;
    gap: 0;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 30px rgba(0,0,0,0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.05rem;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-cta {
    margin-top: 12px;
    text-align: center;
    width: 100%;
    display: block !important;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ============================================================
   HERO - Animated gradient + floating blobs
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #1a365d 0%, #234e7a 25%, #2b6cb0 50%, #1e3a5f 75%, #1a365d 100%);
  background-size: 300% 300%;
  animation: heroGradient 12s ease infinite;
  color: var(--white);
  padding: 56px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Decorative floating blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
}

.hero-blob-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.4), transparent 70%);
  top: -120px;
  right: -80px;
  animation: blobFloat1 18s ease-in-out infinite;
}

.hero-blob-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(237,137,54,0.5), transparent 70%);
  bottom: -100px;
  left: -60px;
  animation: blobFloat2 22s ease-in-out infinite;
}

.hero-blob-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent 70%);
  top: 30%;
  left: 15%;
  animation: blobFloat3 15s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 20px) scale(1.1); }
  66% { transform: translate(20px, -15px) scale(0.95); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(25px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.9); }
}

@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -10px); }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.5;
}

/* Hero CTA - Slide fill effect */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--orange-600) 50%, var(--orange-500) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  transition: background-position 0.4s ease, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(237, 137, 54, 0.4);
  position: relative;
  overflow: hidden;
}

.hero-cta:hover {
  background-position: 0 0;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(237, 137, 54, 0.5);
  text-decoration: none;
}

/* CTA shimmer effect */
.hero-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: none;
  animation: ctaShimmer 4s ease-in-out infinite;
}

@keyframes ctaShimmer {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}

.hero-trust {
  margin-top: 20px;
  font-size: 0.82rem;
  opacity: 0.55;
}

/* ============================================================
   SCROLL REVEAL - IntersectionObserver based
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.25s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.3s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.35s; }

/* Reveal from left/right variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 56px 0; }
.section-alt { background: var(--white); }

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-900);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 0.95rem;
}

/* ============================================================
   STATS - Counter animation + hover effects
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 36px;
}

.stat-box {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue-600);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.stat-box:hover::before {
  transform: scaleX(1);
}

.stat-box .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-900);
  display: block;
}

.stat-box .stat-desc {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-top: 4px;
}

.stat-box.stat-danger .stat-value { color: var(--red-600); }
.stat-box.stat-danger::before { background: var(--red-500); }
.stat-box.stat-success .stat-value { color: var(--green-600); }
.stat-box.stat-success::before { background: var(--green-500); }

/* ============================================================
   STEPS (how it works) - Card hover effects
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: step;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  counter-increment: step;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, border-color 0.3s;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
  border-color: var(--blue-500);
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s;
}

.step-card:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(49, 130, 206, 0.4);
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 6px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ============================================================
   RIGHTS section - Card hover
   ============================================================ */
.rights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.right-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s, border-color 0.3s;
}

.right-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border-color: var(--blue-300, #90cdf4);
}

.right-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.right-card:hover .right-icon {
  transform: scale(1.1) rotate(-3deg);
}

.right-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.right-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ============================================================
   FAQ - Smooth accordion
   ============================================================ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-300);
  transition: background 0.2s;
}

.faq-item:hover {
  background: var(--gray-50);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--blue-600);
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gray-500);
  flex-shrink: 0;
  transition: transform 0.35s ease, color 0.2s;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gray-100);
}

.faq-item.open .faq-question::after {
  content: "-";
  transform: rotate(180deg);
  background: var(--blue-100);
  color: var(--blue-600);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-answer > div,
.faq-answer > p {
  overflow: hidden;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer p {
  padding: 0 0 18px;
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ============================================================
   CHECKER FORM - Enhanced inputs
   ============================================================ */
.checker-wrapper {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
}

.checker-form-section {
  flex: 1;
  padding: 32px 20px 48px;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  max-width: 580px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}

.form-card:focus-within {
  box-shadow: var(--shadow-glow);
}

.form-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 4px;
}

.form-card .form-subtitle {
  color: var(--gray-600);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.form-group label small {
  font-weight: 400;
  color: var(--gray-500);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.form-input::placeholder {
  color: var(--gray-500);
}

/* Municipio search */
.municipio-search-wrap {
  position: relative;
}

.municipio-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  max-height: 220px;
  overflow-y: auto;
  z-index: 50;
  display: none;
  box-shadow: var(--shadow-md);
}

.municipio-dropdown.active { display: block; }

.municipio-option {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.municipio-option:hover,
.municipio-option.highlighted {
  background: var(--blue-50);
}

.municipio-option .municipio-name {
  font-weight: 500;
  color: var(--gray-800);
}

.municipio-option .municipio-prov {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.municipio-option .zona-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--red-100);
  color: var(--red-600);
  flex-shrink: 0;
  margin-left: 8px;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Radio group */
.radio-group {
  display: flex;
  gap: 10px;
}

.radio-option {
  flex: 1;
  position: relative;
}

.radio-option input { display: none; }

.radio-option label.radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0;
}

.radio-option input:checked + .radio-label {
  border-color: var(--blue-600);
  background: var(--blue-50);
  color: var(--blue-900);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.radio-option label.radio-label:hover {
  border-color: var(--blue-400, #63b3ed);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 6px;
}

/* Submit button with hover effect */
.btn-check {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s, opacity 0.2s;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.btn-check:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43, 108, 176, 0.3);
}

.btn-check:active:not(:disabled) {
  transform: translateY(0);
}

.btn-check:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
  opacity: 0.7;
}

/* ============================================================
   RESULT SECTION
   ============================================================ */
.result-section {
  display: none;
  padding: 0 20px 48px;
}

.result-section.active { display: block; }

.result-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 640px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: resultSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes resultSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Result banner */
.result-banner {
  padding: 28px 24px;
  text-align: center;
}

.result-banner.legal {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: var(--white);
}

.result-banner.illegal {
  background: linear-gradient(135deg, var(--red-600), var(--red-700));
  color: var(--white);
}

.result-banner.info {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
}

.result-banner-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconBounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.result-banner h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.result-banner p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Result body */
.result-body {
  padding: 28px 24px;
}

.result-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.92rem;
}

.result-detail:last-child { border-bottom: none; }

.result-detail .detail-label {
  color: var(--gray-600);
}

.result-detail .detail-value {
  font-weight: 700;
  color: var(--gray-900);
}

.result-detail .detail-value.legal { color: var(--green-600); }
.result-detail .detail-value.illegal { color: var(--red-600); }
.result-detail .detail-value.highlight { color: var(--blue-600); }

/* Zone info */
.zone-info {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 16px 0;
  transition: transform 0.2s;
}

.zone-info.is-tensionada {
  background: var(--red-50);
  border-color: var(--red-100);
}

.zone-info h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zone-info p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Money highlight */
.money-highlight {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin: 20px 0;
}

.money-highlight .money-label {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.money-highlight .money-value {
  font-size: 2rem;
  font-weight: 800;
}

.money-highlight .money-value.legal { color: var(--green-600); }
.money-highlight .money-value.illegal { color: var(--red-600); }

.money-highlight .money-sub {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Calculation breakdown */
.calc-breakdown {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 16px 0;
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
  color: var(--gray-700);
  line-height: 1.8;
}

/* SERPAVI notice */
.serpavi-notice {
  background: var(--blue-50);
  border: 2px solid var(--blue-500);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 20px 0;
  text-align: center;
}

.serpavi-notice h3 {
  color: var(--blue-900);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.serpavi-notice p {
  color: var(--gray-700);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.btn-serpavi {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.3s;
}

.btn-serpavi:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(43, 108, 176, 0.3);
  text-decoration: none;
}

.serpavi-sub {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* ============================================================
   FORM extras (carta page)
   ============================================================ */
.form-group-divider {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin: 20px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.form-group-divider:first-of-type {
  border-top: none;
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BUTTONS - CTAs & actions
   ============================================================ */
.result-cta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
}

.btn-carta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

.btn-carta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(237, 137, 54, 0.4);
  text-decoration: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--gray-200);
  transform: translateY(-1px);
  text-decoration: none;
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn-reset {
  background: none;
  border: 1px solid var(--gray-300);
  color: var(--gray-600);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reset:hover {
  border-color: var(--gray-400);
  color: var(--gray-800);
  transform: translateY(-1px);
}

/* ============================================================
   CARTA PAGE
   ============================================================ */
.carta-preview-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 20px;
}

.carta-paper {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray-800);
  transition: filter 0.4s;
}

.carta-paper.blurred {
  filter: blur(3px);
  user-select: none;
  pointer-events: none;
}

.carta-paper h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--blue-900);
}

.carta-paper .carta-header {
  text-align: right;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.carta-paper .carta-subject {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.carta-paper .carta-signature {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-300);
}

/* Overlay CTA */
.carta-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--gray-300);
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  text-align: center;
  z-index: 50;
}

.carta-overlay h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 4px;
}

.carta-overlay p {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.btn-pay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
}

.btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(47, 133, 90, 0.35);
  text-decoration: none;
}

/* Unlocked carta */
.carta-actions {
  max-width: 700px;
  margin: 24px auto;
  padding: 0 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-print {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
}

.btn-print:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(43, 108, 176, 0.3);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  border-color: var(--gray-400);
  transform: translateY(-1px);
}

/* ============================================================
   DISCLAIMER BAR
   ============================================================ */
.disclaimer-bar {
  background: var(--yellow-100);
  border-bottom: 1px solid var(--yellow-600);
  padding: 10px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-700);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-500);
  padding: 32px 0;
  text-align: center;
  font-size: 0.82rem;
}

.footer a {
  color: var(--gray-400);
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-sources {
  margin-top: 12px;
  font-size: 0.78rem;
  opacity: 0.7;
}

/* ============================================================
   ANIMATIONS - Base
   ============================================================ */
.animate-in {
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ACCESSIBILITY - Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero {
    animation: none;
    background-size: 100% 100%;
  }

  .hero-blob { display: none; }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
  .hero h1 { font-size: 2.4rem; }

  .stats-row { grid-template-columns: repeat(3, 1fr); }

  .steps-grid { grid-template-columns: repeat(3, 1fr); }

  .rights-grid { grid-template-columns: 1fr 1fr; }

  .form-card { padding: 40px 32px; }

  .carta-paper { padding: 56px 48px; }
}

@media (min-width: 960px) {
  .hero h1 { font-size: 2.7rem; }
  .hero { padding: 72px 0 64px; }

  .section { padding: 72px 0; }
  .section-title { font-size: 1.7rem; }

  .form-card h1 { font-size: 1.7rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .navbar, .footer, .carta-overlay, .carta-actions, .disclaimer-bar, .result-cta {
    display: none !important;
  }

  .carta-paper {
    border: none;
    box-shadow: none;
    padding: 0;
    filter: none !important;
  }

  body { background: white; }

  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
}
