/* ==========================================================================
   CONFIGURACIÓN DE FUENTES LOCALES (VENDOR)
   ========================================================================== */
/* --- Montserrat --- */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../vendor/fonts/montserrat-v31-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../vendor/fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../vendor/fonts/montserrat-v31-latin-700.woff2') format('woff2');
}

/* Roboto */
@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('../vendor/fonts/roboto-v51-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('../vendor/fonts/roboto-v51-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('../vendor/fonts/roboto-v51-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
    --primary-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --secondary-font: "Montserrat",  sans-serif;
}
:root {
    --background-color: #F2ECD8;
    --default-color: #2F3640;
    --default-color-rgba: rgba(47,54,64,0.3);
    --topvar-color: #F5F5DC;
    --light-color: #434a53;
    --accent-color: #2F3640;
    --accent-color-dark: #1c2026;
    --contrast-color: #F5F5DC;
    --nav-text-color: #2F3640;
    --accent-text-color: #FA243D; /* #D0222C #D9342F #D1021F #C54C49 #FA243D*/
    --accent-text-color-rgba: rgba(250, 36, 61, 0.9);
    --accent-text-color-dark: #cd2534;
    --background-color-rgba: rgba(47,54,64,0.05);
    --main-text-color: #F5F5DC;
    --contrast-muted-text-color: #d1d5db;

    --text-muted-color: #b0b0b0;
    --primary-black: #121212;
    --accent-black: #121212;
    --accent-gold: #d4af37;
    --accent-darkgold: #b8952e;
    --accent-red: #E63946;
    --accent-orange: #F4A261;
    --aguayo-yellow: #E9C46A;
    --glass-bg: rgba(255, 255, 255, 0.75);
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--default-color);
    overflow-x: hidden;
    background-color: var(--background-color);
    background-image: url('../../assets/img/bg.webp');
    min-height: 100vh;
    margin: 0;
}

h1, h2, h3, .navbar-brand {
    font-family: var(--primary-font);
}

h1.display-4 {
    font-size: 2.8rem; /* Tamaño más contenido para el Hero */
    line-height: 1.2;
}

h2.display-5 {
    font-size: 2rem; /* Tamaño más elegante para los encabezados de sección */
    letter-spacing: 1px;
}

section {
    padding-top: 5.5rem !important;
}

.header-section p {
    font-size: 0.9rem;
    margin-top: 0px;
    line-height: 1.6;
}

section .header-section p.header-text {
    color: var(--accent-text-color) !important;
    font-size: .8rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
}
section .header-section p.header-final-text { max-width: 700px; }

.text-muted {
    color: var(--default-color) !important;
}

.divider {
    background-color: var(--default-color) !important;
    width: 60px;
    height: 3px;
    margin-top: 10px;
}

.bg-custom-dark { background-color: var(--background-color-rgba); }

/* ==========================================================================
   LOADER
   ========================================================================== */
#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   SPINNER
   ========================================================================== */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--accent-gold);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   BACKTOTOP
   ========================================================================== */
#backToTop {
    position: fixed;
    bottom: 90px;
    right: 28px;
    background: var(--accent-text-color);
    color: var(--contrast-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: none;
    z-index: 996;
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar {
    background-color: var(--default-color);
    color: var(--topvar-color);
    height: 30px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    transition: transform 0.3s ease-in-out;
}

.topbar-socials a { color: var(--topvar-color); margin-right: 15px; font-size: 15px; text-decoration: none; }
.topbar-contact { font-size: 13px; font-weight: 500; }
.topbar-contact a { color: var(--topvar-color); }
.topbar.hidden { transform: translateY(-100%); }
.topbar-socials a i { transition: transform 0.2s ease; }
.topbar-socials a i:hover { transform: scale(1.3); }

/* ==========================================================================
   NAVBAR MAESTRO
   ========================================================================== */
#mainNav {
    background-color: var(--background-color) !important;
    background-image: url('../../assets/img/bg-navbar.webp');
    backdrop-filter: blur(15px) saturate(180%);
    background-size: cover;
    -webkit-backdrop-filter: blur(15px) saturate(180%); /* Soporte para Safari */
    padding: 0.5rem 0 !important;
    min-height: 85px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(47,54,64, 0.5) !important;
    box-shadow: 0 4px 30px rgba(47,54,64, 0.5);
    transition: all 0.4s ease-in-out;
    overflow: visible !important; /* PERMITE que el logo sobresalga */
    height: 100px;
    z-index: 1000;
    position: fixed;
    top: 0;
    width: 100%;
}

.container-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* --- Tipografía y Enlaces --- */
.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--nav-text-color) !important;
    padding: 0.5rem 1.2rem !important;
    white-space: nowrap;
    transition: color 0.3s ease;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.nav-link:hover {
    color: var(--accent-text-color) !important;
}

/* Bloque Izquierdo (Inicio, Colección, Nosotros) */
.collapse.nav-group.d-none.d-lg-flex {
    margin-right: 50px; /* Crea espacio a la derecha del bloque izquierdo */
}

/* Bloque Derecho (Login, Contacto, Pedidos) */
#navbarNav.collapse.nav-group {
    margin-left: 50px; /* Crea espacio a la izquierda del bloque derecho */
}

.container.container-nav {
    display: flex;
    justify-content: space-between; /* Distribuye los 3 bloques */
    align-items: center;
    height: 80px; /* Altura fija del navbar */
}

/* --- Logo Central --- */
.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 25px;
    margin: 0 !important;
    position: relative;
    z-index: 1001;
    height: 100%;
}

.nav-logo-img {
    height: 110px;
    filter: brightness(1) invert(0);
    width: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-40%) translateX(-50%);
    filter: drop-shadow(0px 8px 15px rgba(242,236,216,0.9));
    transition: all 0.3s ease;
    z-index: 1050;
}

#mainNav .btn-cta-nav {
    background-color: var(--accent-text-color);
    color: var(--contrast-color) !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    border: 2px solid var(--accent-text-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(47, 54, 64, 0.15);
}
#mainNav .btn-cta-nav:hover {
    transform: translateY(-2px);
    border: 2px solid var(--accent-text-color-dark);
    box-shadow: 0 8px 20px rgba(47, 54, 64, 0.25);
}

/* --- Ícono Hamburguesa a "X" --- */
/* Menu Hamburguesa */
.navbar-toggler {
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.hamburger {
    width: 28px; /* Ancho clásico */
    height: 3px;  /* Grosor definido */
    background: var(--accent-text-color);
    display: block;
    position: relative;
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

/* Las otras dos líneas */
.hamburger::before,
.hamburger::after {
    content: '';
    width: 28px;
    height: 3px;
    background: var(--accent-text-color);
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

/* Espaciado clásico de las líneas */
.hamburger::before { top: -9px; }
.hamburger::after { top: 9px; }

/* Transformación limpia a X (sin iconos fantasma) */
.menu-active .hamburger {
    background: transparent !important; /* Desaparece la línea del centro */
}

.menu-active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* --- COMPORTAMIENTO DESKTOP (992px+) --- */
@media (min-width: 992px) {
    .logo-wrapper {
        width: 150px; /* Definimos un ancho fijo para el "área" del logo */
        display: flex;
        justify-content: center;
        position: relative;
    }
    
    .nav-logo-img {
        /* Mantenemos tus ajustes anteriores, pero aseguramos el centrado */
        position: absolute;
        left: 50%;
        transform: translateX(-50%) translateY(-40%); /* Centrado horizontal y desfase vertical */
        z-index: 1050;
    }

    .nav-group {
        flex: 1; 
        display: flex !important;
    }
    
    .nav-group:first-child { justify-content: flex-end; }
    .nav-group:last-child { justify-content: flex-start; }
}

/* --- COMPORTAMIENTO MÓVIL (Bajo 992px) --- */
@media (max-width: 991.98px) {
    #mainNav {
        height: auto; /* Que se ajuste al contenido en móvil */
    }

    .container-nav {
        justify-content: center !important; /* Centra el logo */
    }

    .navbar-toggler {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-logo-img {
        position: static; /* Vuelve a su lugar normal */
        transform: none;
        height: 100px; /* Tamaño prudente */
        margin-top: 15px;
    }

    /* Menú Desplegable Instantáneo */
    .navbar-collapse {
        display: none; 
    }

    .navbar-collapse.show {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a1a1a !important;
        background-image: url('../../assets/img/dark-wood.webp');
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 30px 20px;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(212, 175, 55, 0.3);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        z-index: 1000;
    }
    .collapse.nav-group.d-none.d-lg-flex,
    #navbarNav.collapse.nav-group {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .nav-link {
        border-bottom: 1px solid rgba(255,255,255,0.05);
        color: var(--main-text-color) !important;
        padding: 15px !important;
        font-size: .8rem;
    }

    .btn-cta-nav {
        margin-top: 25px;
        width: 100%;
        display: inline-block;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
#hero {
    min-height: 100vh;
    overflow: hidden; /* Evita scrolls horizontales por animaciones */
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px; /* Espacio para que el navbar "flotante" no tape el h1 */

    background-image: url('../../assets/img/bg-hero.webp'); /* Ajusta la ruta según tu proyecto */
    background-size: cover; /* Asegura que cubra todo el espacio sin deformarse */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat;

    /* 2. Superposición Oscura (Overlay) para Legibilidad del Texto */
    background-color: rgba(0, 0, 0, 0.1); 
    background-blend-mode: darken; /* Mezcla el color negro con la imagen */
}

/* --- Estilos de Texto sobre Fondo Oscuro --- */
#hero h1 {
    color: #f5f5f5; /* Blanco marfil para elegancia */
    font-family: var(--primary-font); /* O tu tipografía serif principal */
    font-size: 50px;
    line-height: 1.1;
    text-align: left;
    text-shadow: 2px 2px 4px #000;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.6)); /* Sutil relieve para despegar del fondo */
}

#hero .hero-description {
    color: #e0e0e0 !important; /* Gris muy claro (casi blanco) para máxima legibilidad */
    text-align: left;
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 500;
    max-width: 800px;
    margin-left: 0;
    text-shadow: 2px 2px 4px #000;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.5));
}

#hero .btn-cta {
    background-color: var(--accent-text-color);
    color: var(--contrast-color) !important;
    border: 2px solid var(--accent-text-color);
    border-radius: 50px;
    padding: 12px 35px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(208, 34, 44, 0.3);
}
#hero .btn-cta:hover {
    background-color: var(--accent-text-color);
    border: 2px solid var(--accent-text-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(208, 34, 44, 0.4);
}

/* Media query para móviles y tablets */
@media (max-width: 991.98px) {
    #hero {
        padding-top: 140px !important;
        padding-bottom: 60px;
        text-align: center;
        min-height: auto;
    }

    #hero h1, .hero-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    #hero .display-4 {
        font-size: 2.2rem;
    }

    #hero .lead {
        font-size: 1.1rem;
        margin-bottom: 2rem !important;
    }
}
@media (max-width: 480px) { #hero { background-image: url('../../assets/img/bg-hero480.webp'); } }

/* ==========================================================================
   SECCIÓN MENÚ
   ========================================================================== */
#menu a {
    text-decoration: none;
    color: inherit;
}

#menu h2 {
    color: var(--default-color);
    font-family: var(--primary-font);
}

#menu .product-card {
    background-color: var(--default-color) !important;
    border: 1px solid var(--accent-color) !important;
    border-radius: 15px;
    
    /* Sombra inicial suave */
    box-shadow: 0 4px 12px rgba(47, 54, 64, 0.12) !important;
    
    /* Transición limpia solo para el desplazamiento y la sombra (eliminamos el scale) */
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
                
    position: relative;
    overflow: hidden;
    
    /* Estabilizadores de hardware */
    transform: translateY(0);
    will-change: transform, box-shadow;
}

/* Pseudo-elemento para crear el cambio de color del borde sin mover el DOM */
#menu .product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px; /* Un pelo menor para ajustarse por dentro */
    border: 1px solid var(--accent-text-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

#menu .product-card:hover {
    /* 1. Elevamos la tarjeta limpiamente solo en el eje Y (sin usar scale) */
    transform: translateY(-8px);
    
    /* 2. La sombra se vuelve más profunda e intensa abajo, dando el efecto óptico de tamaño */
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28) !important;
}

/* 3. Activamos el borde de acento mediante opacidad en lugar de redibujar el borde original */
#menu .product-card:hover::before {
    opacity: 1;
}

/* Contenedor de la fotografía vertical (Ratio 2:3) */
#menu .product-img-portrait {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    background-color: #1e2229; /* Fondo oscuro premium para la carga de imagen */
    overflow: hidden;
}

#menu .product-img-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.93);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), 
                filter 0.4s ease;
}

/* Efecto sutil en la imagen al hacer hover en la tarjeta */
#menu .product-card:hover .product-img-portrait img {
    transform: scale(1.02);
    filter: brightness(0.95);
}

/* Badge del Código del Instrumento */
#menu .product-code-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(47, 54, 64, 0.85); /* Uso del color base con opacidad */
    color: #FDFBF7;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: monospace;
    font-weight: bold;
    letter-spacing: 0.5px;
    z-index: 5;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Textos internos */
#menu .product-card .card-title {
    font-family: var(--primary-font);
    font-size: 1.05rem;
    color: var(--main-text-color) !important;
    letter-spacing: 0.5px;
}

#menu .product-card .card-text {
    color: #b0b5bc !important; /* Un gris un poco más claro que #ccc para mejorar la accesibilidad AA */
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Animación sutil del icono de WhatsApp al interactuar */
#menu .product-card .btn-pedido-minimal i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

#menu .product-card:hover .btn-pedido-minimal i {
    transform: scale(1.15) rotate(-8deg);
}

/* Tratamiento visual premium para productos Agotados */
#menu .product-out-of-stock .product-img-portrait {
    filter: grayscale(0.6);
    opacity: 0.7;
}
#menu .product-out-of-stock:hover {
    transform: none; /* Evita que las tarjetas agotadas llamen la atención con animaciones */
    box-shadow: 0 5px 15px rgba(47, 54, 64, 0.15) !important;
}

#menu .btn-pedido-minimal {
    background-color: var(--accent-text-color);
    border: 2px solid var(--accent-color-dark);
    color: var(--main-text-color) !important;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 24px !important;
}
#menu .btn-pedido-minimal:hover { color: var(--contrast-color) !important; }

/* Ajuste para que las tarjetas mantengan altura uniforme */
#menu .product-card .card-body {
    display: flex;
    flex-direction: column;
}

#menu .product-card .btn {
    transition: transform 0.3s ease;
}

/* Estilo base para las cintas */
#menu .ribbon {
    position: absolute;
    top: 10px;
    right: -30px;
    transform: rotate(45deg);
    width: 120px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    padding: 5px 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#menu .ribbon-new { background-color: #28a745; }      /* Verde */
#menu .ribbon-featured { background-color: #ffc107; } /* Dorado */
#menu .ribbon-out { background-color: #dc3545; }      /* Rojo */

/* ==========================================================================
   CONCEPT SECTION
   ========================================================================== */
#concept {
    overflow: visible !important;
}

#concept .concept-info-card {
    background-color: var(--background-color) !important;
}

#concept .concept-info-card .text-main {
    font-size: 0.95rem;
}

#concept .icon-box {
    color: var(--main-text-color);
    min-width: 60px;
    height: 60px;
    background: var(--accent-text-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

#concept .service-item:hover .icon-box {
    transform: rotate(-10deg) scale(1.1);
    background: var(--default-color);
}

#concept .service-item:hover .icon-box i {
    color: #fff !important;
}

/* Decoración Aguayo para la imagen */
#concept .aguayo-stripe {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    background: repeating-linear-gradient(
        45deg,
        var(--accent-red),
        var(--accent-red) 10px,
        #F4A261 10px,
        #F4A261 20px,
        #E9C46A 20px,
        #E9C46A 30px
    );
    z-index: -1;
    border-radius: 15px;
}

#concept .service-item h5 {
    color: var(--default-color);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Separador sutil entre servicios para mejorar la legibilidad */
#concept .border-bottom-dashed {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}
#concept .service-item:last-child {
    border-bottom: none;
}

/* Contenedor de la imagen del servicio */
#concept .service-img-wrapper {
    width: 90px;
    height: 90px;
    position: relative;
    overflow: hidden;
    border: 2px solid #FDFBF7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    transition: all 0.3s ease;
}

#concept .service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Efecto Hover Premium sobre la imagen */
#concept .img-overlay-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#concept .service-img-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

#concept .service-img-wrapper:hover img {
    transform: scale(1.1);
}

#concept .service-img-wrapper:hover .img-overlay-hover {
    opacity: 1;
}

#concept .service-item .small {
    line-height: 1.4;
}

/* Comportamiento Sticky Avanzado */
@media (min-width: 992px) {
    #concept .sticky-wrapper {
        position: -webkit-sticky;
        position: sticky;
        top: 110px; /* Margen de seguridad adaptativo para navbars fijos */
        z-index: 10;
    }
}

/* ==========================================================================
   SECCIÓN CONTACTO
   ========================================================================== */
#contacto .contact-info-card {
    background-color: var(--default-color) !important;
}

#contacto .contact-title { color: var(--main-text-color); }
#contacto .contact-desc { color: var(--text-muted-color); }

/* Iconos de contacto con la paleta de colores */
#contacto .contact-icon {
    width: 45px;
    height: 45px;
    background: var(--accent-text-color);
    color: var(--contrast-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* Efecto Dark para Google Maps */
#contacto .map-container iframe {
    /* filter: grayscale(100%) invert(92%) contrast(83%); */ /* Ajuste para tono oscuro premium */
    transition: filter 0.5s ease;
}

#contacto .map-container:hover iframe {
    filter: grayscale(0%) invert(0%) contrast(100%); /* Vuelve a color al pasar el mouse */
}

/* Ajuste de altura para que ambas columnas midan lo mismo en Desktop */
@media (min-width: 992px) {
    #contacto .map-container {
        min-height: 100%;
    }
}

/* Nunca tono oscuro en móviles */
@media (max-width: 991.98px) {
    #contacto .map-container iframe {
        filter: grayscale(0%) invert(0%) contrast(100%);
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--primary-black);
    background-image: url('../../assets/img/dark-wood.webp');
    backdrop-filter: blur(15px) saturate(180%);
    background-size: cover;
    color: var(--default-color);
}

.footer h4, 
.footer h5, 
.footer .fs-4 {
    font-size: 1.05rem !important; /* Reducción para mayor elegancia */
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem !important;
}

.footer-logo span {
    font-size: 1.15rem !important;
    font-family: 'Montserrat', sans-serif; /* Cambio a Montserrat para limpieza */
}

/* Iconos de Redes Sociales (50% más grandes + Animación) */
.social-links-container {
    display: flex;
    gap: 20px;
}

.social-icon {
    color: var(--accent-text-color) !important;
    font-size: 1.45rem; /* Tamaño equilibrado: notable pero sutil */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}
.social-icon:hover {
    transform: translateY(-5px); /* Flotación un poco más corta para mayor elegancia */
    color: var(--accent-text-color-dark) !important;
    filter: drop-shadow(0 4px 8px rgba(250, 36, 61, 0.3));
}

/* Links de Navegación */
.footer-nav a {
    font-size: .95rem;
    text-decoration: none;
    color: var(--contrast-muted-text-color) !important;
    transition: 0.3s;
    display: flex;
    align-items: center;
}
.footer-nav a:hover { color: var(--main-text-color) !important; padding-left: 10px; }

.footer-nav a i {
    font-size: 0.8rem;
    color: var(--accent-text-color);
}

.footer-content {
    color: var(--contrast-muted-text-color) !important;
}

/* Botón CTA del Footer (Rojo Resaltante) */
.btn-footer-cta {
    background-color: var(--accent-text-color);
    color: var(--main-text-color) !important;
    border: none;
    border-radius: 50px;
    padding: 15px 35px;
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(250, 36, 61, 0.4);
}

.btn-footer-cta:hover {
    background-color: var(--accent-text-color-dark); /* Un rojo un poco más oscuro para el hover */
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(250, 36, 61, 0.6);
}

@media (max-width: 768px) {
    #hero { text-align: center; }
}

/* --- Botón de WhatsApp --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px; /* Distancia al borde inferior */
    right: 20px;  /* Distancia al borde derecho */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
}

/* --- Ajuste del Navbar para evitar el espacio en blanco --- */

/* En computadoras (cuando existe topbar) */
@media (min-width: 992px) {
    #mainNav {
        top: 30px; /* Altura de la topbar */
        transition: top 0.3s ease-in-out;
    }
}

/* En móviles (eliminamos el espacio por completo) */
@media (max-width: 991.98px) {
    #mainNav {
        top: 0 !important;
    }
    body {
        padding-top: 0 !important;
    }
}

/* Clase para ocultar con Scroll */
.topbar.hidden {
    transform: translateY(-100%);
}

.topbar.hidden + #mainNav {
    top: 0 !important;
}

/* ==========================================================================
   SECCIÓN GALLERY
   ========================================================================== */
#gallery .premiumSwiper {
    padding-bottom: 60px; /* Espacio para los puntos de paginación */
}

#gallery .premiumSwiper .swiper-slide {
    position: relative; /* Esencial para el posicionamiento absoluto del texto */
    height: 550px; 
    width: auto;
    aspect-ratio: 2 / 3; /* Forzamos la relación de aspecto vertical premium 2:3 */
    border-radius: 12px;
    overflow: hidden;
    background: #FDFBF7; /* El tono crema de fondo que pediste para unificar */
}

#gallery .premiumSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen manteniendo facciones e instrumentos sin deformar */
    display: block;
    transition: transform 0.4s ease;
}

#gallery .premiumSwiper .swiper-slide:hover img {
    transform: scale(1.08);
}

#gallery .premiumSwiper .swiper-slide .lightboxslider {
    display: block;
    width: 100%;
    height: 100%;
}

#gallery .swiper-button-next, 
#gallery .swiper-button-prev {

    color: var(--default-color) !important;
    top: auto;
    bottom: 0px;
    transform: none;
    width: 40px;
    height: 40px;
}

#gallery .swiper-button-prev { left: 0%; }
#gallery .swiper-button-next { right: 0%; }
#gallery .swiper-button-next:after,
#gallery .swiper-button-prev:after { font-size: 25px; font-weight: bold; }

/* Personalización de los puntos de paginación */
#gallery .premiumSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--default-color-rgba);
    opacity: 1;
    border-radius: 50%; /* Un toque levemente redondeado o 0 para recto total */
    transition: all 0.3s ease;
}

#gallery .premiumSwiper .swiper-pagination-bullet-active {
    background: var(--accent-text-color) !important;
    opacity: 1;
    width: 25px;
    height: 8px;
    border-radius: 4px;
}

/* Contenedor del texto y del degradado premium */
#gallery .premiumSwiper .gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px 20px; /* Más padding arriba para extender el degradado */
    /* Degradado sutil de negro transparente a negro semi-transparente */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none; /* Permite que los clics pasen a través del texto hacia el enlace */
    z-index: 2;
}

/* Estilo del texto de descripción */
#gallery .premiumSwiper .gallery-title {
    color: var(--main-text-color);
    margin: 0;
    font-size: .8rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Refuerzo de lectura */
    text-align: left;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

#gallery .premiumSwiper .gallery-description {
    color: #FDFBF7; /* Tono premium sutilmente cálido */
    margin: 0;
    font-size: .7rem;
    font-weight: 500;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Refuerzo de lectura */
    text-align: left;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

/* Opcional: Ligero movimiento del texto al pasar el mouse para un toque interactivo */
#gallery .premiumSwiper .swiper-slide:hover .gallery-description {
    transform: translateY(-2px);
}

.privacy-content {
    background-color: var(--background-color);
    color: var(--default-color);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
#services .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

#services .service-card {
    background-color: var(--default-color);
    color: var(--main-text-color);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: left;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#services .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

#services .card-top {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

#services .service-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    text-align: center;
/*     align-items: center;
    justify-content: center; */
}

#services .service-icon i {
    font-size: 2.4rem;
    width: 100%;
    height: 100%;
    color: var(--accent-text-color)
}

#services .service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    color: var(--main-text-color)
}

#services .service-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--contrast-muted-text-color);
}

#services .services-cta {
    text-align: center;
    margin-top: 20px;
}

#services .cta-button {
    display: inline-block;
    background-color: var(--accent-text-color);
    color: var(--contrast-color) !important;
    border: 2px solid var(--accent-text-color);
    padding: 12px 35px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(208, 34, 44, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
#services .cta-button:hover {
    background-color: var(--accent-text-color);
    border: 2px solid var(--accent-text-color-dark);
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(208, 34, 44, 0.4);
}

/* Ajustes de Adaptabilidad Móvil */
@media (max-width: 768px) {
    #services .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
    #services .services-header h2 {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   TESTIMONIAL SECTION
   ========================================================================== */
.testimonials {
    position: relative;
}

.testimonials .container {
    position: relative;
    z-index: 2; /* Asegura que el contenido esté sobre la capa oscura */
}

#testimonials .mySwiper {
    padding-bottom: 60px; /* Espacio extra para navegación y paginación */
    position: relative;
}

#testimonials .testimonial-card {
    background: rgba(47,54,64,0.9);
    backdrop-filter: blur(5px); /* Efecto de cristal esmerilado muy elegante */
    padding: 45px 35px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.15); /* Bordes sutiles en oro */
    /* margin: 20px; */
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

#testimonials .profile-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-text-color);
    box-shadow: 0 0 15px var(--accent-text-color-rgba);
}

#testimonials .profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#testimonials .client-name {
    font-size: 1.5rem;
    color: var(--main-text-color);
    margin-bottom: 5px;
}

#testimonials .client-role {
    color: var(--contrast-muted-text-color);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

#testimonials .testimonial-text {
    color: var(--contrast-muted-text-color);
    line-height: 1.6;
    font-size: 1rem;
}

#testimonials .quote-container {
    position: relative;
    padding: 10px 0;
    margin-bottom: 1rem;
}

#testimonials .quote-icon {
    font-size: 1.5rem;
    color: var(--accent-text-color);
    opacity: 0.8;
    line-height: 0;
}

#testimonials .quote-icon .rotate {
    transform: rotate(180deg);
    display: inline-block; /* Necesario para que funcione en elementos inline */
}

/* Estrellas doradas con brillo */
#testimonials .stars {
    color: var(--accent-text-color);
    text-shadow: 0 0 8px var(--accent-text-color-rgba);
}

/* Navegación Swiper adaptada */
#testimonials .swiper-button-next, 
#testimonials .swiper-button-prev {
    color: var(--default-color) !important;
    top: auto;
    bottom: 0px; /* Las bajamos al área del padding */
    transform: none;
    width: 40px;
    height: 40px;
}

#testimonials .swiper-button-prev { left: 0%; }
#testimonials .swiper-button-next { right: 0%; }
#testimonials .swiper-button-next:after,
#testimonials .swiper-button-prev:after { font-size: 25px; font-weight: bold; }

#testimonials .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--default-color-rgba) !important;
    opacity: 1;
    border-radius: 50%; /* Un toque levemente redondeado o 0 para recto total */
    transition: all 0.3s ease;
}

#testimonials .swiper-pagination-bullet-active {
    width: 25px; /* Lo convertimos en un rectángulo alargado */
    height: 8px;
    background: var(--accent-text-color) !important; /* Oro viejo para el activo */
    border-radius: 4px;
}

/* @media (min-width: 769px) and (max-width: 992px) {
    #testimonials .swiper-button-prev { left: 35%; }
    #testimonials .swiper-button-next { right: 35%; }
}
@media (max-width: 768px) {
    #testimonials .swiper-button-prev { left: 30%; }
    #testimonials .swiper-button-next { right: 30%; }
} */

/* ==========================================================================
   #CONTACT-FORM SECTION 
   ========================================================================== */
#contact-form .contact-form {
    /* Fondo oscuro con 80% de opacidad para dejar pasar la textura */
    background-color: rgba(47, 54, 64, 0.8) !important; 
    
    /* Efecto de desenfoque de fondo (clave para el estilo premium) */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Borde sutil en oro viejo para definir el área */
    border: 1px solid var(--accent-color-dark);
    
    /* Sombra profunda para dar elevación */
    box-shadow: 0 20px 40px rgba(47, 54, 64, 0.6) !important;
    
    /* Espaciado y suavizado de esquinas */
    padding: 40px !important;
    border-radius: 20px !important;
    
    /* Aseguramos que el texto descriptivo inferior sea legible */
    color: var(--contrast-muted-text-color); 
}

/* Ajuste para el texto de "campos obligatorios" al pie del formulario */
#contact-form .contact-form .footer-text {
    color: var(--contrast-muted-text-color); 
    font-size: 0.85rem;
    margin-top: 15px;
}

#contact-form .form-control-custom {
    display: block;
    width: 100%;
    padding: 12px 20px; /* Más aire interno para sensación premium */
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--main-text-color);
    background-color: rgba(47, 54, 64, 0.8); /* Fondo oscuro translúcido */
    background-clip: padding-box;
    border: 1px solid rgba(250, 36, 61, 0.3); /* Borde oro viejo sutil */
    border-radius: 8px; /* Bordes suavizados */
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(5px); /* Efecto cristal esmerilado */
}

/* Estilo cuando el usuario hace clic (Focus) */
#contact-form .form-control-custom:focus {
    color: var(--main-text-color);
    background-color: rgba(47, 54, 64, 0.9);
    border-color: var(--accent-text-color);
    outline: 0;
    box-shadow: 0 0 10px rgba(250, 36, 61, 0.2);
}

/* Estilo del Placeholder (Texto de ejemplo) */
#contact-form .form-control-custom::placeholder {
    color: var(--text-muted-color);
    opacity: .8;
    font-style: italic;
}

#contact-form .form-select-custom {
    display: block;
    width: 100%;
    padding: 12px 2.25rem 12px 20px; /* Sincronizado con el padding de los inputs */
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--main-text-color);
    background-color: rgba(47, 54, 64, 0.8); /* Fondo oscuro translúcido */
    
    /* Flecha personalizada en color oro viejo (#d4af37) */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fa243d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    
    border: 1px solid rgba(250, 36, 61, 0.3); /* Borde sutil */
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    backdrop-filter: blur(5px);
    cursor: pointer;
}

/* Estado Focus: Al hacer clic o seleccionar */
#contact-form .form-select-custom:focus {
    border-color: var(--accent-text-color); /* Brillo dorado completo */
    outline: 0;
    box-shadow: 0 0 10px rgba(250, 36, 61, 0.2);
    color: var(--main-text-color);
}

/* Estilo para las opciones dentro del select (depende del navegador, pero ayuda) */
#contact-form .form-select-custom option {
    background-color: var(--default-color); /* Fondo sólido para las opciones */
    color: var(--main-text-color);
    padding: 10px;
}

/* Estilo para el botón de enviar */
#contact-form .btn-cta {
    background-color: var(--accent-text-color);
    color: var(--main-text-color);
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

#contact-form .btn-cta:hover {
    background-color: var(--accent-text-color-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   #RESTORATION SECTION 
   ========================================================================== */
/* Entorno del Slider */
#restoration .restoration-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* El riel que sostiene las tarjetas */
#restoration .restoration-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Oculta scrollbar en Firefox */
    padding: 1rem 0;
    width: 100%;
}

#restoration .restoration-track::-webkit-scrollbar {
    display: none; /* Oculta scrollbar en Chrome/Safari */
}

/* Tarjeta base optimizada para Mobile First */
#restoration .restoration-card {
    background: var(--default-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    flex: 0 0 100%; /* Ocupa todo el ancho en móviles */
    transition: transform 0.3s ease;
}

/* RESTRICCIÓN PARA PCs: Reducción de escala y centrado elegante */
@media (min-width: 992px) {
    #restoration .restoration-slider-wrapper {
        max-width: 750px; /* Tamaño controlado y estético para monitores */
        margin: 0 auto;  /* Centra todo el entorno en la pantalla */
    }
    #restoration .restoration-card {
        flex: 0 0 100%; /* Ajuste perfecto para el foco de un proyecto a la vez */
    }
}

/* Estructura interna de la comparación de imágenes */
#restoration .slider-comparison-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    --position: 50%;
    user-select: none;
}

#restoration .image-box {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
#restoration .image-box img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

#restoration .dynamic-before {
    width: var(--position);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    z-index: 2;
}
#restoration .dynamic-after { z-index: 1; }

#restoration .slider-input {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; cursor: ew-resize; z-index: 4; margin: 0;
}

#restoration .slider-handle {
    position: absolute;
    top: 0; bottom: 0; left: var(--position);
    transform: translateX(-50%); width: 2px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    pointer-events: none; z-index: 3;
}
#restoration .handle-line { flex-grow: 1; width: 2px; background-color: #ffffff; box-shadow: 0 0 4px rgba(0,0,0,0.4); }
#restoration .handle-button {
    width: 40px; height: 40px; border-radius: 50%; background-color: #ffffff;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25); color: #333; font-size: 14px;
}

#restoration .restoration-info { padding: 1.5rem; background: var(--default-color); }
#restoration .restoration-info h3 { margin: 0 0 0.5rem 0; font-size: 1.05rem; font-weight: 600; color: var(--main-text-color); }
#restoration .restoration-info p { margin: 0; font-size: 0.8rem; color: var(--contrast-muted-text-color); line-height: 1.3; }

/* Botones laterales de navegación */
#restoration .nav-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    z-index: 5;
}
#restoration .nav-slider-btn:hover { background: #ffffff; transform: translateY(-50%) scale(1.1); }
#restoration .nav-slider-btn.prev { left: -60px; }
#restoration .nav-slider-btn.next { right: -60px; }

/* Responsive para ocultar flechas si quedan fuera de la pantalla en móviles muy pequeños */
@media (max-width: 1140px) {
    #restoration .nav-slider-btn.prev { left: 10px; }
    #restoration .nav-slider-btn.next { right: 10px; }
}
