/* ===== 1. CARGA DE FUENTE PERSONALIZADA ===== */

@font-face {
    font-family: 'Technonomicon';
    src: url('fonts/Technonomicon.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ===== 1. CONFIGURACIÓN GLOBAL Y VARIABLES ===== */

:root {
    --lime-green: #BEFF00;
    --light-gray: #A1A1A1;
    --dark-gray: #1E1E1E;
    --black: #000000;
    --white: #FFFFFF;
    
    --navbar-height: 70px; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Eliminamos 'scroll-behavior: smooth;' para que JS lo controle */
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    background-color: var(--dark-gray);
    color: var(--white);
    overflow-x: hidden; 
    line-height: 1.6; 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== 2. ESTILOS DE TIPOGRAFÍA Y GENERALES ===== */

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--white);
}

h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

p {
    color: var(--light-gray);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.highlight {
    color: var(--lime-green);
}

/* Microinteracción en botones */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease; 
    border: 2px solid transparent;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); 
}

.btn-primary {
    background-color: var(--lime-green);
    color: var(--black);
}
.btn-primary:hover {
    background-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(190, 255, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--light-gray);
}
.btn-secondary:hover {
    background-color: var(--white);
    color: var(--black);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.2);
}

/* ===== 3. BARRA DE NAVEGA CIÓN (Navbar) ===== */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 10px 0;
    height: var(--navbar-height);
    background-color: var(--dark-gray);
    border-bottom: 1px solid #2a2a2a;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 50px; 
    width: auto;
}

.logo span {
    color: var(--white);
    font-family: 'Technonomicon', sans-serif; 
    font-weight: normal; 
    font-size: 1.0rem;   
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.nav-links a:hover {
    border-color: var(--lime-green);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
}

/* ===== 4. SECCIÓN HERO ===== */
.hero {
    min-height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/fondo-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center; /* Esto centra el .container */
    padding-top: var(--navbar-height);
}

/* Esta regla ahora aplica al 'div' anidado */
.hero-content {
    /* Ancho máximo para dejar espacio a la estrella de fondo */
    max-width: 800px;
    text-align: left;
    /* Al estar dentro de .container, se alineará a la izquierda de ese contenedor */
}

.main-title {
    font-size: clamp(2.2rem, 8vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.2; 
}

.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.info-pill .dot {
    width: 10px;
    height: 10px;
    background-color: var(--lime-green);
    border-radius: 50%;
}

.hero-content p {
    margin-left: 0;
    margin-right: auto;
    max-width: 600px;
    font-weight: 300;
    font-size: 1.1rem;
    margin-bottom: 30px;
    left: 50%;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: left;
    flex-wrap: wrap;
}

.hero-footer {
    margin-top: 40px;
    display: flex;
    gap: 25px;
    justify-content: left;
    flex-wrap: wrap;
    color: var(--light-gray);
    font-size: 0.9rem;
}
.hero-footer i {
    color: var(--lime-green);
    margin-left: 8px;
}

/* ===== 5. SECCIÓN DE SERVICIOS ===== */
.services {
    padding: 80px 0;
    background-color: var(--black);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--dark-gray);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: var(--lime-green);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--lime-green);
    margin-bottom: 20px;
}

.service-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== 6. SECCIÓN DE PROCESO ===== */
.process {
    padding: 80px 0;
    background-color: var(--dark-gray);
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-left: 3px solid var(--lime-green);
    padding-left: 40px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -51.5px;
    top: 5px;
    width: 20px;
    height: 20px;
    background-color: var(--dark-gray);
    border: 3px solid var(--lime-green);
    border-radius: 50%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content .step-number {
    color: var(--lime-green);
    font-weight: 700;
}

.timeline-content h3 {
    margin-bottom: 5px;
}

/* ===== 7. SECCIÓN DE TESTIMONIOS ===== */
.testimonials {
    padding: 80px 0;
    background-color: var(--black);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.testimonial-card p {
    font-style: italic; 
    margin-bottom: 15px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 400;
}

.testimonial-card span {
    font-weight: 700;
    color: var(--light-gray);
}

/* ===== 8. SECCIÓN CONTACTO (Formulario) ===== */
.contact-form {
    padding: 80px 0;
    background-color: var(--dark-gray);
}
.contact-form h2, .contact-form p {
    text-align: center;
}
.contact-form p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form {
    max-width: 700px;
    margin: 30px auto 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--light-gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    background-color: #2a2a2a;
    color: var(--white);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

.form .btn-primary {
    width: 100%;
}

/* ===== 9. BOTÓN FLOTANTE Y FOOTER ===== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--lime-green);
    color: var(--black);
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(190, 255, 0, 0.4);
    z-index: 99;
    transition: transform 0.3s ease;
    text-transform: uppercase;
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

.footer {
    background-color: var(--black);
    padding: 40px 0 80px 0; /* <-- Esta línea es la que cambió */
    border-top: 1px solid #333;
}
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    margin: 0;
    font-weight: 300;
}

.social-links a {
    color: var(--light-gray);
    font-size: 1.5rem;
    margin-left: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
    color: var(--lime-green);
    transform: scale(1.2);
}

/* ===== 10. ANIMACIONES DE SCROLL (NUEVO) ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content .scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.hero-content .scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.hero-content .scroll-animate:nth-child(3) { transition-delay: 0.3s; }
.hero-content .scroll-animate:nth-child(4) { transition-delay: 0.4s; }
.hero-content .scroll-animate:nth-child(5) { transition-delay: 0.5s; }

.services-grid .scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.services-grid .scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.services-grid .scroll-animate:nth-child(3) { transition-delay: 0.3s; }

.timeline-container .scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.timeline-container .scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.timeline-container .scroll-animate:nth-child(3) { transition-delay: 0.3s; }
.timeline-container .scroll-animate:nth-child(4) { transition-delay: 0.4s; }

.testimonials-grid .scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.testimonials-grid .scroll-animate:nth-child(2) { transition-delay: 0.2s; }

.contact-form .scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.contact-form .scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.contact-form .scroll-animate:nth-child(3) { transition-delay: 0.3s; }


/* ===== 11. DISEÑO RESPONSIVE (MÓVIL) ===== */
@media (max-width: 768px) {
    
    .container {
        width: 90%;
    }

    .logo span {
        display: none;
    }

    .hero-content,
    .main-title,
    .hero-content p {
        text-align: center;
    }

    /* En móvil, el max-width no debe aplicar, debe ser 100% */
    .hero-content {
        max-width: 100%;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons,
    .hero-footer {
        justify-content: center;
    }
    
    .nav-links {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        background-color: var(--dark-gray);
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        transition: right 0.4s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.8rem;
    }

    .nav-toggle {
        display: block;
        z-index: 101;
    }

    .hero {
        padding-top: var(--navbar-height);
    }
    
    .main-title {
        font-size: clamp(2rem, 10vw, 2.8rem); 
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-footer {
        flex-direction: column;
        gap: 15px;
    }

    .services, .process, .testimonials, .contact-form {
        padding: 60px 0;
    }

    .timeline-container {
        padding-left: 25px;
    }
    .timeline-dot {
        left: -36.5px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }
    .social-links {
        margin-top: 15px;
    }
    .social-links a {
        margin: 0 10px;
    }
}