/* --- VARIABLES --- */
:root {
    --bg-dark: #020f18;
    --bg-card: #051520;
    --primary: #00d4ff; 
    --text-white: #ffffff;
    --text-gray: #a0aeb8;
    --navbar-bg: #f0fdff;     
    --navbar-text: #020f18;   
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden; 
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- ESTRUCTURA --- */
.container { 
    width: 90%;
    max-width: 1200px;
    margin: 0 auto; 
    padding: 0; 
}
.text-blue { color: var(--primary); }
.text-center { text-align: center; }

/* --- NAVBAR --- */
.navbar {
    background-color: var(--navbar-bg);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 50px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn-nav) { color: var(--navbar-text); font-size: 0.95rem; font-weight: 600; }
.nav-links a:not(.btn-nav):hover { color: var(--primary); }

.btn-nav {
    background-color: transparent; 
    color: var(--navbar-text);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.btn-nav:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

.menu-toggle { display: none; flex-direction: column; cursor: pointer; }
.menu-toggle .bar { width: 25px; height: 3px; background-color: var(--navbar-text); margin: 4px 0; transition: 0.4s; border-radius: 2px; }

/* --- HERO SECTION --- */
.hero { padding-top: 150px; padding-bottom: 80px; min-height: 100vh; display: flex; align-items: center; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.badge { background: rgba(0, 212, 255, 0.1); color: var(--primary); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; border: 1px solid rgba(0, 212, 255, 0.2); }
.hero-text h1 { font-size: 3.5rem; line-height: 1.1; margin: 25px 0; }
.hero-text p { color: var(--text-gray); margin-bottom: 30px; max-width: 500px; font-size: 1.1rem; }

/* Wrapper para solapamiento */
.hero-image-wrapper { position: relative; }
.hero-image-wrapper img { border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); opacity: 0.9; width: 100%; }

/* Badge Flotante (Solapado) */
.trust-badge {
    position: absolute;
    bottom: 40px;
    left: -40px; /* Efecto solapado a la izquierda */
    background: rgba(18, 28, 36, 0.95);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    padding: 20px 25px;
    border-radius: 15px;
    gap: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10;
    min-width: 250px;
}
.trust-badge i { color: #2ecc71; font-size: 2rem; }

/* Botones */
.btn { display: inline-block; padding: 12px 30px; border-radius: 5px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.btn-primary { background-color: var(--primary); color: #000; }
.btn-primary:hover { background-color: #fff; }
.btn-outline { border: 1px solid rgba(255,255,255,0.3); color: var(--text-white); margin-left: 10px; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }


/* --- SECCIONES CONTENIDO --- */
.section-dark { padding: 100px 0; }
.section-black { padding: 100px 0; background-color: #000; }
.sub-title { color: var(--primary); text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 15px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 20px; }
.section-header .quote { color: var(--text-gray); font-style: italic; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.card { background: var(--bg-card); padding: 40px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.05); transition: transform 0.3s; }
.card:hover { transform: translateY(-5px); border-color: var(--primary); }
.icon-box { color: var(--primary); font-size: 1.8rem; margin-bottom: 20px; }
.card p { color: var(--text-gray); }

/* Servicios */
.services-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.service-item { display: flex; gap: 20px; margin-bottom: 30px; padding: 25px; background: rgba(255,255,255,0.03); border-radius: 10px; border-left: 3px solid var(--primary); }
.service-number { font-size: 2rem; font-weight: 800; color: var(--primary); opacity: 0.5; }
.services-image-wrapper img { border-radius: 20px; box-shadow: 0 0 40px rgba(0, 212, 255, 0.15); width: 100%; }

/* Metodología */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.process-step h1 { 
    color: rgba(255,255,255,0.2); 
    font-size: 5rem; 
    margin-bottom: -25px; 
    font-weight: 800; 
}
.process-step small { color: var(--text-gray); font-size: 0.8rem; }


/* --- FOOTER --- */
.footer {
    padding-top: 80px;
    padding-bottom: 40px;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p { margin-top: 20px; color: var(--text-gray); font-size: 0.95rem; max-width: 400px; }
.footer h4 { margin-bottom: 25px; font-size: 0.85rem; letter-spacing: 1px; font-weight: 700; text-transform: uppercase; color: #fff; }
.footer-links ul li { margin-bottom: 15px; }
.footer-links a, .footer-contact p { color: var(--text-gray); font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary); }

.socials { margin-top: 20px; }
.socials a { 
    margin-right: 15px; font-size: 1.2rem; color: var(--text-gray); 
    background: rgba(255,255,255,0.05); padding: 10px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; transition: 0.3s;
}
.socials a:hover { background: var(--primary); color: #000; }

.footer-line { width: 100%; height: 1px; background-color: rgba(255,255,255,0.1); margin-bottom: 30px; }

/* Footer Bottom (Estilo PC) */
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; }
.footer-bottom small, .legal-links a { color: var(--text-gray); font-size: 0.85rem; }
.legal-links { display: flex; gap: 30px; }
.legal-links a:hover { color: var(--primary); }


/* --- RESPONSIVE MÓVIL --- */
@media (max-width: 768px) {
    /* Navbar */
    .navbar { padding: 10px 0; }
    .logo img { height: 35px; }
    .menu-toggle { display: flex; z-index: 1001; }
    .nav-links {
        position: fixed; top: 60px; left: 0; width: 100%;
        background-color: var(--navbar-bg);
        flex-direction: column; align-items: center;
        padding: 30px 0; border-bottom: 1px solid rgba(0,0,0,0.1);
        gap: 0; transform: translateY(-150%); transition: transform 0.4s ease-in-out;
        z-index: 999; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-links.active { transform: translateY(0); }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links li a:not(.btn-nav) { display: block; padding: 15px; font-size: 1.1rem; border-bottom: 1px solid rgba(0,0,0,0.03); }
    .btn-nav { display: inline-block; width: 80%; margin: 20px auto; background-color: var(--bg-dark); color: #fff; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

    /* Layout Móvil */
    .hero-container, .services-container { display: flex; flex-direction: column; text-align: center; gap: 40px; }
    .hero-text, .services-list { order: 1; }
    .hero-image-wrapper, .services-image-wrapper { order: 2; width: 100%; margin-top: 20px; }
    
    .hero-text h1 { font-size: 2.5rem; }
    .hero-buttons { display: flex; flex-direction: column; gap: 15px; }
    .btn-outline { margin-left: 0; }
    
    .trust-badge {
        position: relative; bottom: auto; left: auto;
        margin-top: -30px; margin-left: auto; margin-right: auto;
        transform: translateY(20px); width: 90%; justify-content: center;
        background: rgba(18, 28, 36, 1);
    }

    /* FOOTER MÓVIL CORREGIDO */
    .footer-grid { grid-template-columns: 1fr; text-align: left; gap: 40px; }
    .footer-bottom { 
        flex-direction: column-reverse; /* Copyright abajo */
        gap: 20px; 
        align-items: flex-start; 
    }
    .legal-links { width: 100%; justify-content: flex-start; gap: 20px; }

    /* CORRECCIÓN FINAL DE FUENTES MÓVILES */
    /* Forzamos que ambos tengan el mismo tamaño exacto */
    .footer-bottom .copyright small, 
    .footer-bottom .legal-links a {
        font-size: 0.75rem !important; /* Aproximadamente 12px, forzado */
        line-height: 1.5;
        display: inline-block;
    }
}
