/**
 * Convoca Members — Public CSS v2
 * Aligned with Convoca Theme v2.
 * Uses theme CSS variables exclusively (with fallbacks).
 */

/* ── Step Indicator ───────────────────────────── */
.conv-step-indicator {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.conv-step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--wp--preset--font-family--display, 'Outfit', sans-serif);
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--wp--preset--color--gris-medio, #e0e0e0);
    color: #999;
    transition: all var(--wp--custom--transition, 0.3s ease);
    position: relative;
}

.conv-step-dot:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 0.75rem;
    height: 2px;
    background: var(--wp--preset--color--gris-medio, #e0e0e0);
    transition: background var(--wp--custom--transition, 0.3s ease);
}

.conv-step-dot.done::after {
    background: var(--wp--preset--color--verde, #2d5a27);
}

.conv-step-dot.active {
    background: var(--wp--preset--color--naranja, #ff8700);
    color: var(--wp--preset--color--blanco, #fff);
    box-shadow: 0 0 0 4px rgba(255, 135, 0, 0.2);
}

.conv-step-dot.done {
    background: var(--wp--preset--color--verde, #2d5a27);
    color: var(--wp--preset--color--blanco, #fff);
}

/* ── Steps (multi-step navigation) ───────────── */
.conv-form-step {
    display: none;
    animation: conv-fade-in 0.3s ease;
}

.conv-form-step.active {
    display: block;
}

@keyframes conv-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.conv-form-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 1rem;
}

/* ── Plan Grid ────────────────────────────────── */
.conv-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: stretch;
}

.conv-plan-option {
    position: relative;
    cursor: pointer;
    min-height: 0;
}

.conv-plan-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.conv-plan-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem;
    border: 2px solid var(--wp--preset--color--gris-medio, #e0e0e0);
    border-radius: var(--wp--custom--radius--default, 12px);
    text-align: center;
    transition: all var(--wp--custom--transition, 0.3s ease);
    background: var(--wp--preset--color--blanco, #fff);
    box-sizing: border-box;
    min-height: 100%;
}

.conv-plan-label h4 {
    font-family: var(--wp--preset--font-family--display, 'Outfit', sans-serif);
    font-size: 1.05rem;
    margin: 0 0 0.25rem;
    color: var(--wp--preset--color--violeta, #320028);
}

.conv-price {
    font-family: var(--wp--preset--font-family--display, 'Outfit', sans-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--wp--preset--color--naranja, #ff8700);
}

.conv-alt {
    font-size: 0.8rem;
    color: #888;
    display: block;
    margin-top: 0.15rem;
}

.conv-plan-option input:checked+.conv-plan-label {
    border-color: var(--wp--preset--color--naranja, #ff8700);
    background: rgba(255, 135, 0, 0.06);
    box-shadow: 0 0 0 2px var(--wp--preset--color--naranja, #ff8700);
}

.conv-plan-option:hover .conv-plan-label {
    border-color: var(--wp--preset--color--naranja, #ff8700);
}

.conv-plan-option input:focus-visible+.conv-plan-label {
    outline: 3px solid var(--wp--preset--color--amarillo, #ffab00);
    outline-offset: 2px;
}

/* ── Advantages Box (from static web) ─────────── */
.conv-advantages {
    background: var(--wp--preset--color--gris-piedra, #f4f4f4);
    border-radius: var(--wp--custom--radius--small, 8px);
    padding: 0.75rem 1.25rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    animation: conv-fade-in 0.3s ease;
}

.conv-advantages p {
    font-weight: 700;
    margin: 0 0 0.3rem;
    color: var(--wp--preset--color--violeta, #320028);
}

.conv-advantages ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.conv-advantages li {
    padding: 0.3rem 0;
}

.conv-advantages li::before {
    content: '✓ ';
    color: var(--wp--preset--color--naranja, #ff8700);
    font-weight: 700;
}

/* ── Sub-Plans ────────────────────────────────── */
.conv-sub-plan {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--wp--preset--color--gris-piedra, #f4f4f4);
    border-radius: var(--wp--custom--radius--small, 8px);
    animation: conv-fade-in 0.3s ease;
}

.conv-sub-plan label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    cursor: pointer;
    font-size: 0.92rem;
}

.conv-sub-plan input[type="radio"] {
    accent-color: var(--wp--preset--color--naranja, #ff8700);
}

/* Common utility classes and grid systems removed in favor of convoca-common.css */

/* ── Summary Table ────────────────────────────── */
.conv-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.conv-summary-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--wp--preset--color--gris-medio, #e0e0e0);
    font-size: 0.92rem;
}

.conv-summary-table td:first-child {
    font-weight: 700;
    width: 40%;
    color: var(--wp--preset--color--violeta, #320028);
}

/* ── Card Preview ─────────────────────────────── */
.conv-card-preview {
    background: linear-gradient(135deg,
            var(--wp--preset--color--violeta, #320028),
            var(--wp--preset--color--granate, #7d0032));
    color: var(--wp--preset--color--blanco, #fff);
    border-radius: var(--wp--custom--radius--default, 12px);
    padding: 1.5rem;
    max-width: 420px;
    margin: 1.5rem auto;
    position: relative;
    overflow: hidden;
}

.conv-card-preview::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 135, 0, 0.2);
    pointer-events: none;
}

.conv-card-preview h3 {
    font-family: var(--wp--preset--font-family--display, 'Outfit', sans-serif);
    color: var(--wp--preset--color--amarillo, #ffab00);
    margin: 0 0 0.2rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.conv-card-name {
    font-size: 1.4rem;
    font-family: var(--wp--preset--font-family--display, 'Outfit', sans-serif);
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.conv-card-id {
    font-size: 0.85rem;
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

.conv-card-type {
    display: inline-block;
    background: var(--wp--preset--color--naranja, #ff8700);
    padding: 0.15rem 0.7rem;
    border-radius: var(--wp--custom--radius--pill, 50px);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.conv-card-date {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 0.3rem;
    position: relative;
    z-index: 1;
}

/* ── Interest Grid ────────────────────────────── */
.conv-interest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.conv-interest-grid label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    background: var(--wp--preset--color--gris-piedra, #f4f4f4);
    border-radius: var(--wp--custom--radius--small, 8px);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background var(--wp--custom--transition, 0.3s ease);
    border: 2px solid transparent;
}

.conv-interest-grid label:hover {
    background: rgba(255, 135, 0, 0.08);
}

.conv-interest-grid input:checked+span,
.conv-interest-grid label:has(input:checked) {
    border-color: var(--wp--preset--color--naranja, #ff8700);
    background: rgba(255, 135, 0, 0.06);
}

.conv-interest-grid input {
    accent-color: var(--wp--preset--color--naranja, #ff8700);
}

/* Success screen and buttons managed by convoca-common.css */

/* ── Print ────────────────────────────────────── */
@media print {

    .conv-step-indicator,
    .conv-form-nav {
        display: none !important;
    }

    .conv-card-preview {
        break-inside: avoid;
    }
}

/* ── Reduced Motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
/* ── Dark Mode: plan labels follow the theme ─────── */
.dark-mode .conv-plan-label {
    background: var(--dark-surface, #241019);
    border-color: var(--dark-border, rgba(255, 135, 0, 0.15));
    color: var(--dark-text, #F4F6F8);
}

.dark-mode .conv-plan-label h4 {
    color: var(--dark-text, #F4F6F8);
}

.dark-mode .conv-alt {
    color: var(--dark-text-muted, #8A93A3);
}

.dark-mode .conv-plan-option input:checked+.conv-plan-label {
    background: rgba(255, 135, 0, 0.12);
}
