/*
|--------------------------------------------------------------------------
| INTERASESOR - HOME PAGE (home.php, interasesor.com only)
| Uses the colors defined in panel.css
|--------------------------------------------------------------------------
*/

body {
    background: var(--ia-bg);
}

.h-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.h-top {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--ia-border);
    background: rgba(255, 255, 255, .95);
}

.h-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.h-hero {
    padding: 80px 0 72px;
    background: linear-gradient(180deg, #ffffff 0%, var(--ia-blue-soft) 100%);
    text-align: center;
}

.h-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--ia-white);
    color: var(--ia-blue);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(16, 31, 61, .08);
}

.h-hero h1 {
    max-width: 820px;
    margin: 0 auto 18px;
    color: var(--ia-title);
    font-size: clamp(28px, 4.5vw, 44px);
    line-height: 1.15;
}

.h-hero p {
    max-width: 680px;
    margin: 0 auto 30px;
    color: var(--ia-muted);
    font-size: 18px;
    line-height: 1.6;
}

.h-btn-grande {
    padding: 14px 26px;
    font-size: 16px;
}

.h-section {
    padding: 64px 0;
}

.h-section-alt {
    background: var(--ia-white);
    border-top: 1px solid var(--ia-border);
    border-bottom: 1px solid var(--ia-border);
}

.h-section h2,
.h-cta h2 {
    margin: 0 0 28px;
    color: var(--ia-title);
    font-size: clamp(24px, 3vw, 30px);
    text-align: center;
}

.h-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.h-card {
    padding: 24px;
    border: 1px solid var(--ia-border);
    border-radius: 12px;
    background: var(--ia-white);
}

.h-section-alt .h-card {
    background: var(--ia-bg);
}

.h-card > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: var(--ia-blue-soft);
    color: var(--ia-blue);
    font-size: 19px;
}

.h-card h3 {
    margin: 0 0 8px;
    color: var(--ia-title);
    font-size: 17px;
}

.h-card p {
    margin: 0;
    color: var(--ia-muted);
    font-size: 14px;
    line-height: 1.6;
}

.h-pasos {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    counter-reset: paso;
}

.h-pasos li {
    position: relative;
    margin-bottom: 16px;
    padding: 16px 18px 16px 64px;
    border: 1px solid var(--ia-border);
    border-radius: 12px;
    background: var(--ia-bg);
    color: var(--ia-text);
    font-size: 15px;
    line-height: 1.55;
    counter-increment: paso;
}

.h-pasos li::before {
    content: counter(paso);
    position: absolute;
    top: 50%;
    left: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ia-blue);
    color: #ffffff;
    font-weight: 800;
    transform: translateY(-50%);
}

.h-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--ia-green-soft);
    color: var(--ia-green);
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}

.h-lead {
    max-width: 760px;
    margin: 0 auto;
    color: var(--ia-muted);
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
}

.h-planes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 860px;
    margin: 0 auto;
}

.h-planes .h-plan {
    flex: 0 1 260px;
}

.h-plan {
    text-align: center;
}

.h-plan-num {
    margin: 6px 0;
    color: var(--ia-blue);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.h-cta {
    padding: 64px 0;
    background: var(--ia-blue);
    color: #ffffff;
    text-align: center;
}

.h-cta h2 {
    margin-bottom: 10px;
    color: #ffffff;
}

.h-cta p {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, .85);
    font-size: 16px;
}

.h-btn-blanco {
    background: #ffffff !important;
    color: var(--ia-blue) !important;
}

.h-footer {
    padding: 24px 0;
    color: var(--ia-muted);
    font-size: 13px;
    text-align: center;
}

.h-ref {
    display: block;
    margin-top: 6px;
    font-size: 12px;
}

@media (max-width: 860px) {
    .h-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .h-grid {
        grid-template-columns: 1fr;
    }

    .h-hero {
        padding: 52px 0 48px;
    }

    .h-hero p {
        font-size: 16px;
    }

    .h-top .ia-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .h-top img {
        width: 150px !important;
    }
}

/* Plan prices */
.h-plan-precio {
    margin: 4px 0 14px;
    color: var(--ia-title);
    font-size: 30px;
    font-weight: 800;
}

.h-plan-precio span {
    display: block;
    color: var(--ia-muted);
    font-size: 13px;
    font-weight: 600;
}

.h-plan .h-plan-num {
    font-size: 30px;
}

.h-plan-fundador {
    margin-top: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--ia-green-soft);
    color: var(--ia-green);
    font-size: 13px;
    font-weight: 700;
}

/* Monthly / yearly switch */
.h-switch-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: -8px 0 28px;
    flex-wrap: wrap;
}

.h-switch-label {
    color: var(--ia-muted);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.h-lbl-mensual,
.h-anual .h-lbl-anual {
    color: var(--ia-title);
}

.h-anual .h-lbl-mensual {
    color: var(--ia-muted);
}

.h-switch {
    position: relative;
    width: 54px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 30px;
    background: #cbd5e1;
    cursor: pointer;
    transition: background .2s;
}

.h-switch-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: transform .2s;
}

.h-anual .h-switch {
    background: var(--ia-blue);
}

.h-anual .h-switch-knob {
    transform: translateX(24px);
}

.h-ahorro {
    margin-left: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--ia-green-soft);
    color: var(--ia-green);
    font-size: 12px;
}

.h-solo-anual {
    display: none;
}

.h-anual .h-solo-anual {
    display: block;
}

.h-anual span.h-solo-anual {
    display: inline;
}

.h-anual .h-solo-mensual {
    display: none !important;
}

.h-addon {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 560px;
    margin: 22px auto 0;
    padding: 16px 20px;
    border: 1px dashed var(--ia-blue);
    border-radius: 12px;
    background: var(--ia-blue-soft);
    color: var(--ia-text);
    font-size: 14px;
    line-height: 1.6;
}

.h-addon > i {
    color: var(--ia-blue);
    font-size: 24px;
}

.h-addon .h-solo-mensual,
.h-addon .h-solo-anual {
    color: var(--ia-blue);
    font-weight: 800;
}

.h-nota-fundador {
    max-width: 640px;
    margin: 22px auto 0;
    color: var(--ia-muted);
    font-size: 13px;
    text-align: center;
}

.h-nota-fundador i {
    color: #f59e0b;
}

/* Founding members counter */
.h-cupo {
    max-width: 420px;
    margin: 12px auto 0;
    text-align: center;
}

.h-cupo-texto {
    margin-bottom: 8px;
    color: var(--ia-title);
    font-size: 15px;
}

.h-cupo-texto strong {
    color: #d97706;
    font-size: 20px;
}

.h-cupo-barra {
    height: 10px;
    border-radius: 10px;
    background: #fde7c2;
    overflow: hidden;
}

.h-cupo-barra span {
    display: block;
    height: 100%;
    border-radius: 10px;
    background: #f59e0b;
}


/* Simple community home (one screen) */
body.h-simple {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eaf2ff 100%);
}

.h-simple-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 16px;
    text-align: center;
}

.h-simple-logo {
    width: 230px;
    max-width: 70%;
    height: auto;
    margin-bottom: 28px;
}

.h-simple-box h1 {
    margin: 16px 0 14px;
    color: var(--ia-text);
    font-size: clamp(26px, 5vw, 40px);
    line-height: 1.2;
}

.h-simple-box p {
    margin: 0 0 28px;
    color: var(--ia-muted);
    font-size: 17px;
    line-height: 1.6;
}

.h-simple-pie {
    padding: 18px 16px;
    color: var(--ia-muted);
    font-size: 13px;
    text-align: center;
}

/* Invitation page (invitacion.php) */
.h-inv-quien {
    margin-top: 18px;
}

.h-inv-foto {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.h-inv-inicial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ia-blue);
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
}

.h-inv-caja {
    margin: 0 0 26px;
    padding: 18px 26px;
    border: 1px solid var(--ia-border);
    border-radius: 14px;
    background: #ffffff;
}

.h-inv-caja-titulo {
    margin-bottom: 8px;
    color: var(--ia-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.h-inv-caja-nota {
    margin-top: 10px;
    color: var(--ia-muted);
    font-size: 14px;
}

.h-inv-pie {
    margin-top: 22px;
    color: var(--ia-muted);
    font-size: 13px;
}
