/* =========================================
   FONDO TIPO WETRANSFER SOLO EN LA PÁGINA DEL SHORTCODE
========================================= */

body.page-id-159431 {
    height: 100vh !important;
    min-height: 100vh !important;
    background-size: cover !important;
    position: relative;
}

/* Overlay completo */
body.page-id-159431::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 0;
}

/* Mantener formulario sobre overlay */
#page .page-id-159431 #wts-upload-container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 80px auto;
    padding: 40px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Leyenda del autor del fondo */
.page-id-159431 .bg-caption {
    position: fixed;      /* siempre pegada a la ventana */
    bottom: 10px;         /* margen inferior */
    right: 10px;          /* margen derecho */
    color: white;
    font-size: 13px;
    font-family: sans-serif;
    text-align: right;    /* pie de foto a la derecha */
    z-index: 0;           /* detrás del formulario y overlay */
    text-shadow: 0 0 4px rgba(0,0,0,0.6); /* legible sobre fondos claros */
}

/* =========================================
   CONTENEDOR PRINCIPAL DEL FORMULARIO
========================================= */

.page-id-159431 #wts-upload-container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 40px;
    background: rgb(255 255 255 / 65%);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
    align-items: center
}

/* =========================================
   INPUT FILE OCULTO
========================================= */
#wts-file-input {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
}

/* =========================================
   ZONA DRAG & DROP
========================================= */
#wts-drop-area {
    border: 2px dashed #565454;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.1);
}

#wts-drop-area.dragover {
    border-color: #0c0c0c;
    background: rgba(76,175,80,0.1);
}

#wts-drop-area:hover {
    border-color: #2CA300;
    background: rgba(76,175,80,0.1);
}

#wts-drop-area p {
    margin: 0;
    font-size: 16px;
}

#wts-drop-area span#wts-browse-btn {
    color: #0c0c0c;
    font-weight: 600;
    text-decoration: underline;
}

/* =========================================
   INPUTS DEL FORMULARIO
========================================= */
#wts-upload-form input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 15px;
    transition: 0.3s;
}

#wts-upload-form input:focus {
    border-color: #0c0c0c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76,175,80,0.2);
}

/* =========================================
   CORRECCIÓN CHECKBOX TÉRMINOS
========================================= */
#wts-upload-form input[type="checkbox"] {
    width: auto;
    margin: 0 10px 0 0; /* espacio a la derecha del checkbox */
    vertical-align: middle;
}
#wts-upload-form p {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-top: 0;
}
#wts-upload-form p a {
    margin-left: 5px;
    text-decoration: underline;
    color: #FF8C00;
}

/* =========================================
   BOTÓN DE SUBIDA
========================================= */
#wts-upload-form button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

#wts-upload-form button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* =========================================
   BARRA DE PROGRESO
========================================= */
#wts-progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
    display: block;
}

#wts-progress-fill {
    height: 100%;
    width: 0%;
    background: #FF8C00;
    transition: width 0.3s;
}

/* =========================================
   MENSAJES DE ESTADO
========================================= */
#wts-message {
    margin-top: 15px;
    font-weight: 500;
}

/* =========================================
   LISTADO DE ARCHIVOS SUBIDOS / MINIATURAS
========================================= */
.wts-files-grid {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.wts-file-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wts-file-item a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    word-break: break-word;
}

.wts-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 600px) {
    #wts-upload-container {
        margin: 40px 20px;
        padding: 30px;
    }

    .wts-thumb {
        width: 50px;
        height: 50px;
    }
}

/* =========================================
   TRANSPARENCIA EN BLOQUES DEL TEMA
========================================= */
.page-id-159431 .site, 
.page-id-159431 .site-content, 
.page-id-159431 .entry-content, 
.page-id-159431 .content-area, 
.page-id-159431 .wp-block {
    background: transparent !important;
}

/* ==============================
   MOBILE FRIENDLY 1.3
============================== */
@media (max-width: 600px) {

    /* Contenedor principal ocupa toda la altura */
    #wts-upload-container {
        margin: 0 10px;
        padding: 30px 20px;
        max-width: 100%;
        border-radius: 12px;
    }

    /* Lista de archivos flexible y scrollable */
    #wts-file-list {
        max-height: 250px;
        overflow-y: auto;
        width: 100%;
        margin-top: 15px;
        padding-right: 5px;
    }

    /* Miniaturas más grandes y alineadas vertical */
    .wts-file-item {
        flex-direction: row;
        gap: 10px;
        width: 100%;
    }

    .wts-thumb {
        width: 50px;
        height: 50px;
    }

    /* Botón añadir archivos siempre visible */
    #wts-drop-area p {
        font-size: 14px;
    }

    #wts-drop-area span#wts-browse-btn {
        display: inline-block;
        margin-top: 5px;
        font-size: 14px;
    }

    /* Barra de progreso más visible */
    #wts-progress-bar {
        height: 12px;
    }
}


/* ==============================
   WE TRANSFER STYLE V1.4
============================== */

/* Overlay animado durante la subida */
.wts-uploading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
    z-index: 10;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.wts-uploading-overlay.active {
    opacity: 1;
}

/* Animación miniaturas */
.wts-file-item {
    transition: transform 0.3s, opacity 0.3s;
    color: white;
}

.wts-file-item.added {
    transform: translateY(-10px);
    opacity: 0;
    animation: fadeInUp 0.4s forwards;
}

@keyframes fadeInUp {
    to { transform: translateY(0); opacity: 1; }
}

/* Barra de progreso estilo WeTransfer */
#wts-progress-bar {
    width: 100%;
    height: 10px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
    position: relative;
}

#wts-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,#FF8C00,#FFC107);
    transition: width 0.3s;
}

/* Porcentaje sobre barra */
#wts-progress-percent {
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 12px;
    font-weight: 600;
}

/* Scrollable en móvil */
@media (max-width: 600px) {
    #wts-file-list {
        max-height: 250px;
        overflow-y: auto;
        width: 100%;
        padding-right: 5px;
    }
}

#wts-upload-form p label {
    font-size: 14px;
    color: #333;
}

#wts-upload-form p label a {
    color: #0c0c0c;;
    text-decoration: underline;
}




/* =============================
   CHECKBOX DE TÉRMINOS
============================= */
#wts-upload-form input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin-right: 8px;
    transform: scale(1.2); /* opcional, para que sea un poco más grande en móviles */
    vertical-align: middle;
}
#wts-upload-form p {
    font-size: 14px;
    line-height: 1.4;
    color: white;
}

#wts-upload-form p a {
    color: #0c0c0c;;
    text-decoration: underline;
}

#wts-message.wts-success {
    color: #28a745; /* verde */
    font-weight: 600;
}

#wts-message.wts-error {
    color: #dc3545; /* rojo */
    font-weight: 600;
}

