﻿/* From uiverse.io by @satyamchaudharydev */
/* removing default style of button */
. /* From uiverse.io by @satyamchaudharydev */
/* removing default style of button */

.form button svg {
    display: block;
    margin: 0;
    vertical-align: middle;
}


.form button {
    border: none;
    background: none;
    color: #8b8ba7;
}
/* styling of whole input container */
.form {
    --timing: 0.3s;
    --width-of-input: 400px;
    --height-of-input: 45px;
    --border-height: 2px;
    --input-bg: #fff;
    --border-color: #7B1A1A;
    --border-radius: 50px;
    --after-border-radius: 1px;
    position: relative;
    /*width: var(--width-of-input);*/
    max-width: 90%;
    /*width: 100%;*/
    height: var(--height-of-input);
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre elementos */
    padding-inline: 0.8em;
    border-radius: var(--border-radius);
    transition: border-radius 0.5s ease;
    background: var(--input-bg,#fff);
    margin: 0 auto;
    border: .15rem solid #EBEBEB; /* Contorno completo */
}
/* styling of Input */
.inputBuscar {
    font-size: 0.9rem;
    background-color: transparent;
    flex: 1;
    height: 100%;
    padding-inline: 0.5em;
    padding-block: 0.7em;
    border: none;
}
/* styling of animated border */
.form:before {
    content: "";
    position: absolute;
    background: var(--border-color);
    transform: scaleX(0);
    transform-origin: center;
    width: 100%;
    height: var(--border-height);
    left: 0;
    bottom: 0;
    border-radius: 1px;
    transition: transform var(--timing) ease;
}
/* Hover on Input */
.form:focus-within {
    border-radius: var(--after-border-radius);
}

input:focus {
    outline: none;
}
/* here is code of animated border */
.form:focus-within:before {
    transform: scale(1);
}
/* styling of close button */
/* == you can click the close button to remove text == */
.reset {
    border: none;
    background: none;
    opacity: 0;
    visibility: hidden;
}
/* close button shown when typing */
input:not(:placeholder-shown) ~ .reset {
    opacity: 1;
    visibility: visible;
}
/* sizing svg icons */
.form svg {
    width: 17px;
}

.form button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}


@media (max-width: 480px) {
    .form {
        height: 40px; /* opcional: más compacto en móviles */
        padding-inline: 0.6em;
        border-radius: 30px; /* más suave en pantallas pequeñas */
    }

    .inputBuscar {
        font-size: 0.85rem;
        padding-block: 0.5em;
    }

    .form svg {
        width: 15px;
    }

}


/*Paginación hojas */


.pagination {
    display: flex;
    justify-content: center; /* ✅ Centra horizontalmente */
    align-items: center; /* ✅ Alinea verticalmente */
    gap: 8px; /* ✅ Espacio entre los botones */
    /*margin-top: 10px;*/
}


    .pagination button, .pagination span {
        background-color: white;
        color: #333;
        font-weight: 600;
        border: 0;
        border-radius: 20px;
        padding: 8px 16px;
        /*padding: 12px 20px;*/  
        font-size: 13px; /* opcional, para balance visual */
        line-height: 1; /* ✅ evita que el texto se desplace verticalmente */
        height: 40px; /* ✅ altura fija */
        display: inline-flex; /* ✅ asegura alineación vertical */
        align-items: center;
        justify-content: center;
        transition: transform .05s ease-in-out, box-shadow .2s;
        box-sizing: border-box;
        /*transition: all 0.3s ease;*/
        margin-top: 12px;
        margin-bottom: 12px;
    }

        .pagination button:hover {
            background-color: #7B1A1A;
            color: white;
            font-weight: 700;
        }

    .pagination span {
        font-weight: bold;
        background-color: #f8f9fa;
    }

.pagination-fixed {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9); /*  Fondo semitransparente */
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

