body {
    padding-top: 130px;
}

.titulos{
    color:#10b9e5;
}

.fondo-gris{
    background-color: #eaeaea;
}

/* ========== Slider ==============*/
/* Slider full width */
#home-slider {
    width: 100%;
    overflow: hidden;
}

/* Imagen */
.slider-img {
    height: 750px;
    object-fit: cover;
}

/* Caption full overlay */
.carousel-caption {
    position: absolute;
    inset: 0;
    padding: 0;
}

/* Caja de texto */
.slider-text {
    background: rgba(0, 0, 0, 0.45);
    padding: 30px 40px;
    border-radius: 18px;
    color: #fff;
    max-width: 1000px;
}

.slider-text h1 {
    font-size: 3.4rem;
}

.slider-text p {
    font-size: 1.5rem;
}

/* ======================================== */


/* Íconos */
.card-actividades {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

/* Hover cards */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(16, 185, 229, 0.25);
}

/* Botón Ver Más */
.btn-ver-mas {
    border-radius: 30px;
    padding: 10px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-color: #10b9e5;
    color: #10b9e5;
}

.btn-ver-mas:hover {
    background-color: #10b9e5;
    border-color: #10b9e5;
    color: #fff;
}

/* Contacto */
#contacto p {
    margin-bottom: 0.8rem;
}

#contacto .form-control {
    border-radius: 8px;
}

/* Info de contacto */
/* Card base compartida */
.contact-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    padding: 32px;
    display: flex;
    flex-direction: column;
}

/* Items de contacto */
.contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.contact-icon {
    font-size: 1.5rem;
    color: #10b9e5;
    min-width: 28px;
    margin-top: 2px;
}

.contact-item p {
    margin: 0;
    color: #555;
}

.contact-item a {
    color: #10b9e5;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Inputs */
.contact-card .form-control {
    border-radius: 10px;
}



/* Ubicación */
#ubicacion iframe {
    border: 0;
}



/* Footer */
footer {
    font-size: 0.9rem;
}

/* ======= INSTITUCIONAL ================== */

.before-after-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 578 / 600; /* respeta proporción real */
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    cursor: ew-resize;
    background-color: #000;
}

/* CAPAS */
.after-layer,
.before-layer {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* CLAVE */
}


/* DESPUÉS */
.after-layer {
    background-image: url("../img/institucional-ahora.jpg");
    z-index: 1;
}

/* ANTES */
.before-layer {
    background-image: url("../img/institucional-antes.jpg");
    width: 50%;
    z-index: 2;
}

/* LÍNEA DIVISORA */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: #10b9e5;
    transform: translateX(-50%);
    z-index: 10;
}

/* BOTÓN CENTRAL */
.slider-handle span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    background-color: #10b9e5;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.7);
}

/* ETIQUETAS */
.label {
    position: absolute;
    top: 15px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    z-index: 20;
}

.before-label { left: 15px; }
.after-label  { right: 15px; }



/* Historia */
.history-block {
    margin-bottom: 30px;
}

.history-block h5 {
    color: #10b9e5;
    font-weight: 600;
    margin-bottom: 10px;
}


/* Instalaciones */
/* Cards instalaciones */
.instalaciones-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Header card */
.inst-header {
    text-align: center;
}

.inst-icon {
    font-size: 3rem;
    color: #10b9e5;
    margin-bottom: 10px;
}

/* Subtítulos */
.inst-subtitle {
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 8px;
    color: #333;
}

/* Listas */
.inst-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 10px;
}

.inst-list li {
    padding-left: 20px;
    margin-bottom: 6px;
    position: relative;
    font-size: 0.95rem;
}

.inst-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #10b9e5;
}




/*Linea de tiempo*/
/* TIMELINE */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #10b9e5;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

/* Caja */
.timeline-content {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    position: relative;
}

/* Año */
.timeline-year {
    display: inline-block;
    background: #10b9e5;
    color: #fff;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* Flechitas */
.timeline-item.left .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -12px;
    border-width: 12px 0 12px 12px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.timeline-item.right .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -12px;
    border-width: 12px 12px 12px 0;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline::after {
        left: 8px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 30px;
        padding-right: 15px;
        text-align: left;
        left: 0 !important;
    }

    .timeline-content::after {
        left: -12px !important;
        right: auto !important;
        border-width: 12px 12px 12px 0 !important;
        border-color: transparent #fff transparent transparent !important;
    }
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #198b47;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}

.whatsapp-float i {
    line-height: 1;
}

/* ===== NUEVO SOCIO ====== */
form label {
    font-weight: 600;
}

.card {
    border-radius: 12px;
}

.alert i {
    margin-right: 6px;
}

/* MODAL galeria de actividades  */


.galeria-prev,
.galeria-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.galeria-prev {
    left: 10px;
}

.galeria-next {
    right: 10px;
}

#galeriaModal .modal-content {
    background: #504f4f;
    padding: 10px;
}

#galeriaModal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: 60vh;
}

/* IMAGEN PRINCIPAL */
#galeriaModal img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ===== GALERÍA CUADRÍCULA FIX FINAL ===== */

.galeria-item {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.galeria-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.galeria-thumb:hover {
    transform: scale(1.05);
}

