/* --- 1. CONFIGURACIÓN BASE Y RESET --- */
* {
    box-sizing: border-box; /* ESTO ARREGLA QUE SE SALGA A LA DERECHA */
}
 
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    margin: 0;
    line-height: 1.6;
    overflow: hidden; 
}

/* --- 2. HEADER Y NAVEGACIÓN --- */
header {
    height: 80px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid #1e293b;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #38bdf8;
    letter-spacing: 2px;
}

.main-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    gap: 10px;
}

nav {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.dropbtn {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1rem;
    font-weight: 500;
    padding: 0 20px;
    height: 80px; 
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.dropbtn:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.05);
}

.btn-cliente {
    background: #38bdf8;
    color: #0f172a;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
    display: inline-block;
}

.btn-cliente:hover {
    background: #7dd3fc;
}

/* --- 3. MEGA MENÚ --- */
.mega-menu {
    display: none; 
    position: absolute;
    left: 0;
    top: 80px;
    width: 100%;
    background: #1e293b;
    border-bottom: 3px solid #38bdf8;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    padding: 40px 0;
    z-index: 999;
}

.show { display: block !important; }

.mega-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 20px;
}
.column h4 {
    color: #38bdf8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #334155;
    padding-bottom: 10px;
    margin-bottom: 15px;
    margin-top: 0;
}

.column a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 8px 0;
    font-size: 0.95rem;
    transition: 0.2s;
}

.column a:hover {
    color: white;
    transform: translateX(5px);
}

/* --- 4. INTRO CINEMÁTICA Y SCROLL MAGNÉTICO --- */

.intro-scroll-container {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    position: relative;
    scroll-behavior: smooth;
    scrollbar-width: none; 
}
.intro-scroll-container::-webkit-scrollbar { display: none; }

.video-fixed {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 75vh;
    z-index: -1;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-fixed.expanded {
    top: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.video-fixed video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.4);
}

/* ESTILOS DE SECCIONES MAGNÉTICAS */
.scroll-area {
    min-height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.intro-msg { text-align: center; }
.msg-content h1 { font-size: 3.5rem; color: white; text-shadow: 0 4px 10px rgba(0,0,0,0.5); margin-bottom: 0.5rem; }
.msg-content p { font-size: 1.5rem; color: #cbd5e1; }
.msg-link { text-decoration: none; display: block; transition: transform 0.3s; }
.msg-link:hover { transform: scale(1.05); }

.solid-bg { background-color: #0f172a; z-index: 10; padding-top: 80px; }

/* --- 5. HÉRO --- */
#hero .content-center { text-align: center; display: flex; flex-direction: column; align-items: center; width: 100%; }
#hero h1 { font-size: 3rem; margin-bottom: 10px; padding: 0 20px; }

.search-box {
    margin-top: 30px;
    display: flex;
    width: 90%;
    max-width: 600px;
}
.search-box input {
    flex: 1; padding: 15px; border: none; border-radius: 5px 0 0 5px; outline: none; font-size: 1rem;
}
.search-box button {
    padding: 15px 30px; background: #38bdf8; border: none; border-radius: 0 5px 5px 0; cursor: pointer; font-weight: bold; color: #0f172a;
}

/* --- 6. TARJETAS Y HOSTING (CORREGIDO) --- */
.section-column {
    flex-direction: column;
    justify-content: center;
}
.section-title { margin-bottom: 40px; font-size: 2.5rem; color: #38bdf8; text-align: center; }

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0 5%;
    flex-wrap: wrap;
    width: 100%; /* Ahora con el box-sizing global, esto respeta los bordes */
}

.card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 15px;
    padding: 40px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}
.card:hover { transform: translateY(-10px); border-color: #38bdf8; }
.card.featured { border: 2px solid #38bdf8; background: rgba(30, 41, 59, 0.7); position: relative; }
.badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: #38bdf8; color: #0f172a; padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 0.8rem; }
.price { font-size: 2.5rem; font-weight: bold; margin: 20px 0; }
.price span { font-size: 1rem; color: #94a3b8; }
.card ul { list-style: none; padding: 0; margin-bottom: 30px; text-align: left; }
.card ul li { margin-bottom: 10px; color: #cbd5e1; border-bottom: 1px solid rgba(255,255,255,0.05); }
.btn-select { width: 100%; padding: 12px; border: none; border-radius: 8px; background: #334155; color: white; font-weight: bold; cursor: pointer; transition: 0.3s; }
.card.featured .btn-select { background: #38bdf8; color: #0f172a; }

/* --- 7. SECCIONES INFO Y FOOTER --- */
.content-wrapper { display: flex; align-items: center; justify-content: center; gap: 50px; max-width: 1200px; margin: 0 auto; width: 100%; padding: 0 20px; }
.text-col { flex: 1; }
.text-col h2 { font-size: 2.5rem; color: #38bdf8; margin-bottom: 20px; }
.visual-col { flex: 1; display: flex; justify-content: center; }
.mail-icon, .code-icon { font-size: 10rem; font-weight: bold; color: rgba(56, 189, 248, 0.1); user-select: none; }
.btn-outline { display: inline-block; padding: 10px 25px; border: 2px solid #38bdf8; color: #38bdf8; text-decoration: none; border-radius: 5px; font-weight: bold; transition: 0.3s; }
.btn-outline:hover { background: #38bdf8; color: #0f172a; }

.footer-flex { flex-direction: column; height: auto; padding: 60px 0; min-height: 50vh; justify-content: center; text-align: center; }
.footer-logo { color: #38bdf8; font-weight: bold; font-size: 1.5rem; margin-bottom: 10px; }
.footer-links a { color: #94a3b8; text-decoration: none; margin: 0 15px; }

/* --- 8. RESPONSIVE Y LÓGICA MÓVIL (CORREGIDA) --- */
@media (max-width: 768px) {
    .main-menu { display: none; }
    .content-wrapper { flex-direction: column; text-align: center; }
    
    /* HOSTING EN MÓVIL */
    #hosting.scroll-area {
        height: auto;
        display: block;
        padding-bottom: 100px;
    }

    .sticky-title {
        position: sticky;
        top: 80px; /* Ajustado al borde del header */
        background: #0f172a;
        padding: 20px 0;
        z-index: 20;
        width: 100%;
        box-shadow: 0 10px 30px #0f172a;
    }

    /* CONTENEDOR MÓVIL: Forzamos centrado y quitamos overflow */
    .pricing-container {
        flex-direction: column;
        align-items: center;
        gap: 80px;
        width: 100%;
        padding: 0; /* Quitamos padding lateral del contenedor para evitar desbordes */
    }

    /* TARJETAS MÓVIL: Margen automático para centrar sí o sí */
    .magnetic-card {
        scroll-snap-align: center;
        scroll-margin-top: 180px; /* Más espacio arriba para que no lo tape el título sticky */
        width: 85%;
        max-width: 350px; /* Tope de anchura */
        margin-left: auto !important;  /* FORZAR CENTRADO */
        margin-right: auto !important; /* FORZAR CENTRADO */
    }
    
    .intro-msg h1 { font-size: 2.5rem; padding: 0 10px; }
}
/* --- BARRA INFERIOR MÓVIL (Versión Fija Suprema) --- */
.mobile-bottom-bar {
    display: none; /* Oculto en PC */
}

@media (max-width: 920px) {
    
    /* 1. Espacio vital para que la barra no tape el final de la web */
    .intro-scroll-container {
        padding-bottom: 64px !important; /* Forzamos espacio extra abajo */
    }

    /* 2. Barra Fija (Indestructible) */
    .mobile-bottom-bar {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: rgba(15, 23, 42, 0.98); /* Color corporativo sólido */
        backdrop-filter: blur(10px);
        border-top: 1px solid #334155;
        z-index:77; /* Z-INDEX NIVEL DIOS: Siempre encima del vídeo y secciones */
        box-shadow: 0 -5px 20px rgba(0,0,0,0.5); /* Sombra para separar visualmente */
        padding-bottom: env(safe-area-inset-bottom); /* Seguridad para iPhone */
    }

    /* 3. Estilos de Botones */
    .mobile-bottom-bar a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #94a3b8;
        font-size: 0.7rem;
        height: 100%;
        transition: 0.2s;
        /* Evita que el clic sea difícil en pantallas táctiles */
        touch-action: manipulation; 
    }

    .mobile-bottom-bar a .icon {
        font-size: 1.4rem; /* Iconos un poco más grandes para el dedo */
        margin-bottom: 2px;
        filter: grayscale(100%);
        transition: 0.3s;
    }

    /* Estado Activo */
    .mobile-bottom-bar a:active,
    .mobile-bottom-bar a:hover {
        color: #38bdf8;
        background: rgba(56, 189, 248, 0.05);
    }
    
    .mobile-bottom-bar a:active .icon,
    .mobile-bottom-bar a:hover .icon {
        filter: grayscale(0%);
        transform: scale(1.1);
    }
}
.logo-link {
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s;
}

.logo-link:hover {
    opacity: 0.8;
}

/* Asegura que el logo mantenga su color original */
.logo-link .logo {
    color: #38bdf8;
    margin: 0;
}
        .result-container {
            padding: 120px 5% 80px; 
            text-align: center;
            min-height: 60vh;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .status-box {
            background: rgba(30, 41, 59, 0.6);
            padding: 50px;
            border-radius: 20px;
            max-width: 800px;
            width: 100%;
            border: 1px solid #334155;
            backdrop-filter: blur(10px);
            box-shadow: 0 20px 50px rgba(0,0,0,0.3);
            transition: all 0.3s ease;
        }
        .domain-name { font-size: 3rem; margin-bottom: 20px; word-break: break-all; }
        .status-msg { font-size: 1.5rem; margin-bottom: 30px; font-weight: bold; }
        .available { color: #4ade80; }
        .taken { color: #f87171; }
        
        .price-tag { font-size: 2rem; color: #f8fafc; margin-bottom: 30px; display: block; }
        .btn-action {
            padding: 15px 40px; font-size: 1.2rem; border-radius: 8px; border: none;
            cursor: pointer; font-weight: bold; transition: 0.3s; text-decoration: none; display: inline-block;
        }
        .btn-buy { background: #38bdf8; color: #0f172a; }
        .btn-buy:hover { background: #7dd3fc; }
        .btn-retry { background: transparent; border: 2px solid #38bdf8; color: #38bdf8; }
        .btn-retry:hover { background: #38bdf8; color: #0f172a; }

        /* Estilos U-FINDER Integrado */
        .ufinder-promo {
            margin-top: 40px;
            padding: 30px;
            background: rgba(56, 189, 248, 0.05);
            border: 2px dashed #38bdf8;
            border-radius: 15px;
            text-align: left;
        }
        .btn-ufinder {
            width: 100%; text-align: center; margin-top: 15px;
            background: #38bdf8; color: #0f172a; padding: 12px; font-weight: bold;
            border: none; border-radius: 8px; cursor: pointer; font-size: 1rem;
        }
        .btn-ufinder:hover { background: #7dd3fc; }

        /* La caja desplegable de la herramienta */
        #ufinder-tool-area {
            display: none; /* Oculto por defecto */
            margin-top: 30px;
            border-top: 1px solid #334155;
            padding-top: 30px;
            animation: slideDown 0.5s ease;
        }
        @keyframes slideDown { from {opacity:0; transform:translateY(-20px);} to {opacity:1; transform:translateY(0);} }

        .ufinder-input-group {
            display: flex; gap: 10px; margin-bottom: 20px;
        }
        .u-input {
            background: #0f172a; border: 1px solid #334155; color: white;
            padding: 12px; border-radius: 6px; font-size: 1rem;
        }
        .results-grid {
            display: grid; 
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 10px; 
            /* Hemos quitado max-height y overflow para eliminar la barra lateral */
            margin-top: 20px;
            padding-bottom: 10px;
        }
        .domain-card {
            background: rgba(15, 23, 42, 0.8); border: 1px solid #334155;
            padding: 10px; border-radius: 6px; display: flex;
            justify-content: space-between; align-items: center; font-size: 0.9rem;
        }
        .domain-card:hover { border-color: #38bdf8; }
        .badge-dns { background: rgba(74, 222, 128, 0.2); color: #4ade80; padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; }
        
        /* Botón Ver Más */
        #btn-load-more {
            width: 100%;
            padding: 10px;
            margin-top: 15px;
            background: rgba(30, 41, 59, 0.8);
            border: 1px solid #38bdf8;
            color: #38bdf8;
            cursor: pointer;
            border-radius: 5px;
            font-weight: bold;
            display: none; /* Oculto al principio */
        }
        #btn-load-more:hover { background: #38bdf8; color: #0f172a; }
/* AJUSTE BUSCADOR HÍBRIDO */
.search-box.input-group {
    background: white;
    border-radius: 5px;
    padding: 5px;
    display: flex;
    align-items: center;
}
.search-box #domain-name {
    flex: 2;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 1rem;
    border-radius: 5px 0 0 5px;
}
.dot-separator {
    color: #94a3b8;
    font-weight: bold;
    padding: 0 5px;
    font-size: 1.2rem;
}
.search-box #domain-ext {
    flex: 1;
    max-width: 100px;
    border: none;
    outline: none;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 5px;
    color: #334155;
    font-weight: bold;
    text-align: center;
}
.search-box button {
    border-radius: 5px !important; /* Sobreescribe el estilo anterior */
    margin-left: 5px;
}