@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-light: #ffffff;
    --bg-alt: #f0f4fc; /* navy-50 */
    --bg-card: #ffffff;
    --primary: #1e3f7a; /* navy-600 */
    --primary-hover: #172e5c; /* navy-700 */
    --primary-light: #2d5fa6; /* navy-500 */
    --primary-soft: #f0f4fc; /* navy-50 */
    --accent: #7a6840; /* earth-500 */
    --accent-bg: #f5f0e8; /* earth-100 */
    
    --text-main: #111f40; /* navy-800 */
    --text-muted: #5f759e; /* slate-ish navy */
    --text-white: #ffffff;
    
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    
    --border: #e2e8f8;
    --border-hover: #b9d0f1; /* navy-200 */
    
    --shadow-soft: 0 4px 20px -4px rgba(17, 31, 64, 0.08), 0 1px 4px rgba(17, 31, 64, 0.04);
    --shadow-card: 0 10px 30px -10px rgba(17, 31, 64, 0.08), 0 1px 4px rgba(17, 31, 64, 0.03);
    --shadow-card-hover: 0 20px 40px -8px rgba(17, 31, 64, 0.15), 0 4px 12px rgba(17, 31, 64, 0.05);
    --shadow-cta: 0 8px 32px -4px rgba(45, 95, 166, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* --- ESTILOS DE LA LANDING PAGE --- */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    transition: background 0.3s;
}

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

.brand-icon {
    font-size: 1.8rem;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-light);
    border-radius: 4px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

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

.nav-link:hover::after {
    transform: scaleX(1);
}

.hero {
    padding: 120px 8% 100px 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 95, 166, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

.badge {
    background: var(--accent-bg);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 28px;
    text-transform: uppercase;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(122, 104, 64, 0.05);
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 720px;
    margin-bottom: 44px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

.features-section {
    padding: 100px 8%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 68px;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--primary-soft);
    border-radius: 16px;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08);
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.98rem;
}

.pricing-section {
    padding: 100px 8%;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.pricing-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 2px solid var(--primary-light);
    border-radius: 32px;
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-card-hover);
    position: relative;
    transition: transform 0.3s;
}

.pricing-container:hover {
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 20px;
    border-radius: 100px;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(122, 104, 64, 0.25);
}

.price {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    margin: 20px 0;
}

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

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 36px 0;
}

.pricing-features li {
    padding: 12px 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 900;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
}

.footer {
    padding: 48px 8%;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    background: #ffffff;
}

.footer p {
    margin-bottom: 12px;
}

.footer a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}


/* --- ESTILOS DE LA ADMINISTRACIÓN PRIVADA --- */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: var(--bg-alt);
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(45, 95, 166, 0.05) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(45, 95, 166, 0.05) 0%, transparent 40%);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 44px;
    border-radius: 28px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    box-shadow: var(--shadow-card-hover);
    z-index: 1;
}

.auth-logo {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: taxiBounce 2s infinite ease-in-out;
}

@keyframes taxiBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.auth-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--primary);
}

.auth-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.back-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

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

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

header h1 {
    color: var(--primary);
    font-weight: 800;
    font-size: 2rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 6px;
}

.header-actions {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 12px 28px;
    border-radius: 14px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-cta);
}

.btn.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(30, 63, 122, 0.35);
}

.btn.outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--primary);
}

.btn.outline:hover {
    border-color: var(--border-hover);
    background: var(--primary-soft);
    color: var(--primary);
}

.btn.outline.danger-hover:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.btn.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.w-100 {
    width: 100%;
}

.card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    background: var(--bg-alt);
}

tr:hover td {
    background-color: var(--bg-alt);
}

td {
    font-size: 15px;
    color: var(--text-main);
}

.status-badge {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    display: inline-block;
}

.status-badge.active { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.status-badge.expired { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
.status-badge.inactive { background: rgba(95, 117, 158, 0.12); color: var(--text-muted); }

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 20, 40, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    padding: 44px;
    border-radius: 28px;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card-hover);
}

.modal h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.input-group {
    margin-bottom: 22px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"], input[type="date"], input[type="number"], input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    color: var(--text-main);
    border-radius: 14px;
    outline: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

input:focus {
    border-color: var(--primary-light);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(45, 95, 166, 0.12);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.checkbox-group input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-light);
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    text-transform: none;
    font-weight: 600;
    letter-spacing: 0;
    font-size: 14px;
    color: var(--text-main);
}

.error-msg {
    color: var(--danger);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: left;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 36px;
}

.btn-android {
    background-color: #0b0f19;
    color: #ffffff;
    border: 1px solid var(--border);
    padding: 10px 24px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-soft);
}

.btn-android:hover {
    background-color: #121826;
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-card-hover);
}

.btn-android-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.btn-android-icon svg {
    width: 24px;
    height: 24px;
}

.btn-android-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.btn-android-text .small {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.btn-android-text .large {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.btn-img-download {
    display: inline-flex;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s;
    text-decoration: none;
    align-items: center;
    border-radius: 12px;
}

.btn-img-download:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
}

.btn-img-download:active {
    transform: translateY(0) scale(0.98);
}

@media(max-width: 768px) {
    .navbar {
        padding: 20px 5%;
        flex-direction: column;
        gap: 16px;
    }
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    .hero h1 {
        font-size: 2.4rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .hero-ctas .btn, .hero-ctas .btn-android {
        width: 100%;
    }
    .hero-ctas .btn-img-download {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .header-actions {
        width: 100%;
    }
    .header-actions .btn {
        flex: 1;
    }
}
