/* =================================================================== */
/* CÓDIGO CSS COMPLETO Y FINAL                                         */
/* =================================================================== */

/* --- Estilos Globales y Variables de Color --- */
:root {
    --green-accent: #1fe28a;
    --dark-background: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f4f8; /* Fondo general claro para toda la página */
    color: #1e2a3a;
}

/* ------------------------------------------------------------------- */
/* --- Sección Hero --- */
/* ------------------------------------------------------------------- */
.hero-section {
    height: 100vh;
    background-color: var(--dark-background); /* Fondo oscuro solo para el hero */
    color: var(--text-primary);
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)), url('assets/images/hero2_image.jpg');    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
}

/* --- Barra de Navegación --- */
.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo { display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; font-weight: 600; }
.logo img {
    height: 138px; /* Hemos aumentado la altura de 30px a 45px */
    width: auto;  /* Esto asegura que la imagen no se deforme */
}
.nav-links { list-style: none; display: flex; gap: 2.5rem; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 1rem; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--text-primary); }
.cta-button { background-color: var(--green-accent); color: #000; font-weight: 600; padding: 0.6rem 1.5rem; border-radius: 8px; text-decoration: none; transition: transform 0.3s ease, background-color 0.3s ease; }
.cta-button:hover { transform: scale(1.05); background-color: #ffffff; }

/* --- Contenido Principal del Hero --- */
.hero-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; max-width: 800px; padding: 0 1rem; }
.hero-tag { background-color: rgba(31, 226, 138, 0.15); border: 1px solid rgba(31, 226, 138, 0.4); color: #ffffff; padding: 0.5rem 1.25rem; border-radius: 50px; font-size: 0.9rem; font-weight: 500; margin-bottom: 1.5rem; display: inline-flex; align-items: center; }
.hero-tag svg { margin-right: 8px; }
.hero-content h1 { font-size: 4.5rem; font-weight: 700; line-height: 1.1; margin-bottom: 1rem; }
.hero-content .highlight { color: var(--green-accent); }
.hero-content p { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin-bottom: 2rem; }
.large-button { padding: 1rem 2.5rem; font-size: 1.1rem; }


/* ------------------------------------------------------------------- */
/* --- Sección de Servicios --- */
/* ------------------------------------------------------------------- */
.services-section-wrapper { padding: 4rem 1.5rem; }
.section-header { width: 100%; text-align: center; max-width: 1200px; margin: 0 auto 3rem auto; padding: 0 1rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 600; color: #1e2a3a; margin-bottom: 0.5rem; }
.section-header p { font-size: 1rem; color: #5c6a7e; max-width: 600px; margin-left: auto; margin-right: auto; }
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; max-width: 1300px; margin: 0 auto; }
.smart-card { flex: 0 1 380px; background-color: #ffffff; color: #1e2a3a; border-radius: 16px; overflow: hidden; border: 1px solid #dbe2ea; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.smart-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08); }
.image-carousel { position: relative; width: 100%; aspect-ratio: 16 / 10; }
.carousel-images { width: 100%; height: 100%; }
.carousel-images img { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s ease-in-out; }
.carousel-images img.active { opacity: 1; }
.carousel-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dot { width: 20px; height: 5px; border-radius: 5px; background-color: rgba(255, 255, 255, 0.6); transition: background-color 0.3s ease; }
.dot.active { background-color: white; }
.card-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.25rem; }
.title-section h2 { font-size: 1.3rem; font-weight: 600; margin: 0; color: #1e2a3a; }
.title-section p { font-size: 0.9rem; color: #5c6a7e; margin: 0; }
.pricing-section { text-align: right; }
.old-price { text-decoration: line-through; color: #9aafc7; font-size: 0.9rem; display: block; }
.new-price { color: #1e2a3a; font-size: 1.5rem; font-weight: 600; }
.rating-section { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; font-size: 0.9rem; color: #5c6a7e; }
.stars { color: #f39c12; font-size: 1rem; }
.features-list { list-style: none; padding: 0; margin: 0 0 1.5rem 0; }
.feature-item { padding: 0.75rem 0; border-top: 1px solid #eef2f7; }
.feature-header { display: flex; align-items: center; gap: 0.75rem; }
.feature-icon { color: var(--green-accent); }
.feature-icon svg { display: block; }
.feature-title { font-weight: 500; color: #3e4c5f; }
.feature-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease-out; padding-left: 1.5rem; color: #5c6a7e; font-size: 0.9rem; }
.feature-item.open .feature-body { max-height: 100px; padding-top: 0.5rem; }
.cta-button-gradient { width: 100%; padding: 1rem; border: none; border-radius: 8px; color: white; font-size: 1rem; font-weight: 600; cursor: pointer; background: var(--green-accent); transition: transform 0.2s ease, box-shadow 0.2s ease; margin-top: auto; }
.cta-button-gradient:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(31, 226, 138, 0.3); }

/* ------------------------------------------------------------------- */
/* --- Sección Cómo Funciona --- */
/* ------------------------------------------------------------------- */
.how-it-works-section { background-color: #ffffff; padding: 5rem 2rem; }
.how-it-works-section .section-header h2 { color: #1e2a3a; }
.how-it-works-section .section-header p { color: #5c6a7e; }
.timeline { display: flex; justify-content: space-between; max-width: 1100px; margin: 3rem auto 0; position: relative; }
.timeline::before { content: ''; position: absolute; top: 32px; left: 5%; width: 90%; height: 2px; background-color: #dbe2ea; z-index: 1; }
.timeline-step { text-align: center; max-width: 220px; position: relative; z-index: 2; background-color: #ffffff; padding: 0 1rem; }
.timeline-icon { width: 64px; height: 64px; border-radius: 50%; background-color: var(--green-accent); color: white; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; border: 4px solid #ffffff; }
.timeline-step h3 { font-size: 1.2rem; font-weight: 600; color: #1e2a3a; margin-bottom: 0.5rem; }
.timeline-step p { font-size: 0.9rem; color: #5c6a7e; line-height: 1.5; }
.section-cta { text-align: center; margin-top: 3rem; }
.section-cta .cta-button-gradient { width: auto; padding: 1rem 2.5rem; }


/* ------------------------------------------------------------------- */
/* --- Sección Resultados Comprobados --- */
/* ------------------------------------------------------------------- */
.results-section { background-color: #ffffff; padding: 5rem 2rem; }
.interactive-slider-container { max-width: 900px; margin: 0 auto; }
.results-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.result-nav-button { background-color: transparent; border: 1px solid #dbe2ea; color: #5c6a7e; padding: 0.75rem 1.5rem; border-radius: 50px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; }
.result-nav-button:hover { border-color: var(--green-accent); color: var(--green-accent); }
.result-nav-button.active { background-color: var(--green-accent); border-color: var(--green-accent); color: white; }
.comparison-slider {
    position: relative;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px; /* Aumentamos un poco el radio */
    aspect-ratio: 16 / 9;
    
    /* Borde y sombra de acento añadidos */
    border: px solid var(--green-accent);
    box-shadow: 0 0 20px rgba(31, 226, 138, 0.25);
}
.comparison-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.comparison-image img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.before-image { z-index: 1; }
.after-image { z-index: 2; }
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 100%;
    z-index: 3;
    cursor: ew-resize;
    pointer-events: none; /* The handle itself shouldn't block clicks */
}
.comparison-image .label { position: absolute; top: 15px; padding: 5px 10px; background-color: rgba(0, 0, 0, 0.6); color: white; border-radius: 5px; font-size: 0.8rem; font-weight: 500; z-index: 4; }
.before-image .label { left: 15px; }
.after-image .label { right: 15px; }
.handle-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: white;
}
.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Esto garantiza un centrado perfecto */
    width: 50px;
    height: 50px;
    background-color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    pointer-events: auto; /* El círculo sí debe ser interactivo */
}.handle-circle svg { transform: none; width: 24px; height: 24px; }
.slider-caption { text-align: center; padding: 2rem 1rem 0 1rem; }
.slider-caption h3 { font-size: 1.8rem; font-weight: 600; color: #1e2a3a; margin-bottom: 0.5rem; }
.slider-caption p { font-size: 1rem; color: #5c6a7e; }
.slider-tip { text-align: center; margin-top: 1.5rem; color: #5c6a7e; font-style: italic; font-size: 0.9rem; }


/* ------------------------------------------------------------------- */
/* --- Sección Reserva tu Servicio --- */
/* ------------------------------------------------------------------- */
.booking-section { padding: 5rem 2rem; }
.booking-container { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; max-width: 1200px; margin: 0 auto; align-items: flex-start; }
.form-container { background-color: #ffffff; padding: 2.5rem; border-radius: 16px; border: 1px solid #dbe2ea; }
.form-container h3 { font-size: 1.5rem; color: #1e2a3a; margin-bottom: 0.5rem; }
.form-subtitle { color: #5c6a7e; margin-bottom: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-weight: 600; color: #3e4c5f; margin-bottom: 0.5rem; }
.form-group input, .form-group select { width: 100%; padding: 0.8rem 1rem; border: 1px solid #dbe2ea; border-radius: 8px; font-size: 1rem; font-family: 'Poppins', sans-serif; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--green-accent); box-shadow: 0 0 0 2px rgba(31, 226, 138, 0.2); }
/* --- Estilos para el Área de Subida de Archivos --- */
.file-upload-area {
    border: 2px dashed #dbe2ea; /* Borde discontinuo y de color gris claro */
    border-radius: 8px;        /* Esquinas redondeadas */
    padding: 2rem;
    text-align: center;
    color: #9aafc7;             /* Color del texto interior */
    cursor: pointer;
    transition: border-color 0.3s;
}

.file-upload-area:hover {
    border-color: var(--green-accent); /* Borde verde al pasar el ratón */
}
.form-container .cta-button-gradient { margin-top: 2rem; width: 100%; }
.info-container { display: flex; flex-direction: column; gap: 2rem; }
.info-card { background-color: #ffffff; padding: 2rem; border-radius: 16px; border: 1px solid #dbe2ea; }
.info-card h4 { font-size: 1.2rem; color: #1e2a3a; margin-bottom: 1.5rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item svg { color: var(--green-accent); flex-shrink: 0; }
.contact-item div { display: flex; flex-direction: column; }
.contact-item strong { color: #3e4c5f; font-weight: 600; }
.contact-item span { color: #5c6a7e; font-size: 0.9rem; }
.why-us-list { list-style: none; padding: 0; }
.why-us-list li { position: relative; padding-left: 1.5rem; color: #3e4c5f; margin-bottom: 0.75rem; }
.why-us-list li::before { content: ''; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; background-color: rgba(31, 226, 138, 0.2); border-radius: 50%; }
.why-us-list li::after { content: '✓'; position: absolute; left: 1px; top: 2px; color: var(--green-accent); font-weight: bold; }
.service-selection-grid, .vehicle-selection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.service-option, .vehicle-option { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 1rem; border: 1px solid #dbe2ea; border-radius: 8px; cursor: pointer; text-align: center; transition: all 0.2s ease; }
.service-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.service-option span, .vehicle-option span { font-weight: 500; color: #3e4c5f; }
.service-option:hover, .vehicle-option:hover { border-color: var(--green-accent); background-color: #f0f4f8; }
.service-option.selected, .vehicle-option.selected { border-color: var(--green-accent); background-color: rgba(31, 226, 138, 0.1); box-shadow: 0 0 0 2px rgba(31, 226, 138, 0.2); }
.service-option.selected .service-icon, .vehicle-option.selected .service-icon { transform: scale(1.1); }
.service-option-price { font-size: 0.9rem; font-weight: 600; color: var(--green-accent); margin-top: 0.5rem; }
/* --- Estilos para los iconos de vehículo en el formulario --- */
.vehicle-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    object-fit: contain; /* Asegura que la imagen se vea bien sin deformarse */
}

/* =================================================================== */
/* ============== ESTILOS PERSONALIZADOS PARA EL CALENDARIO (CORREGIDO) ============== */
/* =================================================================== */

/* Cambia el color del día seleccionado */
.flatpickr-calendar .flatpickr-day.selected,
.flatpickr-calendar .flatpickr-day.startRange,
.flatpickr-calendar .flatpickr-day.endRange {
    background: var(--green-accent);
    border-color: var(--green-accent);
    color: #fff;
}

/* Cambia el color del borde para el día de hoy */
.flatpickr-calendar .flatpickr-day.today {
    border-color: var(--green-accent);
    color: #333; /* Mantenemos el texto oscuro para legibilidad */
}

/* Cambia el color de fondo al pasar el ratón sobre un día */
.flatpickr-calendar .flatpickr-day:hover {
    background: rgba(31, 226, 138, 0.1);
}

/* Aseguramos que el día de hoy seleccionado también sea verde */
.flatpickr-calendar .flatpickr-day.today.selected {
    color: #fff;
}
.flatpickr-calendar.inline {
    border-radius: 8px; /* Redondea las esquinas como los otros elementos */
    border: 1px solid #dbe2ea;
    /* Sombra de acento verde, similar al efecto 'selected' de las tarjetas */
    box-shadow: 0 0 0 2px rgba(31, 226, 138, 0.5);
}
/* ------------------------------------------------------------------- */
/* --- Footer (Pie de Página) --- */
/* ------------------------------------------------------------------- */
.site-footer {
    background-color: #1e2a3a; /* Un azul oscuro, casi negro */
    color: #9aafc7; /* Un color de texto gris claro y suave */
    padding: 3rem 2rem 2rem 2rem;
    text-align: center;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-logo h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.footer-tagline {
    font-size: 1rem;
    margin: 0.5rem 0 1.5rem 0;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social a {
    color: #9aafc7;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--green-accent); /* Cambia a verde al pasar el ratón */
}

.footer-social svg {
    width: 28px;
    height: 28px;
}

.footer-copyright {
    border-top: 1px solid #3e4c5f;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: #5c6a7e;
}

/* ------------------------------------------------------------------- */
/* --- Responsividad --- */
/* ------------------------------------------------------------------- */
.hamburger-menu { display: none; cursor: pointer; }
.hamburger-menu span { display: block; width: 25px; height: 3px; margin: 5px 0; background-color: white; border-radius: 3px; }

@media (max-width: 992px) {
    .booking-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .navbar .nav-cta { display: none; }
    .hamburger-menu { display: block; }
    .hero-content { align-items: flex-start; text-align: left; width: 100%; padding: 0 5%; }
    .hero-content h1 { font-size: 3.2rem; }
    .timeline { flex-direction: column; align-items: center; gap: 2rem; }
    .timeline::before { display: none; }
    .timeline-step { padding: 0; background-color: transparent; }
    .timeline-icon { margin-bottom: 1rem; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: rgba(10, 10, 10, 0.95); padding: 1rem 0; }
    .nav-links.active { display: flex; }
    .nav-links li { text-align: center; padding: 1rem 0; }
}

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
}