/* ============================================================
   IDBM — Implantes Dentales Baratos Madrid
   Design System & Main Styles
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Colors */
  --color-primary: #1B5E8C;
  --color-primary-light: #2B7EC8;
  --color-primary-dark: #0D3A5C;
  --color-accent: #00A896;
  --color-accent-light: #00C4B0;
  --color-accent-dark: #007A6E;

  --color-white: #FFFFFF;
  --color-neutral-50: #F8FAFC;
  --color-neutral-100: #F1F5F9;
  --color-neutral-200: #E2E8F0;
  --color-neutral-300: #CBD5E1;
  --color-neutral-400: #94A3B8;
  --color-neutral-500: #64748B;
  --color-neutral-600: #475569;
  --color-neutral-700: #334155;
  --color-neutral-800: #1E293B;
  --color-neutral-900: #0F172A;

  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  --color-text: #1E293B;
  --color-text-muted: #64748B;
  --color-text-light: #94A3B8;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-bg-section: #F1F5F9;
  --color-border: #E2E8F0;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Borders */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --shadow-blue: 0 4px 20px rgba(27, 94, 140, 0.2);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
  --section-py: var(--space-20);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-neutral-800);
}

/* --- Typography Scale --- */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section-dark {
  background-color: var(--color-neutral-800);
  color: var(--color-white);
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-2-wide { grid-template-columns: 2fr 1fr; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* --- Section Header --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--color-neutral-800);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* On dark backgrounds */
.section-primary .section-label,
.section-dark .section-label {
  color: rgba(255,255,255,0.7);
}

.section-primary .section-label::before,
.section-dark .section-label::before {
  background: rgba(255,255,255,0.5);
}

.section-primary .section-title,
.section-dark .section-title {
  color: var(--color-white);
}

.section-primary .section-subtitle,
.section-dark .section-subtitle {
  color: rgba(255,255,255,0.75);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

.btn-md {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-xl);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 4px 15px rgba(0, 168, 150, 0.3);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(0, 168, 150, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-blue);
}

.btn-secondary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-outline-white {
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.9);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.18);
  color: var(--color-white);
  border-color: var(--color-white);
  box-shadow: 0 4px 15px rgba(255,255,255,0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--color-neutral-600);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--color-neutral-100);
  color: var(--color-neutral-800);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-3);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.logo-sub {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-nav {
  flex: 1;
  display: none;
  min-width: 0;
}

.main-nav.open {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}

.nav-list a {
  display: block;
  padding: var(--space-2) var(--space-2);
  font-size: 0.8125rem;
  font-weight: var(--font-medium);
  color: var(--color-neutral-600);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-primary);
  background-color: rgba(27, 94, 140, 0.06);
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.btn-call {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  padding: var(--space-2) var(--space-3);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.btn-call:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-call svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.nav-toggle:hover {
  background: var(--color-neutral-100);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-neutral-700);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 1023px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) var(--space-6);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 999;
  }

  .main-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
  }

  .nav-list a {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
  }

  .mobile-nav-ctas {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
  }

  .mobile-nav-ctas .btn {
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  /* Ocultar CTAs de móvil en escritorio */
  .mobile-nav-ctas {
    display: none;
  }

  .nav-toggle {
    display: none;
  }

  .nav-list {
    flex-wrap: nowrap;
  }
}

/* Ajustes de nav a partir de 1024px */
@media (min-width: 1024px) {
  .nav-list a {
    padding: var(--space-2) var(--space-2);
    font-size: 0.8rem;
  }

  .nav-list {
    gap: 0;
  }

  .header-inner {
    gap: var(--space-3);
  }
}

/* Teléfono visible cuando hay espacio suficiente */
@media (min-width: 1280px) {
  .btn-call {
    display: flex;
  }

  .nav-list a {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
  }

  .nav-list {
    gap: var(--space-1);
  }

  .header-inner {
    gap: var(--space-4);
  }
}

/* Page offset */
body {
  padding-top: var(--header-height);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0D3A5C 0%, #1B5E8C 50%, #2B7EC8 100%);
  overflow: hidden;
  padding: var(--space-16) 0;
}

.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.03'%3E%3Ccircle cx='30' cy='30' r='30'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  background: rgba(0, 168, 150, 0.15);
  top: -100px;
  right: -100px;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: rgba(43, 126, 200, 0.2);
  bottom: -100px;
  left: -100px;
}

/* Hero two-column grid */
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 380px;
  }
}

.hero-content {
  max-width: 640px;
}

/* Hero visual card (right column) */
.hero-visual {
  display: none;
  position: relative;
}

@media (min-width: 1024px) {
  .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }
}

.hero-glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.hero-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.hero-card-title {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-white);
  margin-bottom: 2px;
}

.hero-card-subtitle {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
}

.hero-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero-card-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255,255,255,0.85);
  font-size: var(--text-sm);
}

.hero-card-check {
  width: 22px;
  height: 22px;
  background: rgba(0, 168, 150, 0.3);
  border: 1px solid rgba(0, 196, 176, 0.4);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent-light);
  font-size: 0.7rem;
  font-weight: var(--font-bold);
}

.hero-card-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: var(--space-3) var(--space-6);
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  transition: all var(--transition-base);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 168, 150, 0.4);
}

.hero-card-cta:hover {
  background: var(--color-accent-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 168, 150, 0.5);
}

.hero-float-badges {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.hero-float-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
}

.hero-badge span {
  width: 8px;
  height: 8px;
  background: var(--color-accent-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--font-extrabold);
  color: var(--color-white);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
}

.hero h1 .highlight {
  color: var(--color-accent-light);
  position: relative;
}

.hero-description {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.8);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.75);
  font-size: var(--text-sm);
}

.hero-trust-item svg {
  color: var(--color-accent-light);
  flex-shrink: 0;
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--color-primary)/20;
  border-color: rgba(27, 94, 140, 0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  background: linear-gradient(135deg, rgba(27, 94, 140, 0.1), rgba(0, 168, 150, 0.1));
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.card-icon.accent {
  background: linear-gradient(135deg, rgba(0, 168, 150, 0.15), rgba(0, 196, 176, 0.1));
}

.card-icon.accent svg {
  color: var(--color-accent);
}

.card h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
}

.card p {
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.card-sm {
  padding: var(--space-6);
}

.card-sm .card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-4);
}

.card-sm .card-icon svg {
  width: 22px;
  height: 22px;
}

.card-sm h3 {
  font-size: var(--text-lg);
}

/* Feature card with number */
.feature-card {
  position: relative;
  padding-top: var(--space-12);
}

.feature-number {
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  color: rgba(27, 94, 140, 0.08);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Trust card */
.trust-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
}

.trust-card .card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.trust-card .card-text h4 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.trust-card .card-text p {
  font-size: var(--text-sm);
}

/* --- Benefit list --- */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.benefit-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-icon svg {
  width: 16px;
  height: 16px;
  color: white;
}

.benefit-text h4 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.benefit-text p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* --- Process / Steps --- */
.steps {
  display: grid;
  gap: var(--space-8);
  position: relative;
}

.step {
  display: flex;
  gap: var(--space-6);
}

.step-number-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-line {
  width: 2px;
  flex: 1;
  min-height: 32px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  margin-top: var(--space-3);
}

.step:last-child .step-line {
  display: none;
}

.step-content h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
  margin-top: var(--space-2);
}

.step-content p {
  color: var(--color-text-muted);
}

/* --- FAQ Accordion --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.faq-item.open {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: var(--space-4);
}

.faq-question-text {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-neutral-800);
  line-height: var(--leading-snug);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.faq-icon svg {
  width: 16px;
  height: 16px;
  color: var(--color-neutral-500);
  transition: transform var(--transition-base);
}

.faq-item.open .faq-icon {
  background: var(--color-primary);
}

.faq-item.open .faq-icon svg {
  color: white;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: var(--space-2) var(--space-6) var(--space-7);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  font-size: var(--text-base);
}

.faq-answer-inner p + p {
  margin-top: var(--space-3);
}

.faq-answer-inner a {
  color: var(--color-primary);
  font-weight: var(--font-medium);
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-neutral-700);
  margin-bottom: var(--space-2);
}

.form-label .required {
  color: var(--color-error);
  margin-left: var(--space-1);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-white);
  border: 2px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 94, 140, 0.1);
}

.form-control:invalid:not(:placeholder-shown) {
  border-color: var(--color-error);
}

.form-control::placeholder {
  color: var(--color-neutral-400);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

.form-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-neutral-300);
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  background-color: white;
  position: relative;
}

.form-check input[type="checkbox"]:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.form-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.form-check-label {
  font-size: var(--text-sm);
  color: var(--color-neutral-600);
  line-height: var(--leading-relaxed);
}

.form-check-label a {
  color: var(--color-primary);
  font-weight: var(--font-medium);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-1);
  display: none;
}

.form-control.error {
  border-color: var(--color-error);
}

.form-control.error + .form-error {
  display: block;
}

.form-microcopy {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-light);
  margin-top: var(--space-3);
  line-height: var(--leading-relaxed);
}

.form-card {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

.form-card h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-2);
  color: var(--color-neutral-800);
}

.form-card .form-intro {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  font-size: var(--text-sm);
}

.honeypot {
  position: absolute;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-12) var(--space-8);
}

.form-success.visible {
  display: block;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}

.form-success-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.form-success h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
}

.form-success p {
  color: var(--color-text-muted);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-neutral-900);
  color: rgba(255,255,255,0.7);
}

.footer-top {
  padding: var(--space-20) 0 var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  gap: var(--space-10);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand .logo {
  margin-bottom: var(--space-5);
}

.footer-brand .logo-main {
  color: var(--color-white);
}

.footer-tagline {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  color: rgba(255,255,255,0.5);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

.footer-contact-item a:hover {
  color: var(--color-white);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding: var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

.footer-bottom-text {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  line-height: var(--leading-relaxed);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.footer-legal-links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--color-white);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
}

.breadcrumb-item a {
  color: var(--color-primary);
}

.breadcrumb-item.current {
  color: var(--color-text);
  font-weight: var(--font-medium);
}

.breadcrumb-sep {
  color: var(--color-neutral-300);
}

/* --- Badge / Tag --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: rgba(27, 94, 140, 0.1);
  color: var(--color-primary);
}

.badge-accent {
  background: rgba(0, 168, 150, 0.1);
  color: var(--color-accent-dark);
}

.badge-neutral {
  background: var(--color-neutral-100);
  color: var(--color-neutral-600);
}

/* --- Price Display --- */
.price-card {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-base);
}

.price-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-blue);
}

.price-tag {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.price-amount {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-1);
}

.price-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* --- Sticky CTA (mobile) --- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-4);
  display: flex;
  gap: var(--space-3);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.sticky-cta .btn {
  flex: 1;
  justify-content: center;
}

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

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: var(--color-neutral-900);
  color: rgba(255,255,255,0.85);
  padding: var(--space-5) var(--space-6);
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cookie-banner-text {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.cookie-banner-text a {
  color: var(--color-accent-light);
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.cookie-banner-actions .btn-accept {
  background: var(--color-accent);
  color: white;
  border: 2px solid var(--color-accent);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cookie-banner-actions .btn-reject {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 2px solid rgba(255,255,255,0.2);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cookie-banner-actions .btn-configure {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: var(--text-sm);
  cursor: pointer;
  text-decoration: underline;
}

.cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-inner {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-8);
}

.cookie-modal h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

.cookie-category {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3);
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.cookie-category-header h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

.cookie-category p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--color-neutral-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--color-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

.toggle-switch input:disabled + .toggle-slider {
  background: var(--color-accent);
  cursor: not-allowed;
  opacity: 0.8;
}

/* --- Highlight / Info box --- */
.info-box {
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  border-left: 4px solid;
}

.info-box-blue {
  background: rgba(27, 94, 140, 0.06);
  border-color: var(--color-primary);
}

.info-box-green {
  background: rgba(0, 168, 150, 0.06);
  border-color: var(--color-accent);
}

.info-box-amber {
  background: rgba(245, 158, 11, 0.06);
  border-color: var(--color-warning);
}

.info-box p {
  font-size: var(--text-sm);
  color: var(--color-neutral-700);
  line-height: var(--leading-relaxed);
}

.info-box strong {
  color: var(--color-neutral-800);
}

/* --- Stats / Numbers --- */
.stats-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: var(--space-6);
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.1);
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-number span {
  font-size: var(--text-2xl);
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  line-height: var(--leading-snug);
}

/* Stats on light bg */
.stat-item.light {
  background: var(--color-white);
  border-color: var(--color-border);
}

.stat-item.light .stat-number {
  color: var(--color-primary-dark);
}

.stat-item.light .stat-label {
  color: var(--color-text-muted);
}

/* --- Blog Cards --- */
.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.blog-card-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-light));
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-img-placeholder {
  font-size: 3rem;
  opacity: 0.3;
}

.blog-card-body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.blog-card-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.blog-card-read-time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.blog-card-read-time::before {
  content: '·';
  margin-right: var(--space-3);
}

.blog-card h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
  color: var(--color-neutral-800);
  transition: color var(--transition-fast);
}

.blog-card:hover h3 {
  color: var(--color-primary);
}

.blog-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  flex: 1;
  margin-bottom: var(--space-5);
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  margin-top: auto;
  transition: gap var(--transition-fast);
}

.blog-card:hover .blog-card-link {
  gap: var(--space-3);
}

.blog-card-link svg {
  width: 16px;
  height: 16px;
}

/* --- Page Hero (interior pages) --- */
.page-hero {
  background: linear-gradient(135deg, #091f35 0%, var(--color-primary-dark) 40%, var(--color-primary) 100%);
  padding: var(--space-12) 0 var(--space-10);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(0, 168, 150, 0.12);
  filter: blur(80px);
  top: -150px;
  right: -100px;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(43, 126, 200, 0.15);
  filter: blur(60px);
  bottom: -100px;
  left: -80px;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero .section-label {
  color: var(--color-accent-light);
}

.page-hero .section-label::before {
  background: var(--color-accent-light);
}

.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-5);
  line-height: var(--leading-tight);
}

.page-hero p,
.page-hero-description {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
}

.page-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-accent) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::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%3Ccircle cx='30' cy='30' r='30'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: var(--font-extrabold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.text-white { color: var(--color-white); }

.bg-white { background: var(--color-white); }
.bg-alt { background: var(--color-bg-alt); }

.font-bold { font-weight: var(--font-bold); }
.font-semibold { font-weight: var(--font-semibold); }
.font-medium { font-weight: var(--font-medium); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Divider --- */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

/* --- Prose (article content) --- */
.prose {
  max-width: 800px;
  line-height: var(--leading-relaxed);
}

.prose h2 {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-neutral-800);
  margin-top: var(--space-10);
  margin-bottom: var(--space-5);
  line-height: var(--leading-tight);
}

.prose h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--color-neutral-800);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.prose h4 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-neutral-700);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.prose p {
  color: var(--color-neutral-700);
  margin-bottom: var(--space-5);
}

.prose ul, .prose ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  color: var(--color-neutral-700);
  margin-bottom: var(--space-2);
  line-height: var(--leading-relaxed);
}

.prose a {
  color: var(--color-primary);
  font-weight: var(--font-medium);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose strong {
  color: var(--color-neutral-800);
  font-weight: var(--font-semibold);
}

.prose blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-5);
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--color-neutral-600);
}

.prose .info-box {
  margin: var(--space-8) 0;
}

/* Article header */
.article-header {
  margin-bottom: var(--space-10);
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.article-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.article-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
}

.article-toc {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin: var(--space-8) 0;
}

.article-toc h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.article-toc ol {
  padding-left: var(--space-5);
  margin-bottom: 0;
}

.article-toc li {
  margin-bottom: var(--space-2);
}

.article-toc a {
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-decoration: none;
}

.article-toc a:hover {
  text-decoration: underline;
}

/* Article CTA box */
.article-cta-box {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  color: white;
  margin: var(--space-10) 0;
  text-align: center;
}

.article-cta-box h3 {
  color: white;
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.article-cta-box p {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}

/* --- Responsive font sizes --- */
@media (min-width: 768px) {
  .section-title {
    font-size: var(--text-4xl);
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- WhatsApp Float Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 950;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  text-decoration: none;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  transform: scale(1.1);
  color: white;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 767px) {
  .whatsapp-float {
    display: none;
  }
  /* Header en mobile: ocultar botones redundantes con la barra inferior */
  .header-ctas .btn-primary,
  .btn-whatsapp-header {
    display: none !important;
  }
}

/* WhatsApp en header (desktop) */
.btn-whatsapp-header {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: #25D366;
  padding: var(--space-2) var(--space-3);
  border: 2px solid #25D366;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-whatsapp-header:hover {
  background: #25D366;
  color: white;
}

.btn-whatsapp-header svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* WhatsApp en header: solo icono, siempre */
@media (min-width: 1280px) {
  .btn-whatsapp-header {
    display: flex;
    padding: var(--space-2);
    width: 36px;
    height: 36px;
    justify-content: center;
  }
  .btn-whatsapp-header span {
    display: none;
  }
}

/* WhatsApp en sticky CTA móvil */
.btn-whatsapp {
  background: #25D366;
  color: white !important;
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  color: white !important;
}

/* --- Print --- */
@media print {
  .site-header,
  .site-footer,
  .sticky-cta,
  .cookie-banner {
    display: none !important;
  }

  body {
    padding-top: 0;
  }
}
