/**
 * Landing Webinar "Invierte en la Jacobo Majluta"
 * Réplica visual de melidoeduardo.com/webinar.
 * Estilos aislados bajo el prefijo .wl-* para no interferir con el resto del tema.
 */

.wl-page {
    --wl-red: #e51d2f;
    --wl-red-dark: #c5170b;
    --wl-ink: #1b2230;
    --wl-text: #515865;
    --wl-bg: #fafafa;
    --wl-highlight: #fff2cc;
    --wl-blue: #3760db;
    --wl-radius: 16px;
    --wl-shadow: 0 10px 30px rgba(16, 24, 40, .08);
    --wl-shadow-lg: 0 18px 50px rgba(16, 24, 40, .14);
    --wl-max: 1120px;

    color: var(--wl-text);
    background: var(--wl-bg);
    font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.wl-page *,
.wl-page *::before,
.wl-page *::after {
    box-sizing: border-box;
}

.wl-container {
    width: 100%;
    max-width: var(--wl-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Botones ---------- */
.wl-btn {
    display: inline-block;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    padding: 14px 28px;
    border-radius: 999px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    font-family: inherit;
}

.wl-btn--primary {
    background: var(--wl-red);
    color: #fff;
    box-shadow: 0 8px 20px rgba(229, 29, 47, .35);
}

.wl-btn--primary:hover {
    background: var(--wl-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(229, 29, 47, .45);
}

.wl-btn--lg {
    padding: 18px 40px;
    font-size: 1.15rem;
}

.wl-btn--block {
    display: block;
    width: 100%;
}

/* ---------- Header ---------- */
.wl-header {
    background: #fff;
    border-bottom: 1px solid #eef0f4;
    position: sticky;
    top: 0;
    z-index: 20;
}

.wl-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
}

.wl-header__logo {
    height: 46px;
    width: auto;
}

.wl-header__badge {
    height: 34px;
    width: auto;
}

/* ---------- Hero ---------- */
.wl-hero {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 84px 0 96px;
}

.wl-hero__inner {
    max-width: 860px;
}

.wl-hero__title {
    font-size: clamp(1.9rem, 4.5vw, 3.1rem);
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
    margin: 0 0 18px;
}

.wl-hero__subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, .92);
    margin: 0 auto 26px;
    max-width: 720px;
}

.wl-hero__points {
    list-style: none;
    margin: 0 auto 30px;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    font-size: 1.05rem;
    color: #fff;
}

.wl-hero__points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wl-hero__note {
    margin: 20px 0 0;
    font-weight: 600;
    color: var(--wl-highlight);
}

/* Bloque destacado: Zoom + fecha */
.wl-hero__event {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 6px auto 30px;
}

.wl-event-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(4px);
    text-align: left;
}

.wl-event-pill--date {
    background: var(--wl-highlight);
    border-color: var(--wl-highlight);
}

.wl-event-pill__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wl-event-pill--zoom .wl-event-pill__icon {
    background: #2d8cff;
    color: #fff;
}

.wl-event-pill--date .wl-event-pill__icon {
    background: var(--wl-red);
    color: #fff;
}

.wl-event-pill__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.wl-event-pill__label {
    font-size: .82rem;
    font-weight: 600;
    opacity: .85;
}

.wl-event-pill__value {
    font-size: 1.15rem;
    font-weight: 800;
}

.wl-event-pill--zoom .wl-event-pill__label,
.wl-event-pill--zoom .wl-event-pill__value {
    color: #fff;
}

.wl-event-pill--date .wl-event-pill__label {
    color: #6b5600;
}

.wl-event-pill--date .wl-event-pill__value {
    color: #1b2230;
}

/* ---------- Secciones ---------- */
.wl-eyebrow {
    text-align: center;
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--wl-ink);
    margin: 0 auto 36px;
    max-width: 820px;
}

.wl-audience {
    padding: 72px 0;
    background: #fff;
}

.wl-audience__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.wl-audience-card {
    background: var(--wl-bg);
    border: 1px solid #eef0f4;
    border-radius: var(--wl-radius);
    padding: 32px;
    box-shadow: var(--wl-shadow);
}

.wl-audience-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--wl-red);
    margin: 0 0 14px;
}

.wl-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wl-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wl-dot {
    flex: 0 0 auto;
    font-size: .85rem;
    line-height: 1.7;
}

/* ---------- ¿Qué veremos? (agenda) ---------- */
.wl-agenda {
    padding: 72px 0;
    background: var(--wl-bg);
}

.wl-agenda__intro {
    text-align: center;
    max-width: 680px;
    margin: -20px auto 40px;
    font-size: 1.1rem;
}

.wl-agenda__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.wl-agenda-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: var(--wl-radius);
    padding: 28px;
    box-shadow: var(--wl-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}

.wl-agenda-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--wl-shadow-lg);
}

.wl-agenda-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--wl-highlight);
    font-size: 1.7rem;
    margin-bottom: 16px;
}

.wl-agenda-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--wl-ink);
    margin: 0 0 10px;
}

.wl-agenda-card__text {
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .wl-agenda__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .wl-agenda__grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Proyectos ---------- */
.wl-projects {
    padding: 72px 0;
    background: var(--wl-bg);
}

.wl-projects__badge {
    display: block;
    width: fit-content;
    margin: -12px auto 44px;
    background: var(--wl-highlight);
    color: #8a6d00;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 999px;
}

.wl-project {
    margin-bottom: 44px;
}

.wl-project__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wl-ink);
    margin: 0 0 18px;
    padding-left: 14px;
    border-left: 5px solid var(--wl-red);
}

.wl-project__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.wl-project__item {
    margin: 0;
    border-radius: var(--wl-radius);
    overflow: hidden;
    box-shadow: var(--wl-shadow);
    background: #e9edf3;
    aspect-ratio: 4 / 3;
}

.wl-project__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.wl-project__item:hover img {
    transform: scale(1.05);
}

.wl-quote {
    margin: 40px auto 0;
    max-width: 780px;
    text-align: center;
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 600;
    color: var(--wl-ink);
    padding: 0 20px;
}

/* ---------- Sobre el asesor ---------- */
.wl-about {
    padding: 72px 0;
    background: #fff;
}

.wl-about__inner {
    display: grid;
    grid-template-columns: minmax(0, 420px) 1fr;
    gap: 48px;
    align-items: center;
}

.wl-about__media img {
    width: 100%;
    border-radius: var(--wl-radius);
    box-shadow: var(--wl-shadow-lg);
    display: block;
}

.wl-about__title {
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    font-weight: 800;
    color: var(--wl-ink);
    margin: 0 0 18px;
}

.wl-about__text p {
    margin: 0 0 14px;
}

.wl-badges {
    list-style: none;
    margin: 22px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.wl-badges li {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--wl-bg);
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--wl-ink);
}

.wl-badges__emoji {
    font-size: 1.3rem;
}

/* ---------- Countdown ---------- */
.wl-countdown-section {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--wl-ink), #2a3550);
    color: #fff;
    text-align: center;
}

.wl-countdown-section__label {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .12em;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, .85);
}

.wl-countdown {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.wl-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
    padding: 18px 10px;
    min-width: 92px;
}

.wl-countdown__num {
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.wl-countdown__label {
    margin-top: 8px;
    font-size: .78rem;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .75);
}

.wl-countdown__sep {
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    font-weight: 800;
    color: rgba(255, 255, 255, .4);
}

/* ---------- Registro ---------- */
.wl-register {
    padding: 80px 0;
    background: var(--wl-bg);
}

.wl-register__inner {
    display: grid;
    grid-template-columns: 1fr minmax(0, 460px);
    gap: 48px;
    align-items: center;
}

.wl-register__title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--wl-ink);
    margin: 0 0 14px;
}

.wl-register__text {
    font-size: 1.15rem;
    margin: 0;
}

.wl-register__form-wrap {
    background: #fff;
    border-radius: var(--wl-radius);
    box-shadow: var(--wl-shadow-lg);
    padding: 32px;
}

.wl-form__row {
    margin-bottom: 16px;
}

.wl-form__label {
    display: block;
    font-weight: 600;
    color: var(--wl-ink);
    margin-bottom: 6px;
    font-size: .95rem;
}

.wl-form__input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #d7dce4;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--wl-ink);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.wl-form__input:focus {
    outline: none;
    border-color: var(--wl-red);
    box-shadow: 0 0 0 3px rgba(229, 29, 47, .15);
}

/* Teléfono: selector de código de país + número */
.wl-form__tel {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.wl-form__cc {
    flex: 0 0 42%;
    max-width: 42%;
    padding-right: 34px;
    cursor: pointer;
    text-overflow: ellipsis;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23515865' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.wl-form__tel-num {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 480px) {
    .wl-form__tel {
        flex-wrap: wrap;
    }
    .wl-form__cc {
        flex-basis: 100%;
        max-width: 100%;
    }
}

.wl-form__hint {
    margin: 12px 0 0;
    text-align: center;
    font-size: .82rem;
    color: #98a0ad;
}

/* Nota de referido (agente que invita). */
.wl-form__referrer {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(229, 29, 47, .08);
    color: var(--wl-ink);
    font-size: .9rem;
    text-align: center;
}

/* Honeypot: oculto para usuarios, visible para bots. */
.wl-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Mensaje de resultado del envio (exito/error). */
.wl-form__message {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: .92rem;
    text-align: center;
}

.wl-form__message--success {
    background: rgba(22, 163, 74, .1);
    color: #15803d;
}

.wl-form__message--error {
    background: rgba(229, 29, 47, .1);
    color: #b91c1c;
}

.wl-btn[data-wl-submit][disabled] {
    opacity: .65;
    cursor: not-allowed;
}

/* ---------- Preguntas frecuentes ---------- */
.wl-faq {
    padding: 72px 0;
    background: var(--wl-bg);
}

.wl-faq__inner {
    max-width: 980px;
}

.wl-faq__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 14px;
}

.wl-faq__item {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    box-shadow: var(--wl-shadow);
    overflow: hidden;
}

.wl-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    padding: 20px 24px;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--wl-ink);
    list-style: none;
    transition: background .15s ease;
}

.wl-faq__question::-webkit-details-marker {
    display: none;
}

.wl-faq__question:hover {
    background: #fafbfe;
}

.wl-faq__icon {
    position: relative;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
}

.wl-faq__icon::before,
.wl-faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2.5px;
    background: var(--wl-red);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform .2s ease;
}

.wl-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.wl-faq__item[open] .wl-faq__icon::after {
    transform: translate(-50%, -50%) rotate(0);
}

.wl-faq__answer {
    padding: 0 24px 22px;
    color: var(--wl-text);
    line-height: 1.65;
}

.wl-faq__answer p {
    margin: 0;
}

@media (max-width: 680px) {
    .wl-faq__list {
        grid-template-columns: 1fr;
    }
}

/* ---------- Testimonios ---------- */
.wl-reviews {
    padding: 72px 0;
    background: #fff;
}

.wl-reviews .wl-eyebrow {
    margin-bottom: 40px;
}

.wl-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

/* La tarjeta de reseña (mt-review-card) se reutiliza tal cual desde agent-reviews.css */
.wl-reviews__grid .mt-review-card {
    height: 100%;
}

@media (max-width: 900px) {
    .wl-reviews__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .wl-reviews__grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Footer ---------- */
.wl-footer {
    background: var(--wl-ink);
    color: rgba(255, 255, 255, .8);
    padding: 44px 0 0;
}

.wl-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding-bottom: 32px;
}

.wl-footer__brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 6px;
}

.wl-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 18px 0;
    text-align: center;
    font-size: .85rem;
    color: rgba(255, 255, 255, .6);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .wl-about__inner,
    .wl-register__inner {
        grid-template-columns: 1fr;
    }

    .wl-about__media {
        max-width: 460px;
        margin: 0 auto;
    }
}

@media (max-width: 680px) {
    .wl-audience__grid,
    .wl-project__gallery,
    .wl-badges {
        grid-template-columns: 1fr;
    }

    .wl-countdown {
        gap: 8px;
    }

    .wl-countdown__unit {
        min-width: 68px;
        padding: 14px 6px;
    }

    .wl-header__badge {
        display: none;
    }

    .wl-hero {
        padding: 60px 0 68px;
    }
}
