/* ==========================================================================
   ESTAR SEGUROS PWA - LUXURY INSURTECH DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Color Palette - Midnight Luxury Dark (Default) with #1ececa & #a8d42e */
  --bg-primary: #060D1A;
  --bg-secondary: #0A162B;
  --bg-card: rgba(13, 27, 56, 0.7);
  --bg-card-hover: rgba(18, 38, 77, 0.85);
  --bg-glass: rgba(10, 22, 43, 0.65);
  --bg-glass-heavy: rgba(6, 13, 26, 0.88);
  --bg-input: rgba(16, 32, 64, 0.8);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(30, 206, 202, 0.22);
  --border-card-hover: rgba(168, 212, 46, 0.55);
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --accent-cyan: #1ececa;
  --accent-cyan-dark: #14a8a4;
  --accent-teal: #1ececa;
  --accent-lime: #a8d42e;
  --accent-emerald: #a8d42e;
  --accent-blue: #169e9a;
  --accent-blue-deep: #0e4450;
  --accent-gold: #a8d42e;
  --accent-rose: #F43F5E;
  
  --grad-cyan-blue: linear-gradient(135deg, #1ececa 0%, #a8d42e 100%);
  --grad-brand: linear-gradient(135deg, #1ececa 0%, #a8d42e 100%);
  --grad-brand-reverse: linear-gradient(135deg, #a8d42e 0%, #1ececa 100%);
  --grad-gold: linear-gradient(135deg, #a8d42e 0%, #1ececa 100%);
  --grad-card: linear-gradient(145deg, rgba(14, 38, 68, 0.55) 0%, rgba(8, 20, 42, 0.65) 100%);
  --grad-hero: radial-gradient(circle at 50% 10%, rgba(30, 206, 202, 0.16) 0%, rgba(168, 212, 46, 0.1) 45%, rgba(6, 13, 26, 0) 80%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-cyan: 0 0 25px rgba(30, 206, 202, 0.3);
  --shadow-glow: 0 0 35px rgba(30, 206, 202, 0.4);
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --header-height: 76px;
  --bottom-bar-height: 68px;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #F4F7FC;
  --bg-secondary: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-glass-heavy: rgba(255, 255, 255, 0.95);
  --bg-input: #EDF2F7;
  
  --border-subtle: rgba(0, 30, 80, 0.08);
  --border-card: rgba(30, 206, 202, 0.28);
  --border-card-hover: rgba(168, 212, 46, 0.6);
  
  --text-primary: #0A192F;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  
  --accent-cyan: #0faaa6;
  --accent-cyan-dark: #0b807d;
  --accent-teal: #0faaa6;
  --accent-lime: #7ea31a;
  --accent-emerald: #7ea31a;
  --accent-blue: #0faaa6;
  --accent-blue-deep: #07383a;
  
  --grad-cyan-blue: linear-gradient(135deg, #0faaa6 0%, #7ea31a 100%);
  --grad-brand: linear-gradient(135deg, #0faaa6 0%, #7ea31a 100%);
  --grad-card: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
  --grad-hero: radial-gradient(circle at 50% 10%, rgba(30, 206, 202, 0.12) 0%, rgba(168, 212, 46, 0.08) 50%, rgba(244, 247, 252, 0) 80%);
  
  --shadow-sm: 0 2px 8px rgba(0, 30, 80, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 30, 80, 0.1);
  --shadow-lg: 0 16px 40px rgba(0, 30, 80, 0.14);
  --shadow-cyan: 0 0 20px rgba(30, 206, 202, 0.22);
  --shadow-glow: 0 0 30px rgba(30, 206, 202, 0.3);
}

/* ==========================================================================
   APP PAGE ROUTING (SEPARATE SCREENS / VIEWS)
   ========================================================================== */

.app-page {
  display: none;
  opacity: 0;
  min-height: calc(100vh - var(--header-height) - 180px);
  padding: 2.5rem 0 4.5rem;
  position: relative;
}

.app-page.active {
  display: block;
  opacity: 1;
  animation: pageEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page Top Navigation (Back button & Breadcrumb) */
.page-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.back-to-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border-card);
  transition: all var(--transition-fast);
}

.back-to-home-btn:hover {
  background: rgba(0, 229, 255, 0.18);
  transform: translateX(-3px);
}

.page-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Home Quick Access Cards Grid */
.home-shortcuts-section {
  padding: 3rem 0 1rem;
}

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

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

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

.shortcut-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.shortcut-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #1ececa 0%, #a8d42e 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.shortcut-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-cyan);
}

.shortcut-card:hover::after {
  opacity: 1;
}

.shortcut-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.shortcut-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.shortcut-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.shortcut-action-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition-fast);
}

.shortcut-card:hover .shortcut-action-link {
  gap: 0.7rem;
}

/* Specific Highlight Shortcuts */
.shortcut-card.card-sos {
  border-color: rgba(239, 68, 68, 0.3);
}

.shortcut-card.card-sos::after {
  background: #EF4444;
}

.shortcut-card.card-sos .shortcut-icon-box {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

.shortcut-card.card-sos:hover {
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.25);
  border-color: #EF4444;
}

.shortcut-card.card-sos .shortcut-action-link {
  color: #EF4444;
}

.shortcut-card.card-quote {
  background: linear-gradient(145deg, rgba(14, 35, 78, 0.6) 0%, rgba(6, 13, 26, 0.7) 100%);
  border-color: var(--accent-cyan);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  padding-bottom: var(--bottom-bar-height);
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Background Atmospheric Glow */
.bg-glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  transition: opacity var(--transition-normal);
}

.bg-glow-1 {
  width: 450px;
  height: 450px;
  top: -100px;
  left: 20%;
  background: radial-gradient(circle, #1ececa 0%, transparent 70%);
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  top: 40%;
  right: -100px;
  background: radial-gradient(circle, #a8d42e 0%, transparent 70%);
}

/* Top Notification / SUDEASEG Bar */
.top-bar {
  background: rgba(6, 13, 26, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  padding: 0.4rem 0;
  color: var(--text-secondary);
  position: relative;
  z-index: 101;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sudeaseg-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.sudeaseg-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.top-contacts {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.top-link:hover {
  color: var(--accent-cyan);
}

/* Header & Navigation Bar */
.main-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: all var(--transition-normal);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border-card);
}

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

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0e234e 0%, #060d1a 100%);
  border: 1.5px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-cyan);
  position: relative;
  overflow: hidden;
}

.logo-badge svg {
  width: 32px;
  height: 32px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

[data-theme="light"] .brand-name {
  background: linear-gradient(135deg, #0A192F 30%, #0077B6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-slogan {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Desktop Nav Links */
.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--accent-cyan);
  font-weight: 600;
}

.nav-pill-quote {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(30, 58, 138, 0.25));
  border: 1px solid var(--border-card);
  color: var(--accent-cyan) !important;
  font-weight: 600;
}

.nav-pill-quote:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(30, 58, 138, 0.4));
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* Mega Dropdown for Policies */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 480px;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-fast);
  z-index: 150;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

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

.dropdown-card {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.dropdown-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-card);
  transform: translateY(-2px);
}

.dropdown-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.dropdown-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-sos {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-sos::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 3s infinite;
}

.btn-sos:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
}

.btn-portal {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

@media (min-width: 768px) {
  .btn-portal {
    display: inline-flex;
  }
}

.btn-portal:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.theme-toggle-btn, .install-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover, .install-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--text-primary);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Offline Banner */
.offline-alert-bar {
  display: none;
  background: #F59E0B;
  color: #060D1A;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  padding: 0.45rem 1rem;
  position: sticky;
  top: var(--header-height);
  z-index: 99;
  box-shadow: var(--shadow-sm);
}

.offline-alert-bar.visible {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 3rem 0 4rem;
  background: var(--grad-hero);
  overflow: hidden;
}

@media (min-width: 992px) {
  .hero-section {
    padding: 4.5rem 0 5.5rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

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

.hero-badge-track {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.4rem;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.4rem;
  }
}

.hero-title .gradient-text {
  background: var(--grad-cyan-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--grad-cyan-blue);
  color: #060D1A;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.6);
  color: #000;
}

.btn-secondary-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.btn-secondary-glass:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  transform: translateY(-2px);
}

/* Hero Stats Bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.8rem;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-num span {
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Interactive Card / Quick Dock */
.hero-interactive-card {
  background: var(--grad-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-interactive-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.4), transparent, rgba(30, 58, 138, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.dock-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulse 1.8s infinite;
}

/* Dock Tabs */
.dock-tabs {
  display: flex;
  gap: 0.4rem;
  background: var(--bg-primary);
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.dock-tab {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.dock-tab.active {
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* Dock Content Form */
.dock-form-group {
  margin-bottom: 1rem;
}

.dock-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.dock-select, .dock-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.dock-select:focus, .dock-input:focus {
  border-color: var(--accent-cyan);
}

.dock-price-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 229, 255, 0.06);
  border: 1px dashed var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin: 1.2rem 0;
}

.dock-price-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.dock-price-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.dock-price-val span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Section Header Generic */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* SECTION: COTIZADOR COMPLETO */
.quote-section {
  padding: 4.5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.quote-calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.quote-category-toggle {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.2rem;
}

.quote-category-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.quote-category-btn.active {
  background: var(--grad-cyan-blue);
  color: #060D1A;
  border-color: transparent;
  box-shadow: var(--shadow-cyan);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .quote-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.quote-inputs-panel {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-value {
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: transform var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.quote-radio-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

@media (min-width: 480px) {
  .quote-radio-chips {
    grid-template-columns: repeat(4, 1fr);
  }
}

.chip-option {
  position: relative;
}

.chip-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-option label {
  display: block;
  text-align: center;
  padding: 0.65rem 0.4rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip-option input:checked + label {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
}

/* Quote Result Summary Card */
.quote-result-card {
  background: linear-gradient(145deg, rgba(14, 35, 78, 0.85) 0%, rgba(6, 13, 26, 0.95) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: relative;
}

.result-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #060D1A;
  background: var(--accent-cyan);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
}

.result-plan-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.result-plan-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.coverage-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.coverage-features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.coverage-features-list li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.quote-pricing-block {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.2rem;
  margin-bottom: 1.2rem;
}

.quote-annual-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.quote-annual-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.quote-monthly-price {
  font-size: 0.88rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-top: 0.2rem;
}

.quote-bcv-rate {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* SECTION: PÓLIZAS & COBERTURAS (CATÁLOGO) */
.policies-section {
  padding: 4.5rem 0;
  position: relative;
}

.policy-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-pill {
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  border-color: var(--border-card);
  color: var(--text-primary);
}

.filter-pill.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

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

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

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

.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.policy-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-cyan);
}

.policy-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.policy-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.policy-badge-featured {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #060D1A;
  background: var(--accent-cyan);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.policy-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.policy-short-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.policy-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.policy-highlights li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.policy-highlights li svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.policy-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.btn-card-details {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition-fast);
}

.btn-card-details:hover {
  gap: 0.6rem;
}

/* SECTION: ASISTENCIA SOS Y REPORTE DE SINIESTROS */
.sos-section {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(220, 38, 38, 0.08) 50%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.sos-panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .sos-panel-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.sos-direct-card {
  background: var(--bg-card);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sos-icon-pulse {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  animation: redPulse 2s infinite;
}

.sos-direct-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.sos-direct-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.8rem;
}

.sos-phone-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px dashed rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.sos-phone-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.sos-phone-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: #EF4444;
  text-decoration: none;
  display: block;
  letter-spacing: 0.02em;
}

.sos-actions-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .sos-actions-row {
    flex-direction: row;
  }
}

.btn-sos-call {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #EF4444;
  color: #FFFFFF;
  font-weight: 700;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.btn-sos-whatsapp {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Siniestro Wizard Flow */
.siniestro-wizard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.wizard-steps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  position: relative;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-indicator.active {
  color: var(--accent-cyan);
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.step-indicator.active .step-number {
  background: var(--accent-cyan);
  color: #060D1A;
  font-weight: 700;
  border-color: var(--accent-cyan);
}

.wizard-step-content {
  display: none;
}

.wizard-step-content.active {
  display: block;
}

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

.type-card-select {
  padding: 1.2rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.type-card-select:hover, .type-card-select.selected {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  transform: translateY(-2px);
}

.type-card-select svg {
  margin-bottom: 0.6rem;
  color: var(--accent-cyan);
}

.type-card-select h5 {
  font-size: 0.9rem;
  font-weight: 700;
}

.gps-locate-box {
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* SECTION: RED DE CLÍNICAS Y TALLERES */
.network-section {
  padding: 4.5rem 0;
  background: var(--bg-secondary);
}

.network-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .network-controls-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-input-wrapper {
  flex: 1;
  position: relative;
}

.search-input-wrapper svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.network-search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.network-filters-group {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.network-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.4rem;
  color: var(--text-primary);
  font-size: 0.86rem;
  cursor: pointer;
}

.network-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

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

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

.network-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.network-card:hover {
  border-color: var(--border-card);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.network-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.network-card-type {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.type-clinica {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.type-amp {
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-cyan);
}

.type-taller {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
}

.network-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.network-card-loc {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

.network-card-details {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.network-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.8rem;
}

.network-phone-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.network-map-btn {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color var(--transition-fast);
}

.network-map-btn:hover {
  color: var(--text-primary);
}

/* SECTION: PAGOS EN LÍNEA */
.payments-section {
  padding: 4.5rem 0;
  position: relative;
}

.payment-container-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .payment-container-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.payment-methods-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.bcv-ticker-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.bcv-title {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
}

.bcv-rate {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.payment-method-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.method-tab {
  flex: 1;
  text-align: center;
  padding: 0.7rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.method-tab.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.bank-details-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bank-row:last-child {
  border-bottom: none;
}

.bank-label {
  color: var(--text-muted);
}

.bank-val {
  font-weight: 600;
  color: var(--text-primary);
}

/* SECTION: ZONA DE DESCARGAS & CARNET DIGITAL */
.downloads-section {
  padding: 4.5rem 0;
  background: var(--bg-secondary);
}

.downloads-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

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

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

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--transition-fast);
}

.download-card:hover {
  border-color: var(--border-card);
  transform: translateY(-2px);
}

.download-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.download-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.download-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

/* CARNET DIGITAL INTERACTIVO (PORTAL CLIENTES) */
.carnet-wrapper {
  max-width: 480px;
  margin: 0 auto;
  perspective: 1000px;
}

.digital-card {
  background: linear-gradient(135deg, #091C3E 0%, #030814 60%, #08295E 100%);
  border: 1.5px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: 0 15px 35px rgba(0, 229, 255, 0.25);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.card-hologram {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.card-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.8rem;
}

.card-holder-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.card-policy-type {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
}

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

.card-field-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.card-field-val {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.qr-box {
  width: 52px;
  height: 52px;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 4px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-spring);
}

.modal-overlay.open .modal-window {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.main-footer {
  background: #030814;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

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

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

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

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

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

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

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Mobile App Bottom Bar (Classic PWA Bottom Nav) */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-height);
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 95;
}

@media (min-width: 1024px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.bottom-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  flex: 1;
  height: 100%;
  transition: color var(--transition-fast);
}

.bottom-tab-item.active {
  color: var(--accent-cyan);
}

.bottom-tab-sos {
  color: #EF4444;
}

.bottom-tab-sos .bottom-icon-badge {
  background: rgba(239, 68, 68, 0.2);
  border-radius: 50%;
  padding: 4px;
}

/* Mobile Slide Drawer Menu */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}

.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 82%;
  max-width: 360px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-card);
  padding: 2rem 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-spring);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-drawer.open .drawer-content {
  transform: translateX(0);
}

.drawer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.drawer-link:hover, .drawer-link.active {
  color: var(--accent-cyan);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-bar-height) + 1rem);
  right: 1.25rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .toast-container {
    bottom: 1.5rem;
  }
}

.toast {
  pointer-events: auto;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideInRight 0.3s ease;
}

/* Keyframes */
@keyframes shine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

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

@keyframes redPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
}

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