/* ========================
   AGENDA FAMILIAR BRAND COLORS
   Sincronizado con Vuetify CorporateTheme
   See docs/BRAND_COLORS.md for full documentation
   ======================== */
:root {
  /* Primary - Soft Blue (Vuetify: #92A4BB) */
  --color-primary: #92a4bb;
  --color-primary-light: #d1e3f0;
  --color-primary-dark: #8aadc7;
  --color-primary-200: #b8cfdf;

  /* Secondary - Golden Beige (Vuetify: rgb(242, 184, 114)) */
  --color-secondary: rgb(242, 184, 114);
  --color-secondary-light: #f7e6c7;
  --color-secondary-dark: #d4a574;
  --color-secondary-200: #efcf9a;

  /* Accent - Secondary Golden Beige (Vuetify secondary) */
  --color-accent: rgb(242, 184, 114);
  --color-accent-dark: #d4a574;
  --color-warning: #ff9800;

  /* Background - Warm Beige */
  --color-background: #f7f1e3;
  --color-background-alt: #f5efe1;
  --color-surface: #ffffff;
  --color-surface-variant: #ffffff;

  /* Text */
  --color-text-primary: #000000;
  --color-text-secondary: #757575;
  --color-text-muted: #9e9e9e;

  /* Navigation */
  --color-nav-primary: #92a4bb;
  --color-nav-text: #2c5f7c;

  /* Status (Vuetify) */
  --color-success: #4caf50;
  --color-info: #03a9f4;
  --color-error: #f44336;

  /* Borders */
  --color-border: #92a4bb;
  --color-border-light: #e0e0e0;
  --color-input-border: #d1e3f0;

  /* Shadows */
  --shadow-primary: rgba(146, 164, 187, 0.3);
  --shadow-secondary: rgba(242, 184, 114, 0.3);
  --shadow-dark: rgba(0, 0, 0, 0.1);
  --elevation-1: 0 2px 4px rgba(0, 0, 0, 0.05);
  --elevation-2: 0 4px 8px rgba(0, 0, 0, 0.08);
  --elevation-3: 0 8px 16px rgba(0, 0, 0, 0.1);
  --elevation-4: 0 12px 24px rgba(0, 0, 0, 0.12);

  /* Radius - Matching frontend designTokens.ts */
  --radius-xs: 0;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-xxl: 32px;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Roboto Mono",
    monospace,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif;
  background-color: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   VUETIFY-LIKE UTILITY CLASSES
   ========================================= */

/* Cards */
.v-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: none; /* Vuetify default is flat with border in this theme */
  overflow: hidden;
  transition: all 0.3s ease;
}

.v-card.elevation-1 {
  box-shadow: var(--elevation-1);
  border: none;
}
.v-card.elevation-2 {
  box-shadow: var(--elevation-2);
  border: none;
}
.v-card.elevation-3 {
  box-shadow: var(--elevation-3);
  border: none;
}
.v-card.elevation-4 {
  box-shadow: var(--elevation-4);
  border: none;
}

.v-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 16px;
  color: var(--color-text-primary);
}

.v-card-text {
  padding: 0 16px 16px;
  color: var(--color-text-secondary);
  font-size: 1rem;
}

/* Buttons */
.v-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-lg);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0.25px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  gap: 8px;
  line-height: 1.4;
}

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

.v-btn.secondary {
  background-color: var(--color-secondary);
  color: #2c3e50;
}
.v-btn.secondary:hover {
  background-color: var(--color-secondary-dark);
}

.v-btn.accent {
  background-color: var(--color-accent);
  color: white;
}
.v-btn.accent:hover {
  background-color: var(--color-accent-dark);
}

.v-btn.outlined {
  background-color: transparent;
  border: 2px solid currentColor;
}
.v-btn.outlined.primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.v-btn.outlined.primary:hover {
  background-color: rgba(146, 164, 187, 0.1);
}

.v-btn.text {
  background-color: transparent;
  color: var(--color-text-secondary);
  padding: 8px 16px;
}
.v-btn.text:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--color-text-primary);
}

.v-btn.block {
  display: flex;
  width: 100%;
}

.v-btn.large {
  padding: 14px 28px;
  font-size: 1.1rem;
}

/* Chips */
.v-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

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

.v-chip.secondary {
  background-color: var(--color-secondary);
  color: #2c3e50;
}

.v-chip.accent {
  background-color: var(--color-accent);
  color: #2c3e50;
}

.v-chip.outlined {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

/* Inputs */
.v-text-field {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.v-text-field:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(146, 164, 187, 0.2);
}

.v-label {
  display: block;
  margin-bottom: 6px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Typography Helpers */
.text-h1 {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.2;
}
.text-h2 {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.3;
}
.text-h3 {
  font-size: 1.75rem;
  font-weight: bold;
  line-height: 1.3;
}
.text-subtitle-1 {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-secondary);
}
.text-body-1 {
  font-size: 1rem;
  line-height: 1.6;
}
.text-caption {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.text-center {
  text-align: center;
}
.font-weight-bold {
  font-weight: 700;
}
.text-primary {
  color: var(--color-primary) !important;
}
.text-accent {
  color: var(--color-accent) !important;
}

/* Spacing Helpers */
.pa-1 {
  padding: 4px;
}
.pa-2 {
  padding: 8px;
}
.pa-3 {
  padding: 12px;
}
.pa-4 {
  padding: 16px;
}
.pa-5 {
  padding: 20px;
}
.pa-6 {
  padding: 24px;
}
.pa-8 {
  padding: 32px;
}
.pa-10 {
  padding: 40px;
}
.pa-12 {
  padding: 48px;
}
.pa-16 {
  padding: 64px;
}
.px-4 {
  padding-left: 16px;
  padding-right: 16px;
}
.px-6 {
  padding-left: 24px;
  padding-right: 24px;
}
.px-8 {
  padding-left: 32px;
  padding-right: 32px;
}
.px-10 {
  padding-left: 40px;
  padding-right: 40px;
}
.py-4 {
  padding-top: 16px;
  padding-bottom: 16px;
}
.py-16 {
  padding-top: 64px;
  padding-bottom: 64px;
}
.py-18 {
  padding-top: 80px;
  padding-bottom: 80px;
}
.py-20 {
  padding-top: 100px;
  padding-bottom: 100px;
}
.pt-8 {
  padding-top: 40px;
}
.pb-8 {
  padding-bottom: 40px;
}
.pt-10 {
  padding-top: 50px;
}
.pb-10 {
  padding-bottom: 50px;
}
.pb-12 {
  padding-bottom: 60px;
}
.ma-4 {
  margin: 16px;
}
.mb-2 {
  margin-bottom: 8px;
}
.mb-4 {
  margin-bottom: 16px;
}
.mb-6 {
  margin-bottom: 24px;
}
.gap-2 {
  gap: 8px;
}
.gap-4 {
  gap: 16px;
}

/* Flex Helpers */
.d-flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}
.align-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-space-between {
  justify-content: space-between;
}
.flex-wrap {
  flex-wrap: wrap;
}
.fill-height {
  height: 100%;
}

/* Backgrounds */
.bg-surface {
  background-color: var(--color-surface);
}
.bg-background {
  background-color: var(--color-background);
}

/* =========================================
   LEGACY STYLES (Keep for compatibility until fully refactored, but overrides above take precedence)
   ========================================= */

/* Header */
.header {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-background);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  height: 28px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--color-nav-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
}

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

.auth-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 50px 0 60px;
}

.hero-pretitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
  color: var(--color-text-primary);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-subtitle .highlight {
  background: linear-gradient(180deg, transparent 70%, #fca8d6 50%);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.hero-cta-section {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.trial-info {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-weight: bold;
  margin-top: 40px;
}

.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.avatars {
  display: flex;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  border: 2px solid white;
  margin-left: -8px;
}

.avatar:first-child {
  margin-left: 0;
}

.users-count {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Demo Window (Updating to match CorporateTheme) */
.demo-window {
  background-color: var(--color-background);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation-4);
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background-color: rgba(146, 164, 187, 0.15);
  border-bottom: 1px solid var(--color-border);
}

.window-controls {
  display: flex;
  gap: 8px;
}
.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.8;
}
.control.red {
  background-color: #ff5f57;
}
.control.yellow {
  background-color: #ffbd2e;
}
.control.green {
  background-color: #28ca42;
}

.window-title {
  color: var(--color-nav-text);
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  opacity: 0.8;
}

.dashboard {
  padding: 32px;
  background-color: var(--color-surface);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* Metric Card inside Demo */
.metric-card {
  background-color: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--elevation-1);
}

.metric-title {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.metric-change {
  font-size: 0.85rem;
  font-weight: 600;
}
.metric-change.positive {
  color: var(--color-success);
}
.metric-change.negative {
  color: var(--color-error);
}

/* Benefits Section */
.benefits-section {
  padding: 80px 0;
  background-color: var(--color-background-alt);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.benefit-card {
  background: var(--color-surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--elevation-1);
  transition: transform 0.3s ease;
  height: 100%;
}
.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--elevation-3);
  border-color: var(--color-primary-light);
}

.benefit-icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 20px;
  display: block;
}

.benefit-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.benefit-desc {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Footer (keeping simple for now but using vars) */
.footer {
  background-color: white;
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  text-align: center;
  color: var(--color-text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 30px 0 40px;
  }
  .hero-pretitle {
    font-size: 1.2rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 0.9rem;
  }
  .v-btn {
    width: 100%;
    justify-content: center;
  }
  .nav-links {
    display: none;
  } /* Use mobile menu */
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 16px;
  }
}
.filter-btn:hover {
  background-color: #92a4bb;
  color: #fff;
}

.filter-btn.active {
  background-color: rgb(242, 184, 114);
  border-color: rgb(242, 184, 114);
  color: #fff;
}

/* Productos */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: #f7f1e3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
  background: linear-gradient(135deg, #92a4bb 0%, rgb(242, 184, 114) 100%);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #fff;
}

.product-content {
  padding: 25px;
}

.product-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 10px;
}

.product-description {
  color: #5a6c7d;
  margin-bottom: 20px;
  line-height: 1.6;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 20px;
}

.price {
  font-size: 2rem;
  font-weight: bold;
  color: rgb(242, 184, 114);
}

.period {
  color: #5a6c7d;
  font-size: 1rem;
}

.product-btn {
  width: 100%;
  padding: 12px;
  background-color: #92a4bb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.product-btn:hover {
  background-color: #8fb3d1;
}

/* Botones especiales para el libro */
.product-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-btn {
  background-color: #667eea !important;
  color: white !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px;
  transition: all 0.3s ease;
}

.preview-btn:hover {
  background-color: #5a67d8 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  color: white !important;
  text-decoration: none !important;
}

/* Enlace del libro en el menú */
.libro-link {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white !important;
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.libro-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  color: white !important;
  text-decoration: none;
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h4 {
  margin-bottom: 15px;
  color: rgb(242, 184, 114);
}

.footer-section a {
  display: block;
  color: #92a4bb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #fff;
}

.footer-section p {
  color: #92a4bb;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #5a6c7d;
  color: #92a4bb;
}

/* Custom Icons replacement for FontAwesome */
.custom-icon {
  height: 1.75em;
  width: auto;
  vertical-align: middle;
  display: inline-block;
  object-fit: contain;
}

.nav-links a.active {
  color: rgb(242, 184, 114);
  font-weight: 600;
}

/* Responsive Tienda */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    gap: 10px;
  }

  .filter-btn {
    padding: 8px 15px;
    font-size: 14px;
  }
}

/* Blog Styles */
.blog-hero {
  text-align: center;
  padding: 60px 0 40px;
  background: linear-gradient(135deg, rgb(242, 184, 114) 0%, #f7f1e3 100%);
}

.blog-hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #2c3e50;
}

.blog-hero-subtitle {
  font-size: 1.25rem;
  color: #5a6c7d;
  max-width: 600px;
  margin: 0 auto;
}

/* Blog Section */
.blog-section {
  padding: 60px 0;
  background-color: #f7f1e3;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.blog-card {
  background-color: #f7f1e3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.blog-image {
  background: linear-gradient(135deg, rgb(242, 184, 114) 0%, #92a4bb 100%);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #fff;
}

.blog-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.blog-category {
  background-color: rgb(242, 184, 114);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.blog-date {
  color: #5a6c7d;
  font-size: 0.9rem;
}

.blog-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 15px;
  line-height: 1.3;
}

.blog-excerpt {
  color: #5a6c7d;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.blog-read-more {
  color: rgb(242, 184, 114);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  display: inline-block;
}

.blog-read-more:hover {
  color: #d4a574;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, #92a4bb 0%, rgb(242, 184, 114) 100%);
  padding: 60px 0;
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
}

.newsletter-subtitle {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 30px;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.newsletter-btn {
  padding: 15px 30px;
  background-color: #2c3e50;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background-color: #1a252f;
}

/* Responsive Blog */
@media (max-width: 768px) {
  .blog-hero-title {
    font-size: 2rem;
  }

  .blog-hero-subtitle {
    font-size: 1rem;
  }

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

  .newsletter-title {
    font-size: 1.8rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-input,
  .newsletter-btn {
    width: 100%;
  }
}

/* FAQ Styles */
.faq-hero {
  text-align: center;
  padding: 60px 0 40px;
  background: linear-gradient(135deg, #92a4bb 0%, rgb(242, 184, 114) 100%);
  color: #fff;
}

.faq-hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.faq-hero-subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.95;
}

/* FAQ Categories */
.faq-categories {
  padding: 30px 0;
  background-color: #f7f1e3;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 57px;
  z-index: 999;
}

.category-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.category-btn {
  padding: 10px 20px;
  border: 2px solid #92a4bb;
  background-color: #f7f1e3;
  color: #2c3e50;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-btn:hover {
  background-color: #92a4bb;
  color: #fff;
}

.category-btn.active {
  background-color: rgb(242, 184, 114);
  border-color: rgb(242, 184, 114);
  color: #fff;
}

/* FAQ Content */
.faq-content {
  padding: 60px 0;
  background-color: #f7f1e3;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: #f7f1e3;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  user-select: none;
}

.faq-question h3 {
  font-size: 1.1rem;
  color: #2c3e50;
  margin: 0;
  font-weight: 600;
}

.faq-question i {
  color: rgb(242, 184, 114);
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  padding: 0 25px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 25px 20px 25px;
}

.faq-answer p {
  color: #5a6c7d;
  line-height: 1.7;
  margin: 0;
}

/* FAQ Contact Section */
.faq-contact {
  padding: 60px 0;
  background-color: #f7f1e3;
}

.contact-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, #f7f1e3 0%, #f7f1e3 100%);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-card i {
  font-size: 4rem;
  color: rgb(242, 184, 114);
  margin-bottom: 20px;
}

.contact-card h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 15px;
}

.contact-card p {
  color: #5a6c7d;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.contact-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #92a4bb;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background-color: #8fb3d1;
}

/* Responsive FAQ */
@media (max-width: 768px) {
  .faq-hero-title {
    font-size: 2rem;
  }

  .faq-hero-subtitle {
    font-size: 1rem;
  }

  .faq-categories {
    top: 53px;
  }

  .category-buttons {
    gap: 10px;
  }

  .category-btn {
    padding: 8px 15px;
    font-size: 14px;
  }

  .faq-question h3 {
    font-size: 1rem;
  }

  .faq-question,
  .faq-answer {
    padding: 15px 20px;
  }

  .contact-card {
    padding: 30px 20px;
  }

  .contact-card h2 {
    font-size: 1.5rem;
  }
}

/* ========================
   PAGE LOADER OVERLAY
  Spinner global con logo_animado_svg.svg y fallback GIF
   Color secundario para estados de carga (ver BRAND_COLORS.md)
   ======================== */
.page-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-background, #f7f1e3);
  opacity: 1;
  transition: opacity 0.4s ease-out;
}

.page-loader-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.page-loader-overlay.hidden {
  display: none;
}

.page-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-loader-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.page-loader-logo {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--shadow-primary, rgba(146, 164, 187, 0.3));
  object-fit: contain;
}

.page-loader-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-loader-brand-label {
  font-family: "Roboto Mono", monospace;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--color-primary, #92a4bb);
  text-transform: uppercase;
  line-height: 1.2;
}

.page-loader-brand-name {
  font-family: "Roboto Mono", monospace;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-text-primary, #000000);
  text-transform: uppercase;
  line-height: 1.1;
}

.page-loader-text {
  color: var(--color-text-muted, #9e9e9e);
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0;
}

.page-loader-bar {
  width: 120px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--color-primary-light, #d1e3f0);
  overflow: hidden;
}

.page-loader-bar::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 2px;
  background-color: var(--color-secondary, rgb(242, 184, 114));
  animation: loader-bar 1.2s ease-in-out infinite;
}

@keyframes loader-bar {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(200%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 768px) {
  .page-loader-brand {
    flex-direction: column;
    gap: 12px;
  }

  .page-loader-logo {
    width: 72px;
    height: 72px;
    border-radius: 12px;
  }

  .page-loader-brand-text {
    align-items: center;
  }

  .page-loader-brand-label {
    font-size: 0.85rem;
    letter-spacing: 2.5px;
  }

  .page-loader-brand-name {
    font-size: 1.5rem;
    letter-spacing: 1.5px;
  }

  .page-loader-bar {
    width: 80px;
  }
}

/* Phase 2 CSP cleanup — extracted from inline styles in templates/index.html */
.faq-home-section { padding: 80px 0; background: white; }
.faq-home-title { text-align: center; font-size: 2.5rem; color: #2c3e50; margin-bottom: 50px; }
.faq-home-container { max-width: 800px; margin: 0 auto; }
.faq-home-item { margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 30px; }
.faq-home-q { color: #ff6d4d; margin-bottom: 15px; font-size: 1.3rem; }
.faq-home-a { color: #5a6c7d; line-height: 1.6; }
.btn-secondary-soft { background: #a3bfd9; color: white; padding: 15px 30px; border-radius: 8px; font-weight: 600; }
.icon-hero-btn { height: 3.5em; }

/* Honeypot anti-bot field — must be invisible to humans, still readable by naive bots. */
.auth-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
