/* ==========================================================================
   CONFIGURACIÓN GLOBAL Y VARIABLES
   ========================================================================== */
:root {
    --default-color: #333;
    --contrast-color: #ffffff;
    --heading-color: #183152;
    --primary: #00A884;         /* Verde Esmeralda (Puntero del logo) */
    --primary-dark: #008669;
    --accent: #FF8C00;          /* Naranja (Cuerpo del logo) */
    --accent-dark: #eb8100;
    --dark: #0a0a0a;
    --primary-rgb: 0, 168, 132;
    --accent-rgb: 255, 140, 0;
    --gray-bg: #f8fafc;
    --surface-color: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body { overflow-x: hidden; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--default-color);
    overflow-x: hidden;
}

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.spinner {
    width: 40px; height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* CTA Button */
.cta-button {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    background: var(--primary);
    border: none;
    color: white !important;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
    text-decoration: none;
    transition: var(--transition);
}
.cta-button:hover, .btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4); }

.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }

/* Sections */
.section-padding { padding: 120px 0; }
.section-header { margin-bottom: 50px; text-align: center; }
.section-header h2 { font-size: 34px; }
.section-header p { font-size: 1rem; margin-top: 10px; line-height: 1.6; }
.section-header .divider { width: 60px; height: 3px; margin-top: -10px; }

/* Back to Top */
.back-to-top {
    position: fixed; bottom: 90px; right: 28px;
    width: 50px; height: 50px; background: var(--primary);
    color: white; border-radius: 50%; display: flex;
    justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.3s; z-index: 1000;
}
.back-to-top.active { opacity: 1; visibility: visible; }

/* ==========================================================================
   NAVBAR (CABECERA)
   ========================================================================== */
/* Navbar Glassmorphism */
#mainNav {
    padding: 15px;
    transition: 0.3s;
    backdrop-filter: blur(15px);
    background: var(--glass);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

#mainNav .nav-link {
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dark) !important;
    margin: 0 10px;
}
#mainNav .nav-link:hover { color: var(--primary) !important; }

/* Hamburger X */
#mainNav #customToggler {
    -webkit-tap-highlight-color: transparent; /* Elimina el destello azul en móviles Android/iOS */
}
#mainNav #customToggler:focus,
#mainNav #customToggler:active,
#mainNav .navbar-toggler:focus {
    outline: none !important;
    box-shadow: none !important; /* Bootstrap suele aplicar un shadow azul o negro */
    border: none !important;
}
#mainNav .navbar-toggler.menu-active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#mainNav .navbar-toggler.menu-active .hamburger-line:nth-child(2) { opacity: 0; }
#mainNav .navbar-toggler.menu-active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
#mainNav .hamburger-line { display: block; width: 25px; height: 2px; background: var(--dark); margin: 6px 0; transition: 0.3s; }

@media (max-width: 991.98px) {
    #mainNav .navbar-collapse.show {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.97) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 30px 20px;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        border-bottom: 4px solid var(--accent);
        z-index: 1000;
    }
    #mainNav .nav-link {
        padding: 15px !important;
        font-size: 1rem;
    }
}

/* ==========================================================================
   #HERO SECTION
   ========================================================================== */
#hero {
    min-height: 100vh;
    padding-top: 100px;
    background: radial-gradient(circle at top right, #eef4ff 0%, #ffffff 100%);
}
#hero h1 { font-size: 66px;}
/* Media query para móviles y tablets */
@media (max-width: 991.98px) { #hero { padding-top: 150px; text-align: center; min-height: auto; } }

/* ==========================================================================
   #SERVICES SECTION
   ========================================================================== */
#services .features-block { padding-bottom: 40px; }
  
#services .features-block .feat-card {
    display: block;
    background: var(--surface-color);
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 25px color-mix(in srgb, #000, transparent 96%);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
    transition: all 0.35s ease;
}

#services .features-block .feat-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

#services .features-block .feat-card:hover,
#services .features-block .feat-card.featured {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px color-mix(in srgb, #000, transparent 90%);
}

#services .features-block .feat-card:hover::after,
#services .features-block .feat-card.featured::after {
    transform: scaleX(1);
}

#services .features-block .feat-card:hover .feat-icon,
#services .features-block .feat-card.featured .feat-icon {
    background: var(--primary);
    color: var(--contrast-color);
}

#services .features-block .feat-card.featured {
    border-color: color-mix(in srgb, var(--primary), transparent 70%);
}

#services .features-block .feat-card .feat-number {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 3.5rem;
    font-weight: 900;
    color: color-mix(in srgb, var(--default-color), transparent 93%);
    font-family: var(--heading-font);
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

#services .features-block .feat-card .feat-icon {
    width: 65px;
    height: 65px;
    background: color-mix(in srgb, var(--primary), transparent 90%);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    transition: all 0.35s ease;
}

#services .features-block .feat-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-right: 2.5rem;
}

#services .features-block .feat-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: color-mix(in srgb, var(--default-color), transparent 25%);
    margin-bottom: 1.25rem;
}

#services .features-block .feat-card .feat-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
#services .features-block .feat-card .feat-link i { transition: transform 0.3s ease; }
#services .features-block .feat-card .feat-link:hover i { transform: translateX(5px); }

/* ==========================================================================
   #MENU SECTION
   ========================================================================== */
/* Filtros de Productos */
#menu .filter-menu {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

#menu .filter-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}
#menu .filter-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}
#menu .filter-link.active, #menu .filter-link:hover { color: var(--primary); }
#menu .filter-link.active::after { width: 100%; }

#menu .filter-badge {
    position: absolute;
    top: -8px; /* Lo eleva sobre el texto */
    right: -15px; /* Lo desplaza a la derecha */
    background: #E2E8F0; /* Color neutro inicial */
    color: var(--dark);
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.3s;
}

/* Animación de filtrado */
#menu .filter-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    width: 100% !important; /* Forzamos ancho completo para el estilo horizontal */
}

/* Cuando el producto no pertenece a la categoría */
#menu .filter-item.hide {
    transform: scale(0);
    opacity: 0;
    visibility: hidden;
    width: 0;
    height: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
    pointer-events: none;
    overflow: hidden;
    transform: scale(0.9);
}

/* Ajuste responsivo para los items filtrados */
@media (max-width: 768px) {
    #menu .filter-item { width: 100%; }
    #menu .filter-item.hide { width: 0; }
}

/* Product Card Horizontal Style */
#menu .product-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    overflow: hidden;
    margin-bottom: 2rem;
}
#menu .product-card:hover { box-shadow: 0px 0px 25px 15px rgba(0, 82, 255, 0.08); transform: translateY(-5px); }
#menu .product-card .img-container { padding: 20px; background: #fdfdfd; }
#menu .product-card .img-container img { border-radius: 16px; width: 100%; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
#menu .product-card .card-content { display: flex; flex-direction: column; justify-content: center; }
#menu .product-card .price-tag { color: var(--primary); font-weight: 800; }
#menu .btn-outline-primary { border: 1px solid var(--primary); color: var(--primary); font-weight: 700; }
#menu .btn-outline-primary:hover { background: var(--primary); border: 2px solid var(--primary); color: #fff; }
#menu .btn-outline-secondary { background: var(--primary); border: 2px solid var(--primary); color: #fff; }
#menu .btn-outline-secondary:hover {  background: var(--primary-dark); border: 2px solid var(--primary-dark); color: #fff; }

@media (max-width: 991px) {
    #menu .product-card .img-container {
        padding: 15px;
    }
    #menu .product-card .card-content {
        text-align: center;
    }
    #menu .btn-group-custom {
        display: flex;
        justify-content: center;
        gap: 10px;
    }
}

/* ==========================================================================
   #CONCEPT SECTION
   ========================================================================== */
#concepto .concept-item i { color: var(--accent); }

/* ==========================================================================
   #CONTACT SECTION
   ========================================================================== */
#contact .contact-method { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
#contact .contact-method:last-child { margin-bottom: 0; }
#contact .contact-method .contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
#contact .contact-method .contact-icon i { font-size: 20px; }
#contact .contact-method .contact-details { flex: 1; }
#contact .contact-method .contact-details .method-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
#contact .contact-method .contact-details p { 
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-section { background: var(--dark); color: white; padding: 80px 0 30px; }
.footer-section a { color: #aaa; text-decoration: none; transition: 0.3s; }
.footer-section a:hover { color: white; }

.footer-section .social-icons { display: flex; gap: 25px; margin-top: 20px; }
.footer-section .social-icons a {
    width: 50px;             /* Tamaño del círculo */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08); /* Fondo sutil */
    color: white !important;
    font-size: 1.3rem;       /* Tamaño del ícono */
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}
.footer-section .social-icons a:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.4);
    border-color: var(--primary);
}

.footer-section .footer-nav a i { font-size: 0.8rem; color: var(--accent); }
.footer-section .footer-nav a:hover { color: white; padding-left: 10px;}

.footer-section h4, .footer-section h5 { font-size: 1.15rem !important; letter-spacing: 1.5px; margin-bottom: 1.5rem !important; }

.footer-section .btn-footer-cta {
    background-color: var(--primary);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 15px 35px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}
.footer-section .btn-footer-cta:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.6);
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 768px) {
    .footer-section .social-icons { gap: 15px; }
    .footer-section .social-icons a { width: 45px; height: 45px; font-size: 1.1rem; }
}

/* --- Botón de WhatsApp flotante --- */
.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); }
