/* ==========================================================================
   INDEX.CSS - Específico para la página de inicio (Hero Premium)
   ========================================================================== */

/* Contenedor principal del Hero con fondo degradado suave */
.hero-index {
    background: #F8FAFC;
    background: linear-gradient(0deg, rgba(248, 250, 252, 1) 0%, rgba(237, 243, 255, 1) 100%);
    padding: 100px 0;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

/* --- Columna Izquierda: Mensaje Principal --- */
.hero-main h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin-bottom: 25px;
    margin-top: 0px;
    color: #000000;
    max-width: 800px;
}

.hero-desc {
    font-size: 1.4rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 550px;
    margin-bottom: 35px;
}

/* Botón de Llamada a la Acción */
.btn-hero {
    display: inline-block;
    padding: 14px 28px;
    background: var(--dark);
    color: #ffffff !important;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-2px);
    background: var(--primary);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

/* --- Columna Derecha: Últimos Artículos (Sidebar) --- */
.hero-latest-sidebar {
    background: rgba(255, 255, 255, 0.6);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    /* Efecto cristal para que se funda con el gradiente */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.sidebar-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 25px;
}

/* Entradas individuales dentro del Hero */
.mini-entry {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.2s;
}

.mini-entry:last-child {
    border: none;
    padding-bottom: 0;
}

.mini-entry h3 {
    font-size: 1.1rem;
    margin: 5px 0;
    line-height: 1.3;
    color: #000000;
    transition: color 0.2s ease;
}

.mini-cat {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.mini-fecha {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mini-entry:hover h3 {
    color: var(--primary);
}

/* ==========================================================================
   SECCIÓN DUAL (PROMPTS + TECNOLOGÍA A PANTALLA COMPLETA)
   ========================================================================== */

.seccion-duales {
    padding: 60px 0;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
}

/* Contenedor más ancho que el estándar (1600px en lugar de 1100px) */
.contenedor-fluido {
    max-width: 1600px; 
    margin: 0 auto;
    padding: 0 40px;
}

.grid-duales {
    display: grid;
    gap: 40px;
}

/* Si existen las dos categorías, parten la pantalla a la mitad */
.grid-duales.dos-columnas {
    grid-template-columns: 1fr 1fr;
}

/* Si solo existe una, ocupa todo el ancho */
.grid-duales.una-columna {
    grid-template-columns: 1fr;
}

/* Cajas contenedoras para agrupar visualmente cada bloque */
.modulo-destacado {
    background: #f8fafc;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.prompts-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
}

.prompts-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0;
}

.ver-todo {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

/* Grid interna de las tarjetitas */
.grid-prompts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.tarjeta-prompt {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #ffffff; /* Fondo blanco para destacar sobre el gris del módulo */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tarjeta-prompt:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.prompt-icon {
    font-size: 1.5rem;
    background: #f8fafc;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.prompt-info h3 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.2;
    color: var(--text-main);
}

.prompt-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* --- Adaptabilidad Móvil --- */
@media (max-width: 1200px) {
    .grid-duales.dos-columnas {
        grid-template-columns: 1fr; /* En tablets y portátiles pequeños se apilan uno sobre otro */
    }
}

@media (max-width: 768px) {
    .contenedor-fluido { padding: 0 20px; }
    .modulo-destacado { padding: 25px 20px; }
    .grid-prompts { grid-template-columns: 1fr; }
    .prompts-header h2 { font-size: 1.5rem; }
}



/* --- Adaptabilidad Móvil --- */
@media (max-width: 992px) {
    .hero-index {
        padding: 50px 0;
        border-bottom: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-main h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
        margin-top: 10px;
    }

    .hero-desc {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   MODO OSCURO (ESPECÍFICO DEL INDEX)
   ========================================================================== */
[data-theme="dark"] .hero-index {
    background: linear-gradient(0deg, #0f172a 0%, #1e293b 100%) !important;
}
[data-theme="dark"] .hero-latest-sidebar,
[data-theme="dark"] .modulo-destacado,
[data-theme="dark"] .tarjeta-prompt {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}
[data-theme="dark"] .seccion-duales {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
}
[data-theme="dark"] .hero-main h1,
[data-theme="dark"] .prompts-header h2,
[data-theme="dark"] .mini-entry h3,
[data-theme="dark"] .prompt-info h3 {
    color: #f8fafc !important;
}
[data-theme="dark"] .hero-desc,
[data-theme="dark"] .mini-fecha,
[data-theme="dark"] .prompt-info span {
    color: #94a3b8 !important;
}
[data-theme="dark"] .prompt-icon {
    background-color: #0f172a !important;
    border-color: #334155 !important;
}