/* ==========================================
   CONFIGURACIÓN GENERAL Y VARIABLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0b0f19; /* Fondo gris oscuro/azul noche */
    color: #ffffff;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ==========================================
   MENÚ DE NAVEGACIÓN
   ========================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background-color: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: #ff007f; /* Fucsia Neón */
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #00d2ff; /* Azul Eléctrico */
}

.btn-turno {
    background: transparent;
    color: #ff007f;
    border: 2px solid #ff007f;
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-turno:hover {
    background: #ff007f;
    color: #fff;
    box-shadow: 0 0 15px #ff007f;
}

/* ==========================================
   SECCIÓN HERO (PRINCIPAL)
   ========================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    background: linear-gradient(rgba(11, 15, 25, 0.85), #0b0f19), 
                url('https://unsplash.com') no-repeat center center/cover;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.slogan {
    color: #ff007f;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.description {
    color: #a0aec0;
    max-width: 500px;
    margin-bottom: 30px;
    font-size: 16px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-buttons a {
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-buttons i {
    margin-right: 8px;
}

.btn-neon-fucsia {
    background: #ff007f;
    color: #fff;
    border: 2px solid #ff007f;
}

.btn-neon-fucsia:hover {
    box-shadow: 0 0 25px #ff007f, 0 0 10px #ff007f;
    transform: translateY(-2px);
}

.btn-neon-azul {
    background: transparent;
    color: #00d2ff;
    border: 2px solid #00d2ff;
}

.btn-neon-azul:hover {
    background: #00d2ff;
    color: #0b0f19;
    box-shadow: 0 0 25px #00d2ff;
    transform: translateY(-2px);
}

/* ==========================================
   SECCIÓN SERVICIOS
   ========================================== */
.services {
    padding: 100px 8% 60px 8%;
    text-align: center;
}

.services h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background-color: #161f32;
    padding: 40px 30px;
    border-radius: 10px;
    width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    will-change: transform;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.card i {
    font-size: 45px;
    margin-bottom: 20px;
    display: inline-block;
}

.card-fucsia i { color: #ff007f; }
.card-azul i { color: #00d2ff; }

.card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.card p {
    color: #a0aec0;
    font-size: 15px;
    line-height: 1.5;
}

.card-fucsia:hover {
    border-color: #ff007f;
    box-shadow: 0 5px 25px rgba(255, 0, 127, 0.25);
    transform: translateY(-5px);
}

.card-azul:hover {
    border-color: #00d2ff;
    box-shadow: 0 5px 25px rgba(0, 210, 255, 0.25);
    transform: translateY(-5px);
}

/* ==========================================
   SECCIÓN ANTES Y DESPUÉS INTERACTIVO
   ========================================== */
.before-after-section {
    padding: 60px 8%;
    text-align: center;
}

.before-after-section h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #a0aec0;
    margin-bottom: 40px;
}

.comparison-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 450px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.comparison-container .img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comparison-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.foreground-img {
    width: 50%; /* Controlado dinámicamente por JS */
    overflow: hidden;
    z-index: 2;
}

.label {
    position: absolute;
    bottom: 20px;
    padding: 6px 15px;
    background: rgba(11, 15, 25, 0.8);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 3;
    pointer-events: none;
}

.label-before { left: 20px; border-left: 3px solid #ff007f; }
.label-after { right: 20px; border-right: 3px solid #00d2ff; }

/* El deslizador invisible nativo */
.slider {
    position: absolute;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
    outline: none;
    margin: 0;
    cursor: ew-resize;
    z-index: 5;
}

/* La barra visual divisoria */
.slider-button {
    position: absolute;
    left: 50%; /* Controlado dinámicamente por JS */
    top: 0;
    width: 4px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.8);
    z-index: 4;
    transform: translateX(-50%);
    pointer-events: none;
}

/* El círculo del centro de la barra */
.slider-button::before {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: #161f32;
    border: 3px solid #00d2ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

/* ==========================================
   SECCIÓN DE ESTADÍSTICAS
   ========================================== */
.stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 60px 8%;
    background: linear-gradient(90deg, rgba(22,31,50,0.5) 0%, rgba(11,15,25,0.5) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 30px;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: #00d2ff;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
    margin-bottom: 5px;
    display: block;
}

.stat-box:nth-child(2) .stat-number {
    color: #ff007f;
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
}

.stat-text {
    color: #a0aec0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   SECCIÓN SEGUIMIENTO EN VIVO
   ========================================== */
.tracking-section {
    padding: 100px 8%;
    display: flex;
    justify-content: center;
}

.tracking-box {
    background-color: #161f32;
    padding: 50px 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 800px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tracking-box h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.tracking-box p {
    color: #a0aec0;
    margin-bottom: 30px;
}

.search-bar {
    display: flex;
    max-width: 500px;
    margin: 0 auto 30px auto;
    gap: 10px;
}

.search-bar input {
    flex: 1;
    padding: 15px 20px;
    background-color: #0b0f19;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: #00d2ff;
}

.search-bar button {
    padding: 0 25px;
    background-color: #ff007f;
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-bar button:hover {
    box-shadow: 0 0 15px #ff007f;
}

/* Barra de progreso de pasos */
.progress-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 40px;
}

.progress-line {
    position: absolute;
    background-color: #00d2ff;
    box-shadow: 0 0 10px #00d2ff;
    height: 4px;
    top: 25px;
    left: 0;
    z-index: 1;
    transition: width 0.4s ease;
}

.progress-container::before {
    content: '';
    position: absolute;
    background-color: #0b0f19;
    height: 4px;
    width: 100%;
    top: 25px;
    left: 0;
    z-index: 0;
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

.step-icon {
    width: 54px;
    height: 54px;
    background-color: #0b0f19;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #a0aec0;
    font-size: 18px;
    transition: all 0.4s ease;
}

.step span {
    margin-top: 10px;
    font-size: 13px;
    color: #a0aec0;
    font-weight: 500;
}

.step.active .step-icon {
    border-color: #00d2ff;
    color: #00d2ff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

/* ==========================================
   ESTILOS DE LA VENTANA MODAL (PEDIR TURNO)
   ========================================== */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 2000; /* Por encima del menú de navegación */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 10, 18, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: #161f32;
    border: 2px solid #ff007f;
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.3);
    padding: 40px 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    position: relative;
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #a0aec0;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #ff007f;
}

.modal-content h2 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #fff;
}

.modal-content p {
    color: #a0aec0;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Formularios internos */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #0b0f19;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #ff007f;
}

.btn-submit-turno {
    width: 100%;
    padding: 14px;
    background-color: #ff007f;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-submit-turno:hover {
    box-shadow: 0 0 20px #ff007f;
    transform: translateY(-1px);
}
