/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Helvetica, sans-serif;
}
/*para los botones de mover img de aliados*/
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.empresas-colaboradoras {
    padding: 20px 0;
    overflow: hidden;
}

.empresas-colaboradoras h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.logos-container-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.logos-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
}

.logos-container::-webkit-scrollbar {
    display: none;
}

.logo-item {
    flex: 0 0 auto;
    margin: 0 15px;
    transition: transform 0.3s ease;
    scroll-snap-align: center;
}

.logo-item img {
    max-width: 100px;
    height: auto;
    object-fit: contain;
}

.logo-item:hover {
    transform: scale(1.05);
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(138, 24, 26, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    z-index: 10;
}

.scroll-btn:hover {
    background-color: rgba(167, 29, 32, 0.8);
}

.scroll-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prev-btn {
    left: 5px;
}

.next-btn {
    right: 5px;
}

.scroll-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.scroll-btn:focus:not(:focus-visible) {
    outline: none;
}

@media (max-width: 768px) {
    .empresas-colaboradoras h2 {
        font-size: 20px;
    }

    .logos-container-wrapper {
        padding: 0 30px;
    }

    .logo-item {
        margin: 0 10px;
    }

    .logo-item img {
        max-width: 80px;
    }

    .scroll-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
        display: none !important;
    }
}

@media (max-width: 480px) {
    .empresas-colaboradoras h2 {
        font-size: 18px;
    }

    .logos-container-wrapper {
        padding: 0 25px;
    }

    .logo-item {
        margin: 0 8px;
    }

    .logo-item img {
        max-width: 60px;
    }

    .scroll-btn {
        width: 26px;
        height: 26px;
        font-size: 14px;
        opacity: 0.8;
        display: none !important;
    }
}



/* Text Animation Styles */
.content h1,
.content p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.content.active h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.content.active p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* Content Visibility */
.content {
    display: none;
}

.content.active {
    display: block;
}

/* Gallery Section Styles */
.galeria-imagenes {
    padding: 60px 20px;
    background-color: rgb(255, 255, 255);
    text-align: center;
}

.galeria-imagenes h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: rgb(138, 24, 26);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.imagenes-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styles */
header {
    background: rgb(138, 24, 26);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 1rem;
    width: 100%;
    transition: all 0.3s ease;
}


.navegador {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    width: 150px; 
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

/* Navigation Links Styles */
.links {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.links li {
    list-style: none;
}

.links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.links a .icon {
    margin-right: 5px;
    margin-top: 5px;
}

.links a .link-text {
    display: inline;
}

.links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.links a:hover::after {
    width: 100%;
}

.iso-logo {
    width: 100%;             /* Hace que el logo se ajuste al ancho del contenedor */
    max-width: 500px;        /* Asegura que el logo no se haga más grande que 500px */
    height: auto;            /* Mantiene la proporción del logo */
    display: block;          /* Elimina el espacio en línea alrededor de la imagen */
    margin: 10px auto;       /* Agrega espacio arriba y abajo, y centra el logo horizontalmente */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Agrega una sombra sutil para darle profundidad */
    border-radius: 8px;      /* Bordes redondeados para darle un toque más suave */
}


/* Footer Styles */
.footer {
    background-color: #282d30;
    color: rgb(167, 168, 169);
    text-align: center;
    padding: 3px 0;
    font-size: 14px;
    position: relative;
    bottom: 0;
    width: 100%;
    border-top: 3px solid rgb(138 24 26); 
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin-top: auto;
}

.footer p {
    margin: 0;
    font-family: sans-serif;
}

/* Body and General Styles */
body {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
    text-align: justify;
}

a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
}

/* Additional Navigation Styles */
.navegador {
    width: 100%;
    height: 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.navegador .links {
    display: flex;
    gap: 2rem;
}

header .brand {
    color: rgb(255, 255, 255);
    font-size: 1.5em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
}

header .navegador .navegador-items a {
    position: relative;
    color: rgb(255, 255, 255);
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    margin-left: 30px;
    transition: 0.3s ease;
}

header .navegador .navegador-items a:before {
    content: "";
    position: absolute;
    background-color: rgb(255, 255, 255);
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    transition: 0.3s ease;
}

header .navegador.active .navegador-items {
    background: rgb(255, 255, 255);
    width: 100%;
    max-width: 600px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgb(255, 255, 255);
}

header .navegador .navegador-items a:hover:before {
    width: 100%;
}

/* Section Styles */
section {
    padding: 100px 200px;
}

/* Home Section Styles */
.home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    background-color: rgb(138, 24, 26);
    overflow: hidden;
}

.home:before {
    z-index: 777;
    content: '';
    position: absolute;
    background: rgba(65, 6, 6, 0.5);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.home .content {
    z-index: 888;
    color: rgb(255, 255, 255);
    width: 70%;
    margin-top: 20px;
}

.home .content h1 {
    font-size: 4em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    line-height: 75px;
    margin-bottom:  40px;
}

.home .content h1 span {
    font-size: 1.2em;
    font-weight: 600;
}

.home .content p {
    margin-bottom: 40px;
}

.home .content a {
    background: #A7A8A9;
    padding: 15px 35px;
    color: aqua;
    font-size: 1.1em;
    font-weight: 500;
    text-decoration: none;
    border-radius: 2px;
}

/* Media Icons Styles */
.home .media-icons {
    z-index: 888;
    position: absolute;
    right: 30px;
    display: flex;
    flex-direction: column;
    transition: 0.5s ease;
}

.home .media-icons a {
    color: #fff;
    font-size: 1.6em;
}

.home .media-icons a:not(:last-child) {
    margin-bottom: 20px;
}

.home .media-icons a:hover {
    transform: scale(1.3);
}

/* Video Slide Styles */
.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: circle(0% at 50%);
    transition: clip-path 2s ease;
}

.video-slide.active {
    clip-path: circle(150% at 50%);
}

/* Slider Navigation Styles */
.slider-navegador {
    z-index: 888;
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.nav-btn {
    width: 12px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-navegador .nav-btn {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
    transition: 0.3s ease;
}

.slider-navegador .nav-btn:not(:last-child) {
    margin-right: 20px;
}

.slider-navegador .nav-btn:hover {
    transform: scale(1.2);
}

.slider-navegador .nav-btn.active {
    background-color:#000000;
}

/* Card Styles */
.card {
    width: 150px;
    height: 150px;
    perspective: 1000px;
    margin: 10px;
    position: relative;
}

.card .front, 
.card .back {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    position: absolute;
    backface-visibility: hidden;
    transition: transform 0.8s ease;
}

.card .front {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}

.card .front img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 15px; /*logos en las cartas*/
}

.card .back {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(138, 24, 26);
    color:aliceblue;
    font-size: 1em;
    text-align: center;
    border-radius: 15px;
    transform: rotateY(180deg);
}

.card:hover .front {
    transform: rotateY(180deg);
}

.card:hover .back {
    transform: rotateY(0deg);
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.close {
    color: #A7A8A9;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Arrow Indicators for Desktop */
.arrow-indicators {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.arrow {
    font-size: 30px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    cursor: pointer;
    pointer-events: auto;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Card Container Styles */
.card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.card-text {
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
    color: #8a181a;
}

/* Collaborating Companies Section Styles */
.empresas-colaboradoras {
    overflow: hidden;
    padding: 50px 0;
    background-color: white;
}

.empresas-colaboradoras h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: rgb(138, 24, 26);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    font-weight: bold;
}

.logos-container-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    width: 1800px; /* Ajusta el tamaño a lo que necesites oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo*/
}

.logos-container {
    display: flex;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding: 20px 0;
    overflow-x: hidden; /* Cambia scroll a hidden para no mostrar las barras de desplazamiento */
    white-space: nowrap;
}
.logo-item {
    flex: 0 0 auto;
    /* Ajusta estos valores según sea necesario */
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.logo-item:hover {
    transform: scale(1.1);
}

.logos-container::-webkit-scrollbar {
    display: none;
}

.logos-container:active {
    cursor: grabbing;
}

.logo-item {
    flex: 0 0 auto;
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 1px;
    box-shadow: 0 2px 10px rgb(255, 255, 255);
    transition: transform 0.3s ease;
    min-width: 200px;
    width: 150px; /* Ajusta el tamaño a lo que necesites */
    height: auto; /* Mantiene la proporción de la imagen */
}

.logo-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.logo-item img {
    max-height: 200px;
    max-width: 100px;
    padding: 15px;
    object-fit: contain;
    user-select: none;
/*he puesto algun que otro codigo este es uno de ellos, si lo dejo es pq si quedo*/
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-button { 
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color:  rgb(177, 31, 33);
    border: 1px solid #282d30;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-button:hover {
    background-color: rgb(241, 44, 47);
}

.prev-button {
    left: 10px;
    color: aliceblue; /*color de las flechitas*/
}

.next-button {
    right: 10px;
    color: aliceblue; /*color de las flechitas*/
}

/* Map Section Styles */
#mapa {
    position: relative;
    margin-top: 2rem;
}

#map {
    width: 50%;
    height: 2px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 10px;
    z-index: 10;
}

/* Animation Styles */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos para pantallas grandes */
@media (min-width: 1441px) {
    .empresas-colaboradoras {
        padding: 100px 0;
    }

    .empresas-colaboradoras h2 {
        font-size: 3rem;
        margin-bottom: 50px;
    }

    .logo-item img {
        max-height: 100px;
        max-width: 220px;
    }
}

/* Estilos para pantallas medianas */
@media (max-width: 1440px) and (min-width: 769px) {
    .empresas-colaboradoras {
        padding: 80px 0;
    }

    .empresas-colaboradoras h2 {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .logo-item img {
        max-height: 90px;
        max-width: 200px;
    }
}

/* Estilos para tablets */
@media (max-width: 768px) and (min-width: 481px) {
    .empresas-colaboradoras {
        padding: 60px 0;
    }

    .empresas-colaboradoras h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .logos-container-wrapper {
        padding: 0 50px;
    }

    .logo-item {
        margin: 0 20px;
        min-width: 150px;
    }

    .logo-item img {
        max-height: 400px;
        max-width: 160px;
    }

    .nav-button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Estilos para móviles */
@media (max-width: 480px) {
    .empresas-colaboradoras {
        padding: 40px 0;
    }

    .navegador{
        gap: 50px;
    }
    .navegador .links {
        gap: 20px; /* Reduce el espacio entre los elementos */
    }

    .links a {
        font-size: 0.8rem; /* Opcional: reduce el tamaño de la fuente para que ocupen menos espacio */
    }

    .empresas-colaboradoras h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .logos-container-wrapper {
        padding: 0 40px;
    }

    .logo-item {
        margin: 0 15px;
        min-width: 120px;
    }

    .logo-item img {
        max-height: 150px;
        max-width: 150px;
    }

    .nav-button {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
}
/* Media queries for responsive design */

@media screen and (min-width: 1920px) {
    body {
        font-size: 24px;
    }

    .navegador {
        max-width: 2500px;
        height: 120px;
    }

    .brand-logo {
        width: 300px;
    }

    .links a {
        font-size: 3rem;
    }

    .links a i {
        font-size: 2.5rem;
    }

    .home .content h1 {
        font-size: 3em;
    }

    .home .content h3 {
        font-size: 2em;
    }

    .home .content p {
        font-size: 2em;
    }

    .galeria-imagenes h2 {
        font-size: 4em;
    }

    .card {
        width: 300px;
        height: 300px;
    }

    .card .back p {
        font-size: 3em;
    }

    .footer p {
        font-size: 2.5em;
    }

}

@media (max-width: 768px) {
    .home .media-icons {
        flex-direction: row;
        bottom: 60px;
        right: 0;
        left: 0;
        justify-content: center;
    }

    .home .media-icons a {
        margin: 0 10px;
        font-size: 2em;
    }

    .slider-navegador {
        bottom: 20px;
    }

    .arrow-indicators {
        display: block;
    }

    #mapa {
        padding: 3rem 2rem;
    }

    .map-container {
        padding-bottom: 50%; /* Adjust aspect ratio for larger screens */
    }

    .links a {
        flex-direction: column;
        align-items: center;
    }

    .links a .icon {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .links a .link-text {
        display: block;
        font-size: 0.7rem;
    }
    .brand-logo {
        width: 130px;
    }
}

@media (max-width: 720px) {
    section {
        padding: 100px 20px;
    }

    .home .media-icons {
        right: 15px;
    }

    .video-slide {
        object-fit: cover;
    }

    .home .content {
        margin-top: 50px;
        flex: 0 0 100%;
        scroll-snap-align: start;
        width: 100%;
        min-width: 100%;
    }

    .home .content h1 {
        font-size: 2.5em;
        line-height: 50px;
    }

    header .navegador.active {
        position: fixed;
        width: 100%;
        height: 100vh;
        top: 0;
        left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        background: rgba(1, 1, 1, 0.5);
    }

    header .navegador .navegador-items a {
        color: #222;
        font-size: 1.2em;
        margin: 20px;
    }

    header .navegador.active .navegador-items {
        background: #fff;
        width: 600px;
        max-width: 600px;
        margin: 20px;
        padding: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        border-radius: 5px;
        box-shadow: 0 5px 25px rgb(1 1 1 / 20%);
    }

    header .navegador .navegador-items a:before {
        background: #222;
        height: 5px;
    }

    .home {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .brand-logo {
        width: 100px;
    }
}

@media (max-width: 600px) {
    .brand-logo {
        width: 100px;
    }

    .links {
        gap: 5px;
    }

    .links li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.7rem;
        padding: 5px;
    }

    .links li a .icon {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }

    .links li a .link-text {
        display: block;
    }

    .h1 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        width: 100px;
    }

    .links li a {
        padding: 1px;
    }

    .links li a .icon {
        font-size: 1rem;
    }
    .links {
        display: flex;
        gap: 5px;
        margin: 0;
        padding: 0;
    }
    .links a .icon {
        font-size: 1rem;
    }

    .links a .link-text {
        font-size: 0.6rem;
    }
}
.empresas-colaboradoras {
    position: relative;
}

.logos-container {
    display: flex;
    overflow-x: hidden;
    white-space: nowrap;
}

.logo-item {
    flex: 0 0 auto;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.logo-item:hover {
    transform: scale(1.1);
}

.scroll-controls {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.scroll-controls button {
    margin: 0 5px;
    padding: 5px 10px;
    background-color: #8a181a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.scroll-controls button:hover {
    background-color: #a71d20;
}

@media (max-width: 768px) {
    .scroll-controls {
        flex-direction: column;
        align-items: center;
    }

    .scroll-controls button {
        margin: 5px 0;
        width: 100%;
    }
}
/*apartir de aca es para el mapita */
#mapa {
    position: relative;
    margin-top: 2rem;
}
#map {
    width: 50%;
    height: 2px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 10px;
    z-index: 10;
}

/* New styles for animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/*estilos para el coso explicativo*/
.card-container {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-container:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.info-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    font-size: 0.8em;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.card-container:hover .info-hint {
    transform: translateY(0);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.card-container:hover .card {
    animation: pulse 1s infinite;
}
.card-container {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
/*responsive de eso */
/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .galeria-imagenes {
        padding: 20px 10px;
    }

    .galeria-imagenes h2 {
        font-size: 1.5em;
    }

    .imagenes-container {
        gap: 15px;
    }

    .card-container {
        width: calc(50% - 15px);
        max-width: 200px;
    }

    .card {
        height: 150px;
    }

    .card-text {
        font-size: 0.9em;
    }

    .info-hint {
        transform: translateY(0);
        font-size: 0.8em;
        padding: 5px;
        background-color: rgba(0, 0, 0, 0.5);
    }

    /* Añadir un efecto de "toque" para dispositivos móviles */
    .card-container:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }

    /* Mostrar un indicador de "botón" en dispositivos móviles */
    .card-container::after {
        content: '\f0a6'; /* Código Unicode para un icono de "mano tocando" */
        font-family: 'Font Awesome 5 Free';
        position: absolute;
        top: 30%;
        left: 80%;
        transform: translate(-30%, -80%); /* Centrar el icono en ambas direcciones */
        font-size: 1.5em; /* Tamaño ajustado para hacerlo más visible */
        color: #000000;
        opacity: 0.8;
    }
    
}

/* Animación de pulso para llamar la atención */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.card-container:hover .card {
    animation: pulse 1s infinite;
}

/* Efecto Ripple */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #ffffff;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Estilos responsivos para el modal */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 15px;
    }
    .info-hint{
        display: none;
    }
    .modal-content h2 {
        font-size: 1.2em;
    }

    .modal-content p {
        font-size: 0.9em;
    }
}
/*footer nuevo*/
.footer {
    background-color: #282d30;
    color: #fff;
    padding: 50px 0 20px;
    font-family: Arial, sans-serif;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    margin-bottom: 20px;
    min-width: 200px;
}

.footer-logo {
    width: 250px;
    margin-bottom: 15px;
}

.about p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.contact-info span {
    display: block;
    margin-bottom: 10px;
}

.socials a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: #8a181a;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.socials a:hover {
    background-color: #a71d20;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #8a181a;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #8a181a;
}

.newsletter form {
    display: flex;
    margin-top: 15px;
}

.newsletter input[type="email"] {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.btn-subscribe {
    background-color: #8a181a;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-subscribe:hover {
    background-color: #a71d20;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3a3a3a;
    margin-top: 20px;
}

.servicios-dinamicos {
    background-color: white;
    padding: 2rem 1rem;
    overflow: hidden;
}

.container2 {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.titulo-animado {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    color: #8a181a;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
}

.imagen-container2 {
    position: relative;
    flex: 1;
    width: 100%;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-container {
    position: relative;
}

.carousel {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.servicio {
    display: flex;
    flex-direction: column;
    min-height: 425px;
}

.imagen-servicio {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.icono-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.icono-servicio {
    width: 100px;
    height: 100px;
    filter: brightness(0) invert(1);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.contenido-servicio {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    background-color: #8a181a;
    transition: background-color 0.3s ease;
}

.contenido-servicio:hover {
    background-color: #6a1315;
}

h3 {
    font-size: 1.875rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
}

p {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1.5rem;
}

.btn-mas-info {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    color: #8a181a;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    font-size: 1rem;
    margin-bottom: 20px;
}

.btn-mas-info:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.controles {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-anterior,
.btn-siguiente {
    background-color: white;
    color: #8a181a;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    position: absolute;
}

.btn-anterior {
    left: 1rem;
}

.btn-siguiente {
    right: 1rem;
}

.btn-anterior:hover,
.btn-siguiente:hover {
    background-color: #f3f4f6;
    transform: scale(1.1);
}

.indicadores {
    display: flex;
    gap: 0.5rem;
}

.indicador {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.indicador.activo {
    background-color: #000000;
}

.indicador:hover {
    transform: scale(1.2);
}

.info-adicional {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.info-adicional.visible {
    opacity: 1;
    transform: translateY(0);
}

.info-adicional h4 {
    font-size: 1.5rem;
    color: #8a181a;
    margin-bottom: 1rem;
}

.imagenes-adicionales {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.imagen-adicional {
    width: 100%;
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.imagen-adicional.visible {
    opacity: 1;
    transform: translateY(0);
}

.imagen-adicional img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.imagen-adicional:hover img {
    transform: scale(1.05);
}

.imagen-adicional p {
    padding: 0.75rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.btn-volver-arriba {
    background-color: #8a181a;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: background-color 0.3s, opacity 0.3s, transform 0.3s;
}

.btn-volver-arriba:hover {
    background-color: #6a1315;
}

.btn-volver-arriba.visible {
    opacity: 1;
    transform: translateY(0);
}

.imagen-carrusel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.imagen-carrusel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.btn-anterior-imagen,
.btn-siguiente-imagen {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    color: #8a181a;
    border: none;
    font-size: 2rem;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.btn-anterior-imagen:hover,
.btn-siguiente-imagen:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.btn-anterior-imagen {
    left: 10px;
}

.btn-siguiente-imagen {
    right: 10px;
}

@media (max-width: 640px) {
    .servicios-dinamicos {
        padding: 1.5rem 0;
    }

    .container2 {
        width: 90%;
        padding: 0 1rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .carousel-container {
        width: 100%;
    }

    .carousel {
        border-radius: 0;
    }

    .servicio {
        flex-direction: column;
    }

    .imagen-container2 {
        height: 200px;
        width: 100%;
    }

    .contenido-servicio {
        width: 100%;
        padding: 1.5rem;
    }

    .icono-servicio {
        width: 60px;
        height: 60px;
    }

    h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .btn-mas-info {
        font-size: 0.9rem;
        align-self: center;
        max-width: 50px;
        padding: 0.75rem;
        margin-top: 0rem;
        bottom: 90px;
        margin-bottom: 20px;
        padding-right: 100px;
        padding-left: 100px;
        width: 210px;
        height: 54px;
    }

    .btn-anterior,
    .btn-siguiente {
        width: 2rem;
        height: 2rem;
        font-size: 1.25rem;
    }

    .imagen-adicional {
        width: 100%;
    }

    .btn-volver-arriba {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 14px;
    }

    .btn-anterior-imagen,
    .btn-siguiente-imagen {
        display: none;
    }
}

@media (min-width: 641px) {
    .btn-anterior-imagen,
    .btn-siguiente-imagen {
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(255, 255, 255, 0.7);
        color: #8a181a;
        border: none;
        font-size: 1.5rem;
        padding: 0.5rem;
        cursor: pointer;
        z-index: 10;
        transition: background-color 0.3s ease;
    }

    .btn-anterior-imagen {
        left: 10px;
    }

    .btn-siguiente-imagen {
        right: 10px;
    }
}

@media (min-width: 769px) {
    .servicio {
        flex-direction: row;
    }

    .imagen-container2,
    .contenido-servicio {
        width: 50%;
    }

    .imagen-container2 {
        height: auto;
    }

    .imagen-adicional {
        width: calc(33.333% - 1rem);
    }

    .imagen-adicional img {
        height: 200px;
    }

    .btn-anterior-imagen,
    .btn-siguiente-imagen {
        display: block;
    }
}

@media (max-width: 480px) {
    .contenido-servicio {
        padding: 1rem;
    }

    .btn-mas-info {
        max-width: none;
        font-size: 0.85rem;
    }
    .navegador .links {
        gap: 20px; /* Reduce el espacio entre los elementos */
    }
    .content h1 span {
        font-size: 2.5rem !important; /* Ajusta este valor para hacerlo más pequeño */
    }
    
}
@media (max-width: 768px) {
    .servicio {
        display: flex;
        flex-direction: column;
    }

    .imagen-container2 {
        order: 1; /* This ensures the image container appears first */
        width: 100%;
        height: 300px; /* Adjust this value as needed */
        margin-bottom: 1rem;
    }

    .contenido-servicio {
        order: 2; /* This ensures the content appears second */
        width: 100%;
    }

    /* Ensure the image fills the container properly */
    .imagen-carrusel {
        height: 100%;
    }

    .imagen-carrusel img {
        position: relative; /* Change from absolute to relative */
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    /* Adjust icon overlay for mobile */
    .icono-overlay {
        display: none;
    }

    /* Ensure proper spacing */
    .contenido-servicio {
        padding: 1.5rem;
    }
}

/* Optional: Adjust the height for very small screens */
@media (max-width: 480px) {
    .imagen-container2 {
        height: 200px;
    }
}
/*lollllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll*/
@media (max-width: 400px ) {
    .navegador .links {
        gap: 5px !important; /* Reduce el espacio entre los elementos */
    }

}
