html {
  scroll-behavior: smooth;
}
.fade-slide {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.fade-slide.show {
  opacity: 1;
  transform: translateY(0);
}

.logo-icon {
    height: 125px !important;
    width: auto !important;
    max-height: none !important;
}


.hover-grow {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-grow:hover {
  transform: scale(1.05);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}
/* === Variables === */
:root {
      --font-primary: 'Montserrat', sans-serif;
      --font-secondary: 'Cal Sans', sans-serif;

    --primary-color: #e2991c; /* Naranja principal */
    --primary-dark: #e2991c; /* Naranja oscuro */
    --greige-color: #d6cfc7; /* Greige */
    --dark-color: #212529; /* Negro/gris oscuro */
    --light-color: #f8f9fa; /* Color claro para fondos */
    --text-color: #333333; /* Color principal para textos */
    --text-muted: #6c757d; /* Color para textos secundarios */
    --transition-speed: 0.3s; /* Velocidad de transición estándar */
}

/* === Base === */
body {
    font-family: var(--font-primary) !important;
    font-weight: 400;
    font-style: normal;
    background-color: var(--light-color);
    color: var(--text-color);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
      font-family: var(--font-secondary);

    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

p {
    font-weight: 400;
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}



/* === Navegación === */
.navbar {
    background-color: var(--primary-color) !important;
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: padding var(--transition-speed) ease;
}

.navbar-brand img {
    max-height: 60px;
    transition: all var(--transition-speed) ease;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #fff;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Efecto de encogimiento del navbar al hacer scroll */
.navbar-scrolled {
    padding: 0.5rem 0;
    background-color: rgba(243, 112, 33, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-scrolled .navbar-brand img {
    max-height: 50px;
}

/* === Botones === */
.btn {
    border-radius: 4px;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(243, 112, 33, 0.3);
}

.btn-outline-light:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.btn-light:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.jpeg') center/cover no-repeat;
    padding: 150px 0 100px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Efecto de partículas para el hero */
.particles-container {
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float var(--duration, 20s) linear var(--delay, 0s) infinite;
    opacity: 0.6;
    width: var(--size, 2px);
    height: var(--size, 2px);
}

.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
}

/* footer adicional */



@keyframes float {
    0% {
        transform: translateY(100vh) translateX(calc(100vw * var(--random-x, 0.5)));
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-20vh) translateX(calc(100vw * var(--random-x-end, 0.7)));
        opacity: 0;
    }
}

/* Efecto de fade in para el hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section h1,
.hero-section p,
.hero-section .btn {
    animation: fadeInUp 1s ease-out forwards;
}

.hero-section p {
    animation-delay: 0.2s;
}

.hero-section .btn {
    animation-delay: 0.4s;
}

/* === Categorías === */
.category-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-card i {
    color: var(--primary-color);
    transition: transform var(--transition-speed) ease;
}

.category-card:hover i {
    transform: scale(1.1);
}

/* === Productos === */
.product-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
    transition: all 0.5s ease;
    height: 200px;
    object-fit: cover;
}

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

.product-card .card-footer {
    padding-top: 1rem;
    background-color: transparent;
}

.product-card .btn {
    opacity: 0.9;
    transition: all var(--transition-speed) ease;
}

.product-card:hover .btn {
    opacity: 1;
}

/* === Features Section === */
.feature-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: rgba(243, 112, 33, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-speed) ease;
}

.feature-icon i {
    font-size: 2.2rem;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.feature-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(243, 112, 33, 0.2);
}

.feature-icon:hover i {
    color: white;
    transform: scale(1.1);
}

/* === Testimonials === */
.testimonial-section {
    background-color: var(--greige-color);
    position: relative;
    overflow: hidden;
}

.testimonial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
}

.testimonial-section .card {
    transition: all var(--transition-speed) ease;
    border-radius: 8px;
}

.testimonial-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-section .card-text {
    font-style: italic;
    position: relative;
    padding: 0 10px;
}

.testimonial-section .card-text::before,
.testimonial-section .card-text::after {
    content: '"';
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.testimonial-section .card-text::after {
    content: '"';
}

/* === CTA Section === */
.bg-primary {
    background-color: var(--primary-color) !important;
    position: relative;
    overflow: hidden;
}

.bg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/pattern.png');
    opacity: 0.05;
    pointer-events: none;
}

/* === Newsletter === */
.form-control {
    border-radius: 4px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    transition: all var(--transition-speed) ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(243, 112, 33, 0.25);
}

/* === Footer === */
footer {
    background-color: var(--dark-color);
    color: white;
}

footer h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

footer a {
    color: white;
    transition: all var(--transition-speed) ease;
}

footer a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

footer .social-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 10px;
    transition: all var(--transition-speed) ease;
}

footer .social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* === Animaciones y efectos === */
/* Animación de fade in para secciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

/* Animación de slide in */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

/* Animación de zoom */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zoom-in {
    animation: zoomIn 0.8s ease forwards;
}

/* === Colores === */
.bg-primary { background-color: var(--primary-color) !important; }
.bg-greige { background-color: var(--greige-color) !important; }
.bg-greige-dark { background-color: var(--greige-dark) !important; }

.text-primary {
    color: var(--primary-color) !important;
}
.text-greige { color: var(--greige-color) !important; }

/* Botones */
.btn-greige {
    background-color: var(--greige-color);
    color: var(--dark-color);
    border-color: var(--greige-dark);
}

.btn-greige:hover {
    background-color: var(--greige-dark);
    color: var(--dark-color);
}

/* Bordes */
.border-primary { border-color: var(--primary-color) !important; }
.border-greige { border-color: var(--greige-color) !important; }

/* Efectos hover */
.hover-grow {
    transition: transform 0.3s ease;
}
.hover-grow:hover {
    transform: scale(1.03);
}

/* Sombras */
.shadow-primary {
    box-shadow: 0 5px 15px rgba(243, 112, 33, 0.3);
}

/* === Utilidades === */
.text-primary {
    color: var(--primary-color) !important;
}

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

.shadow-custom {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Bordes redondeados más consistentes */
.rounded-custom {
    border-radius: 8px;
}

/* === Media Queries === */
@media (max-width: 991.98px) {
    .navbar-brand img {
        max-height: 50px;
    }

    .hero-section {
        padding: 100px 0 80px;
    }

    .feature-icon {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-section {
        padding: 80px 0 60px;
    }

    .navbar .nav-link::after {
        display: none;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
    }

    .feature-icon i {
        font-size: 1.8rem;
    }
}

/* === Scroll Reveal === */
/* Para ser usado con ScrollReveal.js (requiere JavaScript adicional) */
.reveal {
    visibility: hidden;
}

/* === Loader === */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(243, 112, 33, 0.2);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loaded .loader-wrapper {
    opacity: 0;
    visibility: hidden;
}

/* === Personalización específica para los elementos de weHome === */
/* Estilos adicionales para la barra de búsqueda */
.search-form .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.search-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Número de producto en carrito (badge) */
.badge-floating {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.7rem;
    transform: scale(0);
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

.badge-floating.active {
    transform: scale(1);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Efecto hover para botones de añadir al carrito */
.btn-add-cart {
    transition: all var(--transition-speed) ease;
}

.btn-add-cart:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-add-cart i {
    transition: transform var(--transition-speed) ease;
}

.btn-add-cart:hover i {
    transform: translateX(3px);
}

/* Personalización de dropdown menus */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all var(--transition-speed) ease;
}

.dropdown-item:hover {
    background-color: rgba(243, 112, 33, 0.1);
    color: var(--primary-color);
}

/* Estilos para el scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* === Animaciones Mejoradas === */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Aplicar a elementos clave */
.hero-section, .category-card, .product-card {
    animation: fadeIn 1s ease-out forwards;
}

.btn-primary {
    animation: pulse 2s infinite;
}

.feature-icon:hover {
    animation: float 3s ease-in-out infinite;
}

/* Transiciones suaves */
.card, .btn, .nav-link {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Efecto hover para cards */
.card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 30px rgba(243, 112, 33, 0.2) !important;
}

/* Fallbacks cuando no hay JS o al volver desde bfcache */
.no-js .loader-wrapper { display: none !important; }
/* Evita que el loader bloquee clics aunque esté en transición */
body.loaded .loader-wrapper {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Si por cualquier motivo el JS no corre, que los elementos no queden invisibles */
.no-js .fade-slide { opacity: 1 !important; transform: none !important; }
