/*
   Visual4 Style overrides
*/

:root {
    --primary-color: #d4af37;
    /* Gold / Elegance */
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Typography Helpers */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.max-w-800 {
    max-width: 800px;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Navbar */
.sticky-navbar {
    transition: all 0.3s ease;
    background-color: rgba(26, 26, 26, 0.95) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.sticky-navbar .nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.sticky-navbar .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 80px;
    /* Offset for fixed navbar */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), #1a1a1a;
    background-color: #111;
    /* Fallback */
    margin-top: 0;
}

.z-id-1 {
    z-index: 1;
}

.shadow-text {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Divider */
.divider {
    height: 3px;
    width: 60px;
}

/* Service Cards */
.card-icon-wrapper {
    height: 120px;
    border-radius: 0 0 50% 50%;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.service-card {
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14) !important;
}

.service-card:hover .card-icon-wrapper {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.service-media {
    position: relative;
    overflow: hidden;
    height: clamp(210px, 24vw, 270px);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.7s ease;
}

.service-card:hover .service-image {
    transform: scale(1.08);
}

.service-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 25%, rgba(0, 0, 0, 0.82) 100%);
}

.service-title {
    color: #fff;
    font-weight: 700;
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.service-chip {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border-radius: 999px;
    padding: 0.32rem 0.78rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #111;
    background-color: var(--primary-color);
}

/* Service Detail Page */
.service-detail-hero {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.2rem, 4vw, 2.5rem);
    border-radius: 1.2rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
}

.service-detail-hero.without-photo {
    background-image: linear-gradient(125deg, rgba(18, 18, 18, 0.95) 15%, rgba(37, 37, 37, 0.9) 100%);
}

.service-detail-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.service-detail-hero-icon {
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.service-gallery-media {
    position: relative;
    display: block;
    overflow: hidden;
    height: clamp(190px, 20vw, 235px);
    text-decoration: none;
}

.service-gallery-image {
    transform: scale(1);
    transition: transform 0.6s ease;
}

.service-gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .service-gallery-image {
    transform: scale(1.08);
}

.gallery-card:hover .service-gallery-overlay {
    opacity: 1;
}

.lightbox-open {
    overflow: hidden;
}

.service-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.8rem, 2.5vw, 1.8rem);
    background: rgba(0, 0, 0, 0.88);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.service-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.service-lightbox-image {
    width: min(92vw, 1100px);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 0.8rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.service-lightbox-close,
.service-lightbox-nav {
    position: absolute;
    border: 0;
    color: #fff;
    background: rgba(20, 20, 20, 0.7);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.service-lightbox-close:hover,
.service-lightbox-nav:hover {
    background: rgba(212, 175, 55, 0.92);
    transform: scale(1.05);
}

.service-lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    font-size: 1.8rem;
    line-height: 1;
}

.service-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-lightbox-prev {
    left: clamp(0.4rem, 2vw, 1.2rem);
}

.service-lightbox-next {
    right: clamp(0.4rem, 2vw, 1.2rem);
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

/* Buttons */
.btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-dark:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.hover-effect {
    transition: all 0.3s ease;
}

.hover-effect:hover {
    transform: scale(1.05);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

@media (max-width: 575.98px) {
    .service-media {
        height: 220px;
    }

    .service-detail-hero {
        border-radius: 1rem;
        padding: 1.2rem;
    }

    .service-gallery-media {
        height: 220px;
    }

    .service-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .service-lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1.5s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 1.5s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

/* Transiciones tema claro/oscuro suaves */
.transition-theme {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ajustes adicionales para Dark Mode de Bootstrap */
[data-bs-theme="dark"] .bg-body {
    background-color: #121212 !important;
}

[data-bs-theme="dark"] .bg-body-tertiary {
    background-color: #1a1d20 !important;
}

[data-bs-theme="dark"] .service-card,
[data-bs-theme="dark"] .card {
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #2b3035 !important;
    color: #fff !important;
}
