/* ======================================================= */
/* Estilos para el Carrusel Giratorio y Hero Section */
/* ======================================================= */
.hero-section {
    background-color: #D0E5F7;
    color: #fff;
    min-height: auto;
    padding: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 0 20px;
}
.carrusel-column, .hero-banner-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.container-3d {
    perspective: 500px;
    width: 500px;
    height: 300px;
    position: relative;
}
.tarjeta {
    width: 200px;
    height: 200px;
    position: absolute;
    top: 50px;
    left: 150px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    animation: Carrusel 12s linear infinite;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
}
@keyframes Carrusel {
    from {
        transform: rotateY(360deg) translateZ(100px);
        z-index: 10;
        opacity: 0.9;
    }
    50% {
        z-index: -10;
    }
    to {
        transform: rotateX(0deg) translateZ(100px) rotateX(0deg);
        z-index: 10;
    }
}

.tag-sucursal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(4, 44, 97, 0.7);
    color: white;
    font-size: 11px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    padding: 2px 0;
}

#sopoc {
    background-image: url(/images/img/sopocachi.jpg);
}
#sopoc:hover {
    box-shadow: 0px 0px 10px rgb(0, 71, 179);
}
#sanjo {
    background-image: url(/images/img/SanJorge.jpg);
    animation-delay: -3s;
}
#sanjo:hover {
    box-shadow: 0px 0px 10px rgb(0, 71, 179);
}
#elalt {
    background-image: url(/images/img/ElAlto.jpg);
    animation-delay: -6s;
}
#elalt:hover {
    box-shadow: 0px 0px 10px rgb(0, 71, 179);
}
#obraj {
    background-image: url(/images/img/Obrajes.jpg);
    animation-delay: -9s;
}
#obraj:hover {
    box-shadow: 0px 0px 10px rgb(0, 71, 179);
}
.tarjeta h3 {
    color: white;
    font-size: 14px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color:rgba(4, 44, 97, 0.7);/* rgba(255, 0, 0, 0.7)*/;
    padding: 2px 0;
    margin: 0;
}
.hero-content h3 {
    font-size: 1.5em;
    font-style: italic;
    color: #032250;
    margin-bottom: 20px;
}
.banner-slider {
    font-size: 1.8em;
    font-weight: bold;
    color: #1462c7;
    min-height: 50px;
    overflow: hidden;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.banner-slider .slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.banner-slider .slide.active {
    display: block;
    opacity: 1;
}
.about-section {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}
.about-section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
}
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 0 20px;
}
.about-content .image-wrapper {
    flex: 1 1 400px;
    position: relative;
    max-width: 500px;
    margin: 0;
}
.about-content .image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}
.about-content .image-wrapper .image-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*background: rgba(0, 0, 0, 0.4);*/
    color: #fff;
    border-radius: 5px;
    padding: 20px;
}

.about-content .image-wrapper h3 {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;    
    -webkit-text-stroke-width:0.2px; /* Ancho del borde */
    -webkit-text-stroke-color: rgb(2, 4, 26); /* Color del borde */
}

.about-content .image-wrapper p {
    font-size: 1.4em;
    font-weight: bold;
    color: #fff;
    -webkit-text-stroke-width:0.3px; /* Ancho del borde */
    -webkit-text-stroke-color: rgb(2, 3, 19); /* Color del borde */
}
.about-content .text-content {
    flex: 1 1 450px;
    text-align:justify;
    max-width: 600px;
    color: #333;
}
.about-content .text-content p {
    margin-bottom: 25px;
}
.btn {
    display: inline-block;
    background-color: rgb(4, 70, 131);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
}
.btn:hover {
    background-color: rgb(4, 70, 131);
}
.news-section {
    padding: 60px 0;
    background-color: #eee;
    text-align: center;
}
.news-section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
}

/*AQUI*/

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /*gap: 30px;
    padding: 0 20px;*/
    gap: 20px; /* Reducción del espacio entre los artículos */
    padding: 0 10px; /* Reducción del padding */
}

.news-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 5px;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.news-item:hover {
    transform: translateY(-5px);
}
.news-item h3 {
    margin-bottom: 12px;
    color: #333;
    font-size: 1.3em;
}
.news-item .date {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}
.news-item p {
    margin-bottom: 20px;
    font-size: 0.95em;
    color: #333;
}
.news-item .read-more {
    color: rgb(4, 70, 131);
    font-weight: bold;
    text-transform: uppercase;
}

/* === MEDIA QUERIES === */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
    }
    .carrusel-column, .hero-banner-column {
        max-width: 100%;
    }
    .about-content .image-wrapper,
    .about-content .text-content {
        flex: 1 1 100%;
        max-width: unset;
    }
    .about-content .image-wrapper {
        margin-bottom: 30px;
    }
    .about-content .text-content {
        text-align: justify;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
    }
    .hero-content h3 {
        font-size: 1em;
    }
    .banner-slider {
        font-size: 1.2em;
    }
    .news-section h2 {
        font-size: 1.8rem;
}
    .about-section h2 {
        font-size: 1.8rem;
    }
}