/* ==========================================================================
   Custom Fonts
   ========================================================================== */
@font-face {
    font-family: 'Sobiscuit';
    src: local('Sobiscuit'), url('../fonts/Sobiscuit.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Premium & Fun Design System (Brand Colors)
   ========================================================================== */
:root {
    /* Brand Orange */
    --clr-primary: #FF7844; 
    --clr-primary-dark: #CC5A2B;
    --clr-primary-pale: #FFE8DF;
    
    /* Brand Violet (Accent / Dark) */
    --clr-secondary: #9400FF; 
    --clr-secondary-dark: #6C00BF;
    --clr-secondary-pale: #F2E5FF;

    /* Highlight Yellow */
    --clr-yellow: #FFE66D; 
    --clr-yellow-dark: #E5CD52;
    
    /* Light Green Footer / Accents */
    --clr-green-light: #A6C009;
    --clr-green-dark: #7D9107;

    /* Deep Violet instead of Navy */
    --clr-dark: #3A1F47; 
    --clr-dark-muted: #826291;
    
    --clr-light: #ffffff;
    --clr-bg: #FCFBF9; /* Warm off-white */
    --clr-bg-alt: #F4F0E6; 

    --clr-border: #E8DCCB;
    --clr-whatsapp: #25D366;
    
    /* Typography */
    --font-heading: 'Sobiscuit', sans-serif;
    --font-body: 'Nunito', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Premium Shadows & Radii */
    --shadow-soft: 0 10px 30px rgba(26, 83, 92, 0.08);
    --shadow-glow: 0 15px 35px rgba(255, 107, 107, 0.3);
    
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy */
    --transition-normal: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-dark);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><text y="20" font-size="20">🐶</text></svg>'), auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ==========================================================================
   Paw Print Interaction
   ========================================================================== */
.paw-print {
    position: fixed;
    font-size: 1.2rem;
    color: var(--clr-primary);
    opacity: 0.6;
    pointer-events: none;
    z-index: 9999;
    animation: fadePaw 1s forwards ease-out;
}

@keyframes fadePaw {
    0% { transform: scale(0.5) rotate(var(--rot)); opacity: 0.8; }
    100% { transform: scale(1.5) rotate(var(--rot)); opacity: 0; }
}

/* Prevent scrolling while preloader is active */
body.loading {
    overflow: hidden;
}

/* ==========================================================================
   Preloader Animation
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--clr-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 1.0s ease-in-out;
}

.preloader.fly-away {
    background-color: transparent;
    pointer-events: none;
}

.preloader-logo {
    height: 150px;
    opacity: 1;
    transform: scale(1);
    animation: pulseLogo 1.2s ease-out both;
}

/* When JS triggers fly-away, kill the pulse animation so Web Animations API can take over */
.preloader.fly-away .preloader-logo {
    animation: none;
}

@keyframes pulseLogo {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .preloader-logo { height: 100px; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--clr-dark);
    transform: translateZ(0); /* Hardware accelerate text rendering on Windows */
}

.font-bubbly { font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.5px; }
.text-primary { color: var(--clr-primary); }
.text-secondary { color: var(--clr-secondary); }
.text-dark { color: var(--clr-dark); }
.text-light { color: var(--clr-light); }
.bg-white { background-color: var(--clr-light); }
.bg-alt { background-color: var(--clr-bg-alt); }
.bg-primary { background-color: var(--clr-primary); }
.bg-mint { background-color: var(--clr-secondary-pale); }
.bg-yellow { background-color: #FFF9D2; }
.bg-coral { background-color: var(--clr-primary-pale); }

.drop-shadow { filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }
.drop-shadow-sm { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05)); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}
.text-center { text-align: center; }
.text-large { font-size: 1.25rem; }

.pt-xl { padding-top: var(--space-xl); }
.pb-xl { padding-bottom: var(--space-xl); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.mt-lg { margin-top: var(--space-lg); }
.mt-0 { margin-top: 0 !important; }

/* ==========================================================================
   Premium Buttons & Badges
   ========================================================================== */
.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.badge-fun {
    background: var(--clr-primary-pale);
    color: var(--clr-primary-dark);
    border: 2px solid var(--clr-light);
    box-shadow: 0 4px 10px rgba(255,107,107,0.2);
}

.badge-secondary {
    background: var(--clr-secondary-pale);
    color: var(--clr-secondary-dark);
    box-shadow: 0 4px 10px rgba(78,205,196,0.2);
}

.badge-bounce {
    animation: bounceSlow 3s infinite ease-in-out;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    text-align: center;
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-huge {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-light);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: var(--clr-primary-dark);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background-color: var(--clr-yellow);
    color: var(--clr-dark);
    box-shadow: 0 10px 25px rgba(255, 230, 109, 0.4);
}

.btn-secondary:hover {
    background-color: var(--clr-yellow-dark);
    transform: translateY(-5px) scale(1.02);
}

.btn-outline {
    background: var(--clr-light);
    color: var(--clr-dark);
    border: 3px solid var(--clr-border);
    box-shadow: var(--shadow-soft);
}

.btn-outline:hover {
    border-color: var(--clr-secondary);
    color: var(--clr-secondary-dark);
    transform: translateY(-5px);
}

.btn-whatsapp {
    background-color: var(--clr-whatsapp);
    color: white;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
    color: white;
    transform: translateY(-3px);
}

/* ==========================================================================
   Interactive Utilities & Animations
   ========================================================================== */
.wiggle-on-hover:hover {
    animation: wiggle 0.5s ease;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-5deg) scale(1.05); }
    50% { transform: rotate(5deg) scale(1.05); }
    75% { transform: rotate(-5deg) scale(1.05); }
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-slow { animation: floatY 6s ease-in-out infinite; }
.floating-fast { animation: floatY 3s ease-in-out infinite; }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes floatYCenter {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-15px); }
}

/* ==========================================================================
   Navigation (Glassmorphism & Bubbles)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
    padding: 0.5rem 0; /* Standardized padding */
    background: #ffffff;
}

.navbar.scrolled {
    box-shadow: var(--shadow-soft);
}

.nav-content { display: flex; justify-content: space-between; align-items: center; }

.logo img { height: 100px; transition: height var(--transition-normal); }
.navbar.scrolled .logo img { height: 80px; }

.nav-links { display: none; gap: 1.5rem; align-items: center; justify-content: center; flex: 1; margin: 0 2rem; text-align: center; }
@media (min-width: 768px) { .nav-links { display: flex; } }

.blob-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-dark-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.blob-link:hover, .blob-link.active {
    color: var(--clr-primary);
    background: var(--clr-primary-pale);
    transform: scale(1.05);
}

.store-highlight {
    background: var(--clr-secondary);
    color: var(--clr-light);
}
.store-highlight:hover { background: var(--clr-secondary-dark); color: white;}

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.cart-trigger {
    position: relative;
    font-size: 1.8rem;
    color: var(--clr-dark);
    background: var(--clr-light);
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-fast);
}

.cart-trigger:hover {
    background: var(--clr-yellow);
    transform: scale(1.1) rotate(-10deg);
}

.cart-badge {
    position: absolute; top: -5px; right: -5px;
    background: var(--clr-primary); color: white;
    font-family: var(--font-heading); font-size: 0.85rem;
    width: 24px; height: 24px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 3px solid var(--clr-light);
}

.mobile-menu-trigger {
    display: flex; font-size: 2rem; color: var(--clr-dark); cursor: pointer;
}
@media (min-width: 768px) { .mobile-menu-trigger { display: none; } }

/* ==========================================================================
   Hero Section - Fun & Bubbly
   ========================================================================== */
.hero-fun {
    position: relative;
    padding: calc(120px + var(--space-xl)) 0 var(--space-xl);
    background-color: var(--clr-primary); /* User requested Orange Background */
    overflow: hidden;
    color: var(--clr-light); /* Update base text color inside hero to white */
}

.hero-blobs {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: hidden;
}

.blob {
    position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5;
}

.blob.shape-1 {
    width: 400px; height: 400px; background: rgba(255, 255, 255, 0.2); top: -100px; right: -50px;
}
.blob.shape-2 {
    width: 300px; height: 300px; background: rgba(255, 255, 255, 0.15); bottom: 100px; left: -100px; /* Switched violet to soft white */
}
.blob.shape-3 {
    width: 250px; height: 250px; background: var(--clr-yellow); top: 200px; left: 40%;
}

.hero-content-fun {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr; gap: var(--space-xl); align-items: center;
}

@media (min-width: 992px) { .hero-content-fun { grid-template-columns: 1.1fr 0.9fr; } }

/* Adapt text for high contrast on orange */
.hero-text-fun h1 { font-size: clamp(3rem, 6vw, 4.5rem); margin-bottom: 1rem; line-height: 1.05; color: var(--clr-light); }
.hero-text-fun h1 .pattern-text { color: var(--clr-yellow); } 
.hero-subtitle { font-size: 1.25rem; color: rgba(255, 255, 255, 0.9); max-width: 500px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: nowrap; white-space: nowrap; }
.hero-actions .btn-huge { padding: 1rem 1.8rem; font-size: 1.1rem; }
@media (max-width: 576px) {
    .hero-actions { gap: 0.5rem; }
    .hero-actions .btn-huge { padding: 0.8rem 1rem; font-size: 0.95rem; }
}

/* Invert badge for contrast */
.hero-text-fun .badge-fun {
    background: var(--clr-light);
    color: var(--clr-primary-dark);
    border-color: var(--clr-light);
}

/* Update hero buttons for contrast */
.hero-text-fun .btn-primary {
    background: var(--clr-secondary);
    color: var(--clr-light);
    box-shadow: 0 10px 25px rgba(148, 0, 255, 0.3);
}
.hero-text-fun .btn-primary:hover {
    background: var(--clr-secondary-dark);
}

.hero-text-fun .btn-outline {
    border-color: var(--clr-light);
    color: var(--clr-light);
    background: transparent;
}
.hero-text-fun .btn-outline:hover {
    background: var(--clr-light);
    color: var(--clr-primary);
}

.hero-images-fun { position: relative; display: flex; justify-content: center; align-items: center; }
.main-image-container { position: relative; display: inline-block; max-width: 100%; }
.main-hero-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

.sticker-pop {
    position: absolute; background: var(--clr-light); padding: 1rem;
    border-radius: 50%; box-shadow: var(--shadow-soft);
    display: flex; align-items: center; justify-content: center;
}
.sticker-1 { top: -20px; right: -20px; width: 80px; height: 80px; transform: rotate(15deg); }
.sticker-1 img { width: 100%; }
.sticker-2 { bottom: 20px; left: -30px; width: 70px; height: 70px; transform: rotate(-10deg); }

/* SVG Waves */
.wave-bottom { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 2; pointer-events: none; }
.wave-bottom svg { width: 100%; height: auto; display: block; }
.wave-top-container { position: relative; }
.wave-top { position: absolute; top: -1px; left: 0; width: 100%; line-height: 0; transform: rotate(180deg); z-index: 2; pointer-events: none; }
.wave-top svg { width: 100%; height: auto; display: block; }

.text-bg-white svg path { fill: var(--clr-light); }
.text-bg-alt svg path { fill: var(--clr-bg-alt); }

/* ==========================================================================
   Benefits (Fun 3D Cards)
   ========================================================================== */
.benefits-fun { padding: var(--space-xl) 0; position: relative; }

.benefits-fun-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); padding-top: var(--space-md);
}

.card-3d { perspective: 1000px; }
.card-content {
    background: var(--clr-light); padding: var(--space-xl) var(--space-md) var(--space-md);
    border-radius: var(--radius-lg); text-align: center;
    position: relative; margin-top: 40px;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-fast);
}

.card-content:hover { transform: translateY(-10px) rotateY(5deg); }

.card-icon {
    position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 80px; background: var(--clr-light);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: var(--clr-primary); box-shadow: var(--shadow-glow);
}

.card-icon.floating-fast {
    animation: floatYCenter 3s ease-in-out infinite;
}

.card-content h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.card-content p { color: var(--clr-dark-muted); }

/* ==========================================================================
   Store / Products (tienda.html)
   ========================================================================== */
.store-hero {
    padding: calc(40px + var(--space-md)) 0 var(--space-xl);
    position: relative;
}

.store-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: var(--space-lg); }

.store-filters .filter-btn {
    padding: 0.8rem 1.5rem; border-radius: var(--radius-full);
    font-family: var(--font-heading); font-size: 1.1rem;
    background: var(--clr-light); color: var(--clr-dark);
    border: 2px solid var(--clr-border); cursor: pointer;
    transition: all var(--transition-fast); display: flex; align-items: center; gap: 0.5rem;
}

.store-filters .filter-btn:hover { border-color: var(--clr-primary); transform: translateY(-3px); }
.store-filters .filter-btn.active { background: var(--clr-primary); color: var(--clr-light); border-color: var(--clr-primary); box-shadow: 0 5px 15px rgba(255,107,107,0.3); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-lg); position: relative; z-index: 2; }

.product-card {
    background: var(--clr-light); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-soft);
    transition: all var(--transition-fast);
    border: 3px solid transparent;
}

.product-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-glow); border-color: var(--clr-primary-pale); }

.product-img { position: relative; height: 250px; overflow: hidden; border-bottom: 2px solid var(--clr-bg-alt); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.product-card:hover .product-img img { transform: scale(1.08); }

.product-badge {
    position: absolute; top: 1rem; left: 1rem;
    background: var(--clr-yellow); color: var(--clr-dark);
    font-family: var(--font-heading); font-weight: 700;
    padding: 0.4rem 1rem; border-radius: var(--radius-full);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-info { padding: var(--space-md); text-align: center; }
.product-title { font-size: 1.4rem; font-family: var(--font-heading); margin-bottom: 0.5rem; color: var(--clr-dark); }
.product-desc { color: var(--clr-dark-muted); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.5; }

.product-price-row { display: flex; justify-content: space-between; align-items: center; align-items: center; background: var(--clr-bg-alt); padding: 0.5rem; border-radius: var(--radius-full); }
.product-price { font-size: 1.4rem; font-weight: 800; font-family: var(--font-heading); color: var(--clr-primary); margin-left: 1rem; }

/* Testimonials Corner Dog Image */
.testimonial-dog-img {
    position: absolute;
    bottom: 100px;
    right: 5%;
    width: 280px;
    max-width: 40vw;
    z-index: 1;
    pointer-events: none;
}
@media (max-width: 768px) {
    .testimonial-dog-img {
        width: 130px;
        right: -10px;
        bottom: 15px;
    }
}

.btn-add-cart {
    background: var(--clr-primary); color: var(--clr-light);
    width: 45px; height: 45px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; border: none; cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-add-cart:hover { background: var(--clr-primary-dark); transform: scale(1.1) rotate(10deg); box-shadow: 0 4px 10px rgba(255,107,107,0.4); }

.floating-pet-icon { position: absolute; font-size: 4rem; color: var(--clr-primary-pale); opacity: 0.5; z-index: 1; pointer-events: none; }
.blob-1 { top: 10%; left: 5%; animation: floatY 5s infinite; }
.blob-2 { top: 40%; right: 5%; animation: floatY 4s infinite reverse; }
.blob-3 { bottom: 10%; left: 10%; animation: floatY 6s infinite; }

/* ==========================================================================
   Store Hero (Tienda)
   ========================================================================== */
.store-hero { padding: 150px 0 100px; position: relative; overflow: hidden; }
.store-badge { background: white; color: var(--clr-primary); border: 2px solid white; margin-bottom: 1rem; font-size: 1rem; }
.store-subtitle { color: rgba(255,255,255,0.9); font-size: 1.25rem; max-width: 700px; margin: 0 auto; line-height: 1.5; }
.store-hero h1 { font-size: 3.5rem; margin-bottom: 1rem; }

/* Hero Pet Blobs */
.hero-blob-1 { top: 15%; left: 10%; font-size: 5rem; animation: floatY 5s ease-in-out infinite; color: rgba(255,255,255,0.2); }
.hero-blob-2 { top: 60%; right: 12%; font-size: 3.5rem; animation: floatY 6s ease-in-out infinite reverse; color: rgba(255,255,255,0.15); }
.hero-blob-3 { bottom: 15%; left: 18%; font-size: 4rem; animation: floatY 7s ease-in-out infinite 1s; color: rgba(255,255,255,0.25); }
.hero-blob-4 { top: 20%; right: 20%; font-size: 4.5rem; animation: floatY 5.5s ease-in-out infinite 0.5s reverse; color: rgba(255,255,255,0.2); }


/* ==========================================================================
   Testimonials (Swiper)
   ========================================================================== */
.testimonials-fun { padding: var(--space-xl) 0; position: relative; overflow: hidden; }

.testimonialSwiper { padding-bottom: 3rem; }
.testimonial-bubble {
    background: var(--clr-light); border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg); text-align: center;
    box-shadow: var(--shadow-soft); margin: 1rem; position: relative;
}

.testimonial-bubble .quote-icon {
    font-size: 2.5rem; color: var(--clr-yellow); margin-bottom: 1rem;
}
.testimonial-bubble p { font-size: 1.1rem; font-style: italic; margin-bottom: 1rem; color: var(--clr-dark-muted); }
.testimonial-bubble h4 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--clr-primary); }

.swiper-pagination-bullet { width: 12px; height: 12px; background: var(--clr-border); opacity: 1; }
.swiper-pagination-bullet-active { background: var(--clr-primary); transform: scale(1.2); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-accordion-fun { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }

.faq-item-fun { background: var(--clr-light); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); overflow: hidden; }

.faq-btn-fun {
    width: 100%; text-align: left; padding: 1.5rem;
    background: transparent; border: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 1.25rem; color: var(--clr-dark);
}

.faq-btn-fun .icon-plus { font-size: 1.5rem; color: var(--clr-primary); transition: transform var(--transition-fast); }
.faq-item-fun.active .icon-plus { transform: rotate(45deg); color: var(--clr-primary-dark); }

.faq-panel-fun { max-height: 0; overflow: hidden; transition: max-height var(--transition-normal); }
.faq-panel-fun p { padding: 0 1.5rem 1.5rem; color: var(--clr-dark-muted); line-height: 1.6; }

/* ==========================================================================
   Mega CTA Before Footer
   ========================================================================== */
.cta-bubble {
    background: var(--clr-secondary); border-radius: var(--radius-lg);
    position: relative; overflow: hidden; box-shadow: 0 20px 40px rgba(78,205,196,0.3);
}

.floating-paws { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.25; color: var(--clr-light); overflow: hidden; }
.floating-paws i { position: absolute; }
.paw-1 { top: 15%; left: 8%; transform: rotate(-15deg); font-size: 6rem; }
.paw-2 { bottom: 10%; left: 15%; transform: rotate(10deg); font-size: 8rem; }
.paw-3 { top: 20%; right: 10%; transform: rotate(25deg); font-size: 7rem; }
.paw-4 { bottom: 15%; right: 20%; transform: rotate(-25deg); font-size: 5rem; }
.paw-5 { top: 40%; left: 35%; transform: rotate(5deg); font-size: 6rem; opacity: 0.7; }
.paw-6 { top: 55%; right: 40%; transform: rotate(-10deg); font-size: 5rem; }
.paw-7 { bottom: 5%; left: 45%; transform: rotate(15deg); font-size: 4rem; }
.paw-8 { top: 5%; left: 55%; transform: rotate(-20deg); font-size: 5.5rem; }


/* ==========================================================================
   Cart Sidebar
   ========================================================================== */
.cart-sidebar {
    position: fixed; top: 0; right: 0; width: 100%; max-width: 450px; height: 100vh;
    background: var(--clr-light); z-index: 1002;
    transform: translateX(100%); transition: transform var(--transition-normal);
    display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    border-top-left-radius: var(--radius-md); border-bottom-left-radius: var(--radius-md);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(26, 83, 92, 0.4); backdrop-filter: blur(4px);
    z-index: 1001; opacity: 0; visibility: hidden; transition: all var(--transition-normal);
}
.cart-sidebar-overlay.open { opacity: 1; visibility: visible; }

.cart-header { padding: 1.5rem; border-bottom: 2px dashed var(--clr-border); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-size: 1.5rem; display: flex; align-items: center; gap: 0.5rem; color: var(--clr-primary); }
.close-cart { font-size: 2rem; color: var(--clr-dark-muted); background: var(--clr-bg); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.close-cart:hover { background: var(--clr-primary-pale); color: var(--clr-primary); }

.cart-items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }

.empty-cart-msg { margin: auto; text-align: center; color: var(--clr-dark-muted); }
.empty-cart-msg i.bx-shopping-bag { font-size: 5rem; color: var(--clr-primary-pale); margin-bottom: 1rem; display: block; }

.cart-item { display: flex; gap: 1rem; align-items: center; background: var(--clr-bg); padding: 0.75rem; border-radius: var(--radius-md); }
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid var(--clr-light); }
.cart-item-details { flex: 1; }
.cart-item-title { font-size: 1rem; font-family: var(--font-heading); margin-bottom: 0.25rem; line-height: 1.2; }
.cart-item-price { font-weight: 800; color: var(--clr-primary); font-size: 1.1rem; }

.cart-item-actions { display: flex; align-items: center; justify-content: space-between; width: 80px; background: var(--clr-light); border-radius: var(--radius-full); padding: 0.2rem; margin-top: 0.5rem; border: 1px solid var(--clr-border); }
.cart-item-actions button { border: none; background: transparent; font-size: 1.2rem; color: var(--clr-dark); cursor: pointer; display: flex; align-items: center; justify-content: center; width: 25px; height: 25px; }

.cart-item-remove { font-size: 1.5rem; color: #FF6B6B; background: var(--clr-primary-pale); width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: all 0.2s; }
.cart-item-remove:hover { background: #FF6B6B; color: white; transform: rotate(15deg); }

.cart-footer { padding: 1.5rem; background: var(--clr-light); border-top: 2px dashed var(--clr-border); box-shadow: 0 -10px 20px rgba(0,0,0,0.02); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.5rem; font-family: var(--font-heading); font-weight: 800; color: var(--clr-dark); margin-bottom: 1rem; }
.cart-footer .btn { width: 100%; padding: 1.2rem; font-size: 1.2rem; }

/* ==========================================================================
   Custom Shape Dividers (Waves)
   ========================================================================== */
.footer-wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translateY(-99%); /* Sit perfectly on top of the footer */
    pointer-events: none;
}

.footer-wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px; /* Adjust for curve intensity */
    transform: rotate(180deg); /* Flip it so the flat base touches the footer */
}

.footer-wave-top .shape-fill {
    fill: var(--clr-dark); /* Match the new dark footer background */
}

/* ==========================================================================
   Footer (Premium Dark Mode)
   ========================================================================== */
.footer { background: var(--clr-dark); color: var(--clr-light); position: relative; }
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    width: 100%;
    position: relative;
    z-index: 10;
}
.footer-col h3 { color: var(--clr-yellow); font-size: 1.5rem; margin-bottom: 1.5rem; font-family: var(--font-heading); letter-spacing: 0.5px; }
.footer-col p { color: rgba(255, 255, 255, 0.8); font-weight: 400; font-size: 1.05rem; line-height: 1.6;}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 1rem; display: flex; align-items: flex-start; gap: 0.8rem; color: rgba(255, 255, 255, 0.9); font-weight: 500;}
.footer-col ul li i { color: var(--clr-primary); font-size: 1.5rem; margin-top: 2px;}
.footer-col ul li a { color: rgba(255, 255, 255, 0.9); text-decoration: none; transition: all var(--transition-fast); }
.footer-col ul li a:hover { color: var(--clr-yellow); padding-left: 5px; }

.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a { 
    display: flex; align-items: center; justify-content: center;
    width: 45px; height: 45px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); color: var(--clr-light);
    font-size: 1.8rem; transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-links a:hover { background: var(--clr-primary); color: white; transform: translateY(-5px); border-color: var(--clr-primary); box-shadow: var(--shadow-glow); }

.footer-bottom-bar { 
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 1.5rem 0; margin-top: 2rem; 
    text-align: center; color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; font-weight: 400;
}

/* Mobile nav */
.mobile-nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--clr-light); z-index: 999;
    transform: translateY(-100%); transition: transform var(--transition-normal);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.mobile-nav-overlay.open { transform: translateY(0); }
.mobile-nav-content { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
.mobile-link { font-size: 2rem; font-family: var(--font-heading); font-weight: 700; color: var(--clr-dark); text-decoration: none; }

/* ==========================================================================
   Calculadora B.A.R.F. Interactiva
   ========================================================================== */
.page-calculadora { background-color: var(--clr-light); padding: 140px 0 var(--spacing-xl) 0; }

.calc-master-card { 
    background-color: #fcece3; /* Soft peachy/beige background to make inner cards pop */
    border-radius: 30px; 
    padding: 2rem; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); 
    margin-top: 8rem;
}

.calc-hero { text-align: center; margin-bottom: 2rem; }
.calc-hero h1 { font-family: var(--font-heading); color: var(--clr-primary); font-size: 3rem; margin-bottom: 0.5rem; }

.calc-card, .calc-result-card { background: white; border: 1px solid rgba(0,0,0,0.05); padding: 2rem; border-radius: 20px; }
.step-num { display: inline-block; width: 35px; height: 35px; border-radius: 50%; text-align: center; line-height: 35px; font-size: 1.2rem; font-weight: 700; margin-right: 10px; background: var(--clr-primary); color: white; }

/* Espaciado de subtítulos en los pasos */
.calc-step h3 { margin-top: 2rem; margin-bottom: 1.5rem; }
.calc-step:first-child h3 { margin-top: 0; }
.calc-step h4 { margin-top: 1.5rem; margin-bottom: 1rem; }

.calc-radio-btn, .calc-checkbox-btn { display: block; height: 100%; }
.calc-radio-btn input[type="radio"], .calc-checkbox-btn input[type="checkbox"] { display: none; }
.calc-radio-btn .radio-content, .calc-checkbox-btn .radio-content { border: 2px solid rgba(0,0,0,0.1); border-radius: var(--border-radius-md); padding: var(--spacing-md); text-align: center; cursor: pointer; transition: all 0.2s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; background: #fff; }
.calc-radio-btn .radio-content i, .calc-checkbox-btn .radio-content i { margin-bottom: 10px; color: var(--clr-grey); transition: color 0.2s ease; font-size: 2rem;}
.calc-radio-btn:hover .radio-content, .calc-checkbox-btn:hover .radio-content { border-color: rgba(230, 126, 34, 0.5); background: rgba(230, 126, 34, 0.02); }
.calc-radio-btn input[type="radio"]:checked + .radio-content, .calc-checkbox-btn input[type="checkbox"]:checked + .radio-content { border-color: var(--clr-primary); background: rgba(230, 126, 34, 0.1); box-shadow: 0 4px 15px rgba(230, 126, 34, 0.15); }
.calc-radio-btn input[type="radio"]:checked + .radio-content span, .calc-checkbox-btn input[type="checkbox"]:checked + .radio-content span { font-weight: 700; color: var(--clr-primary); }
.calc-radio-btn input[type="radio"]:checked + .radio-content i, .calc-checkbox-btn input[type="checkbox"]:checked + .radio-content i { color: var(--clr-primary); }

input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 8px; cursor: pointer; background: #e0e0e0; border-radius: 4px; }
input[type=range]::-webkit-slider-thumb { height: 24px; width: 24px; border-radius: 50%; background: var(--clr-primary); cursor: pointer; -webkit-appearance: none; margin-top: -8px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

#weight_input { border: none; background: transparent; border-bottom: 2px solid var(--clr-primary); border-radius: 0; font-size: 1.5rem; font-weight: 700; color: var(--clr-dark); padding: 5px; text-align: center; width: 100%; }
#weight_input:focus { outline: none; box-shadow: none; border-color: var(--clr-accent); }

@media (min-width: 769px) { .sticky { position: -webkit-sticky; position: sticky; top: 100px; z-index: 10; } }
.number-pop { animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both; }
@keyframes popIn { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ==========================================================================
   Peek-a-boo Cat Animation
   ========================================================================== */
.peekaboo-cat {
    position: fixed;
    top: 50%;
    left: -150px; /* Start completely hidden */
    transform: translateY(-50%);
    z-index: 1000;
    width: 120px;
    pointer-events: none; /* Don't block clicks */
    animation: peekaboo 10s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

.peekaboo-cat img {
    width: 100%;
    height: auto;
    filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.2));
}

/* ==========================================================================
   Floating Cart Button
   ========================================================================== */
.floating-cart-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--clr-primary);
    color: var(--clr-light);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart-btn:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: var(--clr-dark);
}

.floating-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--clr-accent);
    color: var(--clr-light);
    font-size: 0.8rem;
    font-weight: 800;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--clr-light);
    font-family: var(--font-body);
}

@keyframes peekaboo {
    0%, 70% {
        left: -150px; /* Hidden for 7 seconds (70% of 10s) */
    }
    75%, 95% {
        left: 0; /* Visible for 2 seconds (from 7.5s to 9.5s) */
    }
    100% {
        left: -150px; /* Hide again */
    }
}

/* ==========================================================================
   Mobile Responsiveness (Max-Width 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Header & Logo */
    .logo img { height: 75px; } /* Prevent 100px logo from breaking mobile header */
    .navbar.scrolled .logo img { height: 60px; }
    
    /* Hero Section Adjustments */
    .hero-fun { padding: calc(80px + var(--space-lg)) 0 var(--space-lg); text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-subtitle { margin: 0 auto var(--space-md); font-size: 1.1rem; }
    .main-hero-img { max-width: 300px; }

    /* Store Hero Responsiveness */
    .store-hero { padding: 120px 0 60px; }
    .store-hero h1 { font-size: 2.2rem; }
    .store-subtitle { font-size: 1.05rem; padding: 0 15px; }
    
    /* Floating Stickers */
    .sticker-1, .sticker-2 { width: 50px; height: 50px; padding: 0.5rem; }
    .sticker-1 { top: -10px; right: -10px; }
    .sticker-2 { bottom: 10px; left: -10px; }
    
    /* Store Grid */
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-md); }
    .store-filters .filter-btn { padding: 0.6rem 1rem; font-size: 1rem; }
    
    /* General Spacing */
    .py-xl { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
    .pt-xl { padding-top: var(--space-lg); }
    .pb-xl { padding-bottom: var(--space-lg); }
    
    /* Footer Grid */
    .footer-content { gap: var(--space-md); text-align: center; }
    .footer-col ul li { justify-content: center; }
    .social-links { justify-content: center; }
    
    /* Calculadora Nutricional */
    .page-calculadora { margin-top: 100px; padding-top: 2rem; }
    .calc-master-card { padding: 1rem; margin-top: 0; border-radius: 20px; }
    .calc-section .row { display: flex; flex-direction: column; gap: 1.5rem; }
    .column-8, .column-4 { width: 100% !important; flex: 1 1 100% !important; }
    .calc-card, .calc-result-card { padding: 1.5rem 1rem; border-radius: 15px; }
    .calc-step .grid-2, .calc-step .grid-3 { grid-template-columns: 1fr; gap: 0.8rem; }
    .hero-fun h1.text-xxl { font-size: 2.2rem; }
}

/* ==========================================================================
   Blog Typography (.prose)
   ========================================================================== */
.prose { font-family: var(--font-body); color: var(--clr-dark); line-height: 1.8; font-size: 1.1rem; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-heading); color: var(--clr-primary); margin-top: 2rem; margin-bottom: 1rem; line-height: 1.3; font-weight: 700; }
.prose h2 { font-size: 2.2rem; }
.prose h3 { font-size: 1.7rem; }
.prose h4 { font-size: 1.3rem; }
.prose p { margin-bottom: 1.5rem; color: #444; }
.prose ul, .prose ol { margin-bottom: 1.5rem; padding-left: 2rem; color: #444; }
.prose li { margin-bottom: 0.5rem; }
.prose li strong { color: var(--clr-dark); font-weight: 800; }
.prose blockquote { border-left: 5px solid var(--clr-accent); padding: 1rem 1.5rem; margin: 2rem 0; background: rgba(142, 68, 173, 0.05); border-radius: 0 15px 15px 0; font-style: italic; color: var(--clr-dark); border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
.prose blockquote p { margin-bottom: 0; }
.prose strong { color: var(--clr-dark); font-weight: 800; }
.prose img { max-width: 100%; height: auto; border-radius: 15px; margin: 2.5rem 0; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.prose a { color: var(--clr-primary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color 0.2s ease; font-weight: 600; }
.prose a:hover { color: var(--clr-accent); }
