﻿:root {
    --navy: #0b1c2d;
    --charcoal: #1e1e1e;
    --light-gray: #f4f6f8;
    --gold: #c9a24d;
    --orange: #ff9100;
    --cyan: #1cb7e9;
    --white: #ffffff;
    
    /* Espaciados */
    --spacing-section: 4rem;
    --spacing-inner: 2rem;
    /* Sombra */
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

    /* Hero con BG movible */

.hero-servicios {
    position: relative;
    min-height: 60vh;
    padding: 6rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 135deg, #0b1f33 0%, #0e2a47 50%, #123a5f 100% );
    overflow: hidden;
}

    .hero-servicios .hero-overlay {
        position: absolute;
        inset: 0;
        background: radial-gradient( circle at 30% 20%, rgba(255, 145, 0, 0.18), transparent 60% ), radial-gradient( circle at 70% 80%, rgba(0, 200, 255, 0.12), transparent 55% );
        filter: blur(40px);
        z-index: 1;
    }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 880px;
    text-align: center;
    color: var(--white);
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--orange);
}

.hero-servicios h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: var(--white);
}

.hero-servicios p {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto;
}

.hero-cta {
    margin-top: 2.5rem;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--navy);
    background-color: var(--white);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.6);
    transition: all 0.3s ease;
}

    .btn-hero:hover {
        background-color: var(--orange);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    }

    /* resumen de servicios */

.resumen-servicios {
    padding: var(--spacing-section) var(--spacing-inner);
    background: var(--light-gray);
    text-align: center;
}

.grid-resumen {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 2rem;
}

    .grid-resumen .item {
        position: relative;
        background: var(--navy);
        backdrop-filter: blur(18px);
        padding: 2rem 1.5rem;
        border-radius: 1.2rem;
        text-align: center;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
        transition: transform .35s ease, box-shadow .35s ease;
        color: var(--white);
    }

    .grid-resumen .item::before {
        content: "";
        position:absolute;
        inset: 8px;
        border-radius: 0.9rem;
        border: 1px solid rgba(255, 255, 255, 0.25);
        pointer-events: none;
        transition: border-color 0.35s ease;
    }

    .grid-resumen .item:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 20px 45px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 165, 0, 0.25);
    }

    .grid-resumen .item:hover::before {
        border-color: rgba(255, 165, 0, 0.8);
    }

    .grid-resumen i {
        font-size: 2.2rem;
        opacity: 0.9;
        color: var(--orange);
        margin-bottom: 1rem;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
        transition: transform .35s ease, filter .35s ease;
    }

.valor {
    padding: var(--spacing-section) var(--spacing-inner);
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.15));
}

.grid-valor {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 2rem;
    padding-top: 2em;
}

.valor-card {
    background: rgba(255,255,255,0.05);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, var(--orange), var(--gold)) 1;
    padding: 2rem;
    transition: transform .35s ease, box-shadow .35s ease;
    overflow: hidden;
}

.valor-card:hover {
    transform: scale(1.04);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
}

    .valor-card i {
        font-size: 2rem;
        color: var(--cyan);
        margin-bottom: 1rem;
        transition: transform .35s ease, filter .35s ease;
    }

    .grid-resumen .item:hover i {
        transform: scale(1.09) rotate(4deg);
        filter: drop-shadow(0 0 8px rgba(255,145,0,.3));
    }

.valor-card:hover i {
    transform: scale(1.09) rotate(4deg);
    filter: drop-shadow(0 0 8px rgba(28,183,233,.3));
}


    .services-page section {
        padding: var(--spacing-section) var(--spacing-inner);
        text-align: center;
    }
        
/* ===== Galería optimizada ===== */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    justify-content: center;
    align-items: start;
    margin-top: 1rem;
}

/* ===== Miniaturas ===== */
.video-thumb {
    position: relative;
    border-radius: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease, filter 0.35s ease;
}

    .video-thumb:hover {
        transform: scale(1.05);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(255, 165, 0, 0.45);
        filter: brightness(1.05) saturate(1.1);
    }

/* Imágenes */
.gallery-port {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: transform .3s ease;
}

/* Ocultar elementos cuando se filtren (si luego agregamos filtros) */
.video-thumb.oculto {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(.9);
}

/* Icono de Play (Estético) */
.play-icon {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 50%;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
}

.video-thumb:hover .play-icon {
    opacity: 0.95;
    transform: scale(1.15); /* Se oculta cuando sale el preview */
}

/* ===== Lightbox ===== */
.video-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

    .video-lightbox.active {
        display: flex;
    }

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(4px);
}

.video-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    justify-content: center;
    animation: fadeIn .3s ease;
}

video {
    width: 100%;
    max-height: 70vh;
    border-radius: 1rem;
    background: black;
}

.video-close {
    position: absolute;
    top: -45px;
    right: 0;
    font-size: 2.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.7);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--navy);
    color: black;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
}

    .modal-content .close {
        float: right;
        font-size: 1.5rem;
        cursor: pointer;
    }

/* Carrusel */

.carousel-gallery-container {
    padding: 2rem;
    text-align: center;
}

    .carousel-gallery-container h2,
    .section-header h2 {
        font-size: 2.3rem;
        color: var(--navy);
        font-weight: 700;
        margin-bottom: 1rem;
        position: relative;
    }

.carousel-gallery-container h2::after,
.section-header h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--orange);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.05rem;
    color: #555;
}

.carousel-gallery {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: auto;
    max-width: 100%;
    z-index: 0;
    scroll-snap-type: x mandatory;
}

.carousel-gallery::-webkit-scrollbar {
    height: 8px;
}

.carousel-gallery::-webkit-scrollbar-thumb {
    background: var(--azul3);
    border-radius: 4px;
}

.carousel-gallery::-webkit-scrollbar-track {
    background: var(--gris2);
    border-radius: 4px;
}

.gallery-track {
    display: flex;
    gap: 1rem;
    justify-content: center;
    transition: transform 0.5s ease;
    scroll-behavior: smooth;
    padding: 1rem 0;
}

    .gallery-track::-webkit-scrollbar {
        display: flex;
    }

.gallery-item {
    position: relative;
    flex: 0 0 auto;
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    background: #ccc;
    scroll-snap-align: start;
    transition: transform 0.45s cubic-bezier(.22,.61,.36,1), box-shadow 0.45s ease, filter 0.45s ease;
    will-change: transform, box-shadow, filter;
}

    .gallery-item::before {
        content: "";
        position: absolute;
        inset: -20px -10px;
        background: radial-gradient( ellipse at center, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 70% );
        z-index: -1;
        pointer-events: none;
    }

    .gallery-item.zoomed {
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }

.carousel-gallery a:hover .gallery-item {
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 25px 60px rgba(0,0,0,.45), 0 0 0 2px rgba(255,145,0,.55);
    filter: saturate(1.15) brightness(1.05);
}


.gallery-item[hidden] {
    display: none !important;
}

.fancybox_container {
    z-index: 3000 !important;
}

#footer {
    position: relative;
    overflow: hidden;
    background: var(--negro);
    color: var(--blanco);
    padding: 1rem 0 1rem 0;
    text-align: center;
    font-size: 0.9rem;
}

    #footer .icon.ciculed {
        background: var(--blanco);
        color: var(--blanco);
    }

    #footer h3 {
        text-align: center;
        cursor: default;
    }


    #footer h2, #footer h3, #footer h4, #footer h5, #footer h6 {
        color: var(--azul2);
    }

    #footer .contact {
        text-align: center;
        opacity: 0;
        transform: translateY(30px);
    }

    #footer ul.icons {
        position: relative;
        background: var(--gris2);
        border-radius: 1.3rem;
        display: inline-block;
        padding: 0.35em 0.75em 0.35em 0.75em;
        font-size: 1.25em;
        cursor: pointer;
        list-style: none;
        color: var(--blanco);
    }

        #footer ul.icons li {
            display: inline-block;
            padding-left: 0;
        }

            #footer ul.icons li a {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 2.8em;
                height: 2.8em;
                border-radius: 50%;
                background: rgba(255, 255, 255, 0.04);
                color: #fff;
                border: 1px solid rgba(255, 255, 255, 0.15);
                transition: color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
                will-change: transform, box-shadow;
                text-decoration: none;
            }

                #footer ul.icons li a:hover {
                    color: var(--naranja);
                    background: rgba(255, 165, 0, 0.08);
                    border-color: var(--naranja);
                    transform: translateY(-3px) scale(1.05);
                    box-shadow: 0 0 0 4px rgba(255, 165, 0, 0.15), 0 10px 25px rgba(255, 165, 0, 0.35);
                }

    #footer .copyrigth {
        text-align: center;
        padding: var(--spacing-inner);
    }

/* Extra Small Devices (smarthphones < 480px) */
@media (max-width: 480px) {
    .hero-servicios h1 {
        font-size: 1.8rem;
    }

    .hero-servicios p {
        font-size: 1rem;
    }

    .grid-resumen {
        grid-template-columns: 1fr;
    }

    .grid-valor {
        grid-template-columns: 1fr;
    }

    .timeline-steps {
        flex-direction: column;
        align-items: center;
    }

    .circle {
        width: 120px;
        height: 120px;
    }

    .modal-content {
        width: 95%;
        padding: 1rem;
    }
}

/* Small Devices (smartphones grandes 481px - 767px) */
@media (min-width: 481px) and (max-width: 1023px) {
    .hero-servicios h1 {
        font-size: 2rem;
    }

    .hero-servicios p {
        font-size: 1.1rem;
    }

    .grid-resumen {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-valor {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .circle {
        width: 140px;
        height: 140px;
    }
}

/* Medium Devices (tablets 768px - 1024px, iPad Mini/Air) */
@media (min-width: 1024px) {
    .hero-servicios h1 {
        font-size: 2.5rem;
    }

    .hero-servicios p {
        font-size: 1.2rem;
    }

    .valor h2 {
        padding-bottom: 0.5rem;
    }

    .grid-resumen {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-valor {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-steps {
        flex-wrap: wrap;
        justify-content: space-evenly;
    }

    .circle {
        width: 150px;
        height: 150px;
    }
}

/* Large Devices (laptops 1025px - 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
    .hero-servicios h1 {
        font-size: 3rem;
    }

    .hero-servicios p {
        font-size: 1.3rem;
    }

    .grid-resumen {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-valor {
        grid-template-columns: repeat(3, 1fr);
    }

    .timeline-steps {
        gap: 2rem;
    }

    .circle {
        width: 160px;
        height: 160px;
    }
}

/* Extra Large Devices (desktop > 1366px hasta 1920px) */
@media (min-width: 1367px) and (max-width: 1920px) {
    .hero-servicios h1 {
        font-size: 3.5rem;
    }

    .hero-servicios p {
        font-size: 1.5rem;
    }

    .grid-resumen {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-valor {
        grid-template-columns: repeat(3, 1fr);
    }

    .timeline-steps {
        gap: 3rem;
    }

    .circle {
        width: 180px;
        height: 180px;
    }
}

/* Ultra Wide Devices (pantallas grandes > 1920px, 2K / 4K) */
@media (min-width: 1921px) {
    body {
        font-size: 1.2rem;
    }

    .hero-servicios h1 {
        font-size: 4rem;
    }

    .hero-servicios p {
        font-size: 1.8rem;
    }

    .grid-resumen {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }

    .grid-valor {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

@media (prefers-color-scheme: dark) {
    :root {        
        --light-grayd: #121c26;
    }

    .resumen-servicios {
        background: var(--light-grayd);
    }    
}