/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

.gallery-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #003aad;
    color: white;
    z-index: 1000;
}

.bigtextarea{
    height: 400px;
}

.navbar-container {
    height: 75px;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    height: 55px;
    display: block;
}

.navbar-links {
    display: flex;
    align-items: center;
}

.navbar-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}

.navbar-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0a58ca;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.og {
    image-rendering: pixelated;
    /* Para la mayoría de navegadores modernos */
    image-rendering: -moz-crisp-edges;
    /* Firefox */
    image-rendering: -o-crisp-edges;
    /* Opera */
}


.navbar-links a:hover {
    color: #99B9FF;
}

.navbar-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.burger-icon {
    display: none;
}


@media (max-width: 898px) {
    .navbar-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 75px;
        /* Height of the navbar */
        left: 0;
        width: 100%;
        background-color: #003aad;
    }

    .navbar-links.active {
        display: flex;
    }

    .navbar-links a {
        padding: 15px;
        border-bottom: 1px solid white;
        width: 100%;
        text-align: center;
    }

    .burger-icon {
        display: block;
        cursor: pointer;
        color: white;
    }
}

@media (max-width: 768px) {


    .slide {
        padding-left: 0;
        /* Elimina el padding izquierdo */
        align-items: center !important;
        text-align: center !important;
    }

    .slide h3 {
        font-size: 20px !important;
        text-align: center !important;
    }

    .slide p {
        font-size: 10px !important;
        text-align: center !important;
    }
}

/* Slider */
.slider-container {
    height: 800px;
    position: relative;
    overflow: hidden;
}

.slider {
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 1 0 100%;
    display: flex;
    flex-direction: column;
    /* Apilar elementos verticalmente */
    justify-content: center;
    /* Alinear elementos al inicio verticalmente */
    align-items: flex-start;
    /* Alinear elementos al inicio horizontalmente (izquierda) */
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-align: left;
    padding-left: 10%;
    background-size: cover;
    background-position: center;
}

.slide h3,
.slide p {
    margin-top: 5px;
    font-weight: bold;
    color: white;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.slide h3 {

    font-size: 35px;
}

.slide h1,
.slide h2 {

    font-size: 35px;
    margin-top: 5px;
    font-weight: bold;
    color: white;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.slide h2 {

    font-size: 30px;
    margin-top: 5px;
    font-weight: bold;
    color: white;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.slide p {
    font-size: 16px;
}

.slide:nth-child(1) {
    background-image: url('/images/1995853.webp');
}

.slide:nth-child(2) {
    background-image: url('/images/bm_sprinkler_v4_small.webp');
}

.slide:nth-child(3) {
    background-image: url('/images/8544454.webp');
}

.slide:nth-child(4) {
    background-image: url('/images/garotecnia-2023-banner-home4_1920-1080.png');
}

@media not all and (min-resolution:.001dpcm) {

    /* CSS specific to iOS devices */
    .slide:nth-child(1),
    .slide:nth-child(2),
    .slide:nth-child(3),
    .slide:nth-child(4) {
        background-attachment: scroll;
        /* Override to scroll */
    }
}

.navigation {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 15px;
    height: 15px;
    border: 2px solid white;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

.history {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    padding: 30px 20px;
    box-sizing: border-box;
    max-width: 1024px;
    margin: 0 auto;

}

/* Sección de Servicios */
.services-section,
.services-section-first {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    padding: 30px 20px;
    box-sizing: border-box;

}

.service {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 300px;
    max-width: 400px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service .icon {
    margin-bottom: 20px;
}

.service .icon i {
    font-size: 50px;
}

.service h3 {
    margin-bottom: 15px;
    font-size: 27px;
    color: #0055b8;
    padding: 20px;
}

.service p {
    margin-top: auto;
    margin-bottom: 20px;
    text-align: justify;
    font-size: 16px;
}

.service2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    flex: 1 1 300px;
    max-width: 400px;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    min-height: 350px;
    /* Ajustar según sea necesario */
}

.service2 h3 {
    font-size: 27px;
    color: #0055b8;
    padding: 20px;
    min-height: 60px;
    /* Asegurar que todos los títulos ocupen lo mismo */
}

.service2 p {
    text-align: justify;
    font-size: 16px;
    min-height: 70px;
    /* Asegurar que todos los párrafos tengan la misma altura */
}

.service2 img {
    margin-top: auto;
    /* Empuja la imagen hacia abajo */
    border-radius: 50%;
}

.service3 {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 300px;
    max-width: 400px;
    border-radius: 10px;
    padding: 20px;
}

.service3 h3 {
    font-size: 27px;
    color: white;
    padding: 20px;
}

.service3 img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.service3 p {
    margin-top: auto;
    margin-bottom: 20px;
    text-align: justify;
    font-size: 16px;
}

.service4 {
    flex: 1 1 calc((100% - 60px) / 4);
    max-width: calc((100% - 60px) / 4);
    box-sizing: border-box;
    text-align: center;
    padding: 10px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    padding: 20px;
    max-width: 320px;
}

.service4 h3 {
    font-size: 27px;
    color: white;
    padding: 20px;
}

.service4 p {
    margin-top: auto;
    margin-bottom: 20px;
    text-align: center;
    font-size: 16px;
}

.service4 img {
    max-width: 100%;
    height: auto;
}

/* Sección Moving */
.services-section-moving {
    overflow: hidden;
    width: 100%;
    height: 150px;
}

.image-container {
    display: flex;
    align-items: center;
}

.service3-moving {
    flex-shrink: 0;
    text-align: center;
    padding: 10px;
}

.service3-moving img {
    display: block;
    height: 80px;
    width: auto;
}

/* Fixed Background */
.fixed-background {
    position: relative;
    height: 300px;
    background-image: url('/images/bannerslider.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Fixed Background */
.fixed-background-title {
    position: relative;
    height: 80px;
    background-image: url('/images/bannerslider.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.fixed-background p {
    max-width: 1900px;
}

.content {
    padding: 20px;
    border-radius: 10px;
}

.content h2 {
    font-size: 39px;
}

.content p {
    font-size: 28px;
}

/* Footer */
footer {
    background-color: #002a8f;
    color: white;
    padding: 20px;
    font-family: Arial, sans-serif;
}

footer div {
    margin: 10px;
}

footer a {
    color: white;
    text-decoration: none;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer h3 {
    margin-bottom: 10px;
}

footer p {
    margin: 5px 0;
}

/* Separador */
.separator {
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, #002a8f, #003f8a);
    border-radius: 10px;
    margin: 20px auto;
}

@media (max-width: 1240px) {

    .service4 {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(20% - 20px);
    }

    .service4 h3 {
        font-size: 20px;
    }

    .service4 p {
        font-size: 15px;
    }


}

/* Media Queries */
@media (max-width: 1040px) {

    .service2 img {
        height: 120px;
        width: 120px;
    }

    .service2 h3 {
        font-size: 20px;
    }
}

/* Media Queries */
@media (max-width: 1024px) {

    .service,
    .service2,
    .service3 {
        flex: 1 1 calc(100% - 40px);
        max-width: calc(100% - 40px);
    }

    /* Mantener 4 elementos en service4 */
    .service4 {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {

    .service,
    .service2,
    .service3 {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* Ajustar service4 a 2 elementos por fila */
    .service4 {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .slider-container {
        height: 400px;
    }


    .slide {
        font-size: 18px;
        padding-left: 10px;
    }

    .fixed-background {
        height: 200px;
    }

    .content h2 {
        font-size: 28px;
    }

    .content p {
        font-size: 20px;
    }


    .navbar-logo img {
        height: 40px;
    }

    /* Ajustes para sección moving */
    .services-section-moving {
        height: 100px;
    }

    .service3-moving img {
        height: 60px;
    }

}

@media (max-width: 480px) {
    .navbar-logo img {
        height: 30px;
    }

    .slide {
        font-size: 14px;
        padding-left: 5px;
    }

    .content h2 {
        font-size: 22px;
    }

    .content p {
        font-size: 16px;
    }

    .slider-container {
        height: 300px;
    }

    .service,
    .service2,
    .service3,
    .service4 {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* Ajustar service4 a una columna */
    .service4 {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* Ajustes para sección moving */
    .services-section-moving {
        height: 80px;
    }

    .service3-moving img {
        height: 50px;
    }
}


.news-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.news-post {
    background: white;
    border-radius: 10px;
    margin-bottom: 30px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.news-post:hover {
    transform: scale(1.02);
}

.news-post h2 {
    font-size: 22px;
    color: #003aad;
    margin-bottom: 10px;
}

.news-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.news-meta i {
    margin-right: 5px;
}

.news-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.news-post-img img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}


.news-post p {
    font-size: 16px;
    text-align: justify;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #003aad;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.read-more:hover {
    background-color: #002a8f;
}

@media (max-width: 768px) {
    .news-section {
        padding: 10px;
    }

    .news-post {
        padding: 15px;
    }

    .news-post h2 {
        font-size: 20px;
    }

    .news-meta {
        font-size: 12px;
    }

    .news-post p {
        font-size: 14px;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

#newsModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 60%;
    max-width: 600px;
    position: relative;
}


.modal-content h2 {
    color: #003aad;
}

.modal-content img {
    width: 100%;
    border-radius: 10px;
    margin: 10px 0;
}

.modal-content p {
    font-size: 16px;
    text-align: justify;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
}

/* Estilos de Noticias */
.news-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.news-post {
    background: white;
    border-radius: 10px;
    margin-bottom: 30px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.news-post:hover {
    transform: scale(1.02);
}

.news-post h2 {
    font-size: 22px;
    color: #003aad;
}

.news-meta {
    font-size: 14px;
    color: #777;
}

.news-post img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    padding: 8px 15px;
    background-color: #003aad;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    cursor: pointer;
}

.read-more:hover {
    background-color: #002a8f;
}

.thumbnail {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.thumbnail:hover {
    transform: scale(1.1);
}

.thumbnail.active {
    border: 3px solid #003aad;
}


/* Sección de Contacto */
.contact-section {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cf-container h2 {
    margin-bottom: 20px;
    color: #003aad;
}

.cf-container label {
    display: block;
    text-align: left;
    margin: 10px 0 5px;
    font-weight: bold;
}

.cf-container input,
.cf-container select,
.cf-container textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.cf-container button {
    background-color: #003aad;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
}

.cf-container button:hover {
    background-color: #002a8f;
}

/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    max-width: 400px;
}

.modal button {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.modal button:hover {
    background-color: #0056b3;
}

.container {
    width: 60%;
    background: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.row img {
    width: 45%;
    border-radius: 8px;
}

.text {
    width: 45%;
    font-size: 1.1em;
    color: #333;
}

.error-404-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
    text-align: center;
}

.error-container {
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    color: white;
}

.error-container img {
    width: 100%;
    max-width: 250px;
    margin-bottom: 20px;
}

.glitch {
    position: relative;
    display: inline-block;
}

.glitch img {
    display: block;
    width: 100%;
}

.glitch::before,
.glitch::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/favicon.png');
    mix-blend-mode: screen;
    opacity: 0.7;
}

.glitch::before {
    animation: glitch1 0.5s infinite alternate;
    transform: translate(-2px, -2px);
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.glitch::after {
    animation: glitch2 0.5s infinite alternate;
    transform: translate(2px, 2px);
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
}

@keyframes glitch1 {
    0% {
        transform: translate(-2px, -2px);
    }

    100% {
        transform: translate(2px, 0px);
    }
}

@keyframes glitch2 {
    0% {
        transform: translate(2px, 2px);
    }

    100% {
        transform: translate(-2px, 0px);
    }
}


.error-container h2 {
    font-size: 32px;
    color: #003aad;
    margin-bottom: 10px;
}

.error-container p {
    font-size: 18px;
    margin-bottom: 20px;
}

.error-container .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #003aad;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.error-container .btn:hover {
    background-color: #002a8f;
}


.error-404 {
    background-image: url("/images/garotecnia-banner-home2-1080.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}



.login-container {
    max-width: 400px;
    margin: 120px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-form h2 {
    margin-bottom: 20px;
    color: #003aad;
}

.login-form label {
    display: block;
    text-align: left;
    margin: 10px 0 5px;
    font-weight: bold;
}

.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.login-form button {
    background-color: #003aad;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
}

.login-form button:hover {
    background-color: #002a8f;
}

.gallery-item {
    background: #fff;
    margin: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-item {
    background: #fff;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.news-item input,
.news-item textarea,
.gallery-item input {
    margin: 5px 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn-primary {
    margin-top: 20px;
    background-color: #003aad;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.btn-danger {
    margin-top: 10px;
    background: red;
    color: white;
    padding: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


.news-inline {
    width: 100%;
}

#image-upload-0 {
    width: 300px;
}

/* Estilos para la sección de subida de imagen */
.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.upload-section input[type="file"],
.upload-section input[type="text"] {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.upload-section button {
    background: #00489e;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.upload-section button:hover {
    background: #003f7f;
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    /* Se adapta al ancho */
    gap: 15px;
    padding: 20px;
    justify-content: center;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    aspect-ratio: 1/1.2;
    /* Ajuste ligero para compensar el texto */
    padding: 10px;
    border-radius: 8px;
}

.img-item {
    width: 100%;
    aspect-ratio: 1/1;
    /* Mantiene la imagen cuadrada */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    /* Suaviza la animación */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-item p {
    min-height: 40px;
    /* Fijar altura mínima para evitar saltos */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}


.img-item:hover {
    transform: scale(1.05);
    border-radius: 8px;
    cursor: pointer;
}

/* Modal general */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Animación de apertura */
.image-modal.show {
    display: flex;
    opacity: 1;
}

/* Contenido del modal */
.modal-content-img {
    position: relative;
    max-width: 60vw;
    animation: fadeIn 0.3s ease-in-out;
}

/* Imagen dentro del modal */
.modal-content-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}



/* Animación de entrada */
@keyframes fadeIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Contenedor del modal */
.modal-content {
    position: relative;
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.modal-content-img {
    position: relative;
    width: 60rem;
    animation: fadeIn 0.3s ease-in-out;
    user-select: none;
}

.modal-content h3 {
    margin-top: 10px;
    font-size: 18px;
}


/* Botón para cerrar el modal */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #000;
}

.close-btn:hover {
    color: #ff4d4d;
}

/* Botón de cerrar */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 0, 0, 0.7);
}


.gallery-item input {
    margin-top: 20px;
    width: 100%;

}

.cookie-popup,
.cookie-settings {
    display: none;
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 350px;
    text-align: center;
}
.cookie-advanced{
    
    height: 200px !important;
}

.cookie-popup p,
.cookie-settings h3 {
    font-size: 14px;
    color: #333;
}

.cookie-buttons {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.cookie-buttons button {
    background-color: #003aad;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    flex: 1;
    margin: 5px;
}

.cookie-buttons button:hover {
    background-color: #002a8f;
}

/* Estilos para el modal */
.cookie-settings {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    max-width: 400px;
}

.cookie-settings label {
    display: block;
    margin: 10px 0;
    font-size: 14px;
    text-align: left;
}