/* =====================================================================
 * pricing-linktree.css — tarjetas de precio estilo Linktree
 * Tarjetas grandes y redondeadas, precio enorme, lista corta de features,
 * plan recomendado resaltado, CTA pill. No toca la lógica de precios/JS.
 * Apunta a las clases existentes: .pricing-plan, .pricing-features, etc.
 * ===================================================================== */

:root {
    --pr-radius: 28px;
    --pr-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --pr-amazon: #FF9900;
    --pr-amazon-blue: #146EB4;
}

/* ---- Tarjeta del plan ---- */
.pricing-plan {
    border-radius: var(--pr-radius) !important;
    border: 2px solid rgba(16, 24, 40, 0.08) !important;
    padding: 2rem 1.75rem !important;
    background: #fff;
    box-shadow: 0 4px 24px rgba(16, 24, 40, 0.06);
    transition: transform 0.4s var(--pr-ease), box-shadow 0.4s var(--pr-ease);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.pricing-plan:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.16);
}

/* ---- Plan del medio = recomendado (resaltado tipo Linktree) ---- */
.row.justify-content-around > [class*="col-"]:nth-child(2) .pricing-plan {
    border-color: var(--pr-amazon) !important;
    box-shadow: 0 12px 40px rgba(255, 153, 0, 0.18);
    transform: scale(1.03);
}
/* badge "Recomendado" como pill arriba-centro (más limpio que la cinta diagonal) */
.row.justify-content-around > [class*="col-"]:nth-child(2) .pricing-plan::before {
    content: "★ Recomendado";
    position: absolute;
    top: 1rem; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--pr-amazon), #FF7700);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.35);
    z-index: 2;
}
/* dar espacio arriba para que el badge no tape el nombre del plan */
.row.justify-content-around > [class*="col-"]:nth-child(2) .pricing-plan { padding-top: 2.75rem !important; }

/* ---- Header: nombre + precio enorme ---- */
.pricing-name {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #667085;
}
.pricing-price { margin: 0.5rem 0 1rem !important; }
.pricing-price-amount {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    line-height: 1;
    background: linear-gradient(135deg, var(--pr-amazon), var(--pr-amazon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pricing-price-currency { font-size: 1rem; color: #98a2b3; font-weight: 600; }
.pricing-details { color: #667085; font-size: 0.95rem; }

/* ---- Lista de features: SOLO las primeras 7 visibles (estilo Linktree) ---- */
.pricing-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 1.5rem 0 !important;
    text-align: left;
}
.pricing-features > li {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 0.6rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(16, 24, 40, 0.06);
    font-size: 0.92rem;
    line-height: 1.35;
}
/* el texto de la feature ocupa el espacio; el check SVG va siempre al inicio */
.pricing-features > li > div { flex: 1; order: 2; text-align: left; }

/* arreglar el número pegado al texto: <strong>5</strong>Páginas → "5 Páginas" */
.pricing-features > li > div > strong { margin-right: 0.3rem; }

/* check verde SVG embebido (NO depende de Font Awesome, que aquí carga por JS) */
.pricing-features > li::before {
    content: "";
    width: 18px; height: 18px;
    flex-shrink: 0;
    order: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%2310b981'%3E%3Cpath d='M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm114 169L209 339c-5 5-13 5-18 0l-90-90c-5-5-5-13 0-18l18-18c5-5 13-5 18 0l63 63 134-134c5-5 13-5 18 0l18 18c5 5 5 13 0 18z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
/* ocultar los <i> de Font Awesome (salen como cuadritos: FA carga por JS, no CSS) */
.pricing-features > li > i { display: none !important; }

/* feature NO incluida (text-muted) → check gris y texto atenuado */
.pricing-features > li:has(.text-muted)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23d0d5dd'%3E%3Cpath d='M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110 0-200-90-200-200S146 56 256 56s200 90 200 200-90 200-200 200z'/%3E%3C/svg%3E");
}
.pricing-features > li .text-muted { opacity: 0.5; }

/* OCULTAR features secundarias: muestra solo las primeras 7 */
.pricing-features > li:nth-child(n+8) { display: none !important; }
.pricing-features .d-flex.justify-content-between { display: none !important; }

/* nota "ver todas" — el enlace ya existe en el HTML, solo lo estilizamos abajo */

/* ---- Botón CTA: pill grande ---- */
.pricing-plan .btn {
    border-radius: 999px !important;
    font-weight: 700 !important;
    padding: 0.95rem 1.5rem !important;
    font-size: 1.05rem;
    transition: transform 0.25s var(--pr-ease), box-shadow 0.25s var(--pr-ease), filter 0.2s ease;
}
.pricing-plan .btn-primary {
    background: linear-gradient(135deg, var(--pr-amazon), #FF7700) !important;
    border: none !important;
}
.pricing-plan .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 153, 0, 0.32);
    filter: brightness(1.03);
}
/* el plan recomendado: CTA con más presencia */
.row.justify-content-around > [class*="col-"]:nth-child(2) .pricing-plan .btn-primary {
    box-shadow: 0 8px 24px rgba(255, 153, 0, 0.3);
}

/* ---- Toggle mensual/anual: pill moderno ---- */
.btn-group-toggle {
    background: #f2f4f7;
    border-radius: 999px !important;
    padding: 0.35rem !important;
}
.btn-group-toggle .btn {
    border-radius: 999px !important;
    font-weight: 600;
    border: none !important;
}
.btn-group-toggle .btn.active {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.12);
    color: var(--pr-amazon) !important;
}

/* =====================================================================
 * MODO OSCURO — el tema marca el body con [data-theme-style="dark"]
 * Ajusta fondos y textos para que las tarjetas sean legibles en dark.
 * ===================================================================== */
[data-theme-style="dark"] .pricing-plan {
    background: #1c2128 !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
[data-theme-style="dark"] .pricing-plan:hover {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
/* texto de las features: claro y legible */
[data-theme-style="dark"] .pricing-features > li {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #e6e8eb;
}
[data-theme-style="dark"] .pricing-features > li > div { color: #e6e8eb; }
[data-theme-style="dark"] .pricing-details { color: #9ba1a6; }
[data-theme-style="dark"] .pricing-name { color: #9ba1a6; }
/* el nombre del plan (FREE/PRO) tiene fondo claro: que el texto contraste */
[data-theme-style="dark"] .pricing-name {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    color: #e6e8eb !important;
}
/* plan recomendado (medio) en dark: borde naranja se mantiene, glow más suave */
[data-theme-style="dark"] .row.justify-content-around > [class*="col-"]:nth-child(2) .pricing-plan {
    box-shadow: 0 12px 40px rgba(255, 153, 0, 0.22);
}
/* toggle mensual/anual en dark */
[data-theme-style="dark"] .btn-group-toggle { background: #2a2f37; }
[data-theme-style="dark"] .btn-group-toggle .btn { color: #c4c9cf; }
[data-theme-style="dark"] .btn-group-toggle .btn.active {
    background: #3a4049 !important;
    color: var(--pr-amazon) !important;
}
/* feature no incluida en dark: texto más tenue pero visible */
[data-theme-style="dark"] .pricing-features > li .text-muted { color: #6b7280 !important; opacity: 1; }

/* ---- Accesibilidad ---- */
@media (prefers-reduced-motion: reduce) {
    .pricing-plan, .pricing-plan * { transition: none !important; }
}
