
/* --- Custom Properties & Tokens --- */
:root {
    /* Fonts */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Color Palette */
    --clr-bg-primary: #ffffff;
    --clr-bg-secondary: #f8fafc;
    --clr-bg-tertiary: #f1f5f9;
    
    --clr-text-main: #0f172a;
    --clr-text-muted: #475569;
    --clr-text-light: #64748b;
    
    --clr-primary: #10b981;
    --clr-primary-hover: #059669;
    --clr-primary-light: #d1fae5;
    
    --clr-accent: #22c55e;
    --clr-accent-dark: #15803d;
    --clr-accent-light: #e8f5e9;
    
    --clr-dark-panel: #07120e;
    --clr-dark-card: rgba(15, 23, 42, 0.6);
    
    /* Glassmorphism Defaults */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.04);
    --glass-blur: 20px;
    
    --glass-dark-bg: rgba(11, 22, 17, 0.75);
    --glass-dark-border: rgba(255, 255, 255, 0.08);
    --glass-dark-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);

    /* Durations */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Resets & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--clr-text-main);
    background-color: var(--clr-bg-primary);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--clr-bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Typography Utility */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container Layout */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --- Background Glow Effects --- */
.glow-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}
.glow-bg-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
}
.glow-bg-2 {
    top: 40%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
}
.glow-bg-3 {
    bottom: 5%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
}

/* --- Interactive Elements & Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background-color: var(--clr-primary);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.btn-secondary {
    background-color: var(--glass-bg);
    color: var(--clr-text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
}
.btn-secondary:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.btn-tertiary {
    background: none;
    color: var(--clr-primary);
    padding: 0;
    box-shadow: none;
    font-weight: 600;
}
.btn-tertiary:hover {
    color: var(--clr-primary-hover);
}
.btn-tertiary svg {
    transition: transform var(--transition-fast);
}
.btn-tertiary:hover svg {
    transform: translateX(4px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--clr-bg-secondary);
    border: 1px solid var(--clr-bg-tertiary);
    color: var(--clr-text-main);
    cursor: pointer;
    transition: var(--transition-fast);
}
.icon-btn:hover {
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    border-color: rgba(16, 185, 129, 0.2);
}

/* Badge Pill */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background-color: var(--clr-accent-light);
    color: var(--clr-accent-dark);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    margin-bottom: 24px;
}
.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--clr-accent);
    animation: pulseGlow 2s infinite;
}

/* Glassmorphism Card Utility */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

/* --- Header Section --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}
.main-header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--clr-text-main);
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--clr-text-main);
    letter-spacing: -0.5px;
}
.logo-text span {
    color: var(--clr-primary);
}

.nav-menu ul {
    display: flex;
    gap: 32px;
}
.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    position: relative;
    padding: 8px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
    color: var(--clr-primary);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}


.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
}
.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--clr-text-main);
    transition: var(--transition-fast);
}


/* --- Biwel Header (New Dark Style) --- */
.biwel-header {
    background-color: rgba(121, 130, 83, 0.85) !important; /* Elegant semi-transparent Biwel Green */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
}
.biwel-header.scrolled {
    background-color: rgba(98, 106, 69, 0.95) !important; /* Slightly darker and more opaque on scroll */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15) !important;
}
.biwel-header-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    gap: 32px;
}
.biwel-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.biwel-logo-img {
    height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
}
.biwel-nav ul {
    display: flex;
    gap: 28px;
    align-items: center;
}
.biwel-nav-link {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #f4f6ea; /* Light cream for premium contrast */
    position: relative;
    padding: 6px 0;
    text-transform: uppercase;
    transition: color 0.2s;
}
.biwel-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.25s cubic-bezier(0.16,1,0.3,1);
}
.biwel-nav-link:hover,
.biwel-nav-link.active {
    color: #ffffff;
}
.biwel-nav-link:hover::after,
.biwel-nav-link.active::after {
    width: 100%;
}
.biwel-header-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.biwel-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: #f4f6ea;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
}
.biwel-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255,255,255,0.6);
}
.biwel-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    padding: 0 11px;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.05);
}
.biwel-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #f4f6ea;
    transition: var(--transition-fast);
    display: block;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    overflow: hidden;
}
.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--clr-text-main);
    margin-bottom: 20px;
    letter-spacing: -2px;
    text-transform: uppercase;
}
.gradient-text {
    background: linear-gradient(135deg, var(--clr-accent-dark) 0%, var(--clr-primary) 50%, #84cc16 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    margin-bottom: 40px;
    max-width: 580px;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-trust-bullets {
    display: flex;
    gap: 32px;
    border-top: 1px solid var(--clr-bg-tertiary);
    padding-top: 32px;
}
.trust-bullet {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.bullet-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--clr-accent-light);
    color: var(--clr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.trust-bullet h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-text-main);
}
.trust-bullet p {
    font-size: 0.8rem;
    color: var(--clr-text-light);
}

/* Hero Showcase & Floating Cards */
.hero-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.showcase-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
}
.showcase-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    animation: rotateGlow 20s linear infinite;
}
.pedestal-container {
    width: 100%;
    z-index: 2;
    transform: perspective(1000px) rotateX(10deg);
    animation: hoverPedestal 6s ease-in-out infinite;
}
.pedestal-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.06));
}

/* Float Cards */
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    z-index: 5;
    animation: floatAnimation 5s ease-in-out infinite;
    pointer-events: none;
}
.float-card-1 {
    top: 5%;
    right: -10%;
    animation-delay: 0s;
}
.float-card-2 {
    bottom: 25%;
    left: -15%;
    animation-delay: 1.5s;
}
.float-card-3 {
    bottom: 5%;
    right: -5%;
    animation-delay: 3s;
}

.float-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.float-icon.green { background: #e8f5e9; color: #2e7d32; }
.float-icon.blue { background: #e3f2fd; color: #1565c0; }
.float-icon.gold { background: #fff8e1; color: #ff8f00; }

.float-text {
    display: flex;
    flex-direction: column;
}
.float-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--clr-text-main);
}
.float-desc {
    font-size: 0.75rem;
    color: var(--clr-text-light);
}

/* --- Animated Statistics Section --- */
.stats-section {
    padding: 60px 0;
    border-top: 1px solid var(--clr-bg-tertiary);
    border-bottom: 1px solid var(--clr-bg-tertiary);
    background-color: var(--clr-bg-secondary);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.stat-card {
    text-align: center;
    position: relative;
}
.stat-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15%;
    right: -16px;
    width: 1px;
    height: 70%;
    background-color: #e2e8f0;
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--clr-primary);
    letter-spacing: -1.5px;
    margin-bottom: 4px;
}
.stat-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-text-main);
    margin-bottom: 8px;
}
.stat-desc {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px auto;
}
.section-badge {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-text-main);
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--clr-text-muted);
}

/* --- Explora Nuestras Categorías (Bento Grid) --- */
.categories-section {
    padding: 100px 0;
    background-color: var(--clr-bg-primary);
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 20px;
    grid-auto-rows: 380px;
}

.bento-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background-color: var(--clr-bg-secondary);
    border: 1px solid var(--clr-bg-tertiary);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    cursor: pointer;
}

.bento-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-slow);
    z-index: 1;
}

.bento-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.95) 85%);
    z-index: 2;
    transition: var(--transition-smooth);
}

.bento-card-content {
    position: relative;
    z-index: 3;
    transition: var(--transition-smooth);
}

.bento-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.bento-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-text-main);
    margin-bottom: 8px;
}
.bento-card p {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.bento-action-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--clr-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    opacity: 0;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Card Hover Adjustments */
.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}
.bento-card:hover .bento-card-bg {
    transform: scale(1.08);
}
.bento-card:hover .bento-card-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.98) 75%);
}
.bento-card:hover p {
    opacity: 1;
    max-height: 80px;
    margin-top: 8px;
}
.bento-card:hover .bento-action-btn {
    transform: scale(1);
    opacity: 1;
}

/* Grid Layout Customizations for Bento */
#bento-medical { grid-column: span 1; }
#bento-chemicals { grid-column: span 1; }
#bento-safety { grid-column: span 1; }
#bento-facial { grid-column: span 1; }
#bento-configs { grid-column: span 1; }

/* --- Featured Products --- */
.featured-products {
    padding: 100px 0;
    background-color: var(--clr-bg-secondary);
}
.header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.header-with-action .section-title {
    margin-bottom: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--clr-bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.product-visual {
    height: 250px;
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.product-visual .product-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.06));
    transition: var(--transition-smooth);
}
.product-card:hover .product-image {
    transform: scale(1.06) rotate(2deg);
}
.svg-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.product-svg {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.06));
    transition: var(--transition-smooth);
}

.product-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.bg-solucion { background-color: #e0f2fe; color: #0369a1; }
.bg-desinfectante { background-color: #fef3c7; color: #b45309; }
.bg-sanitizante { background-color: #f3e8ff; color: #7e22ce; }
.bg-limpiador { background-color: #ecfdf5; color: #047857; }

.product-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--clr-text-main);
    margin-bottom: 8px;
}
.product-desc {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--clr-bg-tertiary);
    padding-top: 16px;
}
.product-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-primary);
}

.product-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-primary);
    transition: var(--transition-fast);
}
.product-action-link:hover {
    color: var(--clr-primary-hover);
}
.product-action-link svg {
    transition: transform var(--transition-fast);
}
.product-action-link:hover svg {
    transform: translateX(3px);
}

/* Product Card Hover Effect */
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}
.product-card:hover .product-svg {
    transform: scale(1.06) rotate(2deg);
}

/* Pagination Dots */
.product-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.product-carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: var(--transition-fast);
}
.product-carousel-dots .dot.active {
    width: 24px;
    border-radius: 10px;
    background-color: var(--clr-primary);
}

/* --- Why Choose GreenLab (Dark Luxury Panel) --- */
.why-choose-section {
    padding: 100px 0;
    background-color: var(--clr-bg-primary);
}
.glass-panel {
    background: var(--glass-dark-bg);
    border: 1px solid var(--glass-dark-border);
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--glass-dark-shadow);
    border-radius: 32px;
    padding: 80px 10%;
    position: relative;
    overflow: hidden;
    z-index: 2;
}
.panel-glow-1 {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
}
.panel-glow-2 {
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
}

.panel-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
    color: #fff;
}
.panel-badge {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}
.panel-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.panel-subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}
.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-content {
    color: #fff;
}
.feature-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature-content p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* --- Certifications Section --- */
.certifications-section {
    padding: 80px 0;
    background-color: var(--clr-bg-secondary);
    border-top: 1px solid var(--clr-bg-tertiary);
    border-bottom: 1px solid var(--clr-bg-tertiary);
}
.cert-header {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-text-muted);
    margin-bottom: 40px;
}
.cert-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}
.cert-badge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.cert-icon {
    width: 64px;
    height: 64px;
    color: var(--clr-primary);
    transition: var(--transition-fast);
}
.cert-badge-card span {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--clr-text-light);
    letter-spacing: 1px;
}
.cert-badge-card:hover .cert-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 16px rgba(16, 185, 129, 0.2));
}

/* --- Case Studies --- */
.case-studies-section {
    padding: 100px 0;
    background-color: var(--clr-bg-primary);
}
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.case-card {
    background-color: var(--clr-bg-secondary);
    border: 1px solid var(--clr-bg-tertiary);
    border-radius: 24px;
    overflow: hidden;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: var(--transition-smooth);
}
.case-metrics {
    display: flex;
    gap: 24px;
}
.metric-block {
    display: flex;
    flex-direction: column;
}
.metric-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--clr-primary);
}
.metric-label {
    font-size: 0.8rem;
    color: var(--clr-text-light);
}
.case-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--clr-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.case-body h3 {
    font-size: 1.4rem;
    margin-top: 4px;
    margin-bottom: 12px;
}
.case-body p {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    margin-bottom: 24px;
}
.case-quote {
    border-left: 3px solid var(--clr-primary);
    padding-left: 20px;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}
.case-quote cite {
    display: block;
    margin-top: 8px;
    font-weight: 600;
    font-style: normal;
    color: var(--clr-text-main);
}
.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.02);
    border-color: rgba(16, 185, 129, 0.2);
}

/* --- CTA Advisory & Quote Modal --- */
.cta-advisory {
    padding: 80px 0;
    background-color: var(--clr-bg-secondary);
}
.cta-banner {
    background: radial-gradient(circle at 70% 30%, #065f46 0%, var(--clr-dark-panel) 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 32px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.cta-banner-glow {
    position: absolute;
    width: 50%;
    height: 100%;
    right: 0;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, rgba(0,0,0,0) 70%);
}
.cta-banner-content {
    padding: 80px 10%;
    color: #fff;
    z-index: 2;
}
.cta-banner-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.cta-banner-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 40px;
}
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.cta-actions .btn {
    border-radius: 100px;
}
.cta-actions .btn-primary {
    background-color: #25d366; /* WhatsApp color */
}
.cta-actions .btn-primary:hover {
    background-color: #128c7e;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.cta-banner-image {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 1;
}
.lab-image {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.8) contrast(1.1);
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
}

/* Modal Form styling */
.quote-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 24px;
    box-sizing: border-box;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}
.quote-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.quote-modal-content {
    background-color: #fff;
    padding: 48px;
    border-radius: 24px;
    width: 100%;
    max-width: 550px;
    max-height: calc(100vh - 48px);
    position: relative;
    overflow-y: auto;
    transform: translateY(40px);
    transition: transform var(--transition-smooth);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
}
.quote-modal-overlay.active .quote-modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--clr-text-light);
    transition: var(--transition-fast);
}
.modal-close-btn:hover {
    color: var(--clr-text-main);
}

.quote-modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}
.quote-modal-content p {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .quote-modal-overlay {
        align-items: flex-start;
        padding: 16px;
    }

    .quote-modal-content {
        padding: 28px 20px 24px;
        border-radius: 18px;
        max-height: calc(100vh - 32px);
        margin: 0 auto;
    }

    .modal-close-btn {
        top: 14px;
        right: 14px;
    }
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-text-main);
    margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--clr-bg-tertiary);
    background-color: var(--clr-bg-secondary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--clr-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.btn-block {
    width: 100%;
}
.form-security-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.form-captcha {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}
.recaptcha-slot {
    min-height: 78px;
}
.form-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.captcha-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}
.captcha-question {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(121, 130, 83, 0.12);
    color: inherit;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.captcha-refresh {
    appearance: none;
    border: 1px solid rgba(121, 130, 83, 0.35);
    background: transparent;
    color: inherit;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}
.captcha-refresh:hover {
    background: rgba(121, 130, 83, 0.12);
}
.captcha-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--clr-bg-tertiary);
    background-color: var(--clr-bg-secondary);
    color: var(--clr-text-main);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}
.captcha-input:focus {
    border-color: var(--clr-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.form-feedback {
    display: none;
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.5;
}
.form-feedback.is-visible {
    display: block;
}
.form-feedback.is-success {
    background: rgba(34, 197, 94, 0.14);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.18);
}
.form-feedback.is-error {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.success-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -16px);
    min-width: 220px;
    max-width: calc(100vw - 32px);
    padding: 14px 20px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    box-shadow: 0 18px 40px rgba(22, 163, 74, 0.28);
    opacity: 0;
    pointer-events: none;
    z-index: 3000;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.success-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--clr-dark-panel);
    color: #fff;
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}
.brand-col .logo-container {
    margin-bottom: 20px;
}
.brand-col .logo-text {
    color: #fff;
}
.footer-brand-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 24px;
    max-width: 320px;
    line-height: 1.5;
}
.social-links {
    display: flex;
    gap: 12px;
}
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}
.social-links a:hover {
    background-color: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #fff;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-col ul a {
    font-size: 0.9rem;
    color: #94a3b8;
}
.footer-col ul a:hover {
    color: var(--clr-primary);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: #94a3b8;
}
.contact-list li svg {
    color: var(--clr-primary);
    margin-top: 4px;
    flex-shrink: 0;
    margin-bottom: 16px;
    font-size: 0.87rem;
    color: #7a7f6a;
    line-height: 1.5;
}

.biwel-footer {
    background-color: #0e1009;
    color: #7a7f6a;
    padding: 80px 0 0 0;
    border-top: 1px solid rgba(121,130,83,0.15);
    font-family: var(--font-body);
}
.biwel-footer-grid {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
}
.biwel-footer-col h5 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #c5ca9e;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.biwel-footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.biwel-footer-col ul a {
    font-size: 0.9rem;
    color: #7a7f6a;
    text-decoration: none;
    transition: color 0.2s;
}
.biwel-footer-col ul a:hover {
    color: #c5ca9e;
}
.biwel-footer-logo-img {
    height: 48px;
    width: auto;
    margin-bottom: 20px;
    object-fit: contain;
}
.biwel-footer-desc {
    font-size: 0.9rem;
    color: #7a7f6a;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 320px;
}
.biwel-footer-social {
    display: none !important;
}
.biwel-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.biwel-footer-contact-item svg {
    color: #798253;
    flex-shrink: 0;
    margin-top: 2px;
}
.biwel-footer-contact-item a {
    color: #7a7f6a;
    text-decoration: none;
    transition: color 0.2s;
}
.biwel-footer-contact-item a:hover {
    color: #c5ca9e;
}
.biwel-footer-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 11px 20px;
    background: rgba(37,211,102,0.1);
    border: 1px solid rgba(37,211,102,0.3);
    border-radius: 30px;
    color: #25d366;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s;
}
.biwel-footer-wa-btn:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}
.biwel-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 5%;
    border-top: 1px solid rgba(121,130,83,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.biwel-footer-bottom p {
    font-size: 0.8rem;
    color: #4a4f3a;
}
.biwel-footer-bottom-links {
    display: flex;
    gap: 20px;
}
.biwel-footer-bottom-links a {
    font-size: 0.8rem;
    color: #4a4f3a;
    text-decoration: none;
    transition: color 0.2s;
}
.biwel-footer-bottom-links a:hover {
    color: #798253;
}
@media (max-width: 900px) {
    .main-header,
    .biwel-header {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }
    .biwel-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    /* ---- Mobile header fix ---- */
    .biwel-header-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        height: 64px;
        gap: 12px;
        justify-content: space-between;
        position: relative;
        padding: 0 16px;
        margin: 0;
    }
    /* Logo fits the smaller header */
    .biwel-logo {
        min-width: 0;
        max-width: calc(100% - 64px);
    }
    .biwel-logo-img {
        height: 52px;
        max-width: 100%;
    }
    /* Slide-in mobile nav drawer */
    .biwel-nav {
        position: fixed;
        top: 64px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 64px);
        background-color: rgba(14, 16, 9, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(121, 130, 83, 0.2);
        z-index: 200;
        display: flex !important;
        flex-direction: column;
        padding: 40px 8%;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        align-items: flex-start;
        justify-content: flex-start;
        overflow-y: auto;
    }
    .biwel-nav.active {
        left: 0;
    }
    .biwel-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        width: 100%;
    }
    .biwel-nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(121, 130, 83, 0.12);
    }
    .biwel-nav ul li:last-child {
        border-bottom: none;
    }
    .biwel-nav-link {
        font-size: 1.05rem;
        width: 100%;
        display: block;
        padding: 18px 0;
        color: #c5ca9e;
    }
    .biwel-nav-link::after {
        display: none;
    }
    /* Hamburger visible, shown over everything */
    .biwel-header-icons {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-left: auto;
        z-index: 300;
        flex-shrink: 0;
    }
    .biwel-menu-toggle {
        display: flex !important;
        position: relative;
        margin-left: 0;
        flex-shrink: 0;
        right: auto;
        left: auto;
        transform: none;
    }
    .biwel-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .biwel-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .biwel-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .biwel-menu-toggle.active {
        background-color: rgba(121, 130, 83, 0.14);
        border-color: rgba(121, 130, 83, 0.35);
    }
    .hero-section,
    .hero-container,
    .hero-showcase,
    .showcase-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    .float-card {
        display: none;
    }
    /* Modo empleo section stacks on mobile */
    .modo-empleo-grid {
        grid-template-columns: 1fr;
    }
    .restrictions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .presenter-badge-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .presenter-badge-grid div {
        border-left: none !important;
        border-top: 1px solid rgba(0,0,0,0.08);
        padding-top: 10px;
        padding-left: 0 !important;
    }
    .presenter-badge-grid div:first-child {
        border-top: none !important;
        padding-top: 0;
    }
}
@media (max-width: 560px) {
    .biwel-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .biwel-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .restrictions-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Floating Utilities --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--clr-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 99;
}
.back-to-top.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-4px);
}

/* --- Animations & Keyframes --- */
@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

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

@keyframes hoverPedestal {
    0%, 100% { transform: perspective(1000px) rotateX(10deg) translateY(0); }
    50% { transform: perspective(1000px) rotateX(10deg) translateY(-10px); }
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

/* Scroll Reveal base state */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Modo Empleo Section Classes --- */
.modo-empleo-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 0.9fr;
}
.restrictions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.presenter-badge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
}

/* --- Responsive Media Queries --- */

/* 4K Screens & Ultra Desktops */
@media (min-width: 1920px) {
    html { font-size: 18px; }
    .container { max-width: 1720px; }
    .hero-title { font-size: 5rem; }
}

/* Notebooks & Desktops */
@media (max-width: 1200px) {
    .hero-title { font-size: 3.2rem; }
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 320px;
    }
    #bento-configs { grid-column: span 3; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { gap: 30px; }
}

/* Tablets (iPad-Pro and down) */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-ctas { justify-content: center; }
    .hero-trust-bullets { justify-content: center; }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card:nth-child(2)::after { display: none; }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 280px;
    }
    #bento-configs { grid-column: span 2; }
    #bento-medical { grid-column: span 2; }
    
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    
    .why-choose-section .glass-panel { padding: 60px 5%; }
    .features-grid { grid-template-columns: 1fr; gap: 30px; }
    
    .cases-grid { grid-template-columns: 1fr; }
    .cta-banner { grid-template-columns: 1fr; }
    .cta-banner-content { padding: 60px 5%; text-align: center; }
    .cta-actions { justify-content: center; }
    .cta-banner-image { display: none; }
    
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile Screens */
@media (max-width: 768px) {
    html { font-size: 14px; }
    .header-container { height: 70px; }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        z-index: 98;
        display: flex;
        flex-direction: column;
        padding: 40px 10%;
        transition: var(--transition-smooth);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-menu ul {
        flex-direction: column;
        gap: 24px;
    }
    .nav-link {
        font-size: 1.2rem;
    }
    .menu-toggle {
        display: flex;
    }
    #header-quote-btn {
        display: none;
    }
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-title { font-size: 2.8rem; letter-spacing: -1px; }
    .hero-ctas { flex-direction: column; width: 100%; }
    .hero-ctas .btn { width: 100%; }
    .hero-trust-bullets { flex-direction: column; align-items: center; gap: 16px; }
    
    .stats-grid { grid-template-columns: 1fr; gap: 24px; }
    .stat-card::after { display: none !important; }
    .stat-number { font-size: 3rem; }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }
    #bento-configs, #bento-medical, #bento-chemicals, #bento-safety, #bento-facial {
        grid-column: span 1;
    }
    
    .product-grid { grid-template-columns: 1fr; }
    
    .cert-grid { gap: 24px; }
    .cert-badge-card { width: 45%; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   POPUP MODAL
   ========================================================================== */

/* Overlay */
.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7, 18, 14, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Visible state (toggled by JS) */
.popup-overlay.popup-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Hiding state (fade-out before display:none) */
.popup-overlay.popup-hiding {
    opacity: 0;
    pointer-events: none;
}

/* Modal box */
.popup-modal {
    position: relative;
    max-width: 760px;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: scale(0.88) translateY(20px);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-overlay.popup-visible .popup-modal {
    transform: scale(1) translateY(0);
}

.popup-overlay.popup-hiding .popup-modal {
    transform: scale(0.92) translateY(12px);
}

/* Image inside modal */
.popup-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.popup-image:hover {
    transform: scale(1.015);
}

/* Video inside modal */
.popup-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    object-fit: cover;
    background: #000;
}

/* Close button */
.popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(8px);
}

.popup-close:hover {
    background: #fff;
    transform: scale(1.12) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

/* Prevent body scroll while popup is open */
body.popup-open {
    overflow: hidden;
}

/* Responsive – small screens */
@media (max-width: 600px) {
    .popup-overlay {
        padding: 12px;
        align-items: center;
    }
    .popup-modal {
        border-radius: 12px;
        max-width: 100%;
        width: 100%;
    }
    .popup-image {
        border-radius: 12px;
        width: 100%;
        height: auto;
        max-height: 80vh;
        object-fit: contain;
    }
    /* Video keeps correct aspect ratio on mobile */
    .popup-video {
        border-radius: 12px;
        width: 100%;
        height: auto;
        max-height: 75vh;
        object-fit: contain;
        display: block;
    }
    .popup-close {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }
}

/* ==========================================================================
   VIDEO POPUP MODAL (catalogo.php)
   ========================================================================== */

.vidpopup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 12, 8, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.vidpopup-overlay.vidpopup-visible {
    opacity: 1;
    pointer-events: auto;
}

.vidpopup-overlay.vidpopup-hiding {
    opacity: 0;
    pointer-events: none;
}

/* Modal container */
.vidpopup-modal {
    position: relative;
    width: 100%;
    max-width: 860px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.07),
        0 0 0 4px rgba(34, 197, 94, 0.08);
    transform: scale(0.87) translateY(24px);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    background: #000;
}

.vidpopup-overlay.vidpopup-visible .vidpopup-modal {
    transform: scale(1) translateY(0);
}

.vidpopup-overlay.vidpopup-hiding .vidpopup-modal {
    transform: scale(0.93) translateY(14px);
}

/* 16:9 frame wrapper */
.vidpopup-frame-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    overflow: hidden;
}

/* Thumbnail overlay */
.vidpopup-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.vidpopup-thumb-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.vidpopup-thumb-overlay:hover .vidpopup-thumb-bg {
    transform: scale(1.04);
    filter: brightness(0.65);
}

/* Play button */
.vidpopup-play-btn {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.vidpopup-play-btn svg {
    filter: drop-shadow(0 6px 24px rgba(0,0,0,0.6));
    transition: transform 0.25s ease;
}

.vidpopup-thumb-overlay:hover .vidpopup-play-btn svg {
    transform: scale(1.15);
}

.vidpopup-play-btn span {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* YouTube player container */
#yt-player-container iframe,
#yt-player-div {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Close button */
.vidpopup-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(8px);
}

.vidpopup-close:hover {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    transform: scale(1.12) rotate(90deg);
}

/* Responsive – mobile */
@media (max-width: 600px) {
    .vidpopup-modal {
        border-radius: 14px;
        max-width: 98vw;
    }
    .vidpopup-close {
        top: -12px;
        right: -10px;
        width: 34px;
        height: 34px;
    }
}

/* ==========================================================================
   GLOBAL LIGHT THEME OVERRIDES FOR DETAIL, ARTICLE, CONTACT & LEGAL PAGES
   ========================================================================== */

/* Main Body Background & Base Text */
body:not(.index-page) {
    background-color: #ffffff !important;
    color: var(--clr-text-main) !important;
}

/* Page Hero and Legal Hero */
.page-hero, .legal-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e8f5e9 100%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}
.page-title, .legal-title {
    color: var(--clr-text-main) !important;
}
.page-title span, .legal-title span {
    color: #798253 !important;
}
.page-subtitle, .legal-subtitle, .page-meta {
    color: var(--clr-text-muted) !important;
}
.page-meta span strong {
    color: #798253 !important;
}

/* Page Sections & Layouts */
.cbd-section, .about-section, .article-section, .contact-section, .legal-section {
    background-color: #ffffff !important;
}
.cbd-section:nth-child(even), .about-section:nth-child(even) {
    background-color: #f8fafc !important;
}
.section-heading, .about-heading, .contact-info-title, .form-title {
    color: var(--clr-text-main) !important;
}
.section-text, .about-text, .contact-info-sub, .form-subtitle {
    color: var(--clr-text-muted) !important;
}

/* Cards & Sidebars */
.info-card, .value-card, .sidebar-box, .legal-summary, .legal-card, .contact-form-wrap, .blog-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}
.info-card h3, .value-card h3, .sidebar-title, .legal-summary h3, .legal-card h2, .blog-card h3 {
    color: var(--clr-text-main) !important;
}
.info-card p, .value-card p, .sidebar-box ul li, .legal-summary p, .legal-summary li, .legal-card p, .legal-card li, .article-body, .article-body p, .article-body li {
    color: var(--clr-text-muted) !important;
}
.article-body h2 {
    color: var(--clr-text-main) !important;
}
.legal-card strong, .article-body strong {
    color: var(--clr-text-main) !important;
}
.legal-summary li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.legal-note {
    background: rgba(121, 130, 83, 0.1) !important;
    border: 1px solid rgba(121, 130, 83, 0.2) !important;
    color: #4b5333 !important;
}

/* Contact Details & Forms */
.contact-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.contact-item h4 {
    color: #798253 !important;
}
.contact-item p, .contact-item a {
    color: var(--clr-text-muted) !important;
}
.contact-item a:hover {
    color: #798253 !important;
}


.form-group input, .form-group select, .form-group textarea {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: var(--clr-text-main) !important;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #798253 !important;
    background: rgba(121, 130, 83, 0.05) !important;
}
.form-group select option {
    background: #ffffff !important;
    color: var(--clr-text-main) !important;
}

/* FAQ Accordions */
.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.faq-q {
    color: #798253 !important;
}
.faq-a {
    color: var(--clr-text-muted) !important;
}

/* Navigation Back Buttons */
.btn-back {
    color: #798253 !important;
    border: 1px solid rgba(121, 130, 83, 0.4) !important;
}
.btn-back:hover {
    background: rgba(121, 130, 83, 0.08) !important;
    color: #626a45 !important;
}

/* Stats Sections */
.stats-row {
    background: rgba(0, 0, 0, 0.08) !important;
}
.stat-item {
    background: #f8fafc !important;
}
.stat-number {
    color: #798253 !important;
}
.stat-label {
    color: var(--clr-text-muted) !important;
}

/* Molecule diagram */
.molecule-box {
    background: rgba(121, 130, 83, 0.03) !important;
    border: 1px solid rgba(121, 130, 83, 0.15) !important;
}
.formula-name {
    color: var(--clr-text-light) !important;
}

/* Inline background / block section overrides */
section[style*="background: #111111"], 
section[style*="background:#111111"],
section[style*="background: #1a1f14"], 
section[style*="background:#1a1f14"],
section[style*="background: #151515"],
section[style*="background:#151515"],
section[style*="background:#1a1f14;"],
section[style*="background:#111111;"] {
    background: #ffffff !important;
}
section[style*="background: #111111"] h2,
section[style*="background:#111111"] h2,
section[style*="background: #1a1f14"] h2,
section[style*="background:#1a1f14"] h2,
section[style*="background: #111111"] p,
section[style*="background:#111111"] p,
section[style*="background: #1a1f14"] p,
section[style*="background:#1a1f14"] p {
    color: var(--clr-text-main) !important;
}
section[style*="background: #111111"] p,
section[style*="background:#111111"] p,
section[style*="background: #1a1f14"] p,
section[style*="background:#1a1f14"] p {
    color: var(--clr-text-muted) !important;
}
