/* =====================================================
   SLIDER VERTICAL FULLSCREEN
   ===================================================== */

html, body.vslider-body {
    margin: 0;
    height: 100%;
    overflow: hidden;
}

.vslider {
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Se activa por JS mientras dura un salto largo (clic en la navegación
   lateral). scroll-snap-stop:always en cada slide obliga al navegador a
   detenerse en cada slide intermedio; desactivarlo del todo permite saltar
   directo al slide elegido sin interrupciones. */
#vslider.no-snap {
    scroll-snap-type: none;
}
#vslider.no-snap .vslide {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
}

.vslide {
    position: relative;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.vslide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(6,12,32,0.82) 0%, rgba(6,12,32,0.93) 100%);
    z-index: 0;
}

.vslide-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px 0 130px;
    display: flex;
    align-items: center;
    gap: 60px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.vslide.active .vslide-content {
    opacity: 1;
    transform: translateY(0);
}

.vslide-text {
    flex: 1;
    color: #fff;
}

.vslide-content.layout-center {
    justify-content: center;
    text-align: center;
}

.vslide-content.layout-center .vslide-text {
    flex: none;
    max-width: 760px;
}

.vslide-content.layout-right {
    flex-direction: row-reverse;
}

.vslide-media {
    width: 100%;
}

.vslide-media img {
    width: 100%;
    border-radius: 14px;
    display: block;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.vslide-eyebrow {
    display: inline-block;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--azul-claro, #6fa8ff);
    font-weight: 600;
    margin-bottom: 14px;
}

.vslide-heading {
    margin: 0 0 20px;
    font-weight: 700;
    line-height: 1.15;
}

.vslide-heading.h-sm { font-size: clamp(26px, 3.5vw, 38px); }
.vslide-heading.h-md { font-size: clamp(32px, 5vw, 54px); }
.vslide-heading.h-lg { font-size: clamp(40px, 7vw, 74px); }

.vslide-desc {
    color: #dde4f3;
    line-height: 1.7;
    font-weight: 300;
}

.vslide-desc.d-sm { font-size: 14px; }
.vslide-desc.d-md { font-size: 17px; }
.vslide-desc.d-lg { font-size: 20px; }

/* Botón "Ver Web" + íconos sociales, debajo de la descripción */
.vslide-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
}

.vslide-content.layout-center .vslide-actions {
    justify-content: center;
}

.vslide-btn-web {
    display: inline-block;
    background: var(--azul-brillo, #3b6fd4);
    color: #fff;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 14.5px;
    border: none;
    font-family: inherit;
    cursor: pointer;
    margin-bottom: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.vslide-btn-web:hover {
    background: #2c56a8;
    transform: translateY(-1px);
}

.vslide-socials {
    display: flex;
    gap: 12px;
}

.vslide-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.vslide-socials a:hover {
    background: var(--azul-brillo, #3b6fd4);
}

.vslide-socials svg {
    width: 17px;
    height: 17px;
    fill: #fff;
}

.vslide-logo {
    max-width: 260px;
    margin: 0 auto 26px;
}

/* Logo circular de la empresa (slides 3, 4 y 5), siempre centrado
   arriba del texto, tanto en el layout centrado como en el de columnas. */
.vslide-company-logo {
    display: block;
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.35);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    margin: 0 auto 22px;
}

/* Columna derecha en el layout de dos columnas: descripción arriba,
   galería o imagen debajo. */
.vslide-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 560px;
}

.vslide-side .vslide-desc {
    margin: 0;
}

/* Texto justificado (slide 1 y descripción de las 3 empresas) */
.text-justify {
    text-align: justify;
}

/* Galería en carrusel (solo fotos, sin texto): fila horizontal de
   miniaturas pequeñas con scroll táctil, para que quepa siempre dentro
   de la misma pantalla del slide, incluso en móviles. */
.vslide-gallery {
    width: 100%;
    overflow: hidden;
    padding: 4px 0 10px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.vslide-gallery-track {
    display: flex;
    gap: 12px;
    width: max-content;
}

.vslide-gallery-track.auto-scroll {
    animation: gallerySlide var(--carousel-duration, 16s) linear infinite;
}

@keyframes gallerySlide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.vslide-gallery-track img {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.35);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.vslide-gallery-track img:hover {
    transform: scale(1.05);
}

/* =====================================================
   POPUP DE INFORMACIÓN (Conócenos / Conoce más)
   ===================================================== */
.info-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 9, 26, 0.85);
    z-index: 1900;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.info-modal-overlay.open {
    display: flex;
}

.info-modal {
    background: var(--blanco, #fff);
    border-radius: 16px;
    max-width: 460px;
    width: 100%;
    padding: 40px 32px 34px;
    position: relative;
    text-align: center;
    max-height: 86vh;
    overflow-y: auto;
    animation: infoModalPop 0.22s ease;
}

@keyframes infoModalPop {
    from { transform: scale(0.94); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.info-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #eef1f8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.info-modal-close svg {
    width: 16px;
    height: 16px;
    stroke: #333;
    stroke-width: 2;
}

.info-modal-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Logo principal del sitio (popup del slide 1 "Conócenos"): se ve
   completo, sin recortar en círculo. (El JS también aplica esto como
   estilo inline para garantizar que se vea así sin depender del caché
   del navegador en este archivo CSS). */
.info-modal-logo.info-modal-logo-square {
    width: auto !important;
    height: auto !important;
    max-width: 220px !important;
    max-height: 100px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.info-modal-title {
    margin: 0 0 14px;
    color: #1c2536;
    font-size: 20px;
    font-weight: 700;
}

.info-modal-desc {
    color: #384258;
    font-size: 15px;
    line-height: 1.7;
    text-align: justify;
    margin: 0;
    white-space: pre-line;
}

/* =====================================================
   LIGHTBOX DE GALERÍA (ver foto en grande)
   ===================================================== */
.gallery-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 9, 26, 0.92);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-lightbox-overlay.open {
    display: flex;
}

.gallery-lightbox-img {
    max-width: min(90vw, 900px);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: lightboxPop 0.2s ease;
}

@keyframes lightboxPop {
    from { transform: scale(0.94); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.gallery-lightbox-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-lightbox-close svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    stroke-width: 2;
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-lightbox-nav:hover {
    background: rgba(255,255,255,0.24);
}

.gallery-lightbox-nav svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

.gallery-lightbox-prev { left: 18px; }
.gallery-lightbox-next { right: 18px; }

.gallery-lightbox-counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    letter-spacing: 1px;
}

@media (max-width: 640px) {
    .gallery-lightbox-nav {
        width: 40px;
        height: 40px;
    }
    .gallery-lightbox-prev { left: 8px; }
    .gallery-lightbox-next { right: 8px; }
}

/* =====================================================
   NAVEGACIÓN LATERAL IZQUIERDA
   ===================================================== */
.vnav {
    position: fixed;
    top: 50%;
    left: 26px;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vnav-item {
    width: 46px;
    height: 30px;
    border-radius: 5px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.25);
    cursor: pointer;
    transition: border-color 0.25s ease, transform 0.25s ease;
    display: block;
}

.vnav-item:hover {
    transform: scale(1.06);
}

.vnav-item.active {
    border-color: #fff;
}

/* =====================================================
   CONTADOR DE PÁGINA
   ===================================================== */
.vcounter {
    position: fixed;
    right: 30px;
    bottom: 26px;
    z-index: 50;
    color: #fff;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 500;
    opacity: 0.85;
}

.vcounter .current {
    font-size: 18px;
    font-weight: 700;
}

/* =====================================================
   INDICADOR "DESLIZAR"
   ===================================================== */
.vscroll-hint {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.vscroll-hint.hidden {
    opacity: 0;
}

.vscroll-icon {
    width: 20px;
    height: 32px;
    border: 2px solid #fff;
    border-radius: 12px;
    position: relative;
}

.vscroll-icon::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollDot 1.6s ease infinite;
}

@keyframes scrollDot {
    0%   { top: 6px; opacity: 1; }
    70%  { top: 18px; opacity: 0; }
    100% { top: 6px; opacity: 0; }
}

/* =====================================================
   SLIDE: CONTACTO
   ===================================================== */
.vslide-contact {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
}

.vslide-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 17px;
}

.vslide-contact-item svg {
    width: 22px;
    height: 22px;
    stroke: var(--azul-claro, #6fa8ff);
    fill: none;
    stroke-width: 1.8;
}

.vslide-footer-copy {
    margin-top: 34px;
    text-align: center;
    color: rgba(255,255,255,0.55);
    font-size: 12px;
}

/* =====================================================
   TARJETAS DE VALORES
   ===================================================== */
.value-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 900px;
    margin: 34px auto 0;
}

.value-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
}

.value-card-title {
    margin: 0 0 10px;
    color: var(--azul-claro, #6fa8ff);
    font-size: 18px;
    font-weight: 700;
}

.value-card-desc {
    margin: 0;
    color: #dde4f3;
    font-size: 14.5px;
    line-height: 1.6;
    font-weight: 300;
}

@media (min-width: 900px) {
    .value-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =====================================================
   RESPONSIVE - MÓVIL
   ===================================================== */
@media (max-width: 900px) {
    .vslide-content {
        padding: 90px 26px 40px 56px;
        flex-direction: column !important;
        gap: 22px;
        text-align: center;
        max-height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    .vslide-content.layout-left,
    .vslide-content.layout-right {
        flex-direction: column !important;
    }

    .vslide-media, .vslide-gallery {
        max-width: 100%;
        width: 100%;
    }

    .vslide-side {
        width: 100%;
        max-width: 100%;
    }

    .vslide-company-logo {
        width: 96px;
        height: 96px;
        margin-bottom: 18px;
    }

    .vslide-gallery-track img {
        width: 84px;
        height: 84px;
    }

    .vslide-actions {
        justify-content: center;
    }

    .vnav {
        left: 14px;
        gap: 10px;
    }

    .vnav-item {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background-image: none !important;
    }

    .vslide-heading.h-sm { font-size: 24px; }
    .vslide-heading.h-md { font-size: 28px; }
    .vslide-heading.h-lg { font-size: 34px; }

    .vcounter { right: 18px; }
    .vscroll-hint { display: none; }
}
