/* =====================================================
   SegmentaAds Planes con Precios
   v1.0.0 — Plugin con bloque de precio flexible
   ===================================================== */

/* RESET DEL CONTENEDOR DE ELEMENTOR (solo este widget) */
.elementor-widget-segmentaads_planes_precios,
.elementor-widget-segmentaads_planes_precios > .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* RESERVAR ESPACIO: el módulo ocupa su hueco pero queda invisible (en blanco) */
.spp-reserved {
    visibility: hidden !important;
    pointer-events: none !important;
    user-select: none !important;
}

/* SECCIÓN */
.spp-section {
    --spp-bg: #f4f7f9;
    --spp-navy: #011526;
    --spp-blue: #a7cbda;
    --spp-cream: #d9cba0;
    --spp-gold: #d9cba0;
    background: var(--spp-bg);
    color: var(--spp-navy);
    box-sizing: border-box;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.spp-section,
.spp-section *,
.spp-section *::before,
.spp-section *::after {
    box-sizing: border-box;
}

/* FULL WIDTH — rompe la columna y ocupa el ancho de la ventana */
.sapp-fw-yes .spp-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.spp-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 70px 24px;
}

/* CABECERA */
.spp-head {
    text-align: center;
    margin-bottom: 50px;
}

/* ---- Cabecera CLÁSICA (etiqueta de texto suelta) ---- */
.spp-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--spp-navy);
    margin: 0 0 18px;
    opacity: 0.7;
}

/* ---- Cabecera DESTACADA: píldora con punto ---- */
.spp-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid rgba(1,21,38,0.14);
    border-radius: 999px;
    padding: 9px 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(1,21,38,0.06);
}

.spp-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--spp-navy);
    flex: 0 0 auto;
}

.spp-pill-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--spp-navy);
    line-height: 1;
}

/* TÍTULO */
.spp-title {
    font-size: 56px;
    line-height: 1.05;
    font-weight: 800;
    margin: 0;
    color: var(--spp-navy);
}

.spp-subtitle {
    display: block;
    font-style: italic;
    font-weight: 500;
    font-size: 48px;
    margin-top: 4px;
}

/* En la cabecera destacada el título es más grande y el subtítulo más fino */
.spp-head--featured .spp-title {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.spp-head--featured .spp-subtitle {
    font-weight: 300;
    font-size: 60px;
    letter-spacing: -0.02em;
    margin-top: 6px;
    color: var(--spp-navy);
    opacity: 0.92;
}

.spp-desc {
    font-size: 16px;
    line-height: 1.55;
    max-width: 720px;
    margin: 18px auto 0;
    color: var(--spp-navy);
    opacity: 0.85;
}

.spp-head--featured .spp-desc {
    font-size: 19px;
    line-height: 1.6;
    margin-top: 24px;
    max-width: 760px;
}

/* ---- Botón CTA de la cabecera destacada ---- */
.spp-cta-wrap {
    margin-top: 34px;
    display: flex;
    justify-content: center;
}

.spp-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--spp-navy);
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 17px 32px;
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(1,21,38,0.22);
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.spp-cta:hover {
    transform: translateY(-2px);
    background: #0d2438;
    box-shadow: 0 22px 48px rgba(1,21,38,0.28);
}

.spp-cta-arrow {
    transition: transform .25s ease;
}

.spp-cta:hover .spp-cta-arrow {
    transform: translateX(4px);
}

/* CTA colocado al final del todo (debajo de los planes / nota) */
.spp-cta-bottom {
    margin-top: 36px;
    text-align: center;
}
.spp-cta-bottom .spp-cta-wrap {
    margin-top: 0;
}

/* GRID */
.spp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    align-items: stretch;
}

/* CARDS */
.spp-plan {
    display: flex;
    flex-direction: column;
    padding: 36px 30px 32px;
    border-radius: 18px;
    min-height: 100%;
    transition: transform .25s ease;
}

.spp-plan:hover { transform: translateY(-3px); }

.spp-plan--light {
    background: #ffffff;
    color: var(--spp-navy);
    border: 1px solid rgba(1,21,38,0.08);
}

.spp-plan--dark {
    background: var(--spp-navy);
    color: #ffffff;
}

/* BADGE */
.spp-badge-slot {
    min-height: 32px;
    margin-bottom: 20px;
}

.spp-badge {
    display: inline-block;
    background: var(--spp-gold);
    color: var(--spp-navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
}

/* TÍTULO + DESC DEL PLAN */
.spp-plan-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 14px;
}

.spp-plan-text {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 22px;
    opacity: 0.85;
}

/* ===== BLOQUE DE PRECIO FLEXIBLE ===== */
.spp-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 6px;
    line-height: 1;
}

.spp-price-prefix {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.75;
}

.spp-price-amount {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
}

.spp-plan--dark .spp-price-amount { color: var(--spp-gold); }

.spp-price-suffix {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.8;
}

.spp-price-note {
    font-size: 12px;
    margin: 0 0 20px;
    opacity: 0.65;
    font-style: italic;
}

/* SEPARADOR */
.spp-sep {
    height: 1px;
    background: currentColor;
    opacity: 0.12;
    margin: 8px 0 22px;
}

/* FEATURES */
.spp-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.spp-features li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
    line-height: 1.45;
}

.spp-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 14px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    opacity: 0.85;
}

/* BOTÓN */
.spp-plan-bottom {
    margin-top: auto;
    padding-top: 8px;
}

.spp-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s ease, background .2s ease, color .2s ease;
    border: 1.5px solid transparent;
    cursor: pointer;
}

.spp-btn--light {
    background: transparent;
    color: var(--spp-navy);
    border-color: var(--spp-navy);
}
.spp-btn--light:hover { background: var(--spp-navy); color: #ffffff; }

.spp-btn--gold {
    background: var(--spp-gold);
    color: var(--spp-navy);
    border-color: var(--spp-gold);
}
.spp-btn--gold:hover { opacity: 0.9; }

.spp-btn--dark {
    background: var(--spp-navy);
    color: #ffffff;
    border-color: var(--spp-navy);
}
.spp-btn--dark:hover { opacity: 0.9; }

.spp-plan--dark .spp-btn--light {
    color: #ffffff;
    border-color: #ffffff;
}
.spp-plan--dark .spp-btn--light:hover {
    background: #ffffff;
    color: var(--spp-navy);
}

/* NOTA INFERIOR */
.spp-note {
    text-align: center;
    margin: 40px 0 0;
    font-size: 15px;
    color: var(--spp-navy);
}

.spp-note a {
    color: var(--spp-navy);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.spp-note a:hover { text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .spp-wrap { padding: 56px 22px; }
    .spp-title { font-size: 46px; }
    .spp-subtitle { font-size: 40px; }
    .spp-head--featured .spp-title { font-size: 56px; }
    .spp-head--featured .spp-subtitle { font-size: 48px; }
    .spp-head--featured .spp-desc { font-size: 17px; }
    .spp-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .spp-plan { min-height: auto; }
    .spp-plan-title { font-size: 36px; }
    .spp-price-amount { font-size: 44px; }
}

@media (max-width: 767px) {
    .spp-wrap { padding: 40px 14px; }
    .spp-head { margin-bottom: 32px; }
    .spp-eyebrow { font-size: 10px; margin-bottom: 14px; }
    .spp-pill { padding: 8px 16px; margin-bottom: 18px; }
    .spp-pill-text { font-size: 10px; letter-spacing: 0.22em; }
    .spp-title { font-size: 36px; }
    .spp-subtitle { font-size: 32px; }
    .spp-head--featured .spp-title { font-size: 40px; }
    .spp-head--featured .spp-subtitle { font-size: 34px; }
    .spp-head--featured .spp-desc { font-size: 15px; margin-top: 18px; }
    .spp-desc { font-size: 14px; }
    .spp-cta-wrap { margin-top: 26px; }
    .spp-cta { width: 100%; justify-content: center; padding: 16px 24px; font-size: 14px; }
    .spp-plan {
        padding: 28px 22px 24px;
        border-radius: 16px;
    }
    .spp-badge-slot { min-height: 28px; margin-bottom: 16px; }
    .spp-plan-title { font-size: 32px; margin-bottom: 12px; }
    .spp-plan-text { font-size: 14px; margin-bottom: 18px; }
    .spp-price-amount { font-size: 38px; }
    .spp-price-prefix { font-size: 13px; }
    .spp-price-suffix { font-size: 14px; }
    .spp-features li { font-size: 14px; padding-left: 22px; }
    .spp-btn { font-size: 14px; padding: 14px 18px; }
    .spp-note { font-size: 13px; margin-top: 28px; }
}
