/* ============================================================
   ESTILO PREMIUM MASCOALBA — Conversor de Subtítulos
   VERSIÓN FINAL 2026 — OPTIMIZADA Y REPARADA
============================================================ */

/* CONTENEDOR PRINCIPAL */
.contenedor-premium {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(0,0,0,0.45);
}

/* CABECERA */
.cabecera-herramienta {
    text-align: center;
    margin-bottom: 45px;
}

.titulo-principal {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.descripcion-herramienta {
    font-size: 1.2rem;
    opacity: 0.85;
    max-width: 650px;
    margin: 0 auto;
}

/* GRID PRINCIPAL */
.herramienta-grid {
    display: grid;
    gap: 40px;
    justify-content: center;
}

/* ============================================================
   BLOQUE DE CARGA — BOTÓN SUBIR ARCHIVO PREMIUM
============================================================ */
.bloque-carga {
    padding: 28px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    max-width: 600px;
    margin: 0 auto;
}

.label-archivo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 800;
    padding: 20px 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffaa00, #ff7700);
    color: #fff;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: 0.3s ease;
    box-shadow: 0 6px 22px rgba(0,0,0,0.45);
    width: 100%;
    box-sizing: border-box;
}

.label-archivo:hover {
    background: linear-gradient(135deg, #ffbb33, #ff8833);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.55);
}

.info-badge {
    margin-top: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    display: inline-block;
    color: #000000;
}

/* ============================================================
   PANEL DE CONFIGURACIÓN — SELECT + INPUT PREMIUM
============================================================ */
.panel-configuracion {
    padding: 28px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    max-width: 600px;
    margin: 0 auto;
}

.control-grupo {
    margin-bottom: 25px;
}

/* SELECT + INPUT — MISMO TAMAÑO */
.select-premium,
.input-premium {
    width: 100%;
    height: 60px;
    padding: 0 20px;
    border-radius: 18px;
    border: 2px solid rgba(255,255,255,0.45);
    background: rgba(0,0,0,0.75);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 4px 18px rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    box-sizing: border-box;
}

/* Flecha premium */
.select-premium {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='26' width='26' viewBox='0 0 20 20'><path d='M5 7l5 6 5-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 24px;
}

/* HOVER */
.select-premium:hover,
.input-premium:hover {
    background: rgba(0,0,0,0.85);
    border-color: rgba(255,255,255,0.75);
}

/* FOCUS */
.select-premium:focus,
.input-premium:focus {
    outline: none;
    background: rgba(0,0,0,0.92);
    border-color: #ffffff;
    box-shadow: 0 8px 28px rgba(0,0,0,0.75);
}

/* Input de sincronización igual al resto */
#ajuste-tiempo.input-premium {
    height: 60px;
    padding: 0 20px;
}

/* Placeholder sincronización */
#ajuste-tiempo::placeholder {
    font-size: 1.05rem;
    opacity: 0.7;
}

/* ============================================================
   OPCIONES DE LIMPIEZA
============================================================ */
.opciones-limpieza {
    margin-top: 25px;
}

.titulo-opciones {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: #000000;
}

/* CHECKBOX */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    cursor: pointer;
    opacity: 0.9;
    font-size: 1.15rem;
    color: #000000;
}

.checkbox-container:hover {
    opacity: 1;
}

/* ============================================================
   BOTONES PREMIUM MASCOALBA
============================================================ */
.area-acciones {
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
}

.boton-accion,
.boton-descarga,
.boton-copiar {
    width: 100%;
    max-width: 600px;
    padding: 22px 30px;
    border-radius: 18px;
    border: none;
    cursor: pointer;
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: 0.7px;
    color: #ffffff;
    text-transform: uppercase;
    transition: 0.3s ease;
    box-shadow: 0 6px 22px rgba(0,0,0,0.45);
    margin: 0 auto;
    box-sizing: border-box;
}

.boton-accion {
    background: linear-gradient(135deg, #00aaff, #0066ff);
}

.boton-descarga {
    background: linear-gradient(135deg, #00cc88, #009966);
}

.boton-copiar {
    background: linear-gradient(135deg, #ffaa00, #ff7700);
    margin-top: 15px;
}


/* ============================================================
   RESULTADO PREMIUM — ANCHO REAL, GRANDE, AJUSTADO A PANTALLA
============================================================ */

/* Anula límites anteriores */
.resultado-seccion,
.resultado-contenido,
.bloque-carga,
.panel-configuracion,
.area-acciones {
    max-width: 95vw !important;   /* 🔥 ancho casi total */
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Cuadro de resultado */
.resultado-seccion {
    padding: 24px !important;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    margin-top: 40px;
}

/* Textarea grande, ancho, ajustado */
.textarea-premium {
    width: 100% !important;
    max-width: 100% !important;
    height: 300px !important;
    min-height: 300px !important;

    padding: 16px 18px !important;
    border-radius: 18px !important;
    border: 2px solid rgba(0,0,0,0.25) !important;
    background: #ffffff !important;
    color: #000000 !important;

    font-size: 1.1rem !important;
    font-weight: 500 !important;

    box-shadow: 0 4px 18px rgba(0,0,0,0.15) !important;
    box-sizing: border-box !important;

    resize: vertical !important;
    white-space: pre-wrap !important;
    overflow-wrap: break-word !important;
}

/* Móvil */
@media (max-width: 768px) {

    .resultado-seccion,
    .resultado-contenido,
    .bloque-carga,
    .panel-configuracion,
    .area-acciones {
        max-width: 92vw !important;   /* 🔥 margen elegante */
    }

    .textarea-premium {
        height: 240px !important;
        min-height: 240px !important;
        padding: 14px 16px !important;
        font-size: 1.05rem !important;
    }
}

/* ============================================================
   TÍTULOS PREMIUM (NEGRO, GRANDES)
============================================================ */
.control-grupo label,
.resultado-seccion label,
#indicador-formato,
.titulo-opciones {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
    opacity: 1;
    color: #000000;
}

/* ============================================================
   BLOQUE "MÁS INFORMACIÓN"
============================================================ */
.info-extra {
    margin: 50px auto 0 auto;
    max-width: 900px;
}

#toggle-info {
    background: #1a1a1a;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    padding: 18px 24px;
    border-radius: 14px;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

#contenido-info {
    margin-top: 20px;
    padding: 24px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.15);
    display: none;
}

/* ============================================================
   RESPONSIVE — MÓVIL PERFECTO
============================================================ */
@media (max-width: 768px) {

    .contenedor-premium {
        padding: 0 12px;
        margin: 0 auto;
    }

    .herramienta-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .bloque-carga,
    .panel-configuracion,
    .resultado-seccion,
    .area-acciones {
        max-width: 320px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .label-archivo {
        width: 100%;
        max-width: 320px;
        padding: 14px 16px;
        margin: 0 auto;
        white-space: normal;
    }

    .boton-accion,
    .boton-descarga,
    .boton-copiar {
        max-width: 320px;
        padding: 18px;
    }

    .resultado-contenido {
        max-width: 320px;
    }

    .textarea-premium {
        height: 240px;          /* 🔥 grande pero sin desbordar */
        min-height: 240px;
        padding: 12px 14px;
        font-size: 1.05rem;
    }

    .control-grupo label,
    .resultado-seccion label,
    #indicador-formato,
    .titulo-opciones {
        font-size: 1.35rem;
    }
}

/* ============================================================
   AJUSTE FINAL — FIJAR EL TAMAÑO EXACTO DE "MÁS INFORMACIÓN"
   (95vw PERMANENTE)
============================================================ */

/* Contenedor del resultado */
.resultado-seccion {
    width: 95vw !important;
    max-width: 95vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Contenido interno */
.resultado-contenido {
    width: 100% !important;
    max-width: 100% !important;
}

/* Textarea */
.textarea-premium {
    width: 100% !important;
    max-width: 100% !important;
}

/* Contenedor del botón de descarga */
.area-acciones {
    width: 95vw !important;
    max-width: 95vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Botón */
.boton-descarga {
    width: 100% !important;
    max-width: 100% !important;
}

/* Evitar que "Más información" afecte al ancho */
.info-extra {
    max-width: none !important;
}

/* Móvil */
@media (max-width: 768px) {
    .resultado-seccion,
    .area-acciones {
        width: 92vw !important;
        max-width: 92vw !important;
    }
}

/* FIX definitivo: input solo sobre el botón, sin cubrir pantalla */
/* FIX FINAL — input file sobre el botón y protegido contra overlays */
.label-archivo{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:#ff8c00;
  color:#fff;
  font-weight:800;
  border-radius:12px;
  cursor:pointer;
  overflow:hidden;
}

.label-archivo input[type="file"]{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
}

/* 🔥 FIX DEFINITIVO PARA MÓVIL — fuerza al input a existir y recibir el toque */
.hidden-input {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    display: block !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

.panel-configuracion {
    text-align: center;
}

.panel-configuracion .control-grupo,
.panel-configuracion .opciones-limpieza {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.panel-configuracion label,
.panel-configuracion select,
.panel-configuracion input,
.panel-configuracion small,
.panel-configuracion h3,
.panel-configuracion .checkbox-container {
    text-align: center;
}

/* Centrar y estilizar el indicador de formato */
.info-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin:12px auto 0;
  padding:8px 14px;
  border-radius:999px;
  background:#e6f9ec;
  color:#145c2e;
  font-weight:600;
  font-size:0.95rem;
  text-align:center;
}

/* Asegurar que el contenedor lo centra */
.bloque-carga{
  text-align:center;
}

#formato-texto{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  background:#22c55e;
  color:#fff;
  font-weight:700;
  letter-spacing:0.03em;
}





