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

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #0f3460;
    --accent-color: #16213e;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --bg-gray: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: var(--white);
    min-height: 100vh;
    padding: 0;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
}

header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 20px 30px;
    text-align: center;
}

header h1 {
    font-size: 2.25rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 400;
}

.date-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 16px;
}

.date-info span {
    padding: 6px 16px;
    background: var(--bg-gray);
    border-radius: 20px;
    font-weight: 500;
}

.city-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 24px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.city-btn {
    padding: 10px 24px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--white);
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.city-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.city-btn.active {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.day-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 20px;
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border-color);
}

.day-btn {
    padding: 10px 32px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--white);
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.day-btn:hover {
    border-color: var(--success-color);
    color: var(--success-color);
}

.day-btn.active {
    background: var(--success-color);
    color: var(--white);
    border-color: var(--success-color);
}

main {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.pico-placa-card {
    background: var(--white);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 24px;
}

.restriction-status {
    text-align: center;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    font-size: 1.25rem;
    font-weight: 600;
    border: 2px solid;
}

.restriction-status.active {
    background: #fef2f2;
    color: var(--danger-color);
    border-color: #fecaca;
}

.restriction-status.inactive {
    background: #f0fdf4;
    color: var(--success-color);
    border-color: #bbf7d0;
}

.vehicle-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.vehicle-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.vehicle-section h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.restriction-details {
    background: var(--bg-gray);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.restriction-details p {
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 500;
}

.plates-container {
    margin-top: 16px;
}

.plates-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.plate {
    background: var(--danger-color);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 1.5rem;
    min-width: 60px;
    box-shadow: var(--shadow-sm);
}

.time-info {
    background: var(--white);
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.time-info strong {
    color: var(--warning-color);
    font-weight: 600;
}

.no-restriction {
    color: var(--success-color);
    font-weight: 600;
    font-size: 1rem;
}

footer {
    background: var(--bg-gray);
    padding: 24px 20px;
    text-align: center;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

footer p {
    margin: 4px 0;
}

.disclaimer {
    font-size: 0.85rem;
    opacity: 0.8;
}

.loading-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 32px 16px 24px;
    }

    header h1 {
        font-size: 1.875rem;
    }

    .city-selector {
        flex-direction: column;
        padding: 16px;
    }

    .city-btn {
        width: 100%;
    }

    .day-selector {
        flex-direction: row;
        padding: 16px;
    }

    .day-btn {
        flex: 1;
    }

    .date-info {
        flex-direction: column;
        gap: 8px;
    }

    main {
        padding: 32px 16px;
    }

    .vehicle-section {
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .plates-grid {
        gap: 8px;
    }

    .plate {
        padding: 10px 16px;
        font-size: 1.25rem;
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    main {
        padding: 24px 12px;
    }

    .restriction-status {
        font-size: 1.125rem;
        padding: 20px;
    }

    .admin-toggle {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .admin-panel {
        right: 20px;
        bottom: 80px;
        min-width: calc(100vw - 40px);
    }
}
