/* Variables globales */
:root {
    --primary: #0c477a;   
    --secondary: #f4931c;  
    --accent: #f6d357;     
    --accent-light: #f4a443; 
    --text-dark: #0c477a;  
    --text-light: #ffffff; 
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Preloader  */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #1a5a8c 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    flex-direction: column;
}

.loader-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    position: absolute;
    width: 100px; 
    height: 100px; 
    object-fit: contain;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: logoAnimation 3s ease-in-out infinite;
}
@keyframes logoAnimation {
    0% { 
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        filter: brightness(1.2);
    }
    100% { 
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1);
    }
}

.loader-spinner {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent);
    border-left: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.loader-spinner::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid transparent;
    border-top: 4px solid var(--secondary);
    border-radius: 50%;
    animation: spin 2s linear infinite reverse;
}

.loader-text {
    margin-top: 30px;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseLogo {
    0% { 
        opacity: 0;
        transform: scale(0.8);
    }
    50% { 
        opacity: 1;
        transform: scale(1);
    }
    100% { 
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes fadeInOut {
    0%, 100% { 
        opacity: 0;
        transform: translateY(10px);
    }
    50% { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progress {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}

/* Animación de salida del preloader */
.preloader-exit {
    animation: exitPreloader 0.5s ease-in-out forwards;
}

@keyframes exitPreloader {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
        visibility: hidden;
    }
}

/* Configuración general  */
body {
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* Menú Off-Canvas */
.offcanvas-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: var(--menu-width);
    height: 100vh;
    background: var(--primary);
    transition: 0.3s ease-in-out;
    z-index: 1000;
    padding: 2rem;
    color: white;
}

.offcanvas-menu.active {
    left: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease-in-out;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.1s ease;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

/* Líneas del menú hamburguesa */
.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.1s ease;
}

/* Hover effect */
.menu-toggle:hover span {
    background-color: var(--accent-light);
}

/* Animación cuando el menú está activo */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Estilo para el botón en scroll */
.menu-toggle.scrolled {
    background: var(--primary);
}

.menu-toggle.scrolled span {
    background-color: white;
}

.menu-toggle.scrolled:hover span {
    background-color: var(--accent);
}

.menu-toggle.hidden {
    opacity: 0;
    visibility: hidden;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 2rem;
}

.menu-links {
    list-style: none;
    margin-top: 4rem;
}

.menu-links a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 1rem 0;
    font-size: 1.2rem;
    transition: 0.2s;
}

.menu-links a:hover {
    color: var(--accent);
    padding-left: 10px;
}

/* Contenido Principal */
.main-content {
    transition: 0.2s;
    position: relative;
}

.main-content.shifted {
    transform: translateX(var(--menu-width));
}

/*Header Section*/

.main-header {
    position: absolute;
    top: 15px;
    left: 60px; /* Ajusta para colocar el logo al costado */
    z-index: 10; /* Asegúrate de que esté sobre el hero */
    background: none; /* Sin fondo */
    padding: 0; /* Quita el padding */
}

.logo {
    height: 60px; /* Tamaño inicial del logo */
    transition: height 0.3s ease, transform 0.3s ease;
}

.main-header.scrolled .logo {
    height: 40px; /* Tamaño reducido al hacer scroll */
    transform: translateY(-10px); /* Sutil movimiento hacia arriba */
}

.logo {
    height: 60px;
    transition: height 0.3s ease, transform 0.3s ease, filter 0.3s ease;
    cursor: pointer; /* Indica que es interactivo */
}

.logo:hover {
    transform: scale(1.05); /* Aumenta ligeramente el tamaño */
    filter: invert(41%) sepia(79%) saturate(420%) hue-rotate(8deg) brightness(99%) contrast(98%); /* Cambia el color del logo */
    box-shadow: 0 4px 15px --secondary; /* Añade una sombra para resaltar */
}

.logo.active {
    transform: rotate(360deg); /* Gira completamente al hacer clic */
    transition: transform 0.5s ease;
}


/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/auto.jpg') center/cover no-repeat;
    z-index: 0;
    transform: translateY(0);
    transform: translateZ(0);
    transition: transform 0.2s ease;
    backface-visibility: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1,
.hero p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
}

.hero h1 {
    animation-delay: 0.5s;
    font-size: 3rem;
}

.hero p {
    animation-delay: 1s;
    font-size: 1.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-down {
    position: absolute;
    bottom: -180px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 46px;
    height: 46px;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.scroll-down:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) translateY(-5px);
}

.scroll-down svg {
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Sección "Quiénes Somos" */
.acerca-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom right, #ffffff, #f9f9f9);
    position: relative;
    
}

.acerca-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%);
    pointer-events: none;
  }
  .acerca-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }
.acerca-content.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .acerca-content h2 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    transform: scale(0.9);
    transition: transform 0.3s ease;
  }

  .acerca-content:hover h2 {
    transform: scale(1);
  }

.acerca-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.acerca-list {
    display: grid;
    gap: 1.5rem;
    padding: 1rem;
  }

  .acerca-list li {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transform: translateX(-30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
  }

  .acerca-list li:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
  }

  .acerca-list li.visible {
    opacity: 1;
    transform: translateX(0);
  }

  .acerca-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary);
    transition: transform 0.3s ease;
  }

  .acerca-list li:hover::before {
    transform: translateX(5px);
  }
.acerca-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.acerca-section h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.acerca-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.acerca-section:hover h2::after {
    width: 100px;
}

.acerca-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* Seccion Flota */
.fleet-section {
    padding: 6rem 2rem;
    background: #f9f9f9;
}

.swiper-container {
    width: 100%;
    padding: 2rem 1rem;
    overflow: hidden;
    position: relative;
}

.swiper-slide {
    width: 30px;
    margin-right: 20px;
    contain: content;
}

.car-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.car-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.car-features li i {
    margin-right: 0.5rem;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.car-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-card:hover img {
    transform: scale(1.05);
}

.car-info {
    padding: 1.5rem;
}

.car-info h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.car-info p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0;
}

/* === Sección del Mapa === */
.map-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, #ffffff, #f4f4f4);
    position: relative;
}

.map-container {
    position: relative;
    width: 100%;
    height: 500px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.map-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* Services Section */
.services-section {
    padding: 6rem 2rem;
    background-color: #fff;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-content h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #555;
}

.service-features li i {
    color: var(--accent-light);
    margin-right: 0.8rem;
    font-size: 1rem;
}

.service-button {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.service-button i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.service-button:hover {
    background: var(--accent-light);
}

.service-button:hover i {
    transform: translateX(5px);
}

/* Animations */
.animate {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }
.animate-delay-4 { animation-delay: 0.8s; }
.animate-delay-5 { animation-delay: 1s; }
.animate-delay-6 { animation-delay: 1.2s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    bottom: 20px; 
    right: 20px;
    width: 50px; 
    height: 50px;
    z-index: 1000;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out;
}

.whatsapp-float img {
    width: 70%;
    height: auto;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}



/* Contact Section */
.contact-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, #f9f9f9, #ffffff);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.contact-text h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-text p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === Formulario de Contacto === */
.contact-form-section {
    text-align: center;
    margin: 4rem 0;
    padding: 2rem;
    background: linear-gradient(to bottom right, #f9f9f9, #ffffff);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: bold;
}

.form-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form-container label {
    font-weight: bold;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: block;
    text-align: left;
}

.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
    border-color: var(--accent-light);
    outline: none;
}

.contact-form-container button {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    background: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form-container button:hover {
    background: var(--accent-light);
}

#form-response {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--secondary);
    font-weight: bold;
}

.social-media {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.social-media h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.social-icons {
    text-decoration: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: scale(1.1);
    background: var(--accent-light);
}

/* Footer */
.footer {

    padding: 2rem;
    background: var(--primary);
    color: white;
    text-align: center;
}


