body {
    font-family: Arial;
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 10px;
    padding-bottom: 80px;
}

.container {
    max-width: 500px;
    margin: auto;
}

label {
    display: block;
    margin-top: 20px;
    font-weight: bold;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 6px;
}

/* BOTONES */
button {
    background: linear-gradient(45deg, #00c3ff, #00ffcc);
    border: none;
    padding: 12px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 15px;
}

/* LOADING */
.loading {
    display: none;
    background: #111;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    font-weight: bold;
}

/* ERRORES */
.error-msg {
    color: #ff4d4d;
    font-size: 13px;
    margin-top: 5px;
    min-height: 18px;
}

/* COLORES */
.color-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid white;
}

.color-box.activo {
    border: 3px solid #00ffcc;
    transform: scale(1.2);
}

/* IMÁGENES */
.img-box {
    width: 80px;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

.img-box.activo {
    border: 3px solid #00ffcc;
}

/* FLEX */
.flex {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==========================================================
📋 OVA PREVIEW
========================================================== */

.escena-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
    text-align: left;
}

.escena-num {
    font-size: 11px;
    color: #64748b;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.escena-visual {
    font-size: 15px;
    font-weight: bold;
    color: #00ffcc;
    margin-bottom: 6px;
}

.escena-voz {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

/* ==========================================================
🎵 SLIDER VOLUMEN
========================================================== */

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: #334155;
    outline: none;
    padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00c3ff, #00ffcc);
    cursor: pointer;
}

/* ==========================================================
🎬 SELECTOR DE FORMATO
========================================================== */

.formato-toggle {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.formato-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid #334155;
    border-radius: 10px;
    cursor: pointer;
    background: #1e293b;
    transition: all 0.2s;
    text-align: left;
}

.formato-card:hover {
    border-color: #00c3ff;
}

.formato-card.activo {
    border-color: #00ffcc;
    background: #0f3040;
}

.formato-card strong {
    display: block;
    font-size: 14px;
    color: white;
}

.formato-card span {
    font-size: 12px;
    color: #94a3b8;
}

.formato-icon {
    font-size: 28px;
    line-height: 1;
    color: #00c3ff;
    writing-mode: vertical-lr;
    letter-spacing: -4px;
}

.formato-icon.landscape {
    writing-mode: horizontal-tb;
    letter-spacing: 0;
}

/* Ajuste preview imágenes en modo 16:9 */
.formato-169 .img-box {
    width: 130px;
    height: 80px;
}

/* ==========================================================
📱 RESPONSIVE - MOBILE
========================================================== */

.container {
    width: 90%;
    max-width: 500px;
    margin: auto;
}

/* Inputs más cómodos en móvil */
input, textarea, select {
    font-size: 16px; /* evita zoom automático en móviles */
}

/* Botones táctiles */
button {
    padding: 14px;
    font-size: 16px;
}

/* Colores más grandes para tocar */
.color-box {
    width: 45px;
    height: 45px;
}

/* Imágenes más grandes */
.img-box {
    width: 90px;
    height: 130px;
}

@media (max-width: 480px) {

    h2 {
        font-size: 20px;
    }

    label {
        font-size: 14px;
    }

    .container {
        width: 95%;
    }

    /* reducir espacios */
    input, textarea, select {
        padding: 8px;
    }

    /* colores en fila más compacta */
    .flex {
        gap: 8px;
    }

    .color-box {
        width: 40px;
        height: 40px;
    }

    .img-box {
        width: 80px;
        height: 110px;
    }
}

/* ==========================================================
📱 FOOTER FIJO (MÓVIL)
========================================================== */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0f172a;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.footer button {
    width: 95%;
    margin: auto;
    display: block;
}

button:active {
    transform: scale(0.98);
}

.oculto {
    display: none;
}

/* ==========================================================
🎬 VIDEO RESULTADO
========================================================== */

.video-container {
    margin: 20px 0;
}

.video-container video {
    width: 100%;
    max-width: 350px;
    border-radius: 12px;
}

/* BOTONES COMO LINKS */
.btn {
    display: block;
    background: linear-gradient(45deg, #00c3ff, #00ffcc);
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.btn.secondary {
    background: #333;
    color: white;
}

/* CONTENEDOR ACCIONES */
.acciones {
    margin-top: 20px;
}