/* Paleta de Colores Moderna y Confortable */
:root {
    --bg-main: #F8FAFC;       
    --panel-bg: #FFFFFF;      
    --primary: #6366F1;       
    --primary-hover: #4F46E5;
    --success: #10B981;       
    --success-hover: #059669;
    --text-dark: #1E293B;     
    --text-muted: #64748B;    
    --border-color: #E2E8F0;  
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    touch-action: manipulation; 
}
body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: '-apple-system', BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
}
/* Navbar */
.navbar {
    background-color: var(--panel-bg);
    border-bottom: 2px solid var(--border-color);
    text-align: center;
    padding: 15px 10px;
}
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo {
    font-size: 2rem;
    color: #6366F1; 
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px; 
}
.logo-bold { 
    font-weight: 800; 
}
.logo-img {
    width: 35px;  
    height: 35px;
    object-fit: contain;
}
.subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}
/* Contenedor Adaptable */
.app-container {
    max-width: 1200px;
    margin: 15px auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
@media (min-width: 768px) {
    .app-container {
        display: grid;
        grid-template-columns: 400px 1fr; 
        gap: 25px;
    }
}
.panel-control, .panel-preview {
    background-color: var(--panel-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
h2 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}
.control-group { margin-bottom: 15px; }
.label-title { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
input[type="number"], select {
    width: 100%;
    padding: 12px; 
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    background-color: var(--bg-main);
    appearance: none;          
}
input[type="number"]:focus, select:focus {
    border-color: var(--primary);
    background-color: #FFFFFF;
}
/* Zona de Carga */
.drop-zone {
    border: 2px dashed var(--primary);
    background-color: #EEF2FF;
    border-radius: 8px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
}
.drop-zone .icon { font-size: 1.8rem; margin-bottom: 5px; }
.drop-zone .text { font-size: 0.85rem; color: var(--primary); font-weight: 600; }
/* Botones Tipo Toggle */
.toggle-options {
    display: flex;
    gap: 10px;
}
.toggle-btn {
    flex: 1;
    cursor: pointer;
}
.toggle-btn input { display: none; }
.toggle-btn span {
    display: block;
    text-align: center;
    background-color: var(--bg-main);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 500;
}
.toggle-btn input:checked + span {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}
.radio-options {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}
.radio-options label { cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; gap: 5px;}
.helper-text { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
/* Estadísticas */
.stats-box { background-color: #F8FAFC; border: 1px solid var(--border-color); border-radius: 8px; padding: 12px; margin-bottom: 20px; }
.stat-item { font-size: 0.9rem; margin-bottom: 4px; }
.ahorro-text { color: #059669; font-weight: bold; font-size: 0.85rem; margin-left: 5px; }
.stat-badge { display: inline-block; background-color: #D1FAE5; color: #065F46; font-size: 0.7rem; padding: 2px 6px; border-radius: 12px; font-weight: 600; margin-top: 4px; }
.btn-primary {
    width: 100%;
    background-color: var(--success);
    color: white;
    border: none;
    padding: 15px; 
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}
.btn-primary:disabled { background-color: var(--border-color); color: var(--text-muted); cursor: not-allowed; box-shadow: none; }
/* Vista Previa Interactiva */
.instruccion-tactil {
    background-color: #FEF3C7;
    color: #92400E;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}
.preview-wrapper {
    min-height: 300px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FAFAFA;
    padding: 10px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}
.hoja-celda-overlay {
    position: absolute;
    border: 1px dashed #6366f1;
    box-sizing: border-box;
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.2s ease;
}
.hoja-celda-overlay:hover {
    background-color: rgba(99, 102, 241, 0.1);
}
.hoja-celda-overlay.desactivada {
    background-color: rgba(30, 41, 59, 0.85) !important;
    border-color: #334155;
}
.hoja-numero {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.hoja-celda-overlay.desactivada .hoja-numero {
    background: #EF4444;
    color: white;
}
/* FAQ */
.faq-section { max-width: 1200px; margin: 25px auto; padding: 0 15px; }
.faq-grid { display: flex; flex-direction: column; gap: 15px; margin-top: 10px; }
@media (min-width: 768px) { .faq-grid { display: grid; grid-template-columns: 1fr 1fr; } }
.faq-item { background: white; padding: 15px; border-radius: 8px; border: 1px solid var(--border-color); }
.faq-item h4 { color: var(--primary); margin-bottom: 5px; font-size: 0.95rem; }
.faq-item p { font-size: 0.85rem; }
footer { text-align: center; padding: 20px; color: var(--text-muted); font-size: 0.8rem; border-top: 1px solid var(--border-color); background: white; margin-top: 20px; }
.hidden { display: none !important; }

/* =========================================
   ESTILO DE LA CAJA PRO (MORADA)
   ========================================= */
.premium-box {
    background-color: #F5F3FF;
    border: 1px solid #DDD6FE;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}
.premium-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.premium-badge {
    background: linear-gradient(90deg, #F59E0B, #D97706);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}
.premium-header h4 { color: #4338CA; font-size: 0.95rem; font-weight: 700; }
.premium-text { font-size: 0.85rem; color: #475569; margin-bottom: 12px; line-height: 1.4; }

/* =========================================
   SECCIÓN DE DONACIÓN (CAFÉ) 
   ========================================= */
.donation-section {
    max-width: 800px;
    margin: 30px auto 40px auto;
    padding: 0 15px;
}
.donation-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #E2E8F0;
}
.donation-card h3 {
    font-size: 1.3rem;
    color: #1E293B;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.donation-card p {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 10px;
}
.btn-donation {
    display: inline-block;
    background-color: #0269A4; /* Color azul estilo botón de aporte */
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: background 0.3s;
    font-size: 1rem;
}
.btn-donation:hover {
    background-color: #025687;
}

/* =========================================================
   POSTERFLY 4.0
   NUEVA NAVEGACIÓN Y CABECERA
   ========================================================= */

.navbar {
    position: relative;
    background: var(--panel-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 18px 0;
    text-align: center;
}

.navbar-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.logo-link:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 5px;
    border-radius: 8px;
}

.logo {
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.logo-link:hover .logo {
    transform: translateY(-1px);
}

.subtitle {
    max-width: 650px;
    margin: 5px auto 14px;
    line-height: 1.5;
}

/* =========================================================
   NAVEGACIÓN PRINCIPAL
   ========================================================= */

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 12px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 9px 15px;

    border: 1px solid var(--border-color);
    border-radius: 10px;

    background: var(--bg-main);
    color: var(--text-dark);

    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 650;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.nav-link:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.28);
    outline-offset: 2px;
}

.nav-link.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 7px rgba(99, 102, 241, 0.18);
}

.nav-link.active:hover {
    background: var(--primary-hover);
    color: #ffffff;
}

/* =========================================================
   MEJORAS GENERALES DE ACCESIBILIDAD
   ========================================================= */

button,
input,
select,
textarea {
    font-family: inherit;
}

button,
.nav-link,
.drop-zone {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   CELULARES
   ========================================================= */

@media (max-width: 767px) {

    .navbar {
        padding: 12px 12px 0;
    }

    .logo {
        font-size: 1.75rem;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }

    .subtitle {
        font-size: 0.86rem;
        padding: 0 10px;
        margin-bottom: 12px;
    }

    .main-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding-bottom: 10px;
    }

    .nav-link {
        width: 100%;
        min-height: 44px;
        padding: 9px 8px;
        font-size: 0.82rem;
    }
}

/* =========================================================
   CELULARES MUY PEQUEÑOS
   ========================================================= */

@media (max-width: 380px) {

    .logo {
        font-size: 1.6rem;
    }

    .logo-img {
        width: 29px;
        height: 29px;
    }

    .main-nav {
        grid-template-columns: 1fr;
    }

    .nav-link {
        min-height: 42px;
    }
}

/* =========================================================
   REDUCE ANIMACIONES SI EL USUARIO LO PREFIERE
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .logo,
    .nav-link {
        transition: none;
    }
}

/* =========================================================
   POSTERFLY 4.0
   SECCIÓN: MÁS HERRAMIENTAS
   ========================================================= */

.tools-section {
    width: 100%;
    max-width: 1200px;

    margin: 35px auto 25px;
    padding: 0 15px;
}


/* ---------------------------------------------------------
   ENCABEZADO
   --------------------------------------------------------- */

.tools-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 22px;
}

.tools-eyebrow {
    display: inline-block;

    margin-bottom: 7px;
    padding: 4px 9px;

    border-radius: 999px;

    background: rgba(99, 102, 241, 0.09);
    color: var(--primary);

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.tools-header h2 {
    margin: 0 0 8px;

    color: var(--text-dark);
    font-size: 1.45rem;
    font-weight: 800;
}

.tools-header p {
    margin: 0;

    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}


/* ---------------------------------------------------------
   GRID DE HERRAMIENTAS
   --------------------------------------------------------- */

.tools-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 15px;
}


/* ---------------------------------------------------------
   TARJETAS
   --------------------------------------------------------- */

.tool-card {
    display: flex;
    align-items: flex-start;

    gap: 15px;

    min-height: 170px;

    padding: 18px;

    background: var(--panel-bg);

    border: 1px solid var(--border-color);
    border-radius: 14px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-2px);

    border-color: rgba(99, 102, 241, 0.35);

    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.07);
}


/* ---------------------------------------------------------
   ICONO
   --------------------------------------------------------- */

.tool-icon {
    flex: 0 0 52px;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(99, 102, 241, 0.09);

    font-size: 1.55rem;
}


/* ---------------------------------------------------------
   CONTENIDO
   --------------------------------------------------------- */

.tool-content {
    flex: 1;
    min-width: 0;
}

.tool-content h3 {
    margin: 5px 0 7px;

    color: var(--text-dark);

    font-size: 1.05rem;
    font-weight: 800;
}

.tool-content p {
    margin: 0 0 14px;

    color: var(--text-muted);

    font-size: 0.86rem;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   ESTADO
   --------------------------------------------------------- */

.tool-status {
    display: inline-block;

    padding: 3px 7px;

    border-radius: 5px;

    background: #F3F4F6;
    color: var(--text-muted);

    font-size: 0.62rem;
    font-weight: 800;

    letter-spacing: 0.04em;
}


/* ---------------------------------------------------------
   BOTÓN
   --------------------------------------------------------- */

.tool-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 8px 13px;

    border: 1px solid var(--border-color);
    border-radius: 8px;

    background: var(--bg-main);
    color: var(--text-muted);

    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;

    cursor: not-allowed;

    opacity: 0.75;
}

.tool-button.secondary {
    background: transparent;
}


/* ---------------------------------------------------------
   TARJETA FUTURA
   --------------------------------------------------------- */

.tool-card-future {
    border-style: dashed;
}


/* ---------------------------------------------------------
   TABLET / ESCRITORIO
   --------------------------------------------------------- */

@media (min-width: 768px) {

    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tool-card {
        flex-direction: column;
        min-height: 230px;
    }

    .tool-icon {
        margin-bottom: 2px;
    }

}


/* ---------------------------------------------------------
   MÓVIL
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .tools-section {
        margin-top: 28px;
        padding: 0 12px;
    }

    .tools-header h2 {
        font-size: 1.3rem;
    }

    .tools-header p {
        font-size: 0.86rem;
    }

    .tool-card {
        min-height: auto;
        padding: 16px;
    }

}


/* ---------------------------------------------------------
   MÓVILES PEQUEÑOS
   --------------------------------------------------------- */

@media (max-width: 380px) {

    .tool-card {
        gap: 11px;
        padding: 14px;
    }

    .tool-icon {
        flex-basis: 45px;

        width: 45px;
        height: 45px;

        font-size: 1.35rem;
    }

    .tool-content h3 {
        font-size: 0.98rem;
    }

    .tool-content p {
        font-size: 0.82rem;
    }

}

/* =========================================================
   POSTERFLY 4.0
   HERRAMIENTA DISPONIBLE
   ========================================================= */

.tool-link {
    text-decoration: none;
    cursor: pointer;
}

.tool-link:hover {
    color: var(--primary);
}

.tool-status-ready {
    background: rgba(34, 197, 94, 0.10);
    color: #15803D;
}


/* =========================================================
   POSTERFLY - TARJETAS DE HERRAMIENTAS
   ========================================================= */

.tools-section {
    max-width: 1170px;
    margin: 45px auto 35px;
    padding: 0 20px;
}

.tools-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 25px;
}

.tools-eyebrow {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: #EEF2FF;
    color: #4F46E5;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .8px;
}

.tools-header h2 {
    margin: 9px 0 7px;
    color: #1E293B;
    font-size: 1.65rem;
}

.tools-header p {
    margin: 0;
    color: #64748B;
    font-size: .92rem;
    line-height: 1.6;
}


/* GRID */

.tools-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}


/* TARJETA */

.tool-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 330px;

    padding: 20px;

    background: #FFFFFF;

    border: 1px solid #E2E8F0;

    border-radius: 16px;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, .05);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.tool-card-ready:hover {
    transform: translateY(-4px);

    border-color: #C7D2FE;

    box-shadow:
        0 12px 30px rgba(99, 102, 241, .12);
}


/* ICONO */

.tool-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;

    border-radius: 14px;

    background: #EEF2FF;

    font-size: 1.75rem;
}


/* CONTENIDO */

.tool-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tool-top {
    min-height: 24px;
}


/* ESTADOS */

.tool-status {
    display: inline-flex;
    align-items: center;

    padding: 4px 8px;

    border-radius: 6px;

    background: #F1F5F9;

    color: #64748B;

    font-size: .65rem;

    font-weight: 900;

    letter-spacing: .35px;
}

.tool-status-ready {
    background: #DCFCE7;
    color: #166534;
}


/* TITULO */

.tool-content h3 {
    margin: 10px 0 7px;

    color: #1E293B;

    font-size: 1.08rem;
}


/* DESCRIPCION */

.tool-content p {
    margin: 0;

    color: #64748B;

    font-size: .84rem;

    line-height: 1.55;
}


/* PEQUEÑOS DATOS */

.tool-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-top: 14px;
}

.tool-meta span {
    display: inline-flex;

    padding: 5px 8px;

    border-radius: 6px;

    background: #F8FAFC;

    color: #64748B;

    font-size: .68rem;

    font-weight: 700;
}


/* BOTONES */

.tool-button {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    box-sizing: border-box;

    margin-top: auto;
    padding: 11px 13px;

    border-radius: 9px;

    border: 1px solid #CBD5E1;

    background: #F8FAFC;

    color: #334155;

    font-size: .82rem;

    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.tool-link {
    margin-top: 18px;
}

.tool-link:hover {
    background: #6366F1;
    border-color: #6366F1;
    color: #FFFFFF;

    transform: translateY(-1px);
}

.tool-button.secondary {
    margin-top: 18px;

    background: #F8FAFC;

    color: #94A3B8;

    cursor: not-allowed;
}


/* TARJETA FUTURA */

.tool-card-future {
    border-style: dashed;

    background:
        linear-gradient(
            180deg,
            #FFFFFF,
            #FAFAFF
        );
}


/* MOVIL */

@media (max-width: 900px) {

    .tools-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 620px) {

    .tools-section {
        padding: 0 14px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-card {
        min-height: auto;
    }

}

/* =========================================================
   POSTERFLY - FAQ + SEO VISUAL
   No modifica app.js ni las funciones del editor
   ========================================================= */


/* =========================================================
   ENCABEZADO DE SECCIONES
   ========================================================= */

.section-heading,
.seo-heading {
    max-width: 850px;
    margin: 0 auto 35px;
    text-align: center;
}

.section-eyebrow,
.seo-eyebrow,
.seo-mini-label {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.section-heading h2,
.seo-heading h2 {
    margin: 12px 0;
    padding: 0;
    border: 0;
    color: var(--text-dark);
    font-size: clamp(1.7rem, 4vw, 2.45rem);
    line-height: 1.15;
}

.section-heading p,
.seo-heading p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.7;
}


/* =========================================================
   FAQ
   ========================================================= */

.faq-section {
    max-width: 1200px;
    margin: 60px auto 35px;
    padding: 0 20px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.faq-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    padding: 22px;

    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;

    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;

    animation: posterflyFadeUp 0.6s ease both;
}

.faq-item:nth-child(2) {
    animation-delay: 0.08s;
}

.faq-item:nth-child(3) {
    animation-delay: 0.16s;
}

.faq-item:nth-child(4) {
    animation-delay: 0.24s;
}

.faq-item:hover {
    transform: translateY(-4px);

    border-color: #c7d2fe;

    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.08);
}

.faq-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #eef2ff;

    font-size: 1.35rem;
}

.faq-item h3 {
    margin: 0 0 8px;

    color: var(--text-dark);

    font-size: 1rem;
    line-height: 1.4;
}

.faq-item p {
    margin: 0;

    color: var(--text-muted);

    font-size: 0.9rem;
    line-height: 1.65;
}


/* =========================================================
   SEO PRINCIPAL
   ========================================================= */

.seo-content {
    max-width: 1200px;

    margin: 55px auto 30px;

    padding: 0 20px;
}


/* =========================================================
   TARJETAS DE FUNCIONES
   ========================================================= */

.seo-features {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    margin-top: 35px;
}

.seo-feature {
    position: relative;

    display: flex;
    align-items: flex-start;

    gap: 16px;

    padding: 24px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--border-color);

    border-radius: 18px;

    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;

    animation: posterflyFadeUp 0.65s ease both;
}

.seo-feature:nth-child(2) {
    animation-delay: 0.08s;
}

.seo-feature:nth-child(3) {
    animation-delay: 0.16s;
}

.seo-feature:nth-child(4) {
    animation-delay: 0.24s;
}

.seo-feature::after {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    right: -60px;
    top: -60px;

    border-radius: 50%;

    background: rgba(99, 102, 241, 0.055);

    pointer-events: none;
}

.seo-feature:hover {
    transform: translateY(-5px);

    border-color: #c7d2fe;

    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.08);
}

.seo-feature-icon {
    flex: 0 0 52px;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: #eef2ff;

    font-size: 1.45rem;
}

.seo-feature-content {
    position: relative;
    z-index: 1;
}

.seo-feature h3 {
    margin: 0 0 8px;

    color: var(--text-dark);

    font-size: 1.08rem;
}

.seo-feature p {
    margin: 0;

    color: var(--text-muted);

    font-size: 0.91rem;

    line-height: 1.65;
}


/* =========================================================
   BLOQUE DE HERRAMIENTAS
   ========================================================= */

.seo-tools {
    margin-top: 35px;

    padding: 30px;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eef2ff
        );

    border: 1px solid var(--border-color);

    border-radius: 20px;
}

.seo-tools-heading {
    max-width: 700px;

    margin-bottom: 22px;
}

.seo-tools-heading h2 {
    margin: 10px 0;

    color: var(--text-dark);

    font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.seo-tools-heading p {
    margin: 0;

    color: var(--text-muted);

    line-height: 1.65;
}


/* =========================================================
   ENLACES DE HERRAMIENTAS
   ========================================================= */

.seo-tools-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}

.seo-tool-link {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 17px;

    text-decoration: none;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 15px;

    color: inherit;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.seo-tool-link:hover {
    transform: translateY(-3px);

    border-color: #a5b4fc;

    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.07);
}

.seo-tool-icon {
    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #eef2ff;

    font-size: 1.25rem;
}

.seo-tool-text {
    display: flex;

    flex-direction: column;

    gap: 4px;

    min-width: 0;

    flex: 1;
}

.seo-tool-text strong {
    color: var(--text-dark);

    font-size: 0.95rem;
}

.seo-tool-text small {
    color: var(--text-muted);

    font-size: 0.82rem;

    line-height: 1.45;
}

.seo-tool-arrow {
    color: #4f46e5;

    font-size: 1.25rem;

    font-weight: 800;

    transition:
        transform 0.2s ease;
}

.seo-tool-link:hover .seo-tool-arrow {
    transform: translateX(4px);
}


/* =========================================================
   PARA QUÉ UTILIZAR POSTERFLY
   ========================================================= */

.seo-use-section {
    display: grid;

    grid-template-columns:
        1.3fr 1fr;

    align-items: center;

    gap: 30px;

    margin-top: 30px;

    padding: 30px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f8fafc
        );

    border: 1px solid var(--border-color);
}

.seo-use-content h2 {
    margin: 10px 0;

    color: var(--text-dark);

    font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.seo-use-content p {
    margin: 0;

    color: var(--text-muted);

    line-height: 1.7;
}


/* =========================================================
   ETIQUETAS
   ========================================================= */

.seo-tags {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 9px;
}

.seo-tags span {
    display: inline-flex;

    align-items: center;

    padding: 9px 13px;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 999px;

    color: #475569;

    font-size: 0.83rem;

    font-weight: 650;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.seo-tags span:hover {
    transform: translateY(-2px);

    border-color: #c7d2fe;
}


/* =========================================================
   ANIMACIÓN
   ========================================================= */

@keyframes posterflyFadeUp {

    from {
        opacity: 0;

        transform:
            translateY(18px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .faq-item,
    .seo-feature {
        animation: none;

        opacity: 1;

        transform: none;
    }

    .faq-item:hover,
    .seo-feature:hover,
    .seo-tool-link:hover,
    .seo-tags span:hover {
        transform: none;
    }

}


/* =========================================================
   TABLET / MÓVIL
   ========================================================= */

@media (max-width: 760px) {

    .faq-grid,
    .seo-features,
    .seo-tools-grid,
    .seo-use-section {
        grid-template-columns: 1fr;
    }

    .seo-use-section {
        gap: 22px;
    }

}


/* =========================================================
   MÓVILES PEQUEÑOS
   ========================================================= */

@media (max-width: 480px) {

    .faq-section,
    .seo-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .faq-section {
        margin-top: 40px;
    }

    .faq-item,
    .seo-feature {
        padding: 19px;
    }

    .seo-tools {
        padding: 20px;
    }

    .seo-use-section {
        padding: 22px 18px;
    }

    .faq-icon {
        flex-basis: 42px;

        width: 42px;
        height: 42px;
    }

    .seo-feature-icon {
        flex-basis: 45px;

        width: 45px;
        height: 45px;
    }

}