/* --- CONFIGURACIÓN GENERAL --- */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/fondo.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* --- TARJETA PRINCIPAL --- */
.main-card {
    display: flex;
    background: white;
    width: 950px;
    /* CORRECCIÓN CRÍTICA: height auto para que no corte el botón */
    min-height: 600px; 
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* LADO IZQUIERDO */
.left-side {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?q=80&w=1000&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    color: white;
}
.left-side::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(43, 12, 75, 0.4), rgba(43, 12, 75, 0.8));
}
.overlay-text { position: relative; z-index: 2; }
.left-side h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 15px; font-weight: 700; }
.left-side p { font-size: 0.9rem; opacity: 0.9; max-width: 300px; margin-bottom: 30px; }
.social-mockup .pill {
    background: rgba(255,255,255,0.2); backdrop-filter: blur(5px); padding: 8px 15px;
    border-radius: 20px; font-size: 0.8rem; margin-right: 10px; border: 1px solid rgba(255,255,255,0.3);
}

/* LADO DERECHO */
.right-side {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.form-container { width: 100%; max-width: 320px; }
.right-side h2 { color: #2b0c4b; font-size: 2rem; margin-bottom: 25px; }

/* --- SECCIÓN PRÓXIMAMENTE (Tus botones viejos) --- */
.coming-soon-wrapper {
    position: relative;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 15px;
    background: #fdfdfd;
    margin-bottom: 20px;
}
.coming-soon-badge {
    position: absolute; top: -10px; right: 15px;
    background: #ffc107; color: #333; font-size: 0.65rem; font-weight: 700;
    padding: 3px 8px; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}
.disabled-ui {
    opacity: 0.5;
    pointer-events: none; /* Bloquea el click */
    filter: grayscale(100%);
}

/* Botones viejos (Estilos restaurados) */
.audio-options { display: flex; gap: 10px; margin-bottom: 10px; }
.option-btn {
    flex: 1; padding: 10px; background: transparent;
    border: 2px solid #ddd; border-radius: 10px;
    font-weight: 600; color: #666;
}
.option-btn.active { border-color: #3b5998; background: rgba(59, 89, 152, 0.1); color: #3b5998; }
.file-upload-ui {
    background: rgba(0,0,0,0.02); border: 2px dashed #ccc; border-radius: 10px;
    padding: 10px; text-align: center; color: #999; font-size: 0.85rem;
}

/* --- INPUT TEXTO --- */
.input-wrapper { position: relative; margin-bottom: 25px; }
.input-wrapper label { display: block; color: #666; font-size: 0.85rem; margin-bottom: 5px; font-weight: 600; }
.input-wrapper input {
    width: 100%; padding: 10px 0; border: none; border-bottom: 2px solid #ddd;
    font-size: 1rem; outline: none; background: transparent;
}
.input-wrapper input:focus { border-bottom-color: #3b5998; }

/* --- BOTÓN ACCIÓN (ARREGLADO) --- */
button#btnGenerar {
    width: 100%; padding: 15px; background: #3b5998; color: white;
    border: none; border-radius: 30px; font-size: 1rem; font-weight: 600;
    cursor: pointer; box-shadow: 0 5px 15px rgba(59, 89, 152, 0.4);
    display: flex; justify-content: center; align-items: center; gap: 10px;
    margin-top: 10px; /* Separación extra */
    transition: transform 0.2s;
}
button#btnGenerar:hover { background: #2d4373; transform: translateY(-2px); }

/* --- EXTRAS --- */
.hidden { display: none !important; }
.spinner {
    border: 4px solid #f3f3f3; border-top: 4px solid #3b5998;
    border-radius: 50%; width: 30px; height: 30px;
    animation: spin 1s linear infinite; margin: 20px auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
audio { width: 100%; margin-top: 15px; border-radius: 30px; }
.success-text { color: #28a745; text-align: center; font-weight: 600; margin-bottom: 5px; }
.fade-in { animation: fadeIn 0.5s ease-in; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.footer-text { margin-top: 30px; font-size: 0.75rem; color: #aaa; text-align: center; }

/* Responsive */
@media (max-width: 768px) {
    .main-card { flex-direction: column; width: 95%; height: auto; }
    .left-side { padding: 40px 20px; min-height: 200px; }
    .right-side { padding: 40px 20px; }
}