* {

    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1024px;
    margin: 0 auto;
}

.container {
    width: 94%;
    text-align: center;
    margin: 0 auto;
}

.container h1 {
    font-size: 1.15em;
    /*! padding: 4px; */
    color: #2e9fc1;
}

/* Grid system simple */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-4 {
    flex: 0 0 30%;
    max-width: 100%;
    /*! padding: 0 5px; */
    margin-bottom: 1rem;
    margin-left: 1.9%;
}

@media (max-width: 768px) {
    .col-md-4 {
        flex: 0 0 45%;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Cards */
.card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 2px 2px 1px rgb(255 118 118);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    width: 100%;
    height: 150px;
    /* object-fit: cover; */
}

.card-body {
    padding: 1px;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 0;
    /*! color: #2c3e50; */
    /*! float: left; */
    /* margin-right: 12%; */
    margin-top: 0;
}

.card-text {
    color: #9f9c9c;
    margin: 0;
    font-size: 0.9em;
}

/* Botones */
.btn {
    display: block;
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    /* text-align: center; */
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin: 4px;
}

.btn-primary {
    background-color: #6abbd3;
    color: white;
}

.btn-primary:hover {
    background-color: #c0392b;
}






/* Estilos para los botones de navegación */
.navigation-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
}

.nav-btn {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.4);
}

.nav-icon {
    font-size: 16px;
    font-weight: bold;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: white;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}


/* Estilos para show.blade.php */

.image-link {
    display: block;
    transition: transform 0.3s ease;
}

.image-link:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.img-thumbnail {
    border: 3px solid #dee2e6;
    transition: border-color 0.3s ease;
}

.image-link:hover .img-thumbnail {
    border-color: #e74c3c;
}


/* Contenedor principal de la galería */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
    margin: 0 auto;
    max-width: 1400px;
    width: 100%;
}

/* Items de la galería */
.gallery .col-md-3 {
    width: 100% !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* Enlaces de las imágenes */
.gallery .image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery .image-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Imágenes */
.gallery .img-thumbnail {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border: none !important;
    border-radius: 12px !important;
    transition: transform 0.3s ease;
}

.gallery .image-link:hover .img-thumbnail {
    transform: scale(1.05);
}

/* Responsive para tablets */
@media (max-width: 992px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        padding: 15px;
    }

    .gallery .img-thumbnail {
        height: 180px !important;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
        padding: 12px;
    }

    .gallery .img-thumbnail {
        height: 150px !important;
    }
}

/* Móviles muy pequeños */
@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .gallery .img-thumbnail {
        height: 120px !important;
    }
}

/* Botón de volver */
.btn-secondary {
    margin: 20px;
    background: linear-gradient(45deg, #ffaa3d, #38aaff);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    color: #171616;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, #098405, #f4dc7b);
    background-color: rgba(0, 0, 0, 0);
    background-color: green;
    color: yellow;
}

.clean {
    clear: both;
}