/* --- Variables Globales --- */
:root {
    --neon-blue: #00f7ff;
    --neon-pink: #ff00ff;
    /* Fondo oscuro */
    --bg-dark: #03030a;
    --bg-darker: #010105;
    --text-light: #e0e0e0;
    
    /* Fuentes */
    --font-heading: 'Varela Round', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at center, #0f0f1a 0%, var(--bg-darker) 100%);
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* --- UTILIDADES DE NEÓN --- */

/* Textos Principales */
.neon-text-blue {
    color: #00f7ff;
    text-shadow: 0 0 #fff, 0 0 10px var(--neon-blue);
}

.neon-text-pink {
    color: #ff00ff;
    text-shadow: 0 0 #fff, 0 0 var(--neon-pink);
}

/* Texto Gradiente (Opcional si usas la clase .texto-gradiente) */
.texto-gradiente {
    background-image: linear-gradient(to right, #ff00ff, #00f7ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 3px rgba(255, 0, 255, 0.4));
    font-family: var(--font-heading);
    font-weight: 700; 
}

/* Textos Suaves */
.neon-text-blue-soft { color: var(--neon-blue); text-shadow: 0 0 4px var(--neon-blue); }
.neon-text-pink-soft { color: var(--neon-pink); text-shadow: 0 0 4px var(--neon-pink); }

/* Iconos */
.neon-icon-blue { color: var(--neon-blue); filter: drop-shadow(0 0 var(--neon-blue)); }
.neon-icon-pink { color: var(--neon-pink); filter: drop-shadow(0 0 var(--neon-pink)); }

/* Botones */
.btn-neon-blue {
    display: inline-block; padding: 12px 30px; color: var(--neon-blue);
    border: 2px solid var(--neon-blue); border-radius: 5px; text-decoration: none;
    font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 2px;
    transition: 0.3s; 
    box-shadow: 0 0 8px var(--neon-blue), inset 0 0 8px var(--neon-blue);
    text-shadow: none;
}
.btn-neon-blue:hover { background: var(--neon-blue); color: var(--bg-dark); box-shadow: 0 0 20px var(--neon-blue), inset 0 0 20px var(--neon-blue); }

.btn-neon-pink {
    display: inline-block; width: 100%; padding: 12px; background: transparent;
    color: var(--neon-pink); border: 2px solid var(--neon-pink); border-radius: 5px;
    font-family: var(--font-heading); font-weight: bold; cursor: pointer;
    transition: 0.3s; box-shadow: 0 0 5px var(--neon-pink), inset 0 0 5px var(--neon-pink);
    text-shadow: none;
}
.btn-neon-pink:hover { background: var(--neon-pink); color: var(--bg-dark); }

/* Cajas */
.neon-box-pink { border: 2px solid var(--neon-pink); border-radius: 15px; padding: 2rem; box-shadow: 0 0 10px var(--neon-pink), inset 0 0 10px rgba(255, 0, 255, 0.1); background: rgba(0,0,0,0.7); }
.neon-box-blue { border: 2px solid var(--neon-blue); border-radius: 50px; box-shadow: 0 0 10px var(--neon-blue), inset 0 0 5px rgba(0, 247, 255, 0.2); }


/* --- Navbar --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.5rem 5%; 
    background: rgba(2, 2, 10, 0.95); backdrop-filter: blur(10px);
    position: fixed; width: 100%; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(0, 247, 255, 0.1);
}

/* --- LOGO CIRCULAR --- */
.logo-container {
    width: 130px;
    height: 130px;
}

.logo-circulo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Agregamos esto para quitar cualquier subrayado de enlace */
    text-decoration: none; 
    
    box-shadow: 0 0 25px var(--neon-blue), inset 0 0 15px rgba(0, 247, 255, 0.3);
    background-color: rgba(2, 2, 10, 0.8);
    transition: 0.3s;
}

.logo-img {
    height: 95px;
    width: 95px;
    border-radius: 50%;
    filter: drop-shadow(0 0 5px var(--neon-blue));
}

.logo-circulo:hover {
     box-shadow: 0 0 40px var(--neon-blue), inset 0 0 20px var(--neon-blue);
}
/* ----------------------------------------------- */

.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li a {
    text-decoration: none; color: var(--text-light); margin-left: 2rem;
    font-family: var(--font-heading); font-size: 0.9rem; transition: 0.3s;
}
.nav-links li a:hover, .nav-links li a.active { color: var(--neon-pink); text-shadow: 0 0 4px var(--neon-pink); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; margin-top: 10px;}


/* --- Secciones Generales --- */
.section-container { padding: 8rem 5% 4rem; text-align: center; }
.section-title { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 3rem; text-transform: uppercase; }


/* --- Hero Section --- */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding-top: 120px;
}

.mega-title { 
    font-family: var(--font-heading); 
    font-size: 3.5rem; 
    line-height: 1.2;
    color: transparent;
    -webkit-text-stroke: 2px var(--neon-pink);
    text-shadow: 0 0 var(--neon-pink);
}

.sub-mega-title { 
    font-family: var(--font-heading); 
    font-size: 5rem; 
    margin: 1rem 0; 
    color: transparent;
    -webkit-text-stroke: 3px var(--neon-blue);
    text-shadow: 0 0 15px var(--neon-blue);
}

.hero-subtitle { font-size: 1.2rem; margin-bottom: 2rem; }


/* --- Servicios (MEJORADO) --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; }

.service-card {
    padding: 2rem; 
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px; 
    transition: 0.3s;
    /* Borde transparente inicial para evitar saltos */
    border: 1px solid transparent;
}

/* Nuevo Hover: Borde Rosa Neón */
.service-card:hover { 
    transform: translateY(-10px); 
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink), inset 0 0 10px rgba(255, 0, 255, 0.1);
}

.service-card i { font-size: 4rem; margin-bottom: 1.5rem; display: block; }
.service-card h3 { font-family: var(--font-heading); margin-bottom: 1rem; }


/* --- Contacto --- */
.contact-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, 
        rgba(0, 247, 255, 0.01) 0%,
        rgba(255, 0, 255, 0.01) 100%);
}

/* Fondo animado principal - Líneas que se deslizan */
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 50px,
        rgba(0, 247, 255, 0.1) 50px,
        rgba(0, 247, 255, 0.1) 100px,
        transparent 100px,
        transparent 150px,
        rgba(255, 0, 255, 0.08) 150px,
        rgba(255, 0, 255, 0.08) 200px
    );
    background-size: 200% 100%;
    animation: slideBG 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Efecto secundario - Brillo pulsante */
.contact-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, 
        rgba(0, 247, 255, 0.05) 0%,
        transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes slideBG {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        filter: blur(0px);
    }
    50% {
        opacity: 1;
        filter: blur(2px);
    }
}

.contact-section > * {
    position: relative;
    z-index: 1;
}

.contact-container { 
    display: flex; 
    gap: 2rem; 
    align-items: stretch;
    max-width: 600px;
    margin: 0 auto;
}
.contact-wrapper, .map-wrapper { flex: 1; }
.map-wrapper { height: 450px; display: none; }

.contact-wrapper {
    max-width: 100%;
}
.neon-input-pink input, .neon-input-pink textarea {
    width: 100%; background: transparent; border: none;
    border-bottom: 2px solid var(--neon-pink); padding: 15px 10px;
    color: var(--text-light); font-family: var(--font-body); font-size: 1rem;
    outline: none; transition: 0.3s; margin-bottom: 1.5rem;
}
.neon-input-pink input:focus, .neon-input-pink textarea:focus { 
    box-shadow: 0 3px 5px -3px var(--neon-pink);
    border-bottom-color: var(--neon-blue);
} 
.map-wrapper iframe { border-radius: 13px; width: 100%; height: 100%; }

/* --- Estadísticas --- */
.stats-section {
    background: linear-gradient(135deg, rgba(0, 247, 255, 0.05) 0%, rgba(255, 0, 255, 0.05) 100%);
    padding: 6rem 5%;
    text-align: center;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    padding: 2rem;
    border: 2px solid var(--neon-blue);
    border-radius: 15px;
    background: rgba(0, 247, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.2);
    transition: 0.3s;
}

.stat-card:hover {
    background: rgba(0, 247, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.4);
    transform: translateY(-5px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
}


/* --- Por qué elegirnos --- */
.why-us-section { background: rgba(255, 0, 255, 0.03); }

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.why-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--neon-pink);
    border-radius: 10px;
    transition: 0.3s;
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--neon-blue);
    transform: translateX(10px);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
}

.why-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.why-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}


/* --- FAQ --- */
.faq-section { background: rgba(255, 0, 255, 0.03); }

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 2px solid rgba(0, 247, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.faq-question:hover {
    background: rgba(0, 247, 255, 0.1);
    color: var(--neon-blue);
}

.faq-question i {
    transition: 0.3s transform;
    color: var(--neon-blue);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
    color: #d0d0d0;
    line-height: 1.8;
    background: rgba(0, 247, 255, 0.05);
}

.faq-answer.active {
    display: block;
    animation: slideInUp 0.3s ease-out;
}

.faq-answer p {
    margin: 0;
}

.faq-answer strong {
    color: var(--neon-pink);
}


/* --- Horarios y Redes Sociales --- */
.hours-section {
    padding: 6rem 5%;
    background: linear-gradient(135deg, rgba(0, 247, 255, 0.05) 0%, rgba(255, 0, 255, 0.05) 100%);
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hours-card {
    padding: 2.5rem;
    border-radius: 15px;
    transition: 0.3s;
}

.hours-card:hover {
    transform: translateY(-10px);
}

.hours-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.hours-list {
    list-style: none;
    padding: 0;
}

.hours-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 247, 255, 0.2);
    font-size: 1rem;
}

.hours-list li:last-child {
    border-bottom: none;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: transparent;
    border: 2px solid var(--neon-pink);
    color: var(--neon-pink);
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
    font-weight: bold;
    text-align: center;
    justify-content: center;
}

.social-btn:hover {
    background: var(--neon-pink);
    color: #000;
    box-shadow: 0 0 20px var(--neon-pink);
}

.social-btn i {
    font-size: 1.3rem;
}

/* --- Footer --- */
footer { text-align: center; padding: 2rem; background: #02020a; font-size: 0.9rem; color: #888; }


/* --- Botón Flotante WhatsApp --- */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; background: #000;
    color: var(--neon-blue); padding: 15px 25px; text-decoration: none;
    display: flex; align-items: center; gap: 15px; z-index: 999; transition: 0.3s;
    box-shadow: 0 0 10px var(--neon-blue);
}
.whatsapp-float i { font-size: 2rem; }
.whatsapp-float span { font-family: var(--font-heading); font-size: 1.5rem; letter-spacing: 1px; text-shadow: none;} 
.whatsapp-float:hover { background: var(--neon-blue); color: #000; box-shadow: 0 0 25px var(--neon-blue); }
.whatsapp-float:hover span { color: #000; }


/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .navbar { padding: 0.5rem 5%; align-items: center;}
    
    /* Ajuste de logo en móvil */
    .logo-container { width: 80px; height: 80px; }
    .logo-img { height: 70px; width: 70px; } 
    
    .menu-toggle { display: block; margin-top: 0; }
    
    .nav-links {
        position: fixed; top: 90px; left: -100%; width: 100%; height: calc(100vh - 90px);
        background: var(--bg-dark); flex-direction: column; align-items: center; justify-content: center; transition: 0.4s;
    }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 2rem 0; }
    
    .hero { padding-top: 100px; }
    .mega-title { font-size: 2.2rem; } .sub-mega-title { font-size: 3.5rem; }
    
    /* Estadísticas responsive */
    .stats-container { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .stat-number { font-size: 2.5rem; }
    .stat-card { padding: 1.5rem; }
    
    /* Por qué elegirnos responsive */
    .why-us-grid { grid-template-columns: 1fr; }
    .why-card { border-left-width: 3px; margin-bottom: 1rem; }
    
    /* FAQ responsive */
    .faq-question { font-size: 1rem; padding: 1.2rem; }
    .faq-answer { padding: 0 1.2rem 1.2rem; font-size: 0.95rem; }
    .faq-container { max-width: 100%; }
    
    /* Horarios responsive */
    .hours-grid { grid-template-columns: 1fr; }
    .social-links { flex-direction: row; gap: 0.5rem; flex-wrap: wrap; }
    .social-btn { padding: 10px 12px; font-size: 0.85rem; flex: 1; }
    .social-btn i { font-size: 0.9rem; }
    .hours-list li { font-size: 0.95rem; }
    
    .contact-container { 
        flex-direction: column;
        max-width: 100%;
        margin: 0 auto;
    } 
    .map-wrapper { height: 300px; }
    
    /* CORRECCIÓN WHATSAPP MÓVIL: Redondo y sin texto */
    .whatsapp-float { 
        padding: 0; /* Sin padding lateral */
        bottom: 20px; 
        right: 20px; 
        width: 60px; /* Redondo perfecto */
        height: 60px;
        justify-content: center; /* Centrar icono */
        border-radius: 50%;
    }
    .whatsapp-float span { display: none; } /* Ocultar número */
    .whatsapp-float i { margin: 0; font-size: 2rem; }
}

/* ===== ANIMACIONES MODERNAS ===== */

/* Animación de entrada para títulos */
@keyframes slideInTitle {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de brillo neón */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px var(--neon-blue), inset 0 0 15px rgba(0, 247, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px var(--neon-blue), inset 0 0 25px rgba(0, 247, 255, 0.5);
    }
}

/* Animación para tarjetas de servicio */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animación de flotación para botones */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animación de brillo de texto */
@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 5px var(--neon-blue), 0 0 15px rgba(0, 247, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 10px var(--neon-blue), 0 0 25px rgba(0, 247, 255, 0.8);
    }
}

/* Animación de entrada desde abajo */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar animaciones */

/* Título principal */
.mega-title {
    animation: slideInTitle 1s ease-out;
}

/* Subtítulo */
.sub-mega-title {
    animation: slideInTitle 1.2s ease-out;
    animation-fill-mode: both;
}

/* Logo con brillo pulsante */
.logo-circulo {
    animation: glowPulse 3s ease-in-out infinite;
}

/* Tarjetas de servicio */
.service-card {
    animation: fadeInScale 0.6s ease-out;
}

/* Tarjeta 2 */
.service-card:nth-child(2) {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

/* Tarjeta 3 */
.service-card:nth-child(3) {
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

/* Botón de presupuesto con flotación */
.btn-neon-blue {
    animation: float 3s ease-in-out infinite;
}

/* Botón de contacto */
.btn-neon-pink {
    animation: fadeInScale 0.8s ease-out;
}

/* Icono del servicio con brillo */
.service-card i {
    animation: textGlow 2s ease-in-out infinite;
}

/* WhatsApp flotante con movimiento suave */
.whatsapp-float {
    animation: float 2.5s ease-in-out infinite;
}

/* Títulos de sección */
.section-title {
    animation: slideInUp 0.8s ease-out;
}

/* Formulario con entrada suave */
.neon-input-pink input,
.neon-input-pink textarea {
    animation: fadeInScale 0.6s ease-out;
}

/* Estadísticas */
.stat-card {
    animation: fadeInScale 0.6s ease-out;
}

.stat-card:nth-child(2) {
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

.stat-card:nth-child(3) {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.stat-card:nth-child(4) {
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

/* Tarjetas por qué elegirnos */
.why-card {
    animation: fadeInScale 0.6s ease-out;
}

.why-card:nth-child(2) {
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

.why-card:nth-child(3) {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.why-card:nth-child(4) {
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

/* FAQ Items */
.faq-item {
    animation: slideInUp 0.5s ease-out;
}

.faq-item:nth-child(2) {
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

.faq-item:nth-child(3) {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.faq-item:nth-child(4) {
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.faq-item:nth-child(5) {
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.faq-item:nth-child(6) {
    animation-delay: 0.5s;
    animation-fill-mode: both;
}

/* Tarjetas de horarios */
.hours-card {
    animation: fadeInScale 0.6s ease-out;
}

.hours-card:nth-child(2) {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

/* Efecto hover mejorado para enlaces de navegación */
.nav-links li a {
    position: relative;
    transition: all 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-pink);
    transition: width 0.3s ease;
}

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