/*cosas para lo principal*/
#bienvenido {
    text-align: center;
    top: 50%;
    position: relative;
    font-size: 80px;
    color: #66a182;
    animation: tenue 2s alternate infinite;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
.color-principal {
    color: #66a182;
}
.color-verde {
    color: #caffb9;
}
.color-verde2 {
    color: #aef78e;
}
.color-naranja {
    color: #ffdab5;
}
.color-amarillo {
    color: #c0d461;
}
.titulos {
    color: #e4b688;
    
}
html, body {
    height: 100%; 
    margin: 0; 
    display: flex; 
    flex-direction: column; 
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.background_catalogolist {
    min-height: 115vh;
    margin-top: 0px;
    padding: 20px;
    background-image: url('/images/P22.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0px;
    margin-bottom: 0px;
}
@keyframes tenue {
    from { opacity: 1; }
    to { opacity: 0.7; }
}

.seccion-inicial {
    height: 50vh;
    background: linear-gradient(to bottom, #dff0d8, #f0f8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}
 footer {
    height: 10vh;
    background: #66a182;
    color: #ffffff;
    text-align: center;
    font-size: 18px;
    padding-top: 35px;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

.container {
    flex-grow: 1; 
}

.contenedor {
    display: flex;
    flex-direction: column;  
    min-height: 100vh;       
    margin-top: 70px;       
}
.contenedor-p {        
    margin-top: 70px;  
    background-size: cover;
    background-position: center;    
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    padding-top: 0px;
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
}
.text-me {
    --bs-text-opacity: 2;
    color: rgb(40, 185, 106) !important;
}

.text-me2 {
    --bs-text-opacity: 2;
    color: rgb(9, 132, 215) !important;
}
/*tablas y parecidos*/
.titulo-tabla {
    text-align: center;
    font-size: 24px;
    color: #aef78e;
    margin-bottom: 10px;
}

.texto-tabla {
    text-align: center;
    font-size: 18px;
    color: #2e4d36;
}

.tabla-angosta {
    width: 70%;
    margin: auto;
    border-collapse: collapse;
    border: 1px solid #ccc;
}

.tabla-angosta th, .tabla-angosta td {
    border: 1px solid #ddd;
    padding: 8px;
}

.tabla-angosta tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tabla-angosta tr:hover {
    background-color: #f1f1f1;
}

.boton-mas {
    font-size: 20px;
    padding: 10px 20px;
    background-color: #27c77c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.boton-mas:hover {
    background-color: #27c77c;
}

.form-inline {
    display: inline-block;
}

.float-right {
    float: right;
}
.display-4{
    font-size: calc(1.475rem + 2.7vw);
    font-weight: 700;
    line-height: 1.2;
}
.display-title{
    font-size: calc(1.1rem + 2.2vw);
    font-weight: 700;
    line-height: 1.2;
}
.display-sub{
    font-size: calc(.47rem + 1.4vw);
    font-weight: 900;
    line-height: 1.2;
    color: #e4b688 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #e4b688;
}

a {
    color: #e4b688;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/*Eto es del cataloago tambien*/
.card-body {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    
}

.row {
    display: flex;
    justify-content: space-between;
}

.col-md-4 {
    display: flex;
    justify-content: center;
}

/*Recuperar*/
.subtitulo {
    text-align: center;
    font-size: 24px;
    color: #1b4332;
    margin: 30px 0 20px;
    position: relative;
}

.subtitulo::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #52b788;
    margin: 10px auto 0;
    border-radius: 2px;
}

.boton-restaurar {
    background-color: #52b788; 
    color: white;
    border: none;
    border-radius: 0px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.boton-restaurar:hover {
    background-color: #27c77c; 
    transform: scale(1.05);
}

.boton-restaurar:focus {
    outline: none;
}

.boton-restaurar-todos {
    background-color: #c0d461;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
}

.boton-restaurar-todos:hover {
    background-color: #a2b351; 
    transform: scale(1.05);
}

.boton-restaurar-todos:focus {
    outline: none;
}

/* Navbar */
/* .navbar-separator {
    display: inline-block;
    width: 1px;
    height: 30px;
    background-color: #fff;
    margin: 0 15px;
    vertical-align: middle;
} */

.navbar-brand, .nav-link {
    color: #fff !important;
}
.navbar .btn-outline-light {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.navbar {
    background: #66a182;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    border-radius: 0px 0px 8px 8px;
    box-shadow: 10px 10px 30px 5px rgba(0, 0, 0, 0.5);
}

/* Responsivo: se apilan los items en pantallas pequeñas */
@media (max-width: 78px) {
    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-nav .nav-item {
        width: 100%;
        text-align: left;
        padding-left: 15px;
        
    }
}


/*guest*/
.guest-message {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    font-size: 16px;
    color: #333;
}

.guest-message a {
    color: #c0d461;
    text-decoration: none;
    font-weight: bold;
}

.guest-message a:hover {
    text-decoration: underline;
}

/*Extras*/
.text-box-cta {
    background-color: rgba(255, 255, 255, 0.7); 
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    text-align: center;
    margin: 20px auto;
}

.text-box-cta1 {
    background-color: #ffffff80; 
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    text-align: center;
    margin: 20px auto;
}
.btn-outline-light {
    color: #fff;
    border-color: #fff;
}

.btn-outline-light:hover {
    color: #000;
    background-color: #fff;
    border-color: #fff;
}


.d-flex {
    display: flex !important;
    align-items: center;
}


.btn-logout {
    background-color: red;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Media Queries */
@media (max-width: 1024px) {
    .login-container, .register-container {
        max-width: 350px;
        padding: 30px;
    }
}

@media (max-width: 78px) {
    body {
        padding: 10px;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login-container, .register-container {
        max-width: 100%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .login-container, .register-container {
        padding: 15px;
    }

    #bienvenido {
        font-size: 50px;
    }
}

/*
**style de modal para que se anchee automaticamente y la información no se vea afectada
**Style de la imagen para que la imagen no se vea demasiado grande y se acople al modal
 **/

.modal-dialog {
    max-width: 45%; 
    width: auto; 
}

.modal-body img {
    max-width: 100%;
    height: auto;
}
/* llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll */
/* llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll */
                                                /**Estilos nuevos para la pagina de inicio*/
/* llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll */
/* llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll */

.cuadro-0-vivero-ini{
    width: 100%;
    height: 80px;
    background-color: white;
    align-items: center;
    justify-content: center;
    align-items: center;


}

.cuadro-1-vivero-ini{
    width: 100%;
    min-height: 740px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 100px;
    /* box-shadow: 20px 20px 25px black; */

}

.cuadro-2-vivero-ini{
    width: 100%;
    min-height: 540px;
    background-color: #66a181e2;
    align-items: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

}

.imagen-alta-vivero {
    position: relative;
    background-color: transparent; 
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Evita que la imagen se salga del cuadro */
    gap: 20px;
    margin: 10px;
    width: 400px;
    height: 580px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Sombra ligera */
}

.imagen-alta-vivero img {
    transition: transform 1.0s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0; /* Evita bordes extra */
}

.imagen-alta-vivero img:hover {
    transform: scale(1.2); /* La imagen se acerca dentro del cuadro */
}


@media (max-width: 1024px) {
    .imagen-alta-vivero {
        padding: 30px 5%;
    }
}

@media (max-width: 78px) {
    .imagen-alta-vivero {
        padding: 20px 5%;
    }
}

.imagen-media-vivero{
    position: relative;
    background-color: transparent; 
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; 
    margin: 10px;
    width: 500px; 
    height: 300px;
    box-shadow: 1px 1px 10px 1px rgba(0, 0, 0, 0.2); /* Sombra ligera */
}

.imagen-media-vivero img {
    transition: transform 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.imagen-media-vivero img:hover {
    transform: scale(1.2); 
}

@media (max-width: 1024px) {
    .imagen-alta-vivero {
        padding: 30px 5%;
    }
}

@media (max-width: 78px) {
    .imagen-alta-vivero {
        padding: 20px 5%;
    }
}

.cuadro-3-vivero-ini {
    width: 100%;
    min-height: 500px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row; /* En pantallas grandes, los elementos estarán en fila */
    flex-wrap: wrap; /* Permite que se acomoden si no hay espacio */
    gap: 30px; /* Espaciado entre las secciones */
    padding: 20px;
}

/* 📌 En pantallas pequeñas, los elementos se apilan */
@media (max-width: 78px) {
    .cuadro-3-vivero-ini {
        flex-direction: column; /* Ahora los elementos se apilan */
    }
}


.imagen-baja-vivero {
    flex: 1.5; /* Que ocupe el mismo espacio que el carrusel */
    max-width: 650px; /* Limitar el ancho */
    text-align: justify;
    background-color: #caffB9;
    padding: 20px;
    border-radius: 15px;
}

/* -----------------Carrusel Vivero---------------------- */
.carrusel-vivero {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.carrusel {
    width: 450px; /*Antes estaba en 400 px*/
    height: 300px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

.carrusel img {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Transición suave */
}

.carrusel img.active {
    opacity: 1; /* La imagen activa se muestra suavemente */
}

/* Flechas de navegación */
.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: black;
    border: none;
    padding: 10px 15px; /* Ajuste del tamaño */
    cursor: pointer;
    font-size: 20px;
    z-index: 10; /* Para que estén por encima de las imágenes */
    border-radius: 5px;
}

/* Botón izquierdo */
.carrusel-btn.left {
    left: -5px; /* Lo sacamos un poco del contenedor */
}

/* Botón derecho */
.carrusel-btn.right {
    right: -5px; /* Lo sacamos un poco del contenedor */
}

/* Asegurar que los botones se mantengan visibles en pantallas pequeñas */
@media (max-width: 500px) {
    .carrusel-btn {
        padding: 8px 12px;
        font-size: 18px;
    }

    .carrusel-btn.left {
        left: 5px; /* Ajuste en móviles */
    }

    .carrusel-btn.right {
        right: 5px;
    }
}



/* -----------------Final Carrusel------------------------ */

.cuadro-en-blanco-inicio{
    background-color: white;
    display: flex;
    width: 50px;
    height: auto;

}

/* Texto que indica que productos hay */

.texto-de-inicio{
    color: #65a265;
    font-size: 35px;
    text-align: center;
    background-color: white;
    padding-top: 20px;
    font-family: Helvetica;
    font-weight: 600;

    
}

.texto-de-inicio::after {
    content: "";
    display: block;
    width: 65%; /* Ancho de la línea */
    height: 3px; /* Grosor de la línea */
    background-color: #65a265;
    margin: 2px auto 0; /* Espaciado y centrado */
}

.texto-de-medio{
    color: #d0eacb;
    font-size: 35px;
    text-align: center;
    background-color: #66a181e2;
    padding-top: 20px;
    font-family: Helvetica;
    font-weight: 600;
    
}

.texto-de-medio::after {
    content: "";
    display: block;
    width: 65%; /* Ancho de la línea */
    height: 3px; /* Grosor de la línea */
    background-color: #d0eacb;
    margin: 2px auto 0; /* Espaciado y centrado */
}

.texto-historia {
    color: #66a182;
    font-size: 20px;
    text-align: justify;
}



/*botones*/
.btn-custom-agregar {
    background-color: #66a182; 
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-custom-agregar:hover {
    background-color:#97d67c ; 
    transform: scale(1.05);
}

.btn-custom-buscar {
    background-color: #66a182; 
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-custom-buscar:hover {
    background-color: #97d67c; 
    transform: scale(1.05);
}

.btn-custom-fisico {
    background-color: #66a182; 
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-custom-fisico:hover {
    background-color: #437d8e; 
    transform: scale(1.05);
}

.btn-custom-tabla {
    background-color: #66a182; 
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-custom-tabla:hover {
    background-color: #66a182; 
    transform: scale(1.01);
}

.btn-edit-custom {
    background-color: #a06d33;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 16px;
    transition: background-color 0.3s ease;
}

.btn-edit-custom:hover {
    background-color: #73c097;
}

.btn-delete-custom {
    background-color: #a06d33;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 16px;
    transition: background-color 0.3s ease;
}

.btn-delete-custom:hover {
    background-color: #68d89b
}

.btn-top-custom {
    background-color: #73c097 !important;
    color: white !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 8px 16px;
    transition: background-color 0.3s ease !important;
}

.btn-top-custom:hover {
    background-color: #3c9e47;
}

.active>.page-link, .page-link.active {
    z-index: 3;
    color: white;
    background-color:#66a182 ;
    border-color: #97d67c;
}

.pagination {
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.375rem;
    --bs-pagination-font-size: 1rem;
    --bs-pagination-color: #66a182 ;
    --bs-pagination-bg: #fff;
    --bs-pagination-border-width: 1px;
    --bs-pagination-border-color: #dee2e6;
    --bs-pagination-border-radius: 0.375rem;
    --bs-pagination-hover-color: #000000;
    --bs-pagination-hover-bg: #e9ecef;
    --bs-pagination-hover-border-color: #dee2e6;
    --bs-pagination-focus-color: #66a182 ;
    --bs-pagination-focus-bg: #e9ecef;
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(40, 85, 45, 0.845);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: #66a182 ;
    --bs-pagination-disabled-color: #6c757d;
    --bs-pagination-disabled-bg: #66a182 ;
    --bs-pagination-disabled-border-color: #66a182 ;
    display: flex;
    padding-left: 0;
    list-style: none;
}
 /* Estilo para el botón "Volver al Top" */
 @keyframes bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none; 
    z-index: 1000; 
    animation: bounce 1.5s infinite;
}
/* Estilos del loader (pantalla completa) */
#loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Que esté sobre todo */
}

/* Animación del spinner */
#loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: #ffffff; /* Puedes cambiar el color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-img {
    width: 250px; /* Ajusta el tamaño de la imagen */
    height: 250px; /* Para que la imagen sea visible, establece una altura */
    background-image: url('/images/Logo_vivero.png'); 
    background-size: contain; /* Ajusta la imagen al contenedor */
    background-repeat: no-repeat;
    background-position: center;
    animation: fadeIn 1.5s infinite alternate;
}

/* Animación de brillo */
@keyframes fadeIn {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}


/* Ajustes generales para pantallas pequeñas */
@media (max-width: 78px) {
    /* Texto de bienvenida */
    #bienvenido {
        font-size: 50px; /* Reducir tamaño en móviles */
    }

    /* Sección inicial */
    .seccion-inicial {
        height: 30vh; /* Reducir altura en móviles */
    }

    /* Footer */
    footer {
        font-size: 14px; /* Reducir tamaño de fuente */
        padding-top: 20px; /* Ajustar padding */
    }

    /* Tablas */
    .tabla-angosta {
        width: 100%; /* Ocupar todo el ancho en móviles */
    }

    /* Botones */
    .btn-custom-agregar, .btn-custom-buscar, .btn-custom-fisico, .btn-custom-tabla {
        padding: 8px 12px; /* Ajustar padding en móviles */
        font-size: 14px; /* Reducir tamaño de fuente */
    }

    /* Carrusel */
    .carrusel {
        width: 100%; /* Ocupar todo el ancho en móviles */
        height: 200px; /* Reducir altura */
    }

    .carrusel-btn {
        padding: 8px 12px; /* Ajustar tamaño de botones */
        font-size: 18px; /* Reducir tamaño de fuente */
    }

    /* Texto de inicio y medio */
    .texto-de-inicio, .texto-de-medio {
        font-size: 24px; /* Reducir tamaño de fuente */
    }

    .texto-de-inicio::after, .texto-de-medio::after {
        width: 80%; /* Ajustar ancho de la línea */
    }

    /* Imágenes */
    .imagen-alta-vivero, .imagen-media-vivero {
        width: 100%; /* Ocupar todo el ancho en móviles */
        height: auto; /* Ajustar altura automáticamente */
    }

    /* Cuadros de contenido */
    .cuadro-1-vivero-ini, .cuadro-2-vivero-ini, .cuadro-3-vivero-ini {
        min-height: auto; /* Ajustar altura automáticamente */
        padding: 20px 10px; /* Ajustar padding */
    }

    /* Modal */
    .modal-dialog {
        max-width: 90%; /* Ocupar más ancho en móviles */
    }
}

/* Ajustes para pantallas medianas (tablets) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Texto de bienvenida */
    #bienvenido {
        font-size: 60px; /* Tamaño intermedio */
    }

    /* Sección inicial */
    .seccion-inicial {
        height: 40vh; /* Altura intermedia */
    }

    /* Imágenes */
    .imagen-alta-vivero, .imagen-media-vivero {
        width: 45%; /* Dos imágenes por fila */
    }

    /* Carrusel */
    .carrusel {
        width: 80%; /* Ancho intermedio */
        height: 250px; /* Altura intermedia */
    }

    /* Texto de inicio y medio */
    .texto-de-inicio, .texto-de-medio {
        font-size: 28px; /* Tamaño intermedio */
    }
}

/* Ajustes para pantallas grandes (escritorios) */
@media (min-width: 1025px) {
    /* Texto de bienvenida */
    #bienvenido {
        font-size: 80px; /* Tamaño completo */
    }

    /* Sección inicial */
    .seccion-inicial {
        height: 50vh; /* Altura completa */
    }

    /* Imágenes */
    .imagen-alta-vivero, .imagen-media-vivero {
        width: 30%; /* Tres imágenes por fila */
    }

    /* Carrusel */
    .carrusel {
        width: 450px; /* Ancho completo */
        height: 300px; /* Altura completa */
    }

    /* Texto de inicio y medio */
    .texto-de-inicio, .texto-de-medio {
        font-size: 35px; /* Tamaño completo */
    }
}

/* Ajustes específicos para el loader */
@media (max-width: 78px) {
    #loader {
        background-color: rgba(255, 255, 255, 0.95); /* Fondo más claro */
    }

    .loader-img {
        width: 150px; /* Reducir tamaño de la imagen */
        height: 150px;
    }
}

/* Ajustes para el botón "Volver al Top" */
@media (max-width: 78px) {
    #back-to-top {
        bottom: 20px; /* Ajustar posición */
        right: 20px;
        padding: 6px 12px; /* Reducir padding */
        font-size: 14px; /* Reducir tamaño de fuente */
    }
}