/* ============================================
   AUTO TALLERES ROMO - CSS FINAL (UPDATED)
   ============================================ */

:root {
    --blue: #0082dc;
    --black: #0a0a0a;
    --dark-gray: #111111;
    --text-gray: #a1a1aa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
}

/* ==================== LOADER ==================== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #27272a;
    border-top: 4px solid #0082dc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ==================== HEADER ==================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--black);
    border-bottom: 1px solid #27272a;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 65px;
    width: auto;
    display: block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover img {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 4px;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link i {
    color: var(--blue);
    font-size: 15px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.5px;
    background-color: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Active page underline */
.nav-link.active {
    color: #ffffff;
    font-weight: 600;
}

.nav-link.active::after {
    transform: scaleX(1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 9999px;
    padding: 3px;
}

.lang-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.2s ease;
    min-width: 38px;
    text-align: center;
}

.lang-btn.active {
    background-color: #0082dc;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 130, 220, 0.35);
}

.lang-btn:not(.active):hover {
    background-color: #27272a;
}

/* Hamburger */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.hamburger:hover {
    background-color: #18181b;
}

/* ==================== MOBILE HEADER ==================== */
@media (max-width: 768px) {
    .header-container {
        height: 72px;
        position: relative;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        height: 58px;
    }

    .main-nav,
    .desktop-lang {
        display: none;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background-color: var(--black);
    border-top: 1px solid #27272a;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-list {
    list-style: none;
    padding: 8px 24px;
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: #d4d4d8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-nav-list a:hover {
    background-color: #18181b;
    color: white;
}

.mobile-nav-list a i {
    color: var(--blue);
    width: 20px;
}

.mobile-lang {
    margin: 16px 24px 8px;
    border-top: 1px solid #27272a;
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.72), rgba(0,0,0,0.70));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(900px, 92%);
    text-align: center;
    padding: 0 20px;
}

.hero-tag {
    color: #0082dc;
    font-weight: 700;
    letter-spacing: 2.5px;
    font-size: 15px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero-content p {
    max-width: 680px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #d1d5db;
}

/* ==================== HERO BUTTONS ==================== */
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .hero-buttons {
        max-width: 280px;
    }
    
    .hero-buttons .btn {
        padding: 13px 20px;
        font-size: 14.5px;
    }
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0082dc;
    color: white;
}

.btn-primary:hover {
    background-color: #006bb3;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: white;
}

/* ==================== SERVICES ==================== */
.services {
    background-color: #0a0a0a;
    padding: 100px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.section-tag {
    color: #0082dc;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: clamp(2.4rem, 5vw, 3.3rem);
    margin: 16px 0 18px;
    line-height: 1.15;
}

.section-header p {
    color: #a1a1aa;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

.service-card {
    background-color: #111111;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 38px 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    border-color: #0082dc;
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: #1f1f23;
    color: #0082dc;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 26px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: #0082dc;
    color: #ffffff;
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    color: #a1a1aa;
    font-size: 1rem;
    line-height: 1.7;
}

/* Services Responsive */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 70px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 26px;
    }
    
    .service-icon {
        width: 58px;
        height: 58px;
        font-size: 24px;
        margin-bottom: 20px;
    }
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    background-color: #0a0a0a;
    padding: 90px 0;
}

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.about-img-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.about-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background-color: #0082dc;
    color: #ffffff;
    padding: 16px 22px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.about-badge .num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.about-badge .txt {
    font-size: 0.85rem;
    opacity: 0.9;
}

.about-content h2 {
    font-size: clamp(2.2rem, 4.5vw, 2.9rem);
    margin: 16px 0 20px;
    line-height: 1.2;
}

.about-content p {
    color: #a1a1aa;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 35px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #d1d5db;
    font-size: 1rem;
}

.check-item i {
    color: #0082dc;
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .about-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-img-wrap img {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 70px 0;
    }
    
    .about-img-wrap img {
        height: 380px;
    }
}

/* ==================== TESTIMONIALS ==================== */
.testimonials-section {
    background-color: #0a0a0a;
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}

.testimonial-card {
    background-color: #111111;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: #0082dc;
}

.stars {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.testimonial-text {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #27272a;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background-color: #0082dc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.author-name {
    color: #ffffff;
    font-weight: 600;
}

.author-vehicle {
    color: #a1a1aa;
    font-size: 0.9rem;
}

/* Testimonials Responsive */
@media (max-width: 1200px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Google Reviews Button */
.google-reviews-btn {
    text-align: center;
}

/* ==================== CTA BANNER ==================== */
.cta-banner {
    background: linear-gradient(135deg, #005a99 0%, #0082dc 45%, #1a9cff 100%);
    padding: 85px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-banner h2 {
    font-size: clamp(2.1rem, 4.8vw, 3rem);
    font-weight: 700;
    margin-bottom: 18px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.15rem;
    margin-bottom: 38px;
}

/* ==================== MAP + HOURS ==================== */
.map-section {
    background-color: #0a0a0a;
    padding: 90px 0 100px;
    border-top: 1px solid #27272a;
}

.map-hours-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid #27272a;
}

.map-container iframe {
    width: 100%;
    height: 480px;
    border: 0;
    display: block;
    filter: brightness(0.85) contrast(1.1) saturate(0.9);
}

.hours-widget {
    background-color: #111111;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 32px 28px;
}

.hours-widget h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hours-widget h3 i {
    color: #0082dc;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px;
    color: #a1a1aa;
    font-size: 0.95rem;
}

.hours-row.today {
    background-color: #1f1f23;
    color: #ffffff;
    font-weight: 600;
}

.hours-status {
    padding: 14px 18px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

.hours-status.open {
    background-color: rgba(0, 200, 83, 0.15);
    color: #00c853;
}

.hours-status.closed {
    background-color: rgba(255, 82, 82, 0.15);
    color: #ff5252;
}

@media (max-width: 992px) {
    .map-hours-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .map-container iframe {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .map-section {
        padding: 70px 0 80px;
    }
    
    .map-container iframe {
        height: 360px;
    }
}

/* ==================== FLOATING BUTTONS ==================== */
.floating-btn {
    position: fixed;
    right: 25px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 22px;
    z-index: 999;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.4s ease;
}

.floating-btn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-btn.whatsapp {
    bottom: 25px;
    background-color: #25D366;
}

.floating-btn.whatsapp:hover {
    background-color: #1da851;
    transform: translateY(-4px);
}

.floating-btn.call {
    bottom: 90px;
    background-color: #0082dc;
}

.floating-btn.call:hover {
    background-color: #006bb3;
    transform: translateY(-4px);
}

.floating-btn.top-btn {
    bottom: 155px;
    background-color: #222222;
    border: none;
    cursor: pointer;
}

.floating-btn.top-btn:hover {
    background-color: #333333;
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        right: 20px;
    }
    
    .floating-btn.whatsapp { bottom: 20px; }
    .floating-btn.call { bottom: 78px; }
    .floating-btn.top-btn { bottom: 136px; }
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #0082dc;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #006bb3;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: #111111;
    border-top: 1px solid #27272a;
    padding: 70px 0 35px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 1.55rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-brand p {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: #0082dc;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0082dc;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.footer-contact a,
.footer-contact p {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.footer-contact a:hover {
    color: #0082dc;
}

.footer-contact i {
    color: #0082dc;
    margin-top: 3px;
    width: 18px;
}

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 22px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: #1f1f23;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background-color: #0082dc;
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #27272a;
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    color: #a1a1aa;
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 55px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
}
