/* =============================
   ESTILOS GENERALES MODERNIZADOS
============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 100px; /* Espacio para el header fijo al hacer scroll */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    color: #2d3748;
    line-height: 1.6;
    padding-top: 80px; /* espacio para el header fijo */
    scroll-behavior: smooth;
}

/* =============================
   COLORES DE LA MARCA ACTUALIZADOS
============================= */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --accent: #1e40af;
    --light: #eff6ff;
    --dark: #1e293b;
    --gray: #64748b;
    --gray-light: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* =============================
   CONTENEDOR
============================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =============================
   HEADER MODERNO CON SCROLL PADDING
============================= */
header {
    background: var(--white);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    max-width: 160px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.03);
}

/* =============================
   MENÚ HAMBURGUESA MEJORADO
============================= */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--dark);
    transition: all 0.3s ease;
    z-index: 2100;
}

.menu-toggle:hover {
    color: var(--primary);
}

.menu-toggle.open {
    color: var(--secondary);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
    background-color: var(--gray-light);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 80%;
}

/* =============================
   SECCIÓN SERVICIOS MODERNA CON SCROLL MARGIN
============================= */
.services {
    background-color: var(--white);
    padding: 100px 0;
    scroll-margin-top: 100px; /* Evita que el header tape el título */
}

.services h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--accent);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card h3 {
    color: var(--primary);
    border-bottom: none;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 1.4rem;
    position: relative;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.service-card li:before {
    content: "✓";
    color: var(--secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
    background: var(--light);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* =============================
   SECCIÓN DRIVERS MODERNA CON SCROLL MARGIN
============================= */
.drivers {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px; /* Evita que el header tape el título */
}

.drivers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.05"><polygon points="1000,0 1000,100 0,100"></polygon></svg>');
    background-size: cover;
}

.drivers h2 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 2.2rem;
    position: relative;
}

.drivers p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.btn-drivers {
    background: var(--secondary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn-drivers::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-drivers:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-drivers:hover::before {
    left: 100%;
}

/* =============================
   SECCIÓN TESTIMONIOS MODERNA CON SCROLL MARGIN
============================= */
.testimonios {
    background-color: var(--gray-light);
    padding: 100px 0;
    text-align: center;
    scroll-margin-top: 100px; /* Evita que el header tape el título */
}

.testimonios h2 {
    color: var(--accent);
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

.testimonios h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonio-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    text-align: left;
}

.testimonio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonio-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 4rem;
    color: var(--light);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonio-nombre {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.testimonio-fecha {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.testimonio-comentario {
    font-style: italic;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonio-puntuacion {
    color: var(--secondary);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.btn-testimonio-container {
    margin-top: 40px;
}

/* =============================
   CONTACTO MODERNO CON SCROLL MARGIN
============================= */
.contact {
    background: linear-gradient(135deg, var(--accent) 0%, var(--dark) 100%);
    color: var(--white);
    padding: 80px 0;
    scroll-margin-top: 100px; /* Evita que el header tape el título */
}

.contact h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    position: relative;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-form {
    background-color: var(--white);
    color: var(--dark);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
}

.contact-info p strong {
    min-width: 100px;
    display: inline-block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    box-shadow: var(--shadow);
}

button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* =============================
   BOTÓN WHATSAPP MODERNO
============================= */
.whatsapp-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    animation: none;
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =============================
   FOOTER MODERNO
============================= */
footer {
    background-color: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 25px 0;
}

/* =============================
   RESPONSIVE MEJORADO
============================= */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    html {
        scroll-padding-top: 90px;
    }
    
    .services,
    .drivers,
    .testimonios,
    .contact {
        scroll-margin-top: 90px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    html {
        scroll-padding-top: 80px;
    }
    
    .services,
    .drivers,
    .testimonios,
    .contact {
        scroll-margin-top: 80px;
    }
    
    .logo-img {
        max-width: 140px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 20px 30px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1900;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--gray-light);
    }
    
    .nav-menu a {
        color: var(--dark);
        font-size: 1.1rem;
        padding: 15px;
        display: block;
        width: 100%;
        border-radius: 0;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-menu a:hover {
        background: var(--light);
        color: var(--primary);
    }
    
    .services {
        padding: 70px 0;
    }
    
    .services h2,
    .testimonios h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonios-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-button {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    
    html {
        scroll-padding-top: 70px;
    }
    
    .services,
    .drivers,
    .testimonios,
    .contact {
        scroll-margin-top: 70px;
    }
    
    .services,
    .testimonios {
        padding: 60px 0;
    }
    
    .drivers,
    .contact {
        padding: 60px 0;
    }
    
    .service-card,
    .testimonio-card {
        padding: 20px;
    }
    
    .contact-form,
    .contact-info {
        padding: 20px;
    }
}