/* --------------------------------------------------
   GLOBAL RESETS
-------------------------------------------------- */

body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* --------------------------------------------------
   PRELOADER
-------------------------------------------------- */

#preloader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 120px;
    height: auto;
    opacity: 0.9;
}

.loader-text {
    margin-top: 12px;
    font-size: 18px;
    color: #666;
}

/* --------------------------------------------------
   NAVBAR
-------------------------------------------------- */

.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a !important;
}

.nav-link:hover {
    color: #0d6efd !important;
}

/* --------------------------------------------------
   HERO / SLIDER
-------------------------------------------------- */

.carousel-item img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

/* 🔧 CAMBIO MÍNIMO CORRECTO */
.fixed-slider-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 32px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 6px;
    z-index: 10;
    border: none;

    background-color: var(--slider-btn, #0d6efd);
    color: var(--slider-btn-text, #ffffff);

    transition: background-color 0.2s ease, color 0.2s ease;
}

.fixed-slider-btn:hover,
.fixed-slider-btn:focus {
    background-color: var(--slider-btn-dark, #0b5ed7);
    color: var(--slider-btn-text, #ffffff);
}

/* --------------------------------------------------
   HEADINGS (AZUL SUTIL)
-------------------------------------------------- */

h1 {
    font-weight: 700;
    color: #0d6efd;
}

h2, h3, h4, h5 {
    font-weight: 700;
    color: #0b3f7a;
}

/* --------------------------------------------------
   GALLERY GRID
-------------------------------------------------- */

.gallery-grid img {
    width: 100%;
    border-radius: 8px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0px 6px 16px rgba(0,0,0,0.25);
}

.gallery-thumb {
    transition: transform 0.2s ease;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-thumb:hover {
    transform: scale(1.05);
}

/* --------------------------------------------------
   SERVICES CARDS
-------------------------------------------------- */

.service-card {
    border-radius: 8px;
    transition: transform .25s ease, box-shadow .25s ease;
    border-left: 4px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-4px);
    border-left-color: #0d6efd;
}

.service-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* --------------------------------------------------
   REVIEWS
-------------------------------------------------- */

.review-card {
    border-top: 3px solid #e9ecef;
}

.review-card:hover {
    border-top-color: #0d6efd;
}

/* --------------------------------------------------
   FOOTER (AZUL OSCURO CASI NEGRO)
-------------------------------------------------- */

footer {
    font-size: 0.95rem;
    background-color: #0a1a2f;
}

footer p {
    margin-bottom: 6px;
}

footer a {
    color: #9ec5ff;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

footer .small {
    color: #8fa8c8;
}

/* --------------------------------------------------
   TOP BAR ANIMATION
-------------------------------------------------- */

.top-red-bar {
    width: 100%;
    overflow: hidden;
    background: var(--topbar-bg, var(--color-primary, #0d6efd));
    padding: 10px 0;
}

.logo-strip {
    display: flex;
    width: max-content;
    animation: marquee var(--topbar-speed, 18s) linear infinite;
}

.logo-strip img {
    height: 60px;
    margin-right: 40px;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==================================================
   TOP BAR – MOBILE (ÚNICO CAMBIO REAL)
================================================== */

@media (max-width: 768px) {

    .top-red-bar {
        padding: 4px 0;
    }

    .logo-strip img {
        height: 32px;
        margin-right: 24px;
    }

}

/* ==================================================
   HERO SLIDER – MOBILE HEIGHT (ÚNICA FUENTE)
================================================== */

@media (max-width: 768px) {

    .carousel-inner {
        height: 240px;
    }

    .carousel-item img,
    .carousel-item video {
        height: 240px;
    }

    .fixed-slider-btn {
        bottom: 16px;
        font-size: 1rem;
        padding: 10px 22px;
    }

}

/* --------------------------------------------------
   HERO SLIDER MODES
-------------------------------------------------- */

.carousel-inner {
    overflow: hidden;
}

.carousel-item img,
.carousel-item video {
    width: 100%;
    height: 100%;
}

.hero-slide-cover img,
.hero-slide-cover video {
    object-fit: cover;
}

.hero-slide-contain {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.hero-slide-contain img,
.hero-slide-contain video {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

/* --------------------------------------------------
   GALLERY MEDIA
-------------------------------------------------- */

.gallery-media-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-radius: 12px;
    background: #f2f2f2;
}

.gallery-media-wrapper img,
.gallery-media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-play-btn::before {
    content: '';
    width: 54px;
    height: 54px;
    background: rgba(13, 110, 253, 0.85);
    border-radius: 50%;
}

.gallery-play-btn::after {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

.gallery-item:hover .gallery-play-btn::before {
    background: rgba(13, 110, 253, 1);
}

/* --------------------------------------------------
   GLIGHTBOX CONTROLS
-------------------------------------------------- */

.glightbox-container .gprev,
.glightbox-container .gnext,
.glightbox-container .gclose {
    background: rgba(13, 110, 253, 0.85);
    border-radius: 50%;
}

.glightbox-container .gprev:hover,
.glightbox-container .gnext:hover,
.glightbox-container .gclose:hover {
    background: rgba(13, 110, 253, 1);
}

/* --------------------------------------------------
   HERO GALLERY
-------------------------------------------------- */

.hero-gallery-item {
    height: clamp(260px, 35vw, 420px);
    overflow: hidden;
    border-radius: 12px;
    background: #f2f2f2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-gallery-item img,
.hero-gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #ffffff;
}

/* --------------------------------------------------
   HERO GALLERY CONTROLS
-------------------------------------------------- */

.hero-gallery .carousel-control-prev,
.hero-gallery .carousel-control-next {
    opacity: 0;
    transition: opacity 0.25s ease;
    width: 56px;
}

.hero-gallery:hover .carousel-control-prev,
.hero-gallery:hover .carousel-control-next {
    opacity: 1;
}

.hero-gallery .carousel-control-prev-icon,
.hero-gallery .carousel-control-next-icon {
    background-color: rgba(13, 110, 253, 0.85);
    background-size: 60% 60%;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-gallery .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-gallery .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(11, 94, 215, 1);
    transform: scale(1.1);
}

/* --------------------------------------------------
   SERVICES – IMAGE LEFT
-------------------------------------------------- */

.service-card-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.service-card-img {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
    background: #f2f2f2;
}

.service-card-content h4 {
    margin-top: 0;
}

/* =========================
   CONTACT FORM BUTTON
========================= */

.form-primary-btn {
    background-color: var(--contact-btn);
    border-color: var(--contact-btn);
    color: #000;
}

.form-primary-btn:hover,
.form-primary-btn:focus,
.form-primary-btn:active {
    background-color: var(--contact-btn-dark);
    border-color: var(--contact-btn-dark);
    color: #000;
}

.form-primary-btn:focus {
    box-shadow: 0 0 0 .25rem rgba(0,0,0,0.08);
}

/* ==================================================
   HEADER – MOBILE REFINED
================================================== */

@media (max-width: 768px) {

    header {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    header .container {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    header img {
        width: 80vw;
        max-width: 320px;
        height: auto;
        max-height: none;
    }

    header nav ul.nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 16px;
    }

    header nav ul.nav .nav-link {
        font-size: 1.1rem;
        padding: 10px 14px;
    }

}
