/* ============================================
   NUUP CONECTA MÉXICO - ESTILO BLANCO & MAGENTA
   ============================================ */

:root {
    --magenta-primary: #990054;
    --magenta-light: #c7006e;
    --magenta-soft: #fce4f3;
    --magenta-bg: #fff5f9;
    --white: #FFFFFF;
    --black: #1a1a1a;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-imagen {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.logo-text {
    color: var(--gray-900);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.logo-text span {
    font-weight: 500;
    color: var(--gray-500);
    font-size: 0.65rem;
    display: block;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    background: var(--gray-100);
    padding: 0.4rem;
    border-radius: 100px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-family: 'Inter', sans-serif;
}

.nav-btn:hover {
    color: var(--magenta-primary);
    background: rgba(153, 0, 84, 0.08);
}

.nav-btn.active {
    background: var(--magenta-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(153, 0, 84, 0.2);
}

/* ---------- MAIN CONTAINER ---------- */
.page-container {
    max-width: 1280px;
    margin: 100px auto 60px;
    padding: 0 2rem;
}

.page {
    display: none;
    opacity: 0;
    transform: translateY(12px);
}

.page.active-page {
    display: block;
    animation: fadeUp 0.4s var(--ease) forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- HERO SECTION ---------- */
.hero {
    text-align: center;
    padding: 2rem 0 1rem;
}

.badge-maya {
    background: var(--magenta-soft);
    color: var(--magenta-primary);
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.8rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
    color: var(--gray-900);
}

.hero h1 span {
    color: var(--magenta-primary);
}

.hero-p {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 0.85rem 2rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    font-family: 'Inter', sans-serif;
    border: none;
}

.btn-primary {
    background: var(--magenta-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(153, 0, 84, 0.15);
}

.btn-primary:hover {
    background: var(--magenta-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(153, 0, 84, 0.2);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-2px);
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.disabled:hover {
    transform: none;
}

/* ---------- PERSONAJES IMAGEN ---------- */
.personajes-section {
    margin: 2rem 0 3rem;
}

.personajes-container {
    text-align: center;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.personajes-principal {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* ---------- CARDS MODERNAS ---------- */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 3rem 0 2rem;
    color: var(--gray-900);
}

/* Grid de dos columnas IGUALADAS */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: stretch;
}

.grid-cards .card-tech {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.grid-cards .card-tech .check-list {
    flex: 1;
}

.card-tech {
    background: var(--white);
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0;  /* El margen lo controla el grid gap */
}

.card-tech:hover {
    transform: translateY(-4px);
    border-color: var(--magenta-soft);
    box-shadow: var(--shadow-lg);
}

/* Para las tarjetas sueltas (Historia, Contacto, Objetivos) que no están en grid */
.card-tech:not(.grid-cards .card-tech) {
    margin-bottom: 2rem;
}

.card-tech:last-child {
    margin-bottom: 0;
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.card-tech h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.card-tech p, .card-tech li {
    color: var(--gray-600);
    line-height: 1.5;
    font-size: 0.95rem;
}

.card-tech ul {
    padding-left: 1.2rem;
    margin-top: 1rem;
}

.card-tech li {
    margin-bottom: 0.6rem;
}

/* Sección Pasajeros y Conductores - fondo unificado */
.card-download {
    margin-bottom: 3rem;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--magenta-soft);
    background: linear-gradient(135deg, #faf7fc 0%, #fff5f9 100%);
}

.driver-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: center;
}

.driver-flex.reverse {
    flex-direction: row;
}

.driver-info {
    flex: 1;
    min-width: 280px;
}

.driver-info h2 {
    font-size: 1.8rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.driver-info h2 span {
    color: var(--magenta-primary);
}

.driver-benefits {
    display: grid;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.benefit-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.benefit-check {
    color: var(--magenta-primary);
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--magenta-soft);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-item strong {
    color: var(--gray-800);
    display: block;
    margin-bottom: 0.15rem;
}

.benefit-item span {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.driver-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-driver {
    background: var(--magenta-primary);
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    display: inline-block;
    transition: 0.25s;
    border: none;
    cursor: pointer;
}

.btn-driver:hover {
    background: var(--magenta-light);
    transform: translateY(-2px);
}

.driver-graphic {
    flex: 1;
    min-width: 260px;
    text-align: center;
}

.graphic-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.graphic-card-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
}

.graphic-card p {
    color: var(--magenta-primary);
    font-weight: 600;
}

/* Check lists */
.check-list {
    list-style: none;
    padding: 0;
    margin-top: 1.2rem;
}

.check-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 0.8rem;
}

.check-mark, .conductor-mark {
    color: var(--magenta-primary);
    font-weight: bold;
}

/* Business card (oculto) */
.card-business {
    display: none;
}

/* Logo explicación (oculto) */
.logo-explicacion {
    display: none;
}

/* Featured section (oculto) */
.featured-section {
    display: none;
}

/* Footer */
.footer {
    background: var(--gray-50);
    padding: 2.5rem 2rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 3rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.footer-links {
    margin: 1.2rem 0 1rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
    cursor: pointer;
}

.footer-link:hover {
    color: var(--magenta-primary);
}

.footer-copyright {
    margin-top: 0.8rem;
    font-size: 0.7rem;
    color: var(--gray-400);
}

.footer p {
    color: var(--gray-500);
    font-size: 0.8rem;
    margin: 0.3rem 0;
}

/* Legal pages */
.legal-box {
    max-width: 880px;
    margin: 0 auto;
}

.legal-box h1 {
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
    color: var(--gray-900);
}

.legal-box h3 {
    color: var(--gray-800);
    margin: 1.5rem 0 0.8rem;
    font-size: 1.2rem;
}

.divider-light {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 1rem 0;
}

.card-delete {
    border: 1px solid #ffcdd2;
}

.delete-list {
    margin: 1rem 0 1rem 1.8rem;
}

.step-delete-modern {
    background: #fff5f5;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.2rem 0;
    border-left: 4px solid #e53e3e;
}

.step-item {
    margin-bottom: 0.6rem;
    padding-left: 1.3rem;
    position: relative;
}

.step-item:before {
    content: "→";
    color: #e53e3e;
    position: absolute;
    left: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .page-container {
        padding: 0 1rem;
        margin-top: 100px;
    }
    .nav-container {
        padding: 0.75rem 1rem;
    }
    .nav-links {
        width: 100%;
        justify-content: center;
    }
    .nav-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .driver-info h2 {
        font-size: 1.5rem;
    }
    .card-tech {
        padding: 1.4rem;
    }
    .footer-links {
        gap: 1rem;
    }
    .driver-flex.reverse {
        flex-direction: column;
    }
    .driver-flex {
        flex-direction: column;
    }
    /* En móvil, las tarjetas de pasajero/conductor vuelven a ser columna */
    .grid-cards {
        grid-template-columns: 1fr;
    }
}

/* Grid de 3 columnas para Misión, Visión, Diferencias */
.grid-cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: stretch;
}

.grid-cards-3 .card-tech {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Grid de 2 columnas para Pasajero y Conductor */
.grid-cards-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: stretch;
}

.grid-cards-2 .card-tech {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.grid-cards-2 .card-tech .check-list {
    flex: 1;
}

/* Responsive: en móvil ambos pasan a 1 columna */
@media (max-width: 768px) {
    .grid-cards-3,
    .grid-cards-2 {
        grid-template-columns: 1fr;
    }
}