/* =========================================================
   VARIABLES - Paleta Refinada
========================================================= */
:root {
    --primary: #96693D;       /* Café balanceado, más profesional */
    --primary-dark: #7a5431;
    --dark: #2D2D2D;          /* Negro suave, no puro */
    --body-text: #555555;
    --light-bg: #F9FAFB;
    --border-color: #EEEEEE;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* =========================================================
   SPINNER (CORRECCIÓN CRÍTICA)
========================================================= */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* =========================================================
   BASE / TIPOGRAFÍA
========================================================= */
body {
    font-family: 'Inter', 'Open Sans', sans-serif;
    color: var(--body-text);
    background-color: var(--light-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Evita scroll horizontal innecesario */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* =========================================================
   NAVBAR & STICKY
========================================================= */
.sticky-top {
    top: -100px;
    transition: 0.5s;
    background: #ffffff;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    margin: 0 10px;
    padding: 25px 0;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* =========================================================
   BOTONES
========================================================= */
.btn {
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(150, 105, 61, 0.3);
}

/* =========================================================
   CAROUSEL (MEJORADO)
========================================================= */
.header-carousel .owl-carousel-item {
    position: relative;
    height: 100vh;
    min-height: 500px;
}

.header-carousel .owl-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .45); /* Oscurecido para mejor lectura */
    z-index: 1;
}

/* =========================================================
   CARDS / ITEMS (ZOOM EFECTO)
========================================================= */
.service-item, .portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 0 45px rgba(0,0,0,.06);
    transition: .5s;
}

.service-item:hover, .portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,.1);
}

.service-item img, .portfolio-item img {
    transition: .5s;
}

.service-item:hover img, .portfolio-item:hover img {
    transform: scale(1.1);
}

/* =========================================================
   BACK TO TOP
========================================================= */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
    background: #111111;
    color: #999999;
    font-size: 0.95rem;
}

.footer .btn-link {
    color: #999999;
    text-decoration: none;
    transition: .3s;
    display: block;
    margin-bottom: 8px;
}

.footer .btn-link:hover {
    color: var(--primary);
    padding-left: 10px;
}

.copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

/* Botón WhatsApp Siempre Fijo */
.btn-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px; 
    background-color: #25d366;
    color: #FFF !important;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 4px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex; /* Asegura que se vea desde el inicio */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.1) translateY(-5px);
    color: #fff;
}