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

:root {
  --primary-color: #6d4cff;
  --primary-color-light: #9d7fff;
  --primary-color-dark: #4c2dd1;
  --accent-color: #ff6b35;
  --success-color: #10b981;
  --error-color: #ef4444;
  --info-color: #6d4cff;
  --text-color: #1a1d2a;
  --text-light: #4a4d5a;
  --background-color: #f8f9fa;
  --surface-color: #ffffff;
  --surface-alt: #f0f2ff;
  --border-color: rgba(109, 76, 255, 0.2);
  --shadow-sm: 0 8px 26px rgba(109, 76, 255, 0.15);
  --shadow-lg: 0 24px 48px rgba(109, 76, 255, 0.25);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top left, rgba(157, 127, 255, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(109, 76, 255, 0.15), transparent 50%),
    var(--background-color);
  color: var(--text-color);
  line-height: 1.7;
  scroll-behavior: smooth;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg, rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(18px);
  border-bottom: 2px solid var(--border-color);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header .container {
  padding: 18px 0 12px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 2px solid var(--border-color);
  background: var(--surface-color);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-color-dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span + span {
  margin-top: 5px;
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(139, 127, 199, 0.3);
  outline-offset: 3px;
}

.nav-toggle:hover {
  background: var(--surface-color);
  border-color: var(--primary-color);
  box-shadow: 0 12px 18px rgba(109, 76, 255, 0.25);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: clamp(1.2rem, 3.8vw, 1.75rem);
  color: var(--primary-color);
}

.logo-img {
  width: clamp(36px, 8vw, 56px);
  height: clamp(36px, 8vw, 56px);
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(78, 55, 150, 0.18));
}

.logo-text {
  letter-spacing: 0.05em;
  font-size: 1.05em;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
  flex-direction: row;
}

  .nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    flex-direction: row;
  }

  @media (max-width: 768px) {
    .nav-links {
      flex-direction: column !important;
      width: 100% !important;
      gap: 12px !important;
      flex-wrap: nowrap !important;
    }
    
    .nav-links a {
      width: 100% !important;
      text-align: center !important;
      padding: 8px 0 !important;
      white-space: normal !important;
    }
  }

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  display: inline-block;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.nav-links button {
  margin: 0;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(109, 76, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 32px rgba(109, 76, 255, 0.4);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
}

.btn-secondary {
  background: rgba(157, 127, 255, 0.2);
  color: var(--primary-color-dark);
  border: 2px solid rgba(109, 76, 255, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(109, 76, 255, 0.3);
  background: rgba(157, 127, 255, 0.3);
  border-color: var(--primary-color);
}

.btn-tertiary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary-color-dark);
  border: 1px solid rgba(139, 127, 199, 0.2);
  box-shadow: 0 10px 20px rgba(109, 95, 160, 0.12);
}

.btn-tertiary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 26px rgba(109, 95, 160, 0.18);
}

.btn-large {
  padding: 14px 32px;
}

.construction-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
}

.construction-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.construction-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--primary-color-dark);
  margin-bottom: 24px;
}

.construction-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.6;
}

.hero {
  background: var(--surface-color);
  padding: 110px 0 90px;
  border-radius: 42px;
  margin: 40px auto 70px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 100px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 100%;
}

.hero-content .hero-title {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(240, 230, 255, 1));
  color: var(--primary-color-dark);
  font-weight: 600;
  font-size: 0.85rem;
  border: 2px solid rgba(109, 76, 255, 0.15);
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: clamp(2.5rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary-color-dark);
  margin-bottom: 12px;
  max-width: 600px;
  word-spacing: 0.05em;
  letter-spacing: -0.01em;
  text-align: left;
  white-space: normal;
  word-wrap: normal;
  transition: color 0.3s ease;
}

/* Estilos para h1 y p dentro de hero-content */
.hero-content h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-color-dark);
  margin-bottom: 12px;
  max-width: 600px;
  word-spacing: 0.02em;
  letter-spacing: -0.01em;
  text-align: left;
  white-space: normal;
  word-wrap: break-word;
  transition: color 0.3s ease;
}

.hero-content p {
  font-size: 1rem;
  color: var(--text-light);
  text-align: justify;
  line-height: 1.7;
  transition: color 0.3s ease;
}

.slogan {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.4;
  color: #000000 !important;
  margin-bottom: 12px;
  max-width: 600px;
  word-spacing: 0.05em;
  letter-spacing: -0.01em;
  text-align: left;
  white-space: normal;
  word-wrap: normal;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  text-align: justify;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.hero-highlights {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(240, 230, 255, 1));
  padding: 12px 16px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  border: 2px solid rgba(109, 76, 255, 0.15);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  font-size: 1rem;
}

.hero-highlights li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.25);
}

.hero-highlights li:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 1), rgba(230, 220, 255, 1));
}

.hero-showcase {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  transition: opacity 0.25s ease;
  padding-right: 0;
  margin-right: 0;
}

body.nav-open .hero-showcase {
  opacity: 0;
  pointer-events: none;
}

.hero-device {
  width: 300px;
  height: 560px;
  border-radius: 38px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(240, 230, 255, 1));
  padding: 26px;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  border: 2px solid rgba(109, 76, 255, 0.15);
}

.hero-device.compact {
  display: none;
}

.hero-device::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 32px;
  border: 1px solid rgba(109, 76, 255, 0.1);
  pointer-events: none;
}

.hero-screen {
  height: 100%;
  border-radius: 28px;
  background: linear-gradient(200deg, rgba(255, 255, 255, 1), rgba(250, 248, 255, 1));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  color: #161927;
  padding: 26px;
  overflow: hidden;
  box-shadow: inset 0 8px 18px rgba(120, 130, 190, 0.08);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-brand img {
  width: clamp(24px, 4vw, 36px);
  height: clamp(24px, 4vw, 36px);
  object-fit: contain;
}

.hero-brand span {
  font-weight: 600;
}

.hero-screen .mock-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.75;
  color: #3d4256;
}

.hero-screen .mock-report {
  background: rgba(255, 255, 255, 0.98);
  padding: 18px;
  border-radius: 20px;
  display: grid;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 14px 26px rgba(112, 123, 196, 0.1);
  border: 1px solid rgba(109, 76, 255, 0.1);
}

.hero-screen .mock-report h4 {
  font-size: 1rem;
  margin: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #1b2140;
}

.hero-screen .mock-report span {
  font-size: 0.84rem;
  opacity: 0.95;
  color: #374060;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.hero-screen .mock-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.hero-screen .mock-actions button {
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(109, 76, 255, 0.2);
  font-weight: 600;
  background: rgba(240, 242, 255, 0.92);
  color: #29304f;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(105, 114, 185, 0.12);
  transition: all 0.2s ease;
}

.hero-screen .mock-actions button:hover {
  border-color: var(--primary-color);
  box-shadow: 0 12px 22px rgba(109, 76, 255, 0.2);
  transform: translateY(-2px);
}

.hero-screen .mock-actions button:last-child {
  background: linear-gradient(135deg, var(--accent-color), #ff4d00);
  color: #ffffff;
  font-weight: 700;
}

.hero-device.compact,
.hero-screen.compact {
  height: auto;
}

.hero-screen.compact {
  gap: 12px;
  padding: 18px;
}

.hero-screen.compact .mock-report {
  padding: 14px;
  border-radius: 16px;
}

.section {
  padding: 90px 0;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: var(--primary-color-dark);
}

.section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
  color: var(--text-light);
}

.features {
  background: var(--surface-color);
}

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

.feature-card {
  background: var(--feature-card-bg, linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(240, 230, 255, 1)));
  padding: 32px 30px;
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: var(--feature-card-hover-bg, linear-gradient(160deg, rgba(255, 255, 255, 1), rgba(230, 220, 255, 1)));
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--primary-color-dark);
}

.feature-card p {
  color: var(--text-light);
  font-size: 1rem;
  text-align: justify;
  line-height: 1.7;
}

.timeline {
  background: linear-gradient(180deg, rgba(240, 230, 255, 0.8) 0%, #ffffff 100%);
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.timeline-step {
  background: var(--surface-color);
  padding: 28px 24px;
  border-radius: 20px;
  border: 2px solid rgba(109, 76, 255, 0.2);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.timeline-step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(106, 77, 230, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-step:hover::after {
  opacity: 1;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(109, 76, 255, 0.25);
  color: var(--primary-color-dark);
  font-weight: 700;
  margin-bottom: 14px;
  border: 2px solid rgba(109, 76, 255, 0.3);
}

.timeline-step h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.timeline-step p {
  color: var(--text-light);
  font-size: 0.96rem;
  text-align: justify;
  line-height: 1.7;
}

.app-showcase {
  background: var(--surface-color);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  align-items: center;
}

.app-mockup {
  display: flex;
  justify-content: center;
}

.app-frame {
  width: 320px;
  padding: 18px;
  border-radius: 34px;
  background: linear-gradient(160deg, var(--primary-color), var(--primary-color-dark));
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.app-screen {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-screen h3 {
  color: var(--primary-dark);
}

.app-screen p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.app-screen ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--text-light);
}

.app-screen li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 10px;
  background: var(--primary-color-light);
}

.app-details .section-title {
  text-align: left;
  margin-bottom: 18px;
}

.app-details p {
  color: var(--text-light);
  margin-bottom: 22px;
  text-align: justify;
  line-height: 1.7;
}

.app-features {
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--text-light);
  margin-bottom: 30px;
}

.app-features li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 10px;
  background: var(--accent-color);
}

.app-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-note {
  font-size: 0.9rem;
  color: var(--text-light);
}

.impact {
  background: linear-gradient(180deg, #ffffff 0%, rgba(109, 76, 255, 0.12) 100%);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.impact-card {
  background: var(--surface-color);
  border-radius: 18px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(109, 76, 255, 0.2);
}

.impact-card h3 {
  font-size: 2.3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.impact-card p {
  color: var(--text-light);
}

.legal-section {
  background: var(--surface-alt);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.legal-card-compact {
  background: var(--surface-color);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(109, 76, 255, 0.2);
  display: grid;
  gap: 18px;
}

.legal-card-compact h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.legal-card-compact p {
  color: var(--text-light);
}

.legal-card-compact a.btn {
  width: fit-content;
}

.contact-section {
  background: var(--surface-color);
  transition: background 0.3s ease;
}

.contact-card {
  background: linear-gradient(135deg, rgba(157, 127, 255, 0.15), rgba(109, 76, 255, 0.08));
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-color);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.contact-card h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 14px;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.contact-card p {
  color: var(--text-light);
  margin-bottom: 26px;
  text-align: justify;
  line-height: 1.7;
}

.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.contact-note {
  color: var(--text-light);
  font-size: 0.92rem;
}

/* Estilos para elementos dentro de contact-card */
.contact-info-title {
  color: var(--text-color);
  margin-bottom: 10px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.contact-link:hover {
  text-decoration: underline;
  color: var(--primary-color-light);
}

.contact-legal-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.contact-legal-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
}

.contact-legal-link:hover {
  background: var(--primary-color);
  color: white;
}

.contact-emergency-note {
  margin-top: 30px;
  padding: 15px;
  background: rgba(255, 152, 0, 0.1);
  border-radius: 8px;
  border-left: 4px solid #FF9800;
  color: var(--text-light);
  transition: background 0.3s ease;
}

.cta-section {
  background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color), var(--primary-color-dark));
  color: var(--white);
  text-align: center;
  padding: 80px 0;
  border-top: 3px solid rgba(255, 255, 255, 0.2);
  border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.cta-section h2 {
  font-size: clamp(2.3rem, 3.5vw, 2.9rem);
  margin-bottom: 16px;
}

.cta-section p {
  margin-bottom: 28px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.footer {
  background: #111015;
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px;
}

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

.footer-section h3,
.footer-section h4 {
  color: var(--white);
  margin-bottom: 14px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  margin-bottom: 10px;
  display: inline-block;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.legal-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(120deg, rgba(184, 174, 232, 0.04), rgba(255, 255, 255, 0.95));
}

.legal-card {
  width: min(960px, 100%);
  background: var(--surface-color);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-header span {
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.legal-header h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--primary-color-dark);
}

.legal-content {
  display: grid;
  gap: 18px;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
}

.legal-content h2 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-top: 24px;
}

.legal-content ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 6px;
}

.legal-content li::before {
  content: "•";
  color: var(--primary-color);
  margin-right: 10px;
  font-weight: 700;
}

.legal-footer {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.legal-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.legal-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .nav {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .header {
    position: relative !important;
    top: auto !important;
    background: rgba(243, 244, 246, 1) !important;
    border-bottom: 1px solid rgba(139, 127, 199, 0.1) !important;
  }

  .header .container {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
    padding: 18px 0 14px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .header-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 12px;
  }

  .logo {
    gap: 10px !important;
    font-size: clamp(1.1rem, 4.5vw, 1.4rem) !important;
    display: flex !important;
    align-items: center !important;
  }

  .logo-img {
    max-width: 40px;
    max-height: 40px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav {
    width: calc(100% - 24px) !important;
    margin: 0 auto !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transform: translateY(-8px);
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease;
    border-radius: 22px;
    background: rgba(243, 244, 246, 0.98);
    box-shadow: 0 18px 36px rgba(44, 28, 99, 0.15);
    padding: 0 16px;
  }

  .nav.is-open {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    padding: 18px 16px 20px;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 8px 0;
  }

  .hero {
    border-radius: 28px;
    margin: 16px auto 48px;
    padding: 60px 0 52px;
    position: relative;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    gap: 18px;
  }

  .hero-buttons {
    justify-content: center;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-highlights {
    width: 100%;
  }

  .hero-highlights li {
    justify-content: center;
    text-align: center;
  }

  .hero-showcase {
    justify-content: center;
  }
}

/* ============================================
   CONFIGURACIONES (SETTINGS)
   ============================================ */

.settings-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 2px solid rgba(109, 76, 255, 0.2);
  background: var(--surface-color);
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(109, 76, 255, 0.1);
}

.settings-button:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(109, 76, 255, 0.3);
  transform: translateY(-2px);
}

.settings-button.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.settings-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  max-width: 320px;
  background: var(--surface-color);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  overflow: hidden;
  overflow-y: auto;
  max-height: calc(100vh - 100px);
}

.settings-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.settings-menu-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--surface-alt);
}

.settings-menu-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.settings-menu-section {
  padding: 12px;
}

.settings-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  margin-bottom: 4px;
  border-radius: 10px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.settings-menu-item:hover {
  background: var(--surface-alt);
}

.settings-menu-item-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text-color);
}

.settings-menu-item-label span {
  font-size: 1.2rem;
}

.settings-menu-options {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.lang-option,
.theme-option {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--surface-color);
  color: var(--text-color);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-size: 0.9rem;
}

.lang-option:hover,
.theme-option:hover {
  border-color: var(--primary-color);
  background: var(--surface-alt);
}

.lang-option.active,
.theme-option.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  background: var(--surface-alt);
  cursor: pointer;
  transition: background 0.2s ease;
}

.theme-toggle:hover {
  background: var(--border-color);
}

.theme-toggle-icon {
  font-size: 1.3rem;
}

.theme-toggle-text {
  flex: 1;
  font-weight: 500;
  color: var(--text-color);
}

/* ============================================
   TEMA OSCURO - Estilos globales
   ============================================ */

.theme-dark {
  /* Header */
  --header-bg: rgba(31, 41, 55, 0.95);
  --header-border: rgba(109, 76, 255, 0.3);
}

.theme-dark {
  /* Header */
  --header-bg: rgba(31, 41, 55, 0.95);
  --header-border: rgba(109, 76, 255, 0.3);
  --feature-card-bg: linear-gradient(160deg, rgba(31, 41, 55, 0.95), rgba(55, 65, 81, 0.95));
  --feature-card-hover-bg: linear-gradient(160deg, rgba(31, 41, 55, 1), rgba(55, 65, 81, 1));
  --hero-badge-bg: linear-gradient(160deg, rgba(31, 41, 55, 0.95), rgba(55, 65, 81, 0.95));
  --hero-highlight-bg: linear-gradient(160deg, rgba(31, 41, 55, 0.95), rgba(55, 65, 81, 0.95));
}

.theme-dark .header {
  background: var(--header-bg);
  border-bottom-color: var(--header-border);
}

.theme-dark .nav-toggle {
  background: var(--surface-color);
  border-color: rgba(109, 76, 255, 0.4);
}

/* Hero section - tema oscuro */
.theme-dark .hero {
  background: var(--surface-color);
  border-color: var(--border-color);
}

/* Cards y superficies */
.theme-dark .feature-card,
.theme-dark .timeline-step,
.theme-dark .contact-card {
  background: var(--surface-color);
  border-color: var(--border-color);
}

.theme-dark .hero-badge {
  background: var(--hero-badge-bg);
  border-color: var(--border-color);
  color: var(--text-color);
}

.theme-dark .hero-highlights li {
  background: var(--hero-highlight-bg);
  border-color: var(--border-color);
  color: var(--text-color);
}

.theme-dark .hero-title,
.theme-dark .section-title,
.theme-dark .feature-card h3 {
  color: var(--text-color);
}

.theme-dark .hero-content h1 {
  color: var(--text-color);
}

.theme-dark .hero-content p {
  color: var(--text-light);
}

.theme-dark .slogan {
  color: var(--text-color) !important;
}

/* Timeline */
.theme-dark .timeline {
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.8) 0%, var(--background-color) 100%);
}

/* Contact section */
.theme-dark .contact-section {
  background: var(--background-color);
}

.theme-dark .contact-card {
  background: linear-gradient(135deg, rgba(109, 76, 255, 0.25), rgba(76, 45, 209, 0.15));
  border-color: var(--border-color);
}

.theme-dark .contact-card h2 {
  color: var(--text-color);
}

.theme-dark .contact-info-title {
  color: var(--text-color);
}

.theme-dark .contact-link {
  color: var(--primary-color-light);
}

.theme-dark .contact-link:hover {
  color: var(--primary-color);
}

.theme-dark .contact-legal-link {
  color: var(--primary-color-light);
  border-color: var(--primary-color);
}

.theme-dark .contact-legal-link:hover {
  background: var(--primary-color);
  color: white;
}

.theme-dark .contact-emergency-note {
  background: rgba(255, 152, 0, 0.15);
  color: var(--text-color);
}

/* Botones */
.theme-dark .btn-secondary {
  background: var(--surface-color);
  color: var(--text-color);
  border-color: var(--border-color);
}

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

/* Settings menu */
.theme-dark .settings-button {
  background: var(--surface-color);
  border-color: rgba(109, 76, 255, 0.4);
  color: var(--primary-color-light);
}

.theme-dark .settings-button:hover {
  background: var(--primary-color);
  color: white;
}

.theme-dark .settings-menu {
  background: var(--surface-color);
  border-color: rgba(109, 76, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.theme-dark .settings-menu-header {
  background: var(--surface-alt);
  border-color: rgba(109, 76, 255, 0.3);
}

.theme-dark .settings-menu-item:hover {
  background: var(--surface-alt);
}

.theme-dark .lang-option,
.theme-dark .theme-option {
  background: var(--surface-alt);
  border-color: rgba(109, 76, 255, 0.3);
  color: var(--text-color);
}

.theme-dark .lang-option:hover,
.theme-dark .theme-option:hover {
  background: var(--surface-color);
  border-color: var(--primary-color);
}

.theme-dark .lang-option.active,
.theme-dark .theme-option.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Responsive para configuraciones */
@media (max-width: 768px) {
  .settings-menu {
    right: 0;
    left: 0;
    min-width: auto;
    margin: 0 16px;
  }
}

@media (max-width: 768px) {
  .hero-device {
    width: 220px;
  }

  .features-grid,
  .timeline-grid,
  .app-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .contact-card {
    padding: 36px 24px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (min-width: 769px) {
  .header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0 12px;
  }

  .header-row {
    width: auto;
    padding: 0;
  }

  .nav-toggle {
    display: none !important;
  }

  .nav {
    width: auto;
  }
}

@media (max-width: 520px) {
  .logo {
    font-size: clamp(0.95rem, 4vw, 1.15rem);
    gap: 8px;
  }

  .logo-img {
    width: 28px;
    height: 28px;
  }

  .logo-text {
    font-size: 0.9em;
  }

  .hero-badge {
    font-size: 0.78rem;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }
  
  .hero-content h1 {
    font-size: clamp(1.6rem, 7vw, 2rem);
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .contact-actions {
    flex-direction: column;
  }
}

@media (max-width: 1024px) {
  .hero-showcase,
  .hero-device {
    display: none;
  }

  .hero-device:not(.compact) {
    display: none;
  }

  .hero-device.compact {
    display: flex;
    width: 240px;
    height: auto;
    padding: 18px;
  }

  .hero-screen.compact {
    gap: 12px;
    padding: 18px;
  }

  .hero-screen.compact .mock-report {
    padding: 14px;
    border-radius: 16px;
  }

  .hero-screen {
    gap: 14px;
    padding: 20px;
  }

  .hero-screen .mock-actions {
    margin-top: 18px;
  }

  .hero-screen .mock-report {
    padding: 14px;
    border-radius: 16px;
  }
}

@media (min-width: 769px) {
  .hero-device.compact,
  .hero-screen.compact {
    display: none;
  }
}

/* Reports Section Styles */
.report-card {
  background: var(--surface-color);
  border: 2px solid var(--primary-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  color: var(--text-color);
}

.report-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color-dark);
}

.report-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Compact report cards */
.compact-report-card {
  background: var(--surface-color);
  border: 2px solid var(--primary-color);
  color: var(--text-color);
}

.compact-report-card-content {
  background: var(--surface-color);
  color: var(--text-color);
}

.compact-report-card h3 {
  color: var(--text-color);
}

.compact-report-card p {
  color: var(--text-light);
}

/* Tema oscuro para tarjetas de reportes */
.theme-dark .report-card,
.theme-dark .compact-report-card {
  background: var(--surface-color);
  border-color: var(--border-color);
  color: var(--text-color);
}

.theme-dark .report-card:hover,
.theme-dark .compact-report-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 24px rgba(109, 76, 255, 0.3);
}

.theme-dark .compact-report-card-content {
  background: var(--surface-color);
  color: var(--text-color);
}

.theme-dark .compact-report-card h3 {
  color: var(--text-color);
}

.theme-dark .compact-report-card p {
  color: var(--text-light);
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  color: white;
  font-weight: 500;
  animation: slideIn 0.3s ease;
}

.notification-success {
  background: #10b981;
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.notification-error {
  background: #ef4444;
  box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

.notification-info {
  background: var(--primary-color);
  box-shadow: 0 8px 16px rgba(109, 76, 255, 0.3);
}

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

/* Search Input Styles */
#searchInput {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid rgba(109, 76, 255, 0.3);
  border-radius: 16px;
  font-size: 1rem;
  background: var(--surface-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#searchInput:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(109, 76, 255, 0.2);
}

/* Filter Button Active State */
.btn-secondary.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 8px 16px rgba(109, 76, 255, 0.35);
}

