/* =========================================================================
    HOJA DE ESTILOS PRINCIPAL - MoqueWeb
    Optimizado y ordenado: 2025
========================================================================= */

/* -------------------------------------------------------------------------
    1. 📝 Variables, Resets y Base Global
-------------------------------------------------------------------------- */
:root {
    --primary-color: #4A90E2; /* Azul principal de la marca */
    --secondary-color: #79a6d8; /* Azul claro */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --font-comfortaa: 'Comfortaa', sans-serif;
}

/* Reset Unificado (Evita duplicados en *) */
*, *::before, *::after {
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-comfortaa);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden; /* Oculta el scroll horizontal */
}

/* Contenedor central */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* -------------------------------------------------------------------------
    2. ✒️ Tipografía y Estilos de Sección
-------------------------------------------------------------------------- */
.section {
    padding: 80px 0;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* -------------------------------------------------------------------------
    3. 🖱️ Estilos de Botones (Generales)
-------------------------------------------------------------------------- */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-align: center;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Botón Primario (Fondo Azul) */
.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #3b74b9; /* Azul más oscuro (Hover unificado) */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Botón Secundario (Fondo Blanco con Borde Azul) - Estilo Base Global */
.btn-secondary {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* EFECTO UNIFICADO: El botón secundario se convierte en primario en hover/focus */
.btn-secondary:hover, .btn-secondary:focus {
    background-color: #3b74b9; /* Mismo azul oscuro que el primario (Hover unificado) */
    color: #ffffff;
    border-color: #3b74b9;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); 
}


/* -------------------------------------------------------------------------
    4. 🧭 Header y Navegación
-------------------------------------------------------------------------- */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.header .logo img {
    height: 90px; 
    width: auto; 
    transition: all 0.3s ease;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    color: var(--text-dark);
    font-weight: 700;
    padding: 5px 0;
    border-bottom: 3px solid transparent;
}

.nav-list a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Clases de Dropdown (mantidas por si se usan en JS/HTML) */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    padding-right: 15px !important; 
}

/* -------------------------------------------------------------------------
    5. 🖼️ Sección HERO (Fondo: Imagen + Overlay + Partículas)
-------------------------------------------------------------------------- */
#hero {
    position: relative; 
    background-image: url('/img/FondoMoqueWeb.webp'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 

    color: #ffffff;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 0; 
    overflow: hidden; 
    z-index: 1; 
}

/* Capa Oscura (Overlay) */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 2; 
}

/* Contenedor de Texto y Botones */


.hero-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    
    position: relative;
    z-index: 10; 
    text-align: center;
    padding: 0 20px; 
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#hero p {
    font-size: 1.3rem;
    /* CORRECCIÓN CLAVE: Aumentar el margen inferior para separar del botón */
    margin-bottom: 60px; 
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}


/* -------------------------------------------------------------------------
    Estilos de Botones en HERO
-------------------------------------------------------------------------- */

/* Estilo Base del Botón Principal (Fondo blanco, texto azul) */
#hero .btn-primary {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid #ffffff; /* Añadimos borde blanco para consistencia */
}

/* 2. HOVER DEL BOTÓN "VER PLANES" (Ahora .btn-primary en el Hero) */
#hero .btn-primary:hover,
#hero .btn-primary:focus {
    /* Cambia a un color azul más oscuro (el mismo que usamos globalmente) */
    background-color: #3b74b9; 
    color: #ffffff;
    border-color: #3b74b9;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}


/* Estilos del Contenedor de Partículas (sin cambios) */
#particles-js {
    position: absolute; 
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 3; 
    background-color: transparent !important; 
}

/* Media Query de ejemplo para Móviles */
@media (max-width: 768px) {
    /* Aseguramos que en móvil el texto ocupe todo el ancho */
    .hero-content {
        max-width: 100%;
    }
}

/* -------------------------------------------------------------------------
    6. 📜 Sección Nuestra Historia
-------------------------------------------------------------------------- */
.historia {
    background-color: var(--bg-light);
}

.historia-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.historia-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.historia-img {
    max-width: 100%; 
    height: auto;
    margin: 30px auto; 
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* -------------------------------------------------------------------------
    7. 🚀 Sección Planes de Diseño (Tarjetas)
-------------------------------------------------------------------------- */

.planes-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.plan-card {
    background-color: #ffffff;
    border: 3px solid var(--secondary-color); 
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    max-width: 350px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Estilo para destacar el Plan Básico */
.featured-plan {
    border: 3px solid var(--primary-color);
}

/* EFECTO HOVER: Misma animación para ambas tarjetas */
.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2); 
    background-color: var(--bg-light); 
}

.plan-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.plan-tag {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 25px;
    font-style: italic;
}

/* Listas de Características */
.plan-card ul {
    padding-left: 0; 
    margin: 20px 0 30px 0;
    text-align: left; 
    flex-grow: 1; /* Para alinear el botón en tarjetas de distinta altura */
}

.plan-card li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-dark);
    position: relative;
    padding-left: 20px;
    list-style: none; 
}

/* VIÑETA CORREGIDA (Icono de Font Awesome) */
.plan-card li::before {
    content: "\f00c"; 
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

/* Botones en Tarjetas */
.plan-card .btn-secondary {
    background-color: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color); 
    transition: all 0.3s ease; 
}

.plan-card .btn-secondary:hover, 
.plan-card .btn-secondary:focus {
    background-color: #3b74b9; 
    border-color: #3b74b9;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); 
}

.nota-hosting {
    margin-top: 40px;
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
}

/* === ESTILOS DE PRECIOS === */

.price-block {
    margin: 20px 0;
    line-height: 1;
}

.old-price {
    display: block;
    font-size: 1.1rem;
    color: #E74C3C; 
    text-decoration: line-through;
    margin-bottom: 5px;
}

.current-price {
    display: block;
    font-size: 2.5rem; 
    font-weight: 900;
    color: #2ECC71; 
}

.advanced-price {
    font-size: 1.8rem; 
    color: var(--text-dark);
}

.ars-conversion {
    display: block;
    font-size: 0.95rem; 
    font-weight: 500;
    color: var(--text-light); 
    margin-top: 5px;
}

.ars-conversion strong {
    color: var(--text-dark); 
    font-weight: 700;
}


/* -------------------------------------------------------------------------
    8. ⭐ Sección Por Qué Elegirnos (Beneficios)
-------------------------------------------------------------------------- */
.elegirnos {
    background-color: #ffffff;
}

.razones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 0 20px; 
}

.razon-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); 
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.razon-card i {
    font-size: 3rem; 
    color: var(--primary-color); 
    margin-bottom: 20px;
}

.razon-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.razon-card:hover {
    transform: translateY(-5px) scale(1.02); 
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.3); 
    cursor: pointer; 
}


/* -------------------------------------------------------------------------
    9. 🤝 Sección Clientes
-------------------------------------------------------------------------- */
.clientes {
    background-color: var(--bg-light);
    padding: 40px 0; 
}

.sincere-message-box {
    max-width: 700px;
    margin: 0 auto 50px auto; 
    padding: 20px 30px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    background-color: #f7f9fc; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.sincere-message-box p {
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 0;
    text-align: center;
}

.logos-clientes {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.logo-img {
    height: 70px; 
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 8px; 
}

.logos-clientes a:hover .logo-img {
    opacity: 1;
    transform: scale(1.05);
}


/* -------------------------------------------------------------------------
    10. 📞 Sección CTA / Contacto
-------------------------------------------------------------------------- */
.cta-contacto {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 60px 20px;
}

.cta-contacto h2 {
    color: #ffffff;
}

.cta-contacto p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Botón del CTA */
.cta-contacto .btn-primary.large {
    font-size: 1.1rem;
    padding: 15px 35px;
    background-color: #ffffff;
    color: var(--primary-color);
}

.cta-contacto .btn-primary.large:hover {
    background-color: var(--bg-light);
    color: #3b74b9;
}


/* -------------------------------------------------------------------------
    11. 🦶 Footer
-------------------------------------------------------------------------- */
.footer {
    background-color: var(--text-dark);
    color: #ffffff;
    padding: 30px 0;
    font-size: 0.9rem;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

.footer-info {
    text-align: left;
}

.footer-info a {
    color: var(--secondary-color);
}

.social-links a {
    color: #ffffff;
    font-size: 1.5rem;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}


/* -------------------------------------------------------------------------
    12. 📑 Estilos de la Página de Detalle de Plan (plan-basico.html)
-------------------------------------------------------------------------- */
.detalle-plan {
    padding: 60px 0;
    background-color: #ffffff; 
}

.detalle-plan .text-center {
    color: var(--primary-color); 
    font-size: 2.2em;
    margin-bottom: 20px;
}

.detalle-plan .lead-text {
    text-align: center;
    font-size: 1.2em;
    color: #555;
    max-width: 800px;
    margin: 0 auto 50px auto;
    border-bottom: 2px solid #eee;
    padding-bottom: 30px;
}

/* Estructura de Columnas (Desktop) */
.feature-detail {
    display: flex;
    flex-wrap: nowrap; 
    align-items: stretch; 
    justify-content: center; 
    gap: 40px; 
    margin-bottom: 40px;
    padding: 30px; 
    border: 1px solid #e0e0e0; 
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    background-color: #fafafa;
}

/* Columna de Texto */
.feature-detail .feature-text {
    flex-shrink: 0;
    width: 530px; 
}

.feature-detail .feature-text h3 {
    color: #333;
    margin-top: 0;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px; 
    text-align: justify; 
}

.feature-detail .feature-text p {
    color: #666;
    line-height: 1.6;
    text-align: justify; 
}

/* Columna de Imagen */
.feature-detail .feature-media {
    flex-shrink: 0;
    width: 350px; 
    text-align: center; 
}

.feature-detail .detail-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Bloque CTA inferior (en página detalle) */
.cta-bottom {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.cta-bottom p {
    font-size: 1.3em;
    margin-bottom: 25px;
    font-weight: 400;
}

/* Estilo Base del Botón Primario en CTA (Fondo Blanco) */
.cta-bottom .btn-primary {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease !important; 
}

/* HOVER UNIFICADO DEL CTA INFERIOR */
.cta-bottom .btn-primary.large:hover, 
.cta-bottom .btn-primary.large:focus {
    background-color: #3b74b9 !important; 
    color: #ffffff !important; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.ml-4 {
    margin-left: 15px;
}


/* -------------------------------------------------------------------------
    13. ✨ Estilos para Animación de Íconos (Scroll Reveal)
-------------------------------------------------------------------------- */
/* 1. Definición de la animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0); 
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* 2. Estado Inicial de los Íconos (Antes de aparecer) */
.icon-animado {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    pointer-events: none; 
    transition: all 1s ease-out; 
    margin-right: 15px; 
    color: var(--primary-color); 
}

/* 3. Estado Activo (Cuando entra en pantalla - Clase añadida por JS) */
.icon-animado.is-visible {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 1; 
    transform: translate3d(0, 0, 0); 
}


/* =========================================================================
    14. 📱 MEDIA QUERIES (Responsividad)
========================================================================= */

/* Adaptación para Tabletas (max-width: 1024px) */
@media (max-width: 1024px) {
    /* Ajustes de espaciado en secciones generales */
    .section {
        padding: 80px 20px;
    }
    
    /* Encabezados más pequeños */
    h2 {
        font-size: 2.5rem;
    }

    /* Sección Hero */
    #hero h1 {
        font-size: 3rem;
    }
    
    /* Rejilla de planes (Sección 7) */
    .planes-grid {
        /* Permite que se apilen si no caben 3 */
        flex-wrap: wrap; 
    }
}

/* Adaptación de la Página de Detalle de Plan (plan-basico.html) para dispositivos medianos */
@media (max-width: 950px) {
    
    .feature-detail {
        flex-direction: column; 
        align-items: center; 
        flex-wrap: wrap; 
        gap: 20px; 
        width: 100%;
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .feature-detail .feature-text,
    .feature-detail .feature-media {
        width: 100%; 
        max-width: 500px; 
        order: initial; 
        padding: 0 10px; 
    }

    .feature-detail .feature-text h3,
    .feature-detail .feature-text p {
        text-align: center;
    }
    
    .feature-detail .feature-media {
        margin: 0 auto; 
        text-align: center;
        padding: 10px; 
    }
    
    .feature-detail .detail-img {
        width: 100%; 
        max-width: 100%; 
        margin: 0 auto;
    }
}

/* Adaptación para Móviles (max-width: 768px) */
@media (max-width: 768px) {
    
    /* === NAVEGACIÓN === */
    .menu-toggle {
        display: block; 
        z-index: 1001; 
    }

    .nav {
        display: block; 
        position: absolute;
        top: 70px; 
        left: 0;
        width: 100%;
        max-height: 0; 
        overflow: hidden; 
        transition: max-height 0.3s ease-out;
        background-color: #ffffff; 
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 0;
    }

    .nav.active {
        max-height: 300px; 
        padding-bottom: 20px;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        width: 100%;
        padding: 10px 0;
    }
    
    .nav-list li {
        margin: 10px 0;
    }
    /* ==================================================== */

    /* AJUSTES GENERALES EN MÓVIL */
    .section {
        padding: 50px 15px;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    body {
        font-size: 0.875rem; /* 14px */
    }

    /* Grillas Colapsables */
    .planes-grid,
    .razones-grid {
        grid-template-columns: 1fr; 
        flex-direction: column; /* Asegura el apilamiento explícito en la rejilla de planes */
    }
    
    .plan-card {
        max-width: 100%; 
        margin: 10px auto;
    }

    /* Ajuste de precios en móvil */
    .current-price {
        font-size: 2rem;
    }
    
    .advanced-price {
        font-size: 1.5rem;
    }

    /* AJUSTE ESPECÍFICO DEL HERO EN MÓVIL */
    #hero {
        padding-left: 0; 
        padding-right: 0;
        overflow: hidden; 
    }

    #hero .container {
        width: 100%;
        padding: 0 15px; 
        margin: 0 auto; 
        text-align: center; 
    }
    
    #hero h1, 
    #hero p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    /* === FIX: CENTRADO DE FOOTER COMPLETO === */
    .footer .container {
        flex-direction: column;
        align-items: center; 
    }
    
    .footer-info {
        width: 100%; 
        text-align: center; 
        margin-bottom: 15px; 
    }
    
    .footer a {
        text-decoration: none;
    }
}

/* Adaptación para Móviles muy pequeños (max-width: 480px) */
@media (max-width: 480px) {
    
    .container {
        padding: 0 10px;
    }
    
    #hero h1 {
        font-size: 2rem;
    }
    
    .footer .container {
        align-items: center;
    }
    
    .footer-info {
        text-align: center;
    }
}
