:root {
    --primary-color: #262760;
    --secondary-color: #1f4c29;
    --accent-blue: #0056b3;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #212529;
    --text-color: #333333;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4, .nav-menu a {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

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

/* Navbar */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 60px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(38, 39, 96, 0.65), rgba(31, 76, 41, 0.65)), url('../assets/pegalante/colage de fotos.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 20px;
}

.hero-logo img {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
    margin-bottom: 30px;
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    transition: var(--transition);
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 8px 15px rgba(31, 76, 41, 0.3);
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(38, 39, 96, 0.4);
}

.btn-secondary {
    background: #25D366;
    color: var(--white);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    transition: var(--transition);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3);
}

/* Video Section */
.video-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1b4b 100%);
    padding: 80px 0;
    text-align: center;
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border: 5px solid rgba(255,255,255,0.1);
}

.video-wrapper video {
    width: 100%;
    display: block;
}

/* Conversion Section */
.conversion-section {
    background: var(--secondary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.conversion-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 900;
    text-transform: uppercase;
}

/* Section Titles */
.section-title {
    margin-bottom: 50px;
    text-align: center;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 900;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Why Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 25px;
}

@media (max-width: 1200px) {
    .why-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .why-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.why-card {
    background: var(--white);
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
}

.why-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.why-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.why-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.gallery-img-container {
    height: 250px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.img-caption {
    padding: 20px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-top: 4px solid var(--secondary-color);
}

/* Testimonials - Desktop Single Row */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-left: 5px solid var(--secondary-color);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.stars {
    color: #FFD700;
    margin-bottom: 15px;
}

.testimonial-card strong {
    color: var(--primary-color);
    text-transform: uppercase;
}

/* FAQ - Improved Design */
.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.faq-item {
    border-radius: 12px;
    border: 1px solid rgba(38, 39, 96, 0.1);
    background: var(--white);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-header {
    padding: 20px 25px;
    background: var(--white);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    transition: var(--transition);
}

.faq-item.active .faq-header {
    background: var(--primary-color);
    color: var(--white);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--white);
}

.faq-content p {
    padding: 20px 25px;
}

.faq-item.active .faq-content {
    max-height: 200px;
}

/* Contact Section Fixed */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-top: 5px solid var(--secondary-color);
}

.contact-form h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 900;
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light-gray);
}

.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: var(--white);
    box-shadow: 0 5px 15px rgba(31, 76, 41, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-box {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
}

.info-box:hover {
    transform: translateX(10px);
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.info-box i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.info-box h4 {
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 800;
}

.info-box p, .info-box a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
}

.info-box a:hover {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background: #0a0a0a;
    padding: 80px 0 30px;
    color: var(--white);
}

.footer-logo img {
    height: 80px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    opacity: 0.7;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* WhatsApp Double Widget */
.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.whatsapp-float {
    width: 65px;
    height: 65px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

.whatsapp-float img {
    width: 60%;
    height: 60%;
}

.wa-label {
    position: absolute;
    right: 75px;
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.whatsapp-float:hover .wa-label {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

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

.wa-1 { animation: pulse 2s infinite; }
.wa-2 { animation: pulse 2s infinite 1s; background: #128C7E; }

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

.close-lightbox {
    position: absolute;
    top: 40px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar { height: 70px; }
    .logo img { height: 50px; }
    .menu-toggle { display: block; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%; /* Ocupa todo el ancho para mayor impacto */
        height: 100vh;
        background: #4a4a4a !important; /* Gris ratón marcado */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 1050;
        box-shadow: none;
    }

    .nav-menu li {
        margin: 20px 0;
        width: 80%;
        text-align: center;
    }

    .nav-menu a {
        background: rgba(255,255,255,0.1);
        color: white !important;
        font-size: 1.5rem;
        padding: 25px;
        border-radius: 20px;
        border: 1px solid rgba(255,255,255,0.2);
        display: block;
    }

    .logo img {
        height: 90px !important; /* Logo mucho más grande en móvil */
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-menu a {
        background: white;
        color: var(--primary-color) !important;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        border-left: 6px solid var(--secondary-color);
    }

    .logo img {
        height: 70px; /* Logo más grande en móvil */
    }

    .nav-menu.active { right: 0; }

    .nav-menu li { margin: 10px 0; width: 100%; }

    .nav-menu a {
        display: block;
        background: rgba(255,255,255,0.05);
        padding: 18px;
        border-radius: 15px;
        color: var(--white);
        text-align: left;
    }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.4rem; }
    .section-title h2 { font-size: 2.2rem; }
    
    .contact-grid { grid-template-columns: 1fr; }
}


/* Carro Cero Section Styles */
.carrocero-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.carrocero-logo-box {
    text-align: center;
}

.carrocero-logo {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.carrocero-content h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 900;
}

.carrocero-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.carrocero-description {
    font-size: 1.05rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 25px;
}

.carrocero-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(31, 76, 41, 0.08);
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.highlight-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.highlight-item span {
    font-weight: 600;
    color: var(--text-color);
}

/* Carro Cero Gallery */
.carrocero-gallery {
    margin-bottom: 60px;
}

.carrocero-gallery h3 {
    font-size: 2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 900;
    position: relative;
    padding-bottom: 15px;
}

.carrocero-gallery h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
}

.gallery-grid-carrocero {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px;
}

@media (max-width: 1200px) {
    .gallery-grid-carrocero {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .gallery-grid-carrocero {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.gallery-item-carrocero {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.gallery-img-container-carrocero {
    height: 240px;
    overflow: hidden;
    background: #f0f0f0;
}

.gallery-item-carrocero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item-carrocero:hover img {
    transform: scale(1.08);
}

.img-caption-carrocero {
    padding: 18px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-top: 4px solid var(--secondary-color);
}

/* Carro Cero Specs */
.carrocero-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.specs-column h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 25px;
    font-weight: 900;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 15px;
}

.specs-list {
    list-style: none;
}

.specs-list li {
    padding: 12px 0;
    color: var(--text-color);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 1rem;
    line-height: 1.6;
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list strong {
    color: var(--primary-color);
    font-weight: 700;
}

.presentations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.presentation-item {
    background: rgba(31, 76, 41, 0.08);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--secondary-color);
    transition: var(--transition);
}

.presentation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(31, 76, 41, 0.15);
}

.presentation-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.presentation-item p {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
}

.presentation-item strong {
    color: var(--primary-color);
    font-size: 1.3rem;
    display: block;
    margin-bottom: 5px;
}

/* Carro Cero CTA */
.carrocero-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1b4b 100%);
    color: var(--white);
    padding: 50px 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(38, 39, 96, 0.2);
}

.carrocero-cta h3 {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 900;
}

.carrocero-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons-carrocero {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons-carrocero .btn-primary,
.cta-buttons-carrocero .btn-secondary {
    padding: 15px 35px;
    font-size: 0.95rem;
}

/* Responsive - Carro Cero */
@media (max-width: 992px) {
    .carrocero-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .carrocero-content h2 {
        font-size: 2.2rem;
    }

    .carrocero-specs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .carrocero-header {
        grid-template-columns: 1fr;
    }

    .carrocero-logo {
        max-height: 200px;
    }

    .carrocero-content h2 {
        font-size: 2rem;
    }

    .carrocero-subtitle {
        font-size: 1.1rem;
    }

    .carrocero-highlights {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .carrocero-gallery h3 {
        font-size: 1.6rem;
    }

    .gallery-grid-carrocero {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-img-container-carrocero {
        height: 200px;
    }

    .carrocero-specs {
        padding: 25px;
    }

    .specs-column h3 {
        font-size: 1.3rem;
    }

    .presentations {
        grid-template-columns: 1fr;
    }

    .carrocero-cta {
        padding: 35px 25px;
    }

    .carrocero-cta h3 {
        font-size: 1.6rem;
    }

    .cta-buttons-carrocero {
        flex-direction: column;
        gap: 15px;
    }

    .cta-buttons-carrocero .btn-primary,
    .cta-buttons-carrocero .btn-secondary {
        width: 100%;
    }
}
