/* ==========================================================================
   PDFPrisma - Modern Design System & Global Styles
   ========================================================================== */

/* Fuentes servidas desde el propio dominio (licencia SIL OFL; subconjunto latino, fuentes variables):
   más rápido que Google Fonts y sin enviar la IP del visitante a terceros */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand Palette - JapalTools */
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-light: rgba(79, 70, 229, 0.08);
  --primary-glow: rgba(79, 70, 229, 0.28);
  
  --secondary: #EC4899;
  --secondary-hover: #DB2777;
  --secondary-light: rgba(236, 72, 153, 0.1);
  
  --accent: #0EA5E9;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Light Theme Colors */
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-subtle: #F1F5F9;
  
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;
  
  --border-color: #E2E8F0;
  --border-subtle: #EDF2F7;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 25px var(--primary-glow);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #EC4899 100%);
  --grad-hero: radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.12) 0%, rgba(236, 72, 153, 0.05) 50%, transparent 70%);
  --grad-card-hover: linear-gradient(180deg, rgba(79, 70, 229, 0.03) 0%, transparent 100%);

  /* Layout */
  --header-height: 72px;
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-page: #0B0F19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1F2937;
  --bg-subtle: #1E293B;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-inverse: #0F172A;
  
  --border-color: #1E293B;
  --border-subtle: #162032;
  
  --primary-light: rgba(225, 29, 72, 0.15);
  --secondary-light: rgba(79, 70, 229, 0.15);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 35px rgba(225, 29, 72, 0.35);

  --grad-hero: radial-gradient(circle at 50% 0%, rgba(225, 29, 72, 0.15) 0%, transparent 70%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

[data-theme="dark"] .site-header {
  background: rgba(17, 24, 39, 0.85);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text-main);
  transition: var(--transition);
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 4px 8px var(--primary-glow));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.1) rotate(-4deg);
}

.brand-name {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.brand-name-accent {
  background: linear-gradient(135deg, #6366F1 0%, #A855F7 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* ==========================================================================
   Dropdown Megamenu de Herramientas
   ========================================================================== */
.nav-item-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dropdown-chevron {
  transition: transform 0.25s ease;
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: 580px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 20px 35px -10px var(--primary-glow);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.nav-item-dropdown:hover .dropdown-megamenu,
.nav-item-dropdown.open .dropdown-megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(6px);
}

.dropdown-megamenu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.megamenu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.megamenu-category {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.megamenu-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.megamenu-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
}

.megamenu-item:hover {
  background: var(--bg-subtle);
  transform: translateX(3px);
}

.megamenu-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.megamenu-item:hover .megamenu-icon {
  transform: scale(1.1);
}

.megamenu-icon svg {
  width: 18px;
  height: 18px;
}

.icon-merge { background: rgba(79, 70, 229, 0.12); color: #4F46E5; }
.icon-split { background: rgba(14, 165, 233, 0.12); color: #0EA5E9; }
.icon-compress { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.icon-rotate { background: rgba(245, 158, 11, 0.12); color: #F59E0B; }
.icon-pdf2img { background: rgba(168, 85, 247, 0.12); color: #A855F7; }
.icon-img2pdf { background: rgba(236, 72, 153, 0.12); color: #EC4899; }
.icon-extract { background: rgba(99, 102, 241, 0.12); color: #6366F1; }
.icon-protect { background: rgba(100, 116, 139, 0.15); color: #475569; }

[data-theme="dark"] .icon-protect { color: #94A3B8; }

.megamenu-info {
  display: flex;
  flex-direction: column;
}

.megamenu-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.megamenu-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Switcher */
.lang-switch-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.15rem 0.35rem;
  gap: 0.2rem;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  /* Más oscuro que --text-muted: sobre --bg-subtle este no llega al contraste mínimo (4,5:1) */
  color: #475569;
  transition: var(--transition);
}

[data-theme="dark"] .lang-btn {
  color: var(--text-muted);
}

.lang-btn .flag {
  font-size: 0.9rem;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.lang-divider {
  color: var(--border-color);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Theme Toggle Button */
.btn-icon {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--border-color);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 5rem 0 3.5rem;
  background: var(--grad-hero);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 380px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.16) 0%, rgba(124, 58, 237, 0.1) 45%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

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

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(225, 29, 72, 0.2);
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--success);
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
   Tools Grid Catalog
   ========================================================================== */
.tools-section {
  padding: 3rem 0 5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px -10px rgba(225, 29, 72, 0.12), var(--shadow-xl);
  border-color: rgba(225, 29, 72, 0.45);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.tool-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

/* Varied Tool Icon Colors */
.icon-red { background: #FFE4E6; color: #E11D48; }
.icon-indigo { background: #EEF2FF; color: #4F46E5; }
.icon-blue { background: #E0F2FE; color: #0284C7; }
.icon-emerald { background: #D1FAE5; color: #059669; }
.icon-amber { background: #FEF3C7; color: #D97706; }
.icon-purple { background: #F3E8FF; color: #9333EA; }

[data-theme="dark"] .icon-red { background: rgba(225, 29, 72, 0.2); color: #FB7185; }
[data-theme="dark"] .icon-indigo { background: rgba(79, 70, 229, 0.2); color: #818CF8; }
[data-theme="dark"] .icon-blue { background: rgba(2, 132, 199, 0.2); color: #38BDF8; }
[data-theme="dark"] .icon-emerald { background: rgba(5, 150, 105, 0.2); color: #34D399; }
[data-theme="dark"] .icon-amber { background: rgba(217, 119, 6, 0.2); color: #FBBF24; }
[data-theme="dark"] .icon-purple { background: rgba(147, 51, 234, 0.2); color: #C084FC; }

.tool-card:hover .tool-icon-wrapper {
  transform: scale(1.1);
}

.tool-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.tool-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.tool-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-muted);
}

/* ==========================================================================
   AdSense Placement Containers (Google Ads Compliant)
   ========================================================================== */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2.5rem auto;
  width: 100%;
  max-width: 970px;
  min-height: 90px;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.ad-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.ad-placeholder-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.ad-slot-sidebar {
  min-height: 250px;
  max-width: 300px;
}

/* Anuncio entre la guía y las preguntas frecuentes */
.ad-slot-content {
  margin: 2rem auto 2.5rem;
  max-width: 728px;
}

/* Lateral fijo 160x600: solo cuando sobra espacio a la derecha del contenido (1200px + lateral) */
.ad-rail {
  display: none;
}

@media (min-width: 1600px) {
  .ad-rail {
    position: fixed;
    top: calc(var(--header-height) + 1.5rem);
    right: calc((100vw - var(--max-width)) / 2 - 160px - 2rem);
    width: 160px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-subtle);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    z-index: 5;
    transition: opacity 0.25s ease;
  }

  /* Oculto mientras el pie de página está a la vista, para no taparlo */
  .ad-rail.ad-rail-hidden {
    opacity: 0;
    pointer-events: none;
  }
}

/* Mientras un hueco no tenga anuncio configurado en js/site-config.js no se muestra
   (app.js añade la clase ad-active al colocar el anuncio) */
[data-ad-position]:not(.ad-active) {
  display: none !important;
}

/* ==========================================================================
   Trust & Value Highlights
   ========================================================================== */
.features-section {
  padding: 4rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.feature-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.feature-box h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.feature-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SEO Content & FAQ (Crucial for AdSense Approval)
   ========================================================================== */
.seo-section {
  padding: 4rem 0;
}

.seo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

.seo-content h2 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.seo-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.faq-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-page);
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.25rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem;
  max-width: 320px;
}

/* h2 (no h5) para no saltar niveles de título; el aspecto lo da esta regla */
.footer-col h2 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 480px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  display: none;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.cookie-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-primary {
  background: var(--grad-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  box-shadow: 0 4px 15px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--border-color);
}

/* Responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 820px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-xl);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .nav-menu.nav-mobile-open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-item-dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-megamenu {
    position: static;
    transform: none !important;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    padding: 0.5rem 0 0.5rem 0.5rem;
    display: none;
    background: transparent;
  }

  .nav-item-dropdown.open .dropdown-megamenu {
    display: block;
  }

  .megamenu-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0 2rem;
  }
}
