/* ============================================
   CheckedIn — assets/css/precios.css
   Página pública de precios
   ============================================ */

:root {
    --cream: #FAF7F2;
}

body {
    background: var(--cream);
}



/* ===== HERO PRECIOS ===== */
.precios-hero {
    text-align: center;
    padding: 72px 24px 56px;
    max-width: 680px;
    margin: 0 auto;
}

.precios-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.precios-hero-tag svg { width: 13px; height: 13px; }

.precios-hero h1 {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -1.5px;
    line-height: 1.12;
    margin-bottom: 16px;
}

.precios-hero h1 span { color: var(--primary); }

.precios-hero p {
    font-size: 17px;
    color: var(--gray);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 32px;
}

/* ===== TOGGLE ===== */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 6px 20px;
    border-radius: 100px;
    margin-bottom: 52px;
}

.billing-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.15s;
    white-space: nowrap;
}

.billing-label.active { color: var(--dark); }

.toggle-switch {
    width: 44px;
    height: 24px;
    background: var(--border);
    border-radius: 100px;
    position: relative;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toggle-switch.on { background: var(--primary); }

.toggle-knob {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.2s cubic-bezier(.34,1.4,.64,1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.toggle-switch.on .toggle-knob { transform: translateX(20px); }

.ahorro-pill {
    background: var(--success);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

/* ===== GRID ===== */
.precios-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.planes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 72px;
    align-items: start;
}

/* ===== Rejilla de 2 planes (Mensual / Anual) — centrada ===== */
.planes-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Rejilla de 3 planes (Gratis / Mensual / Anual) ===== */
.planes-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CARD ===== */
.plan-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 24px;
    padding: 32px 28px;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}

.plan-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    transform: translateY(-4px);
}

.plan-card.popular {
    border-color: var(--primary);
    border-width: 2px;
    transform: scale(1.04);
    box-shadow: 0 8px 40px rgba(255,56,92,0.15);
}

.plan-card.popular:hover { transform: scale(1.04) translateY(-4px); }

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 18px;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: 0.04em;
}

.plan-name {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray);
    margin-bottom: 16px;
}

.plan-card.popular .plan-name { color: var(--primary); }

/* Precio */
.plan-price-wrap { margin-bottom: 4px; }

.plan-price {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    line-height: 1;
}

.plan-currency {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.plan-amount {
    font-size: 52px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -3px;
    line-height: 1;
}

.plan-period {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 8px;
    margin-left: 2px;
}

.plan-annual-note {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 16px;
    min-height: 20px;
}

.plan-annual-note .tachado {
    text-decoration: line-through;
    color: #C0BAB0;
    margin-right: 4px;
}

.plan-desc {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 24px;
    min-height: 44px;
}

/* Botón */
.btn-plan {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: opacity 0.15s, background 0.15s, transform 0.1s;
    margin-bottom: 24px;
}

.btn-plan:active { transform: scale(0.98); }

.btn-outline  { background: var(--white); color: var(--dark); border: 1.5px solid var(--border); }
.btn-outline:hover  { border-color: var(--dark); }
.btn-primary  { background: var(--primary); color: white; }
.btn-primary:hover  { background: #E31C5F; }
.btn-dark     { background: var(--dark); color: white; }
.btn-dark:hover     { opacity: 0.85; }

/* Features */
.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--dark);
    line-height: 1.4;
}

.feat-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.feat-icon.yes { background: #00A69915; color: var(--success); }
.feat-icon.no  { background: var(--bg); color: #D0CBC2; }
.feat-icon svg { width: 10px; height: 10px; stroke-width: 3; }

.feat-soon {
    font-size: 11px;
    background: rgba(255,180,0,0.12);
    color: #B45309;
    padding: 1px 8px;
    border-radius: 100px;
    font-weight: 600;
    margin-left: 4px;
    white-space: nowrap;
}

.feat-text-muted { color: #C0BAB0; }

/* ===== COMPARATIVA ===== */
.comparativa-section {
    margin-bottom: 72px;
}

.comparativa-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    text-align: center;
    margin-bottom: 32px;
}

.comparativa-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.comparativa-table th {
    padding: 18px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.comparativa-table th:first-child { text-align: left; }

.comparativa-table th.th-popular {
    background: var(--primary);
    color: white;
}

.comparativa-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.comparativa-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--dark);
}

.comparativa-table tr:last-child td { border-bottom: none; }
.comparativa-table tr:hover td { background: var(--bg); }

.comparativa-table td.td-popular { background: rgba(255,56,92,0.03); }

.check-yes { color: var(--success); font-size: 18px; }
.check-no  { color: #D0CBC2; font-size: 18px; }

/* ===== LOGOS CONFIANZA ===== */
.trust-section {
    text-align: center;
    margin-bottom: 72px;
}

.trust-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
}

.trust-item svg { width: 20px; height: 20px; color: var(--success); }

/* ===== GARANTÍA ===== */
.garantia-section {
    background: var(--dark);
    border-radius: 28px;
    padding: 56px 40px;
    text-align: center;
    margin-bottom: 72px;
    position: relative;
    overflow: hidden;
}

.garantia-section::before {
    content: '';
    position: absolute;
    left: -80px; top: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,56,92,0.1);
    pointer-events: none;
}

.garantia-section::after {
    content: '';
    position: absolute;
    right: -60px; bottom: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.garantia-emoji { font-size: 48px; margin-bottom: 16px; display: block; }

.garantia-section h2 {
    font-size: 28px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.garantia-section p {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    max-width: 440px;
    margin: 0 auto 28px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.garantia-section a {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    transition: opacity 0.15s;
    position: relative;
    z-index: 1;
}

.garantia-section a:hover { opacity: 0.9; }

/* ===== FAQ ===== */
.faq-pub-section {
    max-width: 680px;
    margin: 0 auto 72px;
}

.faq-pub-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    text-align: center;
    margin-bottom: 32px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.faq-item:first-child { padding-top: 0; border-top: 1px solid var(--border); }

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.faq-q h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
}

.faq-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

.faq-toggle svg { width: 12px; height: 12px; color: var(--gray); transition: transform 0.2s; }

.faq-item.open .faq-toggle { background: var(--primary); border-color: var(--primary); }
.faq-item.open .faq-toggle svg { transform: rotate(45deg); color: white; }

.faq-a {
    display: none;
    font-size: 14px;
    color: var(--gray);
    line-height: 1.75;
    padding-top: 14px;
    max-width: 560px;
}

.faq-item.open .faq-a { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
    .planes-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
    .planes-grid-2 { grid-template-columns: 1fr; max-width: 420px; }
    .planes-grid-3 { grid-template-columns: 1fr; max-width: 420px; }
    .plan-card.popular { transform: scale(1); box-shadow: 0 4px 20px rgba(255,56,92,0.15); }
    .plan-card.popular:hover { transform: translateY(-4px); }
    .comparativa-table { font-size: 13px; }
    .comparativa-table th,
    .comparativa-table td { padding: 12px 10px; }
}

@media (max-width: 700px) {
    .precios-hero { padding: 48px 22px 40px; }
    .precios-wrap { padding: 0 22px; }
    .garantia-section { padding: 40px 24px; border-radius: 20px; }
    .garantia-section h2 { font-size: 22px; }
    .trust-items { gap: 20px; }
    .comparativa-section { overflow-x: auto; }
}


/* En pantallas medianas, los 3 planes se apilan mejor */
@media (max-width: 900px) {
    .planes-grid-3 { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 768px) {
    .plan-amount {
        font-size: 42px;
        letter-spacing: -2px;
    }
}

@media (max-width: 430px) {
    .plan-amount {
        font-size: 38px;
        letter-spacing: -1.5px;
    }
}