/* css/ayudin.css */
/* --- ESTILOS PREMIUM PARA SECCIÓN AYUDIN --- */

:root {
    --bg-color-glow: radial-gradient(circle, rgba(180, 132, 108, 0.12) 0%, rgba(250, 249, 246, 0) 75%);
}

html, body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    scrollbar-width: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

body {
    background-color: var(--bg-color);
}

/* Efecto de Fondo Aura */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--bg-color-glow);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}
.bg-glow-1 { top: -150px; right: -150px; }
.bg-glow-2 { bottom: -150px; left: -150px; }

/* Contenedor principal centrado */
.ayudin-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px 80px 16px;
    box-sizing: border-box;
}

/* Títulos de sección */
.ayudin-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 1.5rem 8px 1rem 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Grilla Responsiva de Ayudin */
.ayudin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
}

@media (min-width: 600px) {
    .ayudin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .ayudin-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tarjetas de Ayuda (Ayudin Cards) */
.ayudin-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 22px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ayudin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(180, 132, 108, 0.1);
    border-color: rgba(180, 132, 108, 0.25);
    background: #ffffff;
}

.ayudin-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #F5F2EE;
}

.ayudin-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ayudin-card:hover .ayudin-card-img {
    transform: scale(1.04);
}

.ayudin-card-icon-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    color: var(--primary-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ayudin-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.ayudin-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.ayudin-card-desc {
    font-size: 0.84rem;
    color: #64748B;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    flex-grow: 1;
}

.ayudin-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.ayudin-action-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.ayudin-card:hover .ayudin-action-label {
    gap: 8px;
}

/* Pestaña flotante e Info en Modal */
.ayudin-detail-body {
    font-family: var(--font-main);
    color: #334155;
    line-height: 1.6;
    font-size: 0.92rem;
}

.ayudin-detail-body h4 {
    color: #0F172A;
    font-weight: 700;
    margin: 1.2rem 0 0.5rem;
    font-size: 0.95rem;
}

.ayudin-detail-body ul, 
.ayudin-detail-body ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.ayudin-detail-body li {
    margin-bottom: 0.4rem;
}

/* Caja de Fórmula */
.formula-box {
    background: #FAF7F2;
    border: 1.5px solid rgba(180, 132, 108, 0.2);
    border-radius: 16px;
    padding: 1.2rem;
    margin: 1rem 0;
    text-align: center;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.01);
}

.formula-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: #8C624E;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.formula-expression {
    font-family: "Outfit", sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Modo Iframe - Ocultar cabeceras y menús duplicados */
body.in-iframe .main-header-bar {
    display: none !important;
}

body.in-iframe .bottom-nav {
    display: none !important;
}

body.in-iframe #app-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.in-iframe .bg-glow {
    display: none !important;
}

body.in-iframe {
    background-color: transparent !important;
    background: transparent !important;
}
