/* =========================================
   VARIABLES & GLOBALS
========================================= */
:root {
    --brand-orange: #FF7A00;
    --brand-orange-hover: #e66d00;
    --brand-light: #FFF5EC;
    /* Fondo suave para secciones */
    --text-dark: #212529;
}

body, button, span.date_label, .timeline_items li h3 span, input[type="submit"], input[type="reset"], input[type="button"], input[type="text"], input[type="password"], input[type="tel"], input[type="email"], textarea, select, .offer_li .title h3 {
    font-family: 'Inter', sans-serif !important;
    color: var(--text-dark) !important;
}

p {
    font-family: 'Manrope', sans-serif !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

h1, h2, h3, h4, h5, h6 .text-logo #logo {
    font-family: 'Inter', sans-serif !important;
    letter-spacing: normal;
}

/* =========================================
   UTILITIES
========================================= */
.text-brand {
    color: var(--brand-orange) !important;
}

.bg-brand {
    background-color: var(--brand-orange) !important;
}

.bg-brand-light {
    background-color: var(--brand-light) !important;
}

.btn-brand, input[type="submit"].btn-brand {
    background-color: var(--brand-orange) !important;
    color: white !important;
    border: none;
    border-radius: 50px !important;
    /* Estilo pill */
    transition: all 0.3s ease;
}

input[type="submit"].btn-brand::after {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
}

input[type="submit"].btn-brand {
    margin-top: -10px;
}

.btn-brand:hover {
    background-color: var(--brand-orange-hover) !important;
    color: white !important;
    transform: translateY(-2px);
}

.btn-outline-brand {
    border: 1px solid var(--brand-orange) !important;
    color: var(--brand-orange) !important;
    background: transparent !important;
    border-radius: 50px !important;
    transition: all 0.3s ease;
}

.btn-outline-brand:hover {
    background-color: var(--brand-orange) !important;
    color: white !important;
}

.btn-outline-light {
    border-radius: 50px;
    transition: all 0.3s ease;
}

.fs-7 {
    font-size: 0.875rem;
}

.color-white {
    color: white !important;
}

.color-black {
    color: black !important;
}

.icon-btn {
    width: 40px;
    height: 40px;
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
========================================= */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for grid items */
[data-reveal]:nth-child(2) {
    transition-delay: 0.1s;
}

[data-reveal]:nth-child(3) {
    transition-delay: 0.2s;
}

[data-reveal]:nth-child(4) {
    transition-delay: 0.3s;
}

/* =========================================
   NAVBAR
========================================= */
/* Navbar transparente arriba, solida al hacer scroll (Controlado por JS) */
#mainNavbar {
    top: 40px;
    /* Debajo del topbar en desktop */
    transition: all 0.4s ease;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}

#mainNavbar.scrolled {
    top: 0 !important;
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991.98px) {
    #mainNavbar {
        top: 0;
        background: rgba(0, 0, 0, 0.9);
    }
}

.navbar-brand img {
    max-height: auto;
    width: 150px;
}

/* =========================================
   HERO CAROUSEL
========================================= */
#heroCarousel {
    height: 100vh;
    min-height: 600px;
}

.absolute-bg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Oscurecimiento para lectura */
    z-index: 1;
}

.custom-carousel-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    transition: 0.3s ease;
}

.custom-carousel-icon:hover {
    background: var(--brand-orange);
}

/* =========================================
   TARJETAS DE PRODUCTOS
========================================= */
.product-card {
    height: 550px;
    transition: all 0.5s ease;
    cursor: pointer;
    border-radius: 0 !important;
    /* Square corners specifically requested */
}

.product-card img {
    transition: transform 0.8s ease;
    border-radius: 0 !important;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.product-card:hover .product-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.2) 100%);
}

/* =========================================
   POR QUÉ ELEGIRNOS (PILARES)
========================================= */
.pilar-number {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
}

/* =========================================
   COBERTURA NACIONAL (SCROLL MÓVIL)
========================================= */
/* Oculta la barra de scroll en el carrusel horizontal móvil pero permite deslizar */
.custom-scrollbar::-webkit-scrollbar {
    display: none;
}

.custom-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    padding-bottom: 1rem;
}

.carousel-indicators {
    z-index: 999;
}

.carousel-control-prev {
    z-index: 999;
}

.carousel-control-next {
    z-index: 999;
}

/* =========================================
   CAROUSEL NAVIGATION CUSTOMIZATION (MOBILE FOCUS)
========================================= */

/* Indicadores tipo pill */
.carousel-indicators {
    bottom: 30px;
    gap: 8px;
    z-index: 999;
}

.carousel-indicators [data-bs-target] {
    width: 20px;
    height: 6px;
    border-radius: 10px;
    border: 1px solid white;
    background-color: transparent;
    opacity: 0.8;
    transition: all 0.3s ease;
    margin: 0;
}

.carousel-indicators .active {
    width: 45px;
    background-color: white;
    opacity: 1;
    border: none;
}

/* Contenedor de controles móviles */
.carousel-controls-container {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 100%;
}

/* Botones circulares para móvil */
.carousel-control-custom-prev,
.carousel-control-custom-next {
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
}

.carousel-control-custom-prev {
    background-color: rgba(255, 255, 255, 0.4);
}

.carousel-control-custom-next {
    background-color: white;
}

.carousel-control-custom-prev:active,
.carousel-control-custom-next:active {
    transform: scale(0.9);
}

/* Ajustes para Desktop */
/* =========================================
   SUCURSALES CAROUSEL (MOBILE)
========================================= */
.sucursal-card .card-body {
    background-color: var(--brand-orange) !important;
}

.sucursal-card .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
}

/* Indicadores específicos para Sucursales */
#sucursalesCarousel .carousel-indicators {
    position: relative;
    bottom: 0;
    margin-bottom: 0;
    margin-top: 1rem;
    gap: 8px;
    z-index: 10;
}

#sucursalesCarousel .carousel-indicators [data-bs-target] {
    width: 25px;
    height: 8px;
    border-radius: 10px;
    border: 1px solid var(--brand-orange);
    background-color: transparent;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

#sucursalesCarousel .carousel-indicators .active {
    width: 50px;
    background-color: var(--brand-orange);
    border: none;
    opacity: 1;
}

.sucursal-control-prev,
.sucursal-control-next {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: white;
}

.sucursal-control-prev {
    background-color: rgba(255, 122, 0, 0.4);
    /* Brand orange semi-transparent */
}

.sucursal-control-next {
    background-color: var(--brand-orange);
}

.sucursal-control-prev:active,
.sucursal-control-next:active {
    transform: scale(0.9);
}

@media (min-width: 768px) {
    .carousel-indicators {
        bottom: 40px;
        justify-content: center;
        padding-left: 2rem;
        margin-left: 0;
        margin-right: 0;
    }
}

/* =========================================
   CAROUSEL ANIMATIONS & TRANSITIONS
========================================= */

/* Garantizar el efecto de deslizamiento (slide) */
.carousel-item {
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

@keyframes fadeInUpCustom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInCustom {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Animaciones para el Hero Carousel (Usando las nuevas clases) */
.hero-animate-title {
    color: #fff;
}

#heroCarousel .active .hero-animate-title {
    animation: fadeInUpCustom 0.8s ease both;
    animation-delay: 0.1s;
}

#heroCarousel .active .hero-animate-text {
    animation: fadeInUpCustom 0.8s ease both;
    animation-delay: 0.3s;
}

#heroCarousel .active .hero-animate-button {
    animation: fadeInUpCustom 0.8s ease both;
    animation-delay: 0.5s;
}

.hero-logo-container {
    position: absolute;
    z-index: 999;
    top: 95px;
    left: 73px;
}

@media screen and (max-width: 767px) {
    .hero-logo-container {
        top: 115px;
        left: 27px;
    }
}

/* Animaciones para el Carousel de Sucursales */
#sucursalesCarousel .active .sucursal-card img {
    animation: fadeInCustom 0.6s ease both;
}

#sucursalesCarousel .active .sucursal-animate-body {
    animation: fadeInUpCustom 0.6s ease both;
    animation-delay: 0.1s;
}

/* Suavizado de indicadores */
.carousel-indicators [data-bs-target] {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpadminbar-clase-especial-activa {
    top: 76px !important;
}

@media only screen and (min-width: 1240px) {
    .section_wrapper, .container {
        max-width: 1320px;
    }
}

.pilares video, .pilares img {
    max-height: 576px;
    width: auto;
    max-width: 100%;
}

.card-post-img {
    height: 250px;
}

.card-title-link {
    font-family: 'Inter', sans-serif !important;
    letter-spacing: normal;
    font-weight: 700 !important;
}

.brand-logo {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
}


/* Nuevos estilos para tarjetas de sucursales basadas en la referencia de superposición de texto */
.branch-card {
    height: 500px; /* Misma altura que las tarjetas de producto o ajustada */
    position: relative;
    transition: transform 0.3s ease;
}
.branch-card:hover {
    transform: translateY(-5px);
}

.branch-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 230px;
    z-index: 1;
    background: #000000a3;
}

.branch-info.text-white {
    color: white !important; /* Texto del cuerpo blanco superpuesto */
}
.branch-info strong.opacity-75 {
    opacity: 0.75; /* Etiquetas grises claras */
}

/* Asegurar que la imagen de fondo cubra el fondo */
.branch-card .absolute-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.instagram-gallery-feed {
    padding: 30px 35px !important;
}

@media screen and (max-width: 767px) {
    .instagram-gallery-feed {
        padding: 30px 5px !important;
    }
}







/* =========================================
   PÁGINA DE PRODUCTOS (TIENDA)
========================================= */

/* Mini Hero / Page Header */
.page-hero {
    height: 350px;
    background-color: #1a1a1a;
}

/* Checkboxes personalizados en Sidebar */
.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}
.form-check-input:checked {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
}

/* Tarjeta de Producto (Catálogo) */
.product-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}
.product-title {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition: text-decoration-color 0.3s ease;
}
.product-item:hover .product-title {
    text-decoration-color: var(--text-dark);
}
.fs-8 { font-size: 0.75rem; }

/* Paginación Personalizada */
.pagination-custom .page-link {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    font-weight: 500;
}
.pagination-custom .page-item.active .page-link {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
    color: white;
}
.pagination-custom .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: rgba(255, 122, 0, 0.1);
    color: var(--brand-orange) !important;
}

/* =========================================
   PÁGINA SINGLE PRODUCT (DETALLE)
========================================= */

/* Navbar interno (siempre fijo y sólido) */
.pt-nav {
    padding-top: 130px; /* Compensa la altura del topbar + navbar fixed */
}
@media (max-width: 991.98px) {
    .pt-nav {
        padding-top: 80px; 
    }
}
.inner-navbar {
    top: 40px; /* Debajo del topbar en desktop */
}
@media (max-width: 991.98px) {
    .inner-navbar { top: 0; }
}

/* Utilidades adicionales */
.cursor-pointer { cursor: pointer; }
.hover-opacity-100:hover { opacity: 1 !important; transition: opacity 0.3s; }
.border-end-sm { border-right: none; }
@media (min-width: 576px) {
    .border-end-sm { border-right: 1px solid rgba(108, 117, 125, 0.25); }
}

/* Selector de Pestañas (Tabs) Personalizado */
.custom-tabs .nav-link {
    border-bottom: 3px solid transparent !important;
    transition: all 0.3s ease;
}
.custom-tabs .nav-link:hover {
    color: var(--text-dark) !important;
}
.custom-tabs .nav-link.active {
    border-bottom-color: var(--brand-orange) !important;
    background-color: transparent !important;
}

/* Selector de Calificación en Opiniones (Radio Buttons como Botones) */
.rating-selector .btn-outline-brand {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    background-color: transparent;
}
.rating-selector .btn-check:checked + .btn-outline-brand {
    background-color: var(--brand-orange);
    color: white;
}
.rating-selector .btn-outline-brand:hover {
    background-color: var(--brand-light);
}
.rating-selector .btn-check:checked + .btn-outline-brand:hover {
    background-color: var(--brand-orange-hover);
}

#relatedProductsCarousel .carousel-indicators {
    bottom: -30px;
}

#relatedProductsCarousel .carousel-indicators [data-bs-target] {
    border: 1px solid #000;
}
#relatedProductsCarousel .carousel-indicators .active {
    background-color: #000;
}

/* =========================================
   LISTADO DE NOTICIAS / POSTS
========================================= */
.site-main .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.site-main .card {
    border: 0;
    border-radius: 1.2rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: 10px;
}

.site-main .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
}

.site-main .card img {
    height: 240px;
    object-fit: cover;
    display: block;
}

.site-main .card h5 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.25s ease;
}

.site-main .card h5 a:hover {
    color: var(--brand-orange);
}

.site-main .badge.bg-brand {
    background-color: var(--brand-orange) !important;
}

.site-main .news-date {
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.site-main .page-hero.shop-hero {
    min-height: 320px;
    background: linear-gradient(135deg, rgba(0,0,0,0.75), rgba(0,0,0,0.4));
}

.site-main .shop-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    filter: brightness(0.65) saturate(0.9);
}

.site-main .page-hero .breadcrumb {
    font-size: 0.95rem;
}

.site-main .page-hero h1 {
    letter-spacing: -0.02em;
}

.site-main .pagination {
    gap: 0.45rem;
}

.site-main .pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.8rem;
    border: 1px solid #e7e7e7;
    border-radius: 999px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.site-main .pagination .page-numbers:hover,
.site-main .pagination .page-numbers.current {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
    color: white;
}

.site-main .pagination .prev,
.site-main .pagination .next {
    padding-left: 1rem;
    padding-right: 1rem;
}

.site-main .btn-outline-brand {
    border-radius: 50px;
    padding: 0.5rem 1rem;
}

.site-main .pagination {
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2.5rem;
}

.site-main .pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    color: var(--text-dark);
    text-decoration: none;
}

.site-main .pagination .page-numbers.current,
.site-main .pagination .page-numbers:hover {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
    color: white;
}

.single-post-page .single-post-hero {
    min-height: 240px;
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.45));
}

.single-post-page .single-post-hero .shop-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    filter: brightness(0.65) saturate(0.9);
}

.single-post-page .single-post-featured-image {
    max-height: 500px;
}

.single-post-page .single-post-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.single-post-page .single-post-content strong {
    color: var(--text-dark);
}

.single-post-page .related-post-card {
    border-radius: 1rem;
    overflow: hidden;
}

.single-post-page .related-post-card img {
    height: 250px;
    object-fit: cover;
}

.single-post-page .related-post-card h6 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.25s ease;
}

.single-post-page .related-post-card h6 a:hover {
    color: var(--brand-orange);
}