:root {
  --primary: #1e293b;
  --accent: #00a896;
  --accent-hover: #028090;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --whatsapp: #25d366;
  --border-radius: 16px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 80px; 
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Encabezado */
header {
  background: var(--card-bg);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand { display: flex; align-items: center; }
.brand-title { font-size: 1.35rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.brand-tagline { font-size: 0.8rem; color: var(--text-muted); }

/* Navegación Escritorio */
nav.desktop-nav { display: flex; align-items: center; gap: 0.5rem; }
nav.desktop-nav button, nav.desktop-nav a.nav-btn {
  background: none; border: none; font-size: 0.95rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; padding: 0.5rem 1rem;
  border-radius: 8px; transition: all 0.2s ease; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
nav.desktop-nav button.active, nav.desktop-nav button:hover, nav.desktop-nav a.nav-btn:hover {
  color: var(--accent); background: #eef9f8;
}
nav.desktop-nav a.whatsapp-nav {
  color: var(--whatsapp);
  font-weight: 700;
}
nav.desktop-nav a.whatsapp-nav:hover {
  background: #e8f8ed;
  color: #1ebe57;
}

/* Contenedor Principal */
.container {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.view-section { display: none; }
.view-section.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Hero Box */
.hero {
  background: linear-gradient(135deg, var(--primary), #0f172a);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-text h2 { font-size: 1.6rem; margin-bottom: 0.3rem; font-weight: 700; }
.hero-text p { opacity: 0.9; max-width: 600px; font-size: 0.9rem; }

/* Botones Principales */
.btn-primary {
  background-color: var(--accent); color: white; border: none;
  padding: 0.75rem 1.4rem; font-weight: 700; border-radius: 30px;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
  transition: background 0.2s ease;
}
.btn-primary:hover { background-color: var(--accent-hover); }

/* Grilla de Tarjetas */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.card {
  background: var(--card-bg); border-radius: var(--border-radius); padding: 1.5rem;
  box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; justify-content: space-between;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(0,0,0,0.07); }
.card-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.card-badge {
  align-self: flex-start; background: #eef9f8; color: var(--accent);
  font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.8rem;
  border-radius: 12px; margin-bottom: 0.8rem;
}
.card h3 { margin-bottom: 0.5rem; color: var(--primary); font-size: 1.15rem; }
.card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.2rem; }

/* Avisos */
.disclaimer-box {
  background: #fff8e1; border-left: 4px solid #ffb300; padding: 1rem 1.2rem;
  border-radius: 8px; font-size: 0.85rem; color: #5d4037; margin-bottom: 1.5rem;
}

/* Footer Legal (Forzado a tamaño pequeño también en escritorio) */
footer {
  background: var(--card-bg); 
  border-top: 1px solid #e2e8f0;
  padding: 0.8rem 1.5rem; 
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  -webkit-text-size-adjust: none; /* Evita que el navegador de escritorio aumente el texto */
  text-size-adjust: none;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 8px; /* Usar píxeles fijos en lugar de rem ayuda a controlar el tamaño exacto en desktop */
  margin-bottom: 0.2rem;
  text-align: center;
  width: 100%;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 9px; /* Tamaño fijo pequeño para forzarlo en ordenador */
  text-decoration: none;
}

.footer-links a:hover { 
  color: var(--accent); 
  text-decoration: underline; 
}

/* Navegación Móvil */
.mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--card-bg); box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  justify-content: space-around; padding: 0.6rem 0; z-index: 1000;
}
.mobile-nav button, .mobile-nav a.mobile-nav-item {
  background: none; border: none; font-size: 0.65rem; color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none; cursor: pointer;
}
.mobile-nav button.active, .mobile-nav a.mobile-nav-item.active {
  color: var(--accent); font-weight: 700;
}
.mobile-nav .whatsapp-nav-item {
  color: var(--whatsapp);
  font-weight: 700;
}
.mobile-nav .whatsapp-nav-item span {
  font-size: 1rem;
}

@media (max-width: 768px) {
  nav.desktop-nav { display: none; }
  .mobile-nav { display: flex; }
  .hero { flex-direction: column; text-align: center; justify-content: center; }
}