/* ==================================================
   CONTENEDOR PRINCIPAL
================================================== */
.contenedor {
    max-width: 1320px;
    margin: auto;
    padding: 40px 20px;
    display: flex;
    gap: 50px; /* más espacio entre columnas */
    align-items: flex-start;
}

/* COLUMNA IZQUIERDA */
.columna-izquierda {
    width: 68%;
    padding-right: 20px; /* aire visual */
}

.servicios-texto{
    text-align: justify; /* ALINEACION DEL TEXTO INFRAESTRUCTURA*/
}

.servicios-texto h2 {
    color: #7a0000;
    font-size: 36px;
    margin-bottom: 15px;
}

.servicios-texto p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.servicios-texto ul {
    padding-left: 20px;
}

.servicios-texto ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

/* ===================
   IMAGEN
====================== */
.servicios-imagen img {
    width: 100%;
    max-height: 420px; /* evita que sea gigante */
    object-fit: cover;
    border-radius: 10px;
    margin-top: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ==================================================
   COLUMNA DERECHA (MENÚ FIJO)
================================================== */
.columna-derecha {
    width: 28%;
    position: sticky;
    top: 120px; /* baja un poco para alinearse mejor */
    background: #b30000;
    padding: 30px;
    border-radius: 12px;
    color: #fff;
    height: fit-content;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.columna-derecha h3 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 15px;
    border-bottom: 2px solid #fff;
    padding-bottom: 10px;
}

.columna-derecha ul {
    list-style: none;
    padding: 0;
}

.columna-derecha ul li {
    background: rgba(255,255,255,0.15);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: 0.3s ease;
    cursor: pointer;
}

.columna-derecha ul li:hover {
    background: rgba(255,255,255,0.35);
}

.columna-derecha ul li a {
    color: #fff;
    text-decoration: none;
    display: block;
    width: 100%;
}

.columna-derecha ul li:hover a {
    color: #fff;
}

/* ==================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
    .contenedor {
        flex-direction: column;
    }

    .columna-izquierda,
    .columna-derecha {
        width: 100%;
    }

    .columna-derecha {
        position: relative;
        top: 0;
    }
}

/* ==================================================
   GALERÍA DE INFRAESTRUCTURA
================================================== */
.infra-galeria {
    width: 100%;
    margin-top: 40px;
    position: relative;
}

/* PAGINACIÓN SWIPER DEBAJO DE LAS FOTOS  (los puntos)*/
.infra-galeria .swiper-pagination {
    position: static;       /* quita el posicionamiento absoluto */
    margin-top: 18px;       /* espacio debajo de las imágenes */
    text-align: center;     /* centra los puntos */
}

.infra-galeria .swiper-pagination-bullet {
    background: #0c0c0c;       /* puntos blancos */
    width: 12px;            /* tamaño más grande */
    height: 12px;
    margin: 0 6px;          /* más separación entre puntos */
    opacity: 0.5;
    transition: 0.3s ease;
    border-radius: 50%;     /* forma circular perfecta */
}

.infra-galeria .swiper-pagination-bullet-active {
     background: #b30000;    /* rojo corporativo cuando está activo */
    opacity: 1;
    transform: scale(1.2);  /* el activo se ve un poco más grande */
}

/* 2 IMÁGENES LADO A LADO */
.infra-galeria .swiper-slide {
    width: 50%;
}

.infra-galeria img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform .4s ease;
}

.infra-galeria img:hover {
    transform: scale(1.05);
}

.infra-galeria .swiper-slide img {
    width: 100%;
    height: 280px; /* tamaño uniforme */
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
}

.infra-galeria .swiper-slide img:hover {
    transform: scale(1.03);
}

/* FLECHAS SWIPER BLANCAS CON CÍRCULO */
.infra-galeria .swiper-button-next,
.infra-galeria .swiper-button-prev {
    color: #fff; /* flecha blanca */
    background: rgba(255,255,255,0.15); /* círculo semitransparente */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center; /* centra horizontalmente */
    align-items: center;     /* centra verticalmente */
    transition: 0.3s ease;
}

/* Hover elegante */
.infra-galeria .swiper-button-next:hover,
.infra-galeria .swiper-button-prev:hover {
    background: rgba(255,255,255,0.35); /* círculo más visible al pasar el mouse */
    transform: scale(1.08);
}

/* Ajuste del tamaño del ícono dentro del círculo */
.infra-galeria .swiper-button-next::after,
.infra-galeria .swiper-button-prev::after {
    font-size: 26px; /* tamaño de la flecha */
    font-weight: bold;
}

/* LIGHTBOX GENERAL */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.4s ease;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

/* BOTÓN DE CIERRE */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
    transition: 0.3s ease;
}

.lightbox .close:hover {
    color: #b30000; /* rojo corporativo */
}

/* FLECHAS */
.lightbox .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 45px;
    color: white;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    transition: 0.3s ease;
    transform-origin: center; /* mantiene el centro fijo */
}

.lightbox .arrow.left {
    left: 30px;
}

.lightbox .arrow.right {
    right: 30px;
}

.lightbox .arrow:hover {
    color: #b30000;
    transform: translateY(-50%) scale(1.2); /* escala pero sigue centrado */
}

/* ANIMACIONES */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

