/* =====================================================
   PÁGINAS ESTÁTICAS — estilos/paginas-estaticas.css
   Compartido por: que-es-sp, aviso-legal,
   politica-privacidad, cookies
   ===================================================== */

/* ---- Contenedor principal ---- */
.sp-page {
    width: 100%;
    max-width: 740px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    flex-grow: 1;
}

/* ---- Breadcrumb / volver ---- */
.sp-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--flex-gray);
    text-decoration: none;
    margin-bottom: 40px;
    transition: color 0.2s;
    letter-spacing: -0.01em;
}

.sp-back:hover {
    color: var(--flex-black);
}

.sp-back::before {
    content: "←";
    font-size: 16px;
}

/* ---- Cabecera de página ---- */
.sp-page-header {
    margin-bottom: 48px;
}

.sp-page-badge {
    display: inline-block;
    background: var(--flex-green);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 99px;
    margin-bottom: 16px;
}

.sp-page-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--flex-black);
    margin-bottom: 14px;
}

.sp-page-intro {
    font-size: 18px;
    color: var(--flex-gray);
    line-height: 1.65;
    font-weight: 400;
    max-width: 700px;
}

/* ---- Separador ---- */
.sp-divider {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 40px 0;
}

/* ---- Secciones de contenido ---- */
.sp-section {
    margin-bottom: 44px;
}

.sp-section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--flex-black);
    margin-bottom: 14px;
}

.sp-section p {
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 14px;
}

.sp-section p:last-child {
    margin-bottom: 0;
}

.sp-section ul,
.sp-section ol {
    padding-left: 20px;
    margin-bottom: 14px;
}

.sp-section li {
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 6px;
}

.sp-section a {
    color: var(--flex-black);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.sp-section a:hover {
    color: var(--flex-green);
}

/* ---- Bloques de datos legales ---- */
.sp-data-block {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.sp-data-block p {
    font-size: 15px;
    color: #4B5563;
    margin-bottom: 6px;
    line-height: 1.6;
}

.sp-data-block p:last-child {
    margin-bottom: 0;
}

.sp-data-block strong {
    color: var(--flex-black);
}

/* ---- Aviso destacado ---- */
.sp-highlight {
    background: var(--flex-black);
    color: #fff;
    border-radius: 20px;
    padding: 24px 28px;
    margin: 28px 0;
}

.sp-highlight p {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0;
}

.sp-highlight strong {
    color: #fff;
}

/* ---- Espacio para imagen ---- */
.sp-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    display: block;
}

.sp-img-placeholder span {
    font-size: 28px;
    line-height: 1;
}

/* ---- Tabla de cookies ---- */
.sp-table-wrap {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
}

.sp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sp-table th {
    background: var(--flex-black);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.sp-table th:first-child { border-radius: 0; }

.sp-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #F3F4F6;
    color: #374151;
    vertical-align: top;
    line-height: 1.5;
}

.sp-table tr:last-child td {
    border-bottom: none;
}

.sp-table tr:nth-child(even) td {
    background: #F9FAFB;
}

/* ---- Fecha actualización ---- */
.sp-update-date {
    font-size: 13px;
    color: var(--flex-gray);
    font-weight: 500;
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

/* ---- Cards "para quién" (que-es-sp) ---- */
.sp-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.sp-card-item {
    background: var(--flex-black);
    color: #fff;
    border-radius: 20px;
    padding: 24px 22px;
}

.sp-card-item .sp-card-icon {
    font-size: 26px;
    margin-bottom: 10px;
    display: block;
}

.sp-card-item h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}

.sp-card-item p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.55;
    margin: 0;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
    .sp-page {
        padding: 32px 16px 60px;
    }

    .sp-page-title {
        font-size: 30px;
    }

    .sp-page-intro {
        font-size: 17px;
    }

    .sp-section-title {
        font-size: 22px;
    }

    .sp-cards-grid {
        grid-template-columns: 1fr;
    }

    .sp-data-block {
        padding: 18px 20px;
    }

    .sp-highlight {
        padding: 20px 20px;
    }

    .sp-table th,
    .sp-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .sp-section p {
        font-size: 17px;
        line-height: 1.75;
        color: #374151;
        margin-bottom: 14px;
    }

    /* Fix: evita que .sp-section p sobreescriba el color de las tarjetas */
    .sp-card-item p {
        font-size: 14px;
        color: rgba(255,255,255,0.75);
        line-height: 1.55;
        margin: 0;
    }
}

#btn-top {
    position: fixed;
    bottom: 32px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--flex-black);
    color: #fff;
    font-size: 18px;
    border: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

#btn-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#btn-top:hover {
    background: var(--flex-green);
    transform: translateY(-2px);
}