/**
 * Landing E-book Zoluxiones
 * Estilos actualizados para coincidir con Figma
 */

/* ========================================
   VARIABLES CSS
======================================== */
:root {
    --zrx-ebook-navy: #00255e;
    --zrx-ebook-navy-dark: #001233;
    --zrx-ebook-blue: #0a2f6b;
    --zrx-ebook-blue-light: #1a4080;
    --zrx-ebook-green: #37dd20;
    --zrx-ebook-green-hover: #2ec51b;
    --zrx-ebook-white: #ffffff;
    --zrx-ebook-gray: #f5f5f5;
    --zrx-ebook-text-light: rgba(255, 255, 255, 0.9);
    --zrx-ebook-text-muted: rgba(255, 255, 255, 0.7);
}

/* ========================================
   RESET Y BASE
======================================== */
.landing-ebook-zoluxiones {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

@media (min-width: 1025px) {
    .landing-ebook-zoluxiones {
        height: 100vh;
        overflow: hidden;
    }
}

.zrx-ebook-landing {
    position: relative;
    width: 100%;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

@media (min-width: 1025px) {
    .zrx-ebook-landing {
        height: 100vh;
        overflow: hidden;
    }
}

/* ========================================
   PASO 1: HERO SECTION
======================================== */
.zrx-ebook-hero {
    position: relative;
    min-height: 100vh;
    background-color: #00255e !important;
    background: #00255e !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

@media (min-width: 1025px) {
    .zrx-ebook-hero {
        height: 100vh;
    }
}

.zrx-ebook-hero::before {
    display: none;
}

.zrx-ebook-hero__container {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Columna Izquierda: Contenido */
.zrx-ebook-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 12%;
    padding-right: 5%;
    padding-top: 60px;
    padding-bottom: 60px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1025px) {
    .zrx-ebook-hero__content {
        transform: translateX(6%);
    }
}

/* Logo - NO TOCAR, mantener como está */
.zrx-ebook-hero__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 32px;
    width: 100%;
}

.zrx-ebook-hero__logo img {
    height: 120px;
    width: auto;
}

/* Título Principal - Ajustado para coincidir con Figma */
.zrx-ebook-hero__title {
    font-size: 70px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--zrx-ebook-white);
    margin: 0 0 24px 0;
    letter-spacing: -1.8px;
    max-width: 90%;
}

/* Subtítulo verde - Ajustado para coincidir con Figma */
.zrx-ebook-hero__subtitle {
    font-size: 20px;
    line-height: 1.5;
    color: #4ee639;
    margin: 0 0 56px 0;
    font-weight: 400;
    max-width: 85%;
}

/* Info del E-book */
.zrx-ebook-hero__ebook-info {
    margin-top: 0;
    max-width: 85%;
}

.zrx-ebook-hero__ebook-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--zrx-ebook-white);
    margin: 0 0 22px 0;
    letter-spacing: 0.2px;
}

.zrx-ebook-hero__benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.zrx-ebook-hero__benefits li {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.92);
    padding-left: 22px;
    position: relative;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.zrx-ebook-hero__benefits li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--zrx-ebook-white);
    font-size: 20px;
    line-height: 1.6;
    top: 0;
}

/* CTA Button */
.zrx-ebook-hero__cta {
    margin-top: 40px;
    background: var(--zrx-ebook-green);
    color: var(--zrx-ebook-white);
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    text-transform: none;
    letter-spacing: 0;
}

.zrx-ebook-hero__cta:hover {
    background: var(--zrx-ebook-green-hover);
    transform: translateY(-2px);
}

.zrx-ebook-hero__cta:active {
    transform: translateY(0);
}

/* Columna Derecha: Imagen */
.zrx-ebook-hero__image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.zrx-ebook-hero__tablet {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* ========================================
   PASO 2: MODAL DE FORMULARIO
======================================== */
.zrx-ebook-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zrx-ebook-modal.is-active {
    display: flex;
    opacity: 1;
}

.zrx-ebook-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--zrx-ebook-navy-dark) 0%, var(--zrx-ebook-blue) 100%);
    opacity: 0.98;
}

/* Patrón de circuitos en el fondo */
.zrx-ebook-modal__overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.zrx-ebook-modal__content {
    position: relative;
    z-index: 2;
    background: var(--zrx-ebook-white);
    border-radius: 24px;
    padding: 48px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.zrx-ebook-modal.is-active .zrx-ebook-modal__content {
    transform: scale(1);
}

/* Botón Cerrar */
.zrx-ebook-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.zrx-ebook-modal__close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Título del Modal */
.zrx-ebook-modal__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--zrx-ebook-navy);
    margin: 0 0 32px 0;
    text-align: center;
    line-height: 1.3;
}

/* ========================================
   FORMULARIO
======================================== */
.zrx-ebook-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.zrx-ebook-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.zrx-ebook-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zrx-ebook-form__field--full {
    grid-column: 1 / -1;
}

.zrx-ebook-form__field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--zrx-ebook-navy);
}

.zrx-ebook-form__field input {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    transition: all 0.2s ease;
    background: var(--zrx-ebook-white);
}

.zrx-ebook-form__field input:focus {
    outline: none;
    border-color: var(--zrx-ebook-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.zrx-ebook-form__field input::placeholder {
    color: #999;
}

.zrx-ebook-form__field input.has-error {
    border-color: #ff4444;
}

.zrx-ebook-form__error {
    font-size: 13px;
    color: #ff4444;
    display: none;
    margin-top: -4px;
}

.zrx-ebook-form__error.is-visible {
    display: block;
}

/* Checkbox */
.zrx-ebook-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 8px;
}

.zrx-ebook-form__checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--zrx-ebook-green);
}

.zrx-ebook-form__checkbox label {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

/* Botón de Envío */
.zrx-ebook-form__submit {
    margin-top: 12px;
    background: var(--zrx-ebook-green);
    color: var(--zrx-ebook-white);
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.zrx-ebook-form__submit:hover:not(:disabled) {
    background: var(--zrx-ebook-green-hover);
    transform: translateY(-2px);
}

.zrx-ebook-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.zrx-ebook-form__submit-loader svg {
    animation: zrx-spin 1s linear infinite;
}

@keyframes zrx-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   PASO 3: PANTALLA DE AGRADECIMIENTO
======================================== */
.zrx-ebook-thankyou {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zrx-ebook-thankyou.is-active {
    display: flex;
    opacity: 1;
}

.zrx-ebook-thankyou__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--zrx-ebook-navy-dark) 0%, var(--zrx-ebook-blue) 100%);
    opacity: 0.98;
}

/* Patrón de circuitos */
.zrx-ebook-thankyou__overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.zrx-ebook-thankyou__content {
    position: relative;
    z-index: 2;
    background: var(--zrx-ebook-white);
    border-radius: 24px;
    padding: 60px 48px;
    max-width: 560px;
    width: 90%;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.zrx-ebook-thankyou.is-active .zrx-ebook-thankyou__content {
    transform: scale(1);
}

/* Botón Cerrar */
.zrx-ebook-thankyou__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.zrx-ebook-thankyou__close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Título */
.zrx-ebook-thankyou__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--zrx-ebook-navy);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

/* Mensaje */
.zrx-ebook-thankyou__message {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 40px 0;
}

/* Ícono de Check */
.zrx-ebook-thankyou__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    animation: zrx-check-bounce 0.6s ease-out;
}

@keyframes zrx-check-bounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   RESPONSIVE
======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .zrx-ebook-hero__container {
        gap: 60px;
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
    }

    .zrx-ebook-hero__image {
        display: none;
    }

    .zrx-ebook-hero__content {
        padding-left: 5%;
        padding-right: 5%;
        text-align: center;
        align-items: center;
    }

    .zrx-ebook-hero__logo {
        justify-content: center;
    }

    .zrx-ebook-hero__cta {
        align-self: center;
    }

    .zrx-ebook-hero__title {
        font-size: 56px;
        max-width: 100%;
    }

    .zrx-ebook-hero__subtitle {
        font-size: 18px;
        max-width: 100%;
    }

    .zrx-ebook-hero__ebook-info {
        max-width: 100%;
    }

    .zrx-ebook-modal__content {
        padding: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .zrx-ebook-hero {
        padding: 40px 24px;
        min-height: 100vh !important;
        height: auto !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .zrx-ebook-hero__container {
        grid-template-columns: 1fr;
        gap: 32px;
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: center;
    }

    .zrx-ebook-hero__content {
        padding: 0;
        max-width: 100%;
        margin: 0;
    }

    .zrx-ebook-hero__title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .zrx-ebook-hero__subtitle {
        font-size: 16px;
        max-width: 100%;
    }

    .zrx-ebook-hero__ebook-info {
        max-width: 100%;
    }

    .zrx-ebook-hero__image {
        display: none;
    }

    .zrx-ebook-hero {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .zrx-ebook-modal__content {
        padding: 32px 24px;
    }

    .zrx-ebook-modal__title {
        font-size: 24px;
    }

    .zrx-ebook-form__row {
        grid-template-columns: 1fr;
    }

    .zrx-ebook-thankyou__content {
        padding: 48px 32px;
    }

    .zrx-ebook-thankyou__title {
        font-size: 26px;
    }

    .zrx-ebook-thankyou__icon svg {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .zrx-ebook-hero__title {
        font-size: 32px;
    }

    .zrx-ebook-hero__cta {
        width: 100%;
        text-align: center;
    }

    .zrx-ebook-modal__content {
        width: 95%;
        padding: 28px 20px;
    }

    .zrx-ebook-thankyou__content {
        width: 95%;
    }
}

/* ========================================
   AJUSTES PARA PANTALLAS CON POCA ALTURA (LAPTOPS 1366x768, ETC.)
   Solo aplica en Desktop (width > 1024px) pero Height < 900px
======================================== */
@media (min-width: 1025px) and (max-height: 900px) {
    .zrx-ebook-hero__content {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .zrx-ebook-hero__logo {
        margin-bottom: 20px;
    }

    .zrx-ebook-hero__logo img {
        height: 80px;
    }

    .zrx-ebook-hero__title {
        font-size: 50px;
        margin-bottom: 16px;
    }

    .zrx-ebook-hero__subtitle {
        font-size: 18px;
        margin-bottom: 32px;
    }

    .zrx-ebook-hero__email-group {
        margin-bottom: 24px;
    }

    .zrx-ebook-hero__cta {
        margin-top: 24px;
        padding: 12px 32px;
        font-size: 16px;
    }
}
