/* main.css - Sebriauto 2000 */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import url('logo.css');

:root {
    --bg-color: #0D0D0D;
    --bg-secondary: #161616;
    --bg-card: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --primary-color: #1B4F8A; /* Azul Corporativo */
    --accent-color: #E8700A;  /* Naranja/Dorado */
    --accent-hover: #FF8520;
    --border-color: #333333;
    --success: #28a745;
    --error: #dc3545;
    --font-main: 'DM Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button, .btn {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-main);
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
}

.btn-primary:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 24px;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: 80px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1.5px;
}

.logo span:first-child { color: white; }
.logo span:last-child { color: white; margin-left: 0; }

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

/* Nav Right: lang switcher + hamburger (always visible) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.lang-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: var(--transition);
    cursor: pointer;
}

.lang-btn:hover, .lang-btn.active {
    opacity: 1;
    transform: scale(1.1);
}

.flag-icon {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.lang-btn.active .flag-icon {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Navbar CTA button */
.nav-cta {
    padding: 9px 18px;
    font-size: 0.88rem;
    gap: 7px;
    white-space: nowrap;
}

.nav-cta i {
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .nav-cta {
        display: none;
    }
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 80px 20px 40px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-info h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-info p, .footer-info a {
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: block;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: center;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.footer-bottom-links a:not(:last-child)::after {
    content: "•";
    position: absolute;
    right: -15px;
    color: var(--border-color);
    pointer-events: none;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Page Header (shared across all pages) */
.page-header {
    padding: 120px 20px 60px;
    background-color: var(--bg-secondary);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Common Layout Elements */
.section {
    padding: 100px 20px;
}

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Utility */
.text-accent { color: var(--accent-color); }
.text-primary { color: var(--primary-color); }
.btn-full { width: 100%; padding: 14px; }

.section-alt { background-color: var(--bg-secondary); }

.section-cta {
    text-align: center;
    margin-top: 50px;
}

.loading-text {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
}

.error-text { color: var(--error); }

/* Footer logo spacing */
.footer-logo {
    margin-bottom: 20px;
    display: inline-flex;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 500px;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 25px;
    z-index: 9999;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cookie-banner.active {
    transform: translateX(-50%) translateY(0);
}

.cookie-content h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.cookie-btns {
    display: flex;
    gap: 15px;
}

.cookie-btns button {
    flex: 1;
}

/* Animations fixes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
    footer {
        padding-bottom: 120px;
    }

    .nav-links {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .section {
        padding: 60px 20px;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .page-header {
        padding: 100px 20px 40px;
    }
    .page-header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .navbar {
        height: 65px;
    }
    .nav-container {
        padding: 0 16px;
    }
    .logo {
        font-size: 1.2rem;
    }
    .flag-icon {
        width: 24px;
        height: 17px;
    }
    .section {
        padding: 50px 16px;
    }
    .section-title h2 {
        font-size: 1.6rem;
    }
    .section-title p {
        font-size: 0.9rem;
    }
    .page-header {
        padding: 85px 16px 35px;
    }
    .page-header h1 {
        font-size: 1.8rem;
    }
    .page-header p {
        font-size: 0.95rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-bottom: 20px;
    }
    .footer-bottom-links {
        flex-wrap: wrap;
        gap: 15px;
    }
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 16px;
        font-size: 1.6rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.active-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile nav open state - Glassmorphism */
@media (max-width: 900px) {
    .nav-links.nav-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 85vw);
        height: 100vh;
        background-color: rgba(13, 13, 13, 0.92);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        padding: 100px 32px 40px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -20px 0 50px rgba(0,0,0,0.8);
        z-index: 2000;
        animation: slideInPremium 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        gap: 0;
        align-items: flex-start;
    }
    
    .nav-links.nav-open a {
        font-size: 1.3rem;
        font-weight: 600;
        padding: 14px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        transform: translateX(20px);
        opacity: 0;
        animation: slideInLink 0.3s ease-out forwards;
    }

    .nav-links.nav-open a:nth-child(1) { animation-delay: 0.08s; }
    .nav-links.nav-open a:nth-child(2) { animation-delay: 0.13s; }
    .nav-links.nav-open a:nth-child(3) { animation-delay: 0.18s; }
    .nav-links.nav-open a:nth-child(4) { animation-delay: 0.23s; }
}

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

@keyframes slideInLink {
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}
