/* ============================================================
   home-seo.css — Hero H1, estrellas de Google, carta, FAQ
   Complementa style.css. Colores alineados a COLOR_PRIMARIO.
   ============================================================ */
:root {
    --sp-rojo: #e63946;
    --sp-rojo-osc: #c1121f;
    --sp-negro: #1a1a1a;
    --sp-gris: #666;
    --sp-borde: #eee;
    --sp-estrella: #fbbc04;
}

/* ---------- HERO ---------- */
.sp-hero {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 22px 26px;
    background: var(--sp-negro);
    color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.sp-hero h1 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 8px;
    color: #fff;
}
.sp-hero-sub {
    font-size: 15px;
    line-height: 1.5;
    color: #ddd;
    margin: 0 0 14px;
    max-width: 640px;
}
.sp-hero-sub strong { color: #fff; }
.sp-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.sp-chips li {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(230,57,70,.16);
    border: 1px solid rgba(230,57,70,.45);
    color: #ffb3b8;
    white-space: nowrap;
}

/* Insignia de calificacion */
.sp-rating {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: var(--sp-negro);
    padding: 14px 18px;
    border-radius: 16px;
    text-decoration: none;
    transition: transform .2s;
}
.sp-rating:hover { transform: translateY(-2px); }
.sp-rating-num { font-size: 40px; font-weight: 800; line-height: 1; }
.sp-rating-der { display: flex; flex-direction: column; gap: 2px; }
.sp-rating-txt { font-size: 12px; color: var(--sp-gris); font-weight: 500; }

/* Estrellas parciales: --pct = calificacion / 5 */
.sp-stars {
    --pct: 80%;
    font-size: 20px;
    letter-spacing: 0;
    line-height: 1;
    width: max-content;
    align-self: flex-start;
    background: linear-gradient(90deg, var(--sp-estrella) var(--pct), #d6d6d6 var(--pct));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.sp-stars-lg { font-size: 28px; }

/* ---------- BLOQUES DE CONTENIDO ---------- */
.sp-seo {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.sp-grid-2 {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 25px;
}
.sp-bloque {
    background: #fff;
    border: 1px solid var(--sp-borde);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 4px 15px rgba(0,0,0,.05);
    color: #333;
}
.sp-bloque h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--sp-negro);
    margin: 0 0 12px;
    line-height: 1.25;
}
.sp-bloque > p { font-size: 14px; line-height: 1.65; margin: 0 0 12px; }
.sp-nota { font-size: 12px !important; color: #999; margin: 12px 0 0 !important; }

.sp-nap { margin: 14px 0; font-size: 14px; line-height: 1.6; }
.sp-nap p { margin: 0 0 4px; }
.sp-nap a, .sp-bloque a:not(.sp-btn) { color: var(--sp-rojo); font-weight: 600; text-decoration: none; }

.sp-horario { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 4px; }
.sp-horario caption { text-align: left; font-weight: 700; padding-bottom: 6px; color: var(--sp-negro); }
.sp-horario th, .sp-horario td { padding: 7px 0; border-bottom: 1px solid var(--sp-borde); text-align: left; }
.sp-horario th { font-weight: 500; color: var(--sp-gris); }
.sp-horario td { text-align: right; font-weight: 600; }

.sp-botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.sp-centro { justify-content: center; }
.sp-btn {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: var(--sp-negro);
    background: #f3f3f3;
    border: 1px solid #e2e2e2;
    transition: .2s;
}
.sp-btn:hover { background: #e9e9e9; }
.sp-btn-rojo { background: var(--sp-rojo); border-color: var(--sp-rojo); color: #fff; }
.sp-btn-rojo:hover { background: var(--sp-rojo-osc); }

/* Opiniones */
.sp-op-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fafafa;
    border: 1px solid var(--sp-borde);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 14px;
}
.sp-op-num { font-size: 52px; font-weight: 800; line-height: 1; color: var(--sp-negro); }
.sp-op-total { font-size: 13px; color: var(--sp-gris); margin: 4px 0 0; }

/* Carta */
.sp-cat { border-top: 1px solid var(--sp-borde); }
.sp-cat:last-of-type { border-bottom: 1px solid var(--sp-borde); }
.sp-cat summary, .sp-faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
}
.sp-cat summary::-webkit-details-marker, .sp-faq summary::-webkit-details-marker { display: none; }
.sp-cat summary h3, .sp-faq summary h3 { font-size: 16px; font-weight: 700; margin: 0; color: var(--sp-negro); }
.sp-cat summary span { font-size: 12px; color: #999; white-space: nowrap; }
.sp-cat summary::after, .sp-faq summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 700;
    color: var(--sp-rojo);
    margin-left: 6px;
}
.sp-cat[open] summary::after, .sp-faq[open] summary::after { content: '\2212'; }
.sp-cat summary span { margin-left: auto; }

.sp-lista { list-style: none; margin: 0 0 14px; padding: 0; }
.sp-lista li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}
.sp-lista li:last-child { border-bottom: none; }
.sp-item-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-item-txt strong { font-size: 14px; color: var(--sp-negro); }
.sp-item-txt span { font-size: 12px; color: var(--sp-gris); line-height: 1.45; }
.sp-item-precio { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 4px 14px; flex-shrink: 0; max-width: 55%; font-size: 12px; color: var(--sp-gris); }
.sp-item-precio span { white-space: nowrap; }
.sp-item-precio b { color: var(--sp-rojo); font-size: 14px; }

/* FAQ */
.sp-faq { border-top: 1px solid var(--sp-borde); }
.sp-faq:last-of-type { border-bottom: 1px solid var(--sp-borde); }
.sp-faq p { font-size: 14px; line-height: 1.65; margin: 0 0 14px; color: #444; }

/* Footer */
.footer-rating a { color: var(--sp-estrella); text-decoration: none; font-weight: 600; font-size: 13px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .sp-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .sp-hero {
        margin: 10px 10px 0;
        padding: 16px;
        border-radius: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .sp-hero h1 { font-size: 21px; }
    .sp-hero-sub { font-size: 13px; margin-bottom: 10px; }
    .sp-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
    .sp-chips::-webkit-scrollbar { display: none; }
    .sp-chips li { font-size: 11px; padding: 5px 10px; }
    .sp-rating { padding: 10px 14px; justify-content: center; }
    .sp-rating-num { font-size: 30px; }
    .sp-stars { font-size: 17px; }
    .sp-seo { padding: 0 10px; gap: 14px; margin-top: 20px; }
    .sp-grid-2 { gap: 14px; }
    .sp-bloque { padding: 18px 16px; border-radius: 14px; }
    .sp-bloque h2 { font-size: 18px; }
    .sp-op-num { font-size: 42px; }
    .sp-btn { flex: 1 1 auto; text-align: center; }
    .sp-item-precio { flex-direction: column; align-items: flex-end; gap: 2px; }
}
