/*
=================================================
  1. VARIABLES Y RESET BÁSICO (VERSIÓN TECH DARK)
=================================================
*/
:root {
    /* Paleta de Colores - Tech Mode */
    --color-primary: #00FFC0;       /* Cian Neón - Acento y CTA principal */
    --color-secondary: #00B388;     /* Verde oscuro - Hover */
    --color-background: #1A1A2E;    /* Azul Oscuro Intenso - Fondo principal */
    --color-surface: #2C2C40;       /* Gris Azulado - Superficies (Cards) */
    --color-text: #EAEAEA;          /* Blanco Roto - Texto principal */
    --color-light-bg: #4A4A6A;      /* Gris para Borders */
    --color-dark-bg: #10101A;       /* Fondo más oscuro (Footer) */

    /* Tipografía */
    --font-main: 'Inter', 'Segoe UI', 'Helvetica', sans-serif;
    --font-heading: 'Space Grotesk', 'Segoe UI', 'Helvetica', sans-serif;
}

/* Reset Box Model y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Desplazamiento suave al navegar */
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-bottom: 0.5em;
    font-weight: 600;
}

strong {
    color: var(--color-text);
    font-weight: bold;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

/* Clases de Utilidad */
.section-padded {
    padding: 80px 5%; 
}

.bg-surface {
    background-color: var(--color-surface);
}

.bg-dark-footer {
    background-color: var(--color-dark-bg);
    color: var(--color-text);
}

/*
=================================================
  2. NAVEGACIÓN (HEADER) - CON LOGO AL LADO
=================================================
*/
#header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: rgba(16, 16, 26, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-light-bg);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45);
    transform: translateY(calc(-100% + 6px));
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* La barra aparece con el mouse (hover), teclado (focus) o al tocarla en pantallas táctiles
   (la clase .nav-visible la añade nav-toggle.js) */
#header-nav:hover,
#header-nav:focus-within,
#header-nav.nav-visible {
    transform: translateY(0);
}

/* Pequeña pestaña indicadora, visible cuando la barra está oculta,
   para invitar a pasar el mouse/dedo por ahí */
#header-nav::after {
    content: '▾ MENÚ';
    position: absolute;
    left: 50%;
    bottom: -24px;
    transform: translateX(-50%);
    background-color: rgba(16, 16, 26, 0.95);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 4px 16px;
    border: 1px solid var(--color-primary);
    border-top: none;
    border-radius: 0 0 8px 8px;
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.25s ease;
}

#header-nav:hover::after,
#header-nav.nav-visible::after {
    opacity: 0;
}

/* El contenido ya no ocupa espacio en el flujo (la barra es fixed):
   dejamos que el hero empiece desde arriba para un efecto inmersivo */
#hero {
    padding-top: 60px;
}

.logo {
    display: flex; /* Para alinear el logo y el texto */
    align-items: center;
    gap: 10px; /* Espacio entre el logo y el texto */
}

.nav-logo {
    height: 40px; /* Tamaño del logo en la navegación */
    width: auto;
}

.logo a {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--color-primary);
    text-shadow: 0 0 5px var(--color-primary); 
}

#header-nav nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

#header-nav nav a:not(.btn-cta) {
    color: var(--color-text);
    padding: 5px 0;
    position: relative;
}

/* Línea sutil al pasar el mouse por encima de los links */
#header-nav nav a:hover:not(.btn-cta)::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    left: 0;
    bottom: -5px;
}
/* FIN NAVEGACIÓN */

/*
=================================================
  3. HERO (SECCIÓN PRINCIPAL) - CON IMAGEN DE FONDO
=================================================
*/
#hero {
    display: flex;
    align-items: center;
    min-height: 70vh; /* antes 90 */
    padding: 40px 5%; /* antes 60 */
    background: linear-gradient(rgba(26, 26, 46, 0.7), rgba(26, 26, 46, 0.7)), url('BANNER.png') no-repeat center center;
    background-size: cover;
    position: relative;
    border-bottom: none; /* quitamos el corte */
}

#nosotros {
    margin-top: -20px;
    padding-top: 40px;
}


/* ESTILOS PARA CREAR EL BORDE NEÓN EN EL BANNER */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid var(--color-primary); /* Borde neón */
    pointer-events: none; /* Permite interactuar con el contenido detrás */
    box-shadow: 0 0 25px rgba(0, 255, 192, 0.8) inset, 0 0 25px rgba(0, 255, 192, 0.8); 
}

#hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--color-background));
}


.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(0, 255, 192, 0.5); 
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 700px;
    color: var(--color-text);
}

/* Estilos de Botones Generales */
.btn-primary, .btn-secondary, .btn-cta {
    padding: 15px 30px;
    border-radius: 3px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.btn-primary {
    margin-right: 15px;
}

/* Botón Principal (Neón) */
.btn-primary, .btn-cta {
    background-color: var(--color-primary);
    color: var(--color-dark-bg) !important; /* Contraste fuerte */
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 15px rgba(0, 255, 192, 0.7); /* Efecto neón */
}

.btn-primary:hover, .btn-cta:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    box-shadow: 0 0 25px rgba(0, 255, 192, 1);
    transform: scale(1.05);
}

/* Botón Secundario (Outline Tech) */
.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-dark-bg);
}
/* FIN HERO */

/*
=================================================
  4. NOSOTROS (MISIÓN)
=================================================
*/
#nosotros h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--color-primary);
}

.mission-statement {
    display: flex;
    gap: 60px;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 0;
}

.mission-statement p {
    flex: 1;
    font-size: 1.1rem;
    text-align: justify;
    padding: 15px;
    border: 1px solid var(--color-surface); 
    border-radius: 5px;
}

/*
=================================================
  5. PRODUCTOS (SOLUCIONES)
=================================================
*/
#soluciones {
    background-color: var(--color-surface); 
}

#soluciones h2, .subtitle {
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 50px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--color-background);
    padding: 30px;
    border-radius: 5px;
    border: 1px solid var(--color-light-bg);
    transition: all 0.4s ease;
    box-shadow: inset 0 0 10px rgba(0, 255, 192, 0.1); 
}

.product-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(0, 255, 192, 0.5); 
    transform: translateY(-8px);
}

.product-card h3 {
    color: var(--color-primary);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.product-card ul {
    margin-top: 15px;
    list-style-type: '⚡ '; /* Rayo como viñeta */
    padding-left: 20px;
}

.product-card mark {
    background-color: #f7a049; /* Naranja Tech para resaltar */
    padding: 3px 6px;
    border-radius: 3px;
    color: var(--color-dark-bg);
    font-weight: bold;
}

.feature-highlight {
    color: #ffcc00; /* Amarillo para resaltar características clave */
    font-weight: bold;
    margin-top: 10px;
}


/*
=================================================
  6. CREADOR (PERFIL - En index.html)
=================================================
*/
.creator-profile {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--color-surface);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--color-light-bg);
}

.creator-image {
    min-width: 180px;
    height: 180px;
    border-radius: 50%; 
    border: 3px solid var(--color-primary); 
    box-shadow: 0 0 15px rgba(0, 255, 192, 0.5);
    overflow: hidden;
}

/* Para la imagen real de Leider */
.creator-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-bio h2 {
    color: var(--color-primary);
}

.sena-quote {
    background-color: var(--color-background);
    border-left: 5px solid var(--color-primary);
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--color-text);
}


/*
=================================================
  7. FOOTER
=================================================
*/
#contacto {
    text-align: center;
    padding: 40px 5%;
    background-color: var(--color-dark-bg);
    border-top: 1px dashed var(--color-primary);
}

#contacto p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--color-primary);
}


/*
=================================================
  8. ESTILOS ESPECÍFICOS DE PÁGINA PERFIL (perfil.html)
=================================================
*/

#profile-page {
    max-width: 1000px;
    margin: 40px auto;
    text-align: center;
    background-color: var(--color-background);
}

.profile-header {
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-primary);
}

.profile-image-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    overflow: hidden;
    border: 5px solid var(--color-primary); 
    box-shadow: 0 0 20px rgba(0, 255, 192, 0.7);
}

.profile-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    text-align: left;
    background-color: var(--color-surface);
    padding: 30px;
    border-radius: 8px;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.skills-list li {
    background-color: var(--color-dark-bg);
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid var(--color-primary);
    font-weight: bold;
    color: var(--color-primary);
    transition: background-color 0.3s;
}

.skills-list li:hover {
    background-color: var(--color-primary);
    color: var(--color-dark-bg);
}

/*
=================================================
  9. MEDIA QUERIES (RESPONSIVE)
=================================================
*/
@media (max-width: 768px) {
    /* Ajustes Generales para Móviles */
    .section-padded {
        padding: 60px 5%;
    }


    /* Títulos más pequeños */
    h1 {
        font-size: 2rem !important;
    }
    h2 {
        font-size: 1.8rem !important;
    }
    .hero-content p {
        font-size: 1.1rem;
    }

    /* --- NAVEGACIÓN COLAPSABLE (HEADER) --- */
    #header-nav {
        flex-direction: column; /* Apila logo y nav */
        align-items: flex-start; /* Alinea el logo a la izquierda */
        padding: 15px 5%;
    }

    .logo {
        margin-bottom: 10px; 
    }

    #header-nav nav {
        width: 100%; 
    }
    #header-nav nav ul {
        flex-direction: column; 
        gap: 10px; 
        align-items: flex-start;
        padding-left: 0;
    }

    /* Oculta los botones CTA en la nav principal para ahorrar espacio en móvil */
    #header-nav nav ul li .btn-cta {
        display: none;
    }

    /* --- HERO (Botones) --- */
    .btn-primary, .btn-secondary {
        display: block; 
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 15px;
    }

    /* --- SECCIÓN NOSOTROS (MISIÓN) --- */
    .mission-statement {
        flex-direction: column; 
        gap: 20px;
    }

    /* --- SECCIÓN CREADOR (PERFIL - index.html) --- */
    .creator-profile {
        flex-direction: column; 
        text-align: center;
        gap: 30px;
        padding: 30px 20px;
    }
    .creator-image {
        margin-bottom: 0;
    }
    
    /* --- SECCIÓN PERFIL.HTML (PÁGINA DEDICADA) --- */
    .profile-details {
        text-align: center; 
    }
    .skills-list {
        justify-content: center; 
    }
}

/* =================================================
  10. SECCIÓN ALIADOS (CATÁLOGO)
=================================================
*/
#aliados {
    background-color: var(--color-dark-bg);
    border-top: 1px solid var(--color-light-bg);
}

/* Banner de la sección "Casos de Éxito Regional" */
.aliados-banner {
    max-width: 1200px;
    margin: 0 auto 50px;
}

.aliados-banner-img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .aliados-banner {
        margin-bottom: 35px;
    }
}

.aliados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.aliado-card {
    background-color: var(--color-surface);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--color-light-bg);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.aliado-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(0, 255, 192, 0.3);
}

/* Placeholder para el Logo del Aliado */
.aliado-logo-box {
    height: 120px;
    background: linear-gradient(135deg, #2C2C40, #1A1A2E);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-light-bg);
}

.logo-text {
    font-size: 3rem;
}

.aliado-logo-img {
    max-width: 65%;
    max-height: 65%;
    object-fit: contain;
}

.aliado-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.aliado-info h3 {
    color: var(--color-text);
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.tech-tag {
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.aliado-info .description {
    font-size: 0.95rem;
    color: #b0b0c0;
    margin-bottom: 20px;
    flex: 1; /* Empuja el botón hacia abajo */
}

.btn-text {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Estilo para la tarjeta de "Tu marca aquí" */
.invite-card {
    border: 2px dashed var(--color-light-bg);
    background: transparent;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.btn-primary-small {
    background-color: var(--color-primary);
    color: var(--color-dark-bg);
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
}

/* =================================================
   INTEGRACIÓN: LA VIEJA ROMA (NAMESPACE .lvr-)
=================================================
*/

/* Fondo específico para esta interfaz */
.lvr-body {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.85)), 
                url('LAVIEJAROMAFONDO.jpeg') no-repeat center center fixed !important;
    background-size: cover !important;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
}

.lvr-header {
    padding: 40px 0;
    text-align: center;
}

.lvr-title {
    font-size: 3.5rem;
    color: #FFD700; /* Dorado para comida */
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.lvr-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    padding: 0 5% 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.lvr-card {
    background: rgba(20, 20, 20, 0.9);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
}

.lvr-section-title {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.lvr-divider {
    height: 2px;
    background: linear-gradient(90deg, #FFD700, transparent);
    margin-bottom: 20px;
}

.lvr-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.lvr-name {
    font-weight: bold;
    font-size: 1.1rem;
    display: block;
}

.lvr-desc {
    font-size: 0.85rem;
    color: #bbb;
    line-height: 1.2;
}

.lvr-price {
    color: #FFD700;
    font-weight: 800;
    font-size: 1.2rem;
    margin-left: 15px;
}

/* Botón flotante */
.lvr-float-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    transition: transform 0.3s;
}

.lvr-float-wa:hover { transform: scale(1.1); }
.lvr-float-wa img { width: 100%; }

/* Ajuste móvil */
@media (max-width: 600px) {
    .lvr-title { font-size: 2.2rem; }
    .lvr-container { grid-template-columns: 1fr; }
}

/* =================================================
   INTERFAZ: LA VIEJA ROMA (CON RUTA DE ACTIVOS)
================================================= */

.lvr-body {
    /* Ajustamos la ruta para que busque dentro de assets/img/ */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85)), 
                url('/assets/img/LAVIEJAROMAFONDO.jpeg') no-repeat center center fixed !important;
    
    background-size: cover !important;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    min-height: 100vh;
}
/* Opcional: Si quieres un efecto de desenfoque suave en el fondo para que se vea más premium */
/*
.lvr-body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: inherit;
    filter: blur(2px);
    z-index: -1;
}
*/

/* =================================================
   11. ESPECÍFICOS DE BROSOFT STORE (TIENDA)
================================================= */

/* Contenedor de stock */
.stock-available {
    display: inline-block;
    background-color: rgba(0, 255, 192, 0.1);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    border: 1px solid var(--color-primary);
    margin: 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Botón de WhatsApp estilo Tech-Green */
.btn-whatsapp-store {
    background-color: transparent;
    color: #25D366; /* Verde WhatsApp original para reconocimiento */
    border: 2px solid #25D366;
    padding: 12px 20px;
    border-radius: 3px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 10px;
}

.btn-whatsapp-store:hover {
    background-color: #25D366;
    color: var(--color-dark-bg);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
    transform: scale(1.03);
}

/* Ajuste de íconos o imágenes en la tienda */
.store-item-visual {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    text-shadow: 0 0 15px var(--color-primary);
}

/* Asegurar que las cards de la tienda sigan el estilo de soluciones */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-top: 40px;
}