/* Lista */
.list li {
    margin-bottom: 10px;
    margin-left: 40px;
    
    text-align: justify;
    font-size: 18px;
}



/* Boton Animado */
.button-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.animated-button {
    margin: 20px;
    position: relative;
    display: inline-block;

    padding: 20px 60px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    color: white;

    background: white;
    border-radius: 50px;
    overflow: hidden;

    z-index: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: 0.2s ease;
}

.animated-button:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3)) brightness(1.1);            
}

/* Capa giratoria */
.animated-button::before {
    content: "";
    position: absolute;
    inset: -4px;

    width: 200%;
    height: 400%;
    top: 50%;
    left: 50%;

    background: linear-gradient(
        #006ce7,
        #009ee7,
        #00e5ff
    );

    animation: spin 4s linear infinite;

    z-index: -2;
}

/* Capa blanca interior */
.animated-button::after {
    content: "";
    position: absolute;
    inset: 6px;
    background: linear-gradient(
        #3d98ff,
        #0082ec
    );
    border-radius: 46px;

    z-index: -1;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.arrows {
    position: absolute;
    left: -120px;
    display: flex;
    gap: 10px;
}

/* Flechas más grandes */
.arrows svg {
    width: 80px;
    height: 80px;

    fill: none;
    stroke: #00c6ff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;

    animation: arrowMove 1.5s infinite;
}

.arrows svg:nth-child(1) {
    animation-delay: 0.15s;
}

.arrows svg:nth-child(2) {
    margin-left: -45px;
}

@keyframes arrowMove {
    0% {
        transform: translateX(0);
    }

    35% {
        transform: translateX(12px);
    }

    70% {
        transform: translateX(0);
    }
}



/* Tabla Periodos */
input[type="text"] {
    padding: 12px;
    font-size: 16px;
    width: 80%;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-top: 5px;
}

input[type="text"]:focus {
    border-color: #07396c;
    outline: none;
}

#contenedor-lista ul {
    list-style-type: none;
    padding: 0;
}

#contenedor-lista li {
    background-color: #fff;
    margin: 10px 0;
    padding: 15px;
    border-radius: 25px;
    border: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    position: relative;
    padding-left: 50px;
    overflow: hidden;
}

#contenedor-lista li:hover {
    background-color: #d7e7f7;
}

#contenedor-lista li::before {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 100%;
    transition: filter 0.3s ease;
}

#contenedor-lista li:hover::before {
    filter: brightness(1.2);
}

#contenedor-lista .li-link::before {
    background-color: #4CAF50;
    content: "✔";
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#contenedor-lista .li-nolink::before {
    background-color: #f44336;
    content: "✖";
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

label {
    cursor: pointer;
    font-size: 20px;
}

.label-li {
    font-size: 30px;
}

/* Modal */

.modal-oculto {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-caja {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    max-width: 80%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: aparecer 0.2s ease;
}

.modal-caja h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.modal-caja button {
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    margin-top: 15px;
    background-color: #3d98ff;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal-caja button:hover {
    background-color: #0082ec;
}

.modal-caja img {
    max-height: 70vh;
}

@keyframes aparecer {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#contenedor-lista {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

#contenedor-lista::-webkit-scrollbar {
    width: 8px;
}

#contenedor-lista::-webkit-scrollbar-track {
    background: transparent;
}

#contenedor-lista::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.link-capa {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    gap: 10px;
}

.link-capa label {
    flex: 1;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    width: 100%;
    word-break: break-word;
}


#panel-preview {
    position: sticky;
    top: 10px;
    background: white;
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-align: center;
}

#panel-preview p {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #555;
}

#preview-video {
    width: 100%;
    max-width: 200px;
    margin-top: 10px;
    border-radius: 12px;
    display: none;
}

#layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

#panel-preview {
    width: 200px;
    flex-shrink: 0;
}

#contenedor-lista {
    flex: 1;
}

.fade {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.select-wrapper {
    position: relative;
    width: fit-content;
    margin-bottom: 15px;
    margin-top: 15px;
}

#selector-periodo {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 10px 40px 10px 15px;
    font-size: 16px;
    font-family: "Montserrat", Arial, sans-serif;
    border-radius: 12px;
    border: 2px solid #07396c;
    background-color: white;
    color: #07396c;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

#selector-periodo:hover {
    background-color: #f0f6fc;
}

#selector-periodo:focus {
    outline: none;
    border-color: #4ca0af;
    box-shadow: 0 0 0 3px rgba(76, 152, 175, 0.3);
}

/* Flecha */
.select-wrapper::after {
    content: "▾";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 18px;
    color: #07396c;
}

.barra-busqueda {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.barra-busqueda label {
    font-size: 16px;
}

@media (max-width: 600px) {
    li {
        padding: 8px;
        padding-left: 45px;
        border-radius: 18px;
        margin: 6px 0;
    }

    label,
    .label-li {
        font-size: 16px;
    }

    li::before {
        width: 35px;
        font-size: 16px;
    }

    #contenedor-lista {
        max-height: 150px;
    }

    #panel-preview {
        display: none;
    }

    #selector-periodo {
        width: 100%;
        font-size: 14px;
        padding: 8px 35px 8px 12px;
    }

    .select-wrapper {
        width: 100%;
    }
}