:root {
    --primary-dark: #0a0e27;
    --primary-blue: #1e3a8a;
    --accent-gold: #C91215;
    --accent-orange: #E5484A;
    --text-light: #f1f5f9;
    --text-gray: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--primary-dark);
    color: var(--text-light);
    overflow-x: hidden;
    cursor: none;
}

/* Forzar la desaparición del cursor nativo en elementos interactivos */
a, button, input, [role="button"], .menu-toggle, .video-indicator, .testimonial-btn {
    cursor: none;
}

/* Cursor personalizado */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 0.1s ease;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(201, 18, 21, 0.1);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9998;
}

.cursor.hover {
    width: 50px;
    height: 50px;
    background: rgba(201, 18, 21, 0.3);
    border-color: var(--accent-orange);
}

/* Animaciones avanzadas */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(201, 18, 21, 0.5); }
    50% { box-shadow: 0 0 40px rgba(201, 18, 21, 0.8); }
}

@keyframes text-reveal {
    from { 
        opacity: 0;
        transform: translateY(50px) skewY(-5deg);
    }
    to { 
        opacity: 1;
        transform: translateY(0) skewY(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-100px) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100px) rotateY(-90deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* Partículas de fondo */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-up 15s infinite linear;
}

@keyframes float-up {
    from {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    to {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Header con efecto glassmorphism */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 5px 30px;
    background: rgba(10, 14, 39, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 900;
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
}

.logo i {
    font-size: 35px;
    margin-right: 15px;
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: float 3s ease-in-out infinite;
}

.logo-imagen {
    width: 200px;
    height: auto;
    margin-right: 15px;
    margin:15px;
    padding:0;
    transition: all 0.3s ease;
}

header.scrolled .logo-imagen {
    width: 120px;
    margin: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
    transition: width 0.3s ease;
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    font-size: 28px;
    color: var(--accent-gold);
    cursor: pointer;
}

/* Hero Section con videos de camiones */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 120px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide video,
.hero-slide iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-desktop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-mobile {
    display: none; /* Hidden by default */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.7) 0%, rgba(30, 58, 138, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: 0 30px;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 20px;
    animation: text-reveal 1s ease;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-reveal 1.2s ease;
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 40px;
    animation: text-reveal 1.4s ease;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: text-reveal 1.6s ease;
}

.btn {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    color: var(--primary-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 18, 21, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent-gold);
}

.mi-camion {
    display: none;
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn i {
    font-size: 18px;
}

/* Estilos para el botón de reseña en la sección de testimonios */
#openReviewModal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 30px auto 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 2px solid var(--accent-gold);
    background: transparent;
    color: var(--text-light);
}

#openReviewModal:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(201, 18, 21, 0.3);
}

#openReviewModal i {
    transition: transform 0.3s ease;
}

#openReviewModal:hover i {
    transform: scale(1.1);
}

/* Indicadores de video */
.video-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.video-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-indicator.active {
    background: var(--accent-gold);
    width: 40px;
    border-radius: 6px;
}

/* Sección de servicios con tarjetas 3D */
.services {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(251, 191, 36, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(201, 18, 21, 0.2);
    border-color: var(--accent-gold);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: var(--primary-dark);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg) scale(1.1);
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 8px 0;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li i {
    color: var(--accent-gold);
    font-size: 14px;
}

/* Sección de estadísticas con animación */
.stats {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 18, 21, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 30px rgba(201, 18, 21, 0.2);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sección de cobertura con mapa interactivo */
.coverage {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.coverage-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.coverage-map-container {
    position: relative;
    height: 600px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 60px;
}

.coverage-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.coverage-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(10, 14, 39, 0.9);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--accent-gold);
    max-width: 500px;
    animation: pulse-glow 3s ease-in-out infinite;
}

.coverage-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.coverage-states {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 30px;
}

.state-item {
    padding: 10px;
    background: var(--glass-bg);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.state-item:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: scale(1.05);
}

/* Sección de testimonios con carrusel infinito */
.testimonials {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, var(--primary-blue));
    position: relative;
    z-index: 2;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 20px; /* Añadido para dar espacio en el hover */
    padding-bottom: 20px; /* Añadido para simetría */
    margin-top: 60px;
}

.carousel-track {
    display: flex;
    animation: scroll-infinite 20s linear infinite;
    width: calc(350px * 6); /* 6 testimonios * 350px de ancho */
}

.testimonial-card {
    flex: 0 0 320px;
    margin: 0 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
}

.testimonial-text {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid var(--accent-gold);
    margin-bottom: 15px;
    object-fit: cover;
}

.user-name {
    font-weight: bold;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.user-role {
    color: var(--text-gray);
    font-size: 0.9rem;
}

@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-300px * 5)); /* Ajustado para móviles */
    }
}

/* Pausar animación en hover */
.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

/* Sección de contacto premium */
.contact {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.contact-info {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 50px;
    position: relative; /* Create stacking context */
}

.contact-item {
    position: relative; /* Requerido para anclar los botones flotantes */
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(201, 18, 21, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item-clickable {
    cursor: pointer; /* Indica que el elemento es clickeable */
}

.floating-numbers {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    top: 50%;
    background: var(--primary-dark);
    border: 1px solid var(--accent-gold);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    min-width: 200px;
    width: 90%;
    max-width: 300px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-sizing: border-box;
}

/* Estilos específicos para pantallas más grandes */
@media (min-width: 768px) {
    .floating-numbers {
        left: calc(100% + 10px);
        transform: translateY(-50%);
        width: auto;
        min-width: 200px;
    }
}

.floating-numbers.active {
    opacity: 1;
    visibility: visible;
}

.floating-numbers a {
    display: flex; /* Use flexbox for alignment */
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    word-break: break-word;
    white-space: normal;
}

.floating-numbers a:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.contact-item:hover {
    background: rgba(201, 18, 21, 0.1);
    transform: translateX(10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-dark);
}

.contact-details h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--text-gray);
}

.contact-visual {
    position: relative;
}

.contact-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
}

.contact-cta {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    z-index: 5; /* Lift the whole card up */
}

.contact-cta h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.contact-cta p {
    color: var(--primary-dark);
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Positioning for the new menu inside the CTA card */
.contact-cta .floating-numbers {
    bottom: 110%; /* Position it just above the button */
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 100%; /* Make it as wide as the button */
}

.contact-cta .floating-numbers.active {
    z-index: 10; /* Ensure menu appears above other elements */
}

/* Botón flotante de WhatsApp mejorado */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-glow 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1); /* Simplified hover effect for menu button */
}

/* Positioning for the new WhatsApp floating menu */
.whatsapp-float .floating-numbers {
    position: absolute;
    bottom: 85px; /* Positioned above the button */
    right: 0;
    left: auto; /* Override default positioning */
    top: auto; /* Override default positioning */
    transform: none; /* Override default positioning */
    z-index: -1; /* Hide behind button by default */
}

.whatsapp-float .floating-numbers.active {
    z-index: 1001; /* Bring to front when active */
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 10px 15px;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* Footer premium */
footer {
    background: var(--primary-dark);
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    background-clip: text;
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-links a:hover i {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    color: var(--primary-dark);
    transform: translateY(-5px) rotate(360deg);
}

.footer-imagen{
    width: 250px;
    height: auto;
    margin-bottom: 20px;
    padding:0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 1200px) {
    header {
        padding: 15px 40px;
    }
    header.scrolled {
        padding: 5px 40px;
    }
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 992px) {
    .nav-links {
        gap: 30px;
    }
    .hero-content {
        max-width: 800px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    .contact-content {
        grid-template-columns: 1fr;
    }
    .contact-visual {
        margin-top: 40px;
    }
    .contact-image {
        height: 350px;
    }
    .contact-cta {
        position: relative;
        bottom: auto;
        right: auto;
        width: calc(100% - 40px);
        margin: -60px auto 0;
        box-sizing: border-box;
    }
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    header.scrolled {
        padding: 5px 20px;
    }
    .logo-imagen {
        width: 160px;
    }
    body {
        cursor: auto;
    }
    .cursor, .cursor-follower {
        display: none;
    }
    .menu-toggle {
        display: flex;
        z-index: 1001;
        background: none;
        border: none;
        font-size: 28px;
        color: var(--accent-gold);
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .menu-toggle:hover {
        transform: rotate(90deg);
    }
    .video-desktop {
        display: none;
    }
    .video-mobile {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    .nav-links {
        position: absolute;
        top: calc(100% + 10px); /* Position below the header with a small gap */
        right: 20px; /* Align to the right padding of the header */
        width: 200px; /* Adjusted to be smaller */
        background: var(--primary-dark);
        border-radius: 15px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.4);
        
        flex-direction: column;
        
        /* Dropdown animation */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        max-height: 400px; /* Large enough value to show all links */
        padding: 10px 0;
        border: 1px solid var(--glass-border);
    }

    .nav-links a {
        font-size: 16px;
        padding: 12px 25px;
        text-align: right; /* Text aligned to the right */
        transition: background-color 0.3s ease, color 0.3s ease;
        color: var(--text-light);
    }

    .nav-links a:hover {
        background-color: var(--accent-gold);
        color: var(--primary-dark);
        transform: none; /* Override desktop hover effect */
    }

    @keyframes nav-link-fade {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .hero {
        margin-top: 100px;
        height: calc(100vh - 100px);
        padding: 0;
    }
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
    .hero-description {
        font-size: 18px;
    }
    .hero-buttons {
        flex-wrap: wrap; /* Permite que los botones se envuelvan */
        justify-content: center;
    }
    .btn {
        margin-bottom: 10px; /* Añade espacio inferior a los botones */
    }
    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .coverage-map-container {
        height: 600px;
    }

    .services,
    .stats,
    .coverage,
    .testimonials,
    .contact {
        padding: 80px 0;
    }

    .coverage-overlay {
        padding: 30px;
        max-width: 90%;
    }
    .coverage-states {
        grid-template-columns: repeat(2, 1fr);
    }

    .carousel-container {
        overflow: hidden; /* Cambiado de auto a hidden para ocultar el scroll */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .carousel-container::-webkit-scrollbar {
        display: none;
    }

    .carousel-track {
        animation: scroll-infinite 30s linear infinite; /* Animación más lenta para móviles */
        width: calc(300px * 10); /* Ancho suficiente para la animación */
        justify-content: flex-start;
    }
    
    /* Asegurar que las tarjetas tengan el mismo ancho en móviles */
    .testimonial-card {
        flex: 0 0 280px;
        margin: 0 10px;
    }

    .testimonials-carousel {
        padding: 0;
    }
    .testimonial-card {
        padding: 40px 25px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer-links a:hover {
        transform: translateX(0);
    }
    .footer-links a:hover i {
        opacity: 0;
    }

    /* Fix for Contact Section Alignment on Mobile */
    .contact-content {
        display: block; /* Override grid layout for simpler stacking */
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-icon i {
        font-size: 22px;
        width: 22px;
        text-align: center;
    }

    .contact-cta {
        width: 90%;
        margin: -60px auto 0;
    }
}

@media (max-width: 576px) {
    .section-header {
        margin-bottom: 60px;
    }
    .section-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    .services-grid {
        padding: 0 20px;
    }
    .service-card {
        padding: 30px;
    }
    .stats-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    .coverage-container {
        padding: 0 20px;
    }
    .coverage-states {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-container {
        padding: 0 15px; /* Reduced padding */
    }
    .contact-info {
        padding: 20px; /* Reduced padding */
    }
    .contact-item {
        padding: 15px; /* Reduced padding */
        gap: 15px; /* Reduced gap */
    }
    .whatsapp-float {
        width: 60px;
        height: 60px;
        font-size: 30px;
        bottom: 20px;
        right: 20px;
    }
    .footer-content {
        padding: 0 20px;
    }
}

/* Animación de scroll */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

.hero-slide video {
    pointer-events: none;
    display: block;
}

/* Estilos para el modal de reseña */
.review-modal {
    display: flex; /* Cambiado a flex para centrar el contenido */
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-modal.active {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 1;
    visibility: visible;
}

.review-modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
}

.review-modal.active .review-modal-content {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    color: var(--text-light);
}

.close-modal {
    color: var(--text-gray);
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-gold);
    text-decoration: none;
    cursor: pointer;
}

.review-modal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--accent-gold);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

#reviewForm .btn-primary {
    width: 100%;
    justify-content: center;
}
/* Custom Tooltip Styles */
.custom-tooltip {
    position: fixed; /* Use fixed positioning to avoid issues with scroll containers */
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10001; /* Higher than cursor */
    pointer-events: none; /* Tooltip should not be interactive */
    opacity: 0;
    transform: translate(-50%, -10px); /* Start slightly above */
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
}

.custom-tooltip.visible {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
}

/* Optional: Arrow for the tooltip */
.custom-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%; /* Arrow at the bottom */
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--accent-gold) transparent transparent transparent;
}
.error-message {
    background: var(--accent-orange);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.visible {
    display: block;
    opacity: 1;
}

.stat-image-container {
    position: absolute;
    bottom: 0;
    top: 180px;
    right: 0px;
    left: 380px;
    width: 70%;
    pointer-events: none; /* Para que no interfiera con el cursor */
}

.stat-image-container img {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(120%); /* Aumentar el contraste */
}

/* Ocultar imagen en pantallas menores a 900px */
@media (max-width: 900px) {
    .stat-image-container {
        display: none;
    }
}