/* Global Styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #1b1e1f;
    color: #d6d8d9;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #f5f5f5;
}

/* Navbar */
.nav-logo-box {
    background: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 12px !important;
    padding: 7px 18px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.navbar-brand:hover .nav-logo-box {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.3) !important;
    border-color: #ffffff !important;
    background: #ffffff !important;
}

.nav-logo-img {
    max-height: 52px;
    width: auto;
    transition: filter 0.3s ease;
}

.navbar-brand:hover .nav-logo-img {
    filter: drop-shadow(0 2px 4px rgba(74, 40, 16, 0.35));
}

.nav-link {
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #f0f0f0 !important;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    background-color: #8b5a2b;
    border-color: #8b5a2b;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #5c3a21 !important;
    border-color: #5c3a21 !important;
    transform: translateY(-2px);
}

/* Services */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* =========================================================
   MODERN INTERACTIVE GALLERY & FILMSTRIP (Nuestro Trabajo)
   ========================================================= */
.modern-gallery-container {
    max-width: 1040px;
    margin: 0 auto;
}

/* Main Display Card (Hero Viewport) - Clean & Borderless */
.gallery-main-card {
    height: 540px;
    background-color: transparent;
    border: none;
    overflow: hidden;
    position: relative;
    user-select: none;
}

@media (max-width: 991px) {
    .gallery-main-card {
        height: 450px;
    }
}

@media (max-width: 767px) {
    .gallery-main-card {
        height: 360px;
    }
}

@media (max-width: 480px) {
    .gallery-main-card {
        height: 310px;
    }
}

.gallery-display-viewport {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Display Stages for Images - NO ZOOM, NO CROP, CLEAN */
.gallery-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-stage.is-changing {
    opacity: 0;
}

/* Single Full Image - No Border, No Frame */
.gallery-img-full {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

/* Side-by-side Compare Stage (Antes y Después) - Seamless */
.gallery-compare-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0;
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-compare-stage.is-changing {
    opacity: 0;
}

@media (max-width: 767px) {
    .gallery-compare-stage {
        gap: 6px;
    }
}

.gallery-compare-col {
    flex: 1;
    height: 100%;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-compare-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

/* Highly legible and elegant text labels for Antes / Después */
.gallery-plain-label {
    position: absolute;
    top: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #f7ede2;
    background: rgba(18, 20, 21, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
    z-index: 4;
    pointer-events: none;
}

.gallery-plain-label.label-antes {
    left: 14px;
}

.gallery-plain-label.label-despues {
    right: 14px;
}

@media (max-width: 767px) {
    .gallery-plain-label {
        top: 10px;
        font-size: 0.72rem;
        letter-spacing: 1.2px;
        padding: 4px 10px;
    }
    .gallery-plain-label.label-antes {
        left: 10px;
    }
    .gallery-plain-label.label-despues {
        right: 10px;
    }
}

/* Navigation Buttons (Positioned Outside the Image Stage) */
.gallery-hero-row {
    width: 100%;
}

.gallery-nav-btn {
    position: static;
    transform: none;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #242829;
    border: 1.5px solid #8b5a2b;
    color: #e8c49e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    z-index: 5;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    transition: all 0.25s ease;
}

.gallery-nav-btn:hover {
    background-color: #8b5a2b;
    color: #ffffff;
    border-color: #e8c49e;
    box-shadow: 0 6px 20px rgba(139, 90, 43, 0.6);
    transform: scale(1.08);
}

@media (max-width: 767px) {
    .gallery-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
}

/* Filmstrip Thumbnails Bar */
.gallery-filmstrip-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-filmstrip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 2px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

/* Custom scrollbar for filmstrip */
.gallery-filmstrip::-webkit-scrollbar {
    height: 6px;
}

.gallery-filmstrip::-webkit-scrollbar-track {
    background: #191c1d;
    border-radius: 10px;
}

.gallery-filmstrip::-webkit-scrollbar-thumb {
    background: #463020;
    border-radius: 10px;
}

.gallery-filmstrip::-webkit-scrollbar-thumb:hover {
    background: #8b5a2b;
}

.filmstrip-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #242829;
    border: 1px solid rgba(232, 196, 158, 0.3);
    color: #e8c49e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.filmstrip-arrow:hover {
    background-color: #8b5a2b;
    color: #fff;
    border-color: #e8c49e;
}

/* Thumbnail Item */
.gallery-thumb-item {
    width: 82px;
    height: 62px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background-color: #1a1c1e;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.25s ease;
}

@media (max-width: 767px) {
    .gallery-thumb-item {
        width: 70px;
        height: 52px;
    }
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb-item:hover {
    opacity: 0.9;
    border-color: rgba(232, 196, 158, 0.6);
    transform: translateY(-2px);
}

.gallery-thumb-item.active {
    opacity: 1;
    border-color: #e8c49e;
    box-shadow: 0 0 12px rgba(232, 196, 158, 0.65);
    transform: translateY(-2px);
}

.gallery-thumb-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.58rem;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.75);
    color: #e8c49e;
    font-weight: 700;
}

/* Smooth Scrolling & Section Offsets */
html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 250px;
}

#inicio {
    scroll-margin-top: 1000px;
}

#nosotros {
    scroll-margin-top: 125px;
}

#servicios {
    scroll-margin-top: 157px;
}

#portafolio {
    scroll-margin-top: 100px;
}

#contacto {
    scroll-margin-top: 100px;
}

/* Footer */
footer a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
}

footer a:hover {
    color: #dcb38a;
}

/* Contact Brand Card & Logo Hover Effects */
.contact-brand-card {
    background: #1b1e1f !important;
    border: 1px solid #363b3d !important;
    border-left: 6px solid #8b5a2b !important;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4) !important;
    border-color: #8b5a2b !important;
    background: #202325 !important;
}

.contact-logo-box {
    background: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 12px !important;
    padding: 7px 18px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.contact-brand-card:hover .contact-logo-box {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25) !important;
    border-color: #ffffff !important;
    background: #ffffff !important;
}

.contact-logo-img {
    max-height: 52px;
    width: auto;
    transition: filter 0.35s ease;
}

.contact-brand-card:hover .contact-logo-img {
    filter: drop-shadow(0 2px 4px rgba(74, 40, 16, 0.35));
}

/* Feature Budget Card (Sobre Nosotros) - Madera Tostada Opaca y Elegante */
.feature-budget-card {
    background: #38261a !important;
    border: 1.5px solid #5c3e29 !important;
    border-left: 8px solid #c8955c !important;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
}

.feature-budget-card:hover {
    transform: translateY(-4px);
    border-color: #c8955c !important;
    background: #442f21 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 15px rgba(200, 149, 92, 0.2) !important;
}

.budget-icon-box {
    width: 60px;
    height: 60px;
    background: #27190f !important;
    border: 2px solid #8b5a2b !important;
    color: #e8c49e !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-budget-card:hover .budget-icon-box {
    transform: scale(1.08) rotate(-4deg);
    border-color: #c8955c !important;
}

.badge-sin-cargo {
    background: #198754 !important;
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.35);
}

.transition-arrow {
    transition: transform 0.3s ease;
}

/* Instagram Button (igual comportamiento que el botón de WhatsApp) */
.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border: none !important;
    color: #ffffff !important;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, filter .15s ease-in-out !important;
}

.btn-instagram:hover, .btn-instagram:focus, .btn-instagram:active {
    background: linear-gradient(45deg, #d87e24 0%, #cf572c 25%, #c41e38 50%, #b51957 75%, #a41075 100%) !important;
    filter: brightness(0.92);
    color: #ffffff !important;
    border: none !important;
}

/* About Us Image Frame (Fijo, elegante y sin efectos) */
.about-img-container {
    position: relative;
    border-radius: 18px;
    padding: 5px;
    background: linear-gradient(135deg, #faecd9 0%, #c8955c 45%, #5c3a21 100%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.about-img-wrapper {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background-color: #1b1e1f;
}

.about-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

/* Floating WhatsApp Quick Action Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    z-index: 1050;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    text-decoration: none;
}

.whatsapp-float-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
    filter: brightness(1.06);
    color: #ffffff !important;
}

@media (max-width: 576px) {
    .whatsapp-float-btn {
        bottom: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
        font-size: 28px;
    }
}
