/* 
Theme Name: Astra Child
Template: astra
*/

/* ===== BASE ===== */
body {
    background-color: #00000E;
    overflow-x: hidden;
}

/* ===== SECCIONES (CONTROL VISUAL, NO ESTRUCTURAL) ===== */
.sec_hero,
.sec_capital,
.sec_yt,
.sec_patreon,
.sec_training {
    width: 100%;
}

/* Ocultación SOLO controlada por JS */
.sec_hero,
.sec_capital,
.sec_yt,
.sec_patreon,
.sec_training {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.5s ease;
}

.sec_hero.active,
.sec_capital.active,
.sec_yt.active,
.sec_patreon.active,
.sec_training.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== TEXTO ===== */
.sec_hero,
.sec_capital,
.sec_yt,
.sec_patreon,
.sec_training {
    color: #ffffff;
}

/* NO tocar botones */
.sec_hero a,
.sec_capital a,
.sec_yt a,
.sec_patreon a,
.sec_training a {
    color: inherit;
}

/* ===== CTA ===== */
.sec_yt_cta,
.sec_patreon_cta,
.sec_training_cta {
    margin-top: 40px;
}

/* ===== ANIMACIÓN ELEMENTOS ===== */
.fade-item {
    opacity: 0;
    transform: translateX(50px);
}

.fade-item.show {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.5s ease;
}

.cta-item {
    opacity: 0;
    transform: translateY(50px);
}

.cta-item.show {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

/* =========================
   MODO EDICIÓN ELEMENTOR (CLAVE)
========================= */

body.elementor-editor-active [class*="sec_"] {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
}

body.elementor-editor-active [class*="sec_"] * {
    opacity: 1 !important;
    transform: none !important;
}

body.elementor-editor-active .elementor-container,
body.elementor-editor-active .elementor-widget-wrap,
body.elementor-editor-active .elementor-column,
body.elementor-editor-active .elementor-section,
body.elementor-editor-active .e-con {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
}

body.elementor-editor-active .fade-item,
body.elementor-editor-active .cta-item {
    opacity: 1 !important;
    transform: none !important;
}

/* =========================
   FORM CASTBAN
========================= */

.castban-form-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

/* LABEL */
.castban-form-wrapper label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* INPUT */
.castban-form-wrapper input {
    width: 100%;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    outline: none;
    transition: all 0.3s ease;

    /* 🔥 FIX TEXTO BLANCO SIEMPRE */
    -webkit-text-fill-color: #ffffff;
}

/* FOCUS */
.castban-form-wrapper input:focus {
    border-color: #077395;
    background: rgba(255,255,255,0.08);

    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

/* AUTOFILL (CHROME) */
input:-webkit-autofill {
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* PLACEHOLDER */
.castban-form-wrapper input::placeholder {
    color: rgba(255,255,255,0.4);
}

/* BOTÓN */
.btn_castban {
    display: block;
    width: 100%;
    max-width: 320px;
    height: 60px;
    margin: 40px auto 0;

    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 20px;

    background: #077395;
    color: #ffffff;

    border: none;
    border-radius: 36px;

    cursor: pointer;
    transition: all 0.3s ease;

    text-align: center;
}

.btn_castban:hover {
    background: #ffffff;
    color: #077395;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .castban-form-wrapper {
        max-width: 90%;
    }

    .btn_castban {
        font-size: 18px;
        height: 56px;
    }
}

/* =========================
   FIX FINAL FORM
========================= */

.sec_form {
    display: none;
}

.sec_form.active {
    display: flex !important;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

.sec_form.active > *,
.sec_form.active .elementor-container,
.sec_form.active .elementor-widget-wrap,
.sec_form.active .elementor-column,
.sec_form.active .elementor-section,
.sec_form.active .e-con {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
}