/* ==========================================================================
   INCANTO GELATO - Estilos Base y Variables
   ========================================================================== */
:root {
    /* Paleta de Colores */
    --cream: #FDFBF7;
    --vanilla: #F3E5AB;
    --pistachio: #93C572;
    --chocolate: #4E342E;
    --strawberry: #E57373;
    --coffee: #6F4E37;
    --dark: #2C1E16;
    --text-main: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --accent: #D4AF37;
    
    /* Tipografía */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Espaciados */
    --section-padding: 5rem 1.5rem;
    --border-radius: 12px;
    
    /* Transiciones */
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Utilidades y Tipografía
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.bg-cream { background-color: var(--cream); }
.bg-dark { background-color: var(--dark); }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-tag {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn-primary, .btn-secondary, .btn-whatsapp-style {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

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

.btn-whatsapp-style {
    background-color: #25D366;
    color: white;
    gap: 0.5rem;
}

.btn-whatsapp-style:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.center-btn {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.navbar.scrolled .logo-text { color: var(--dark); }

.logo-subtext {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--white);
}

.navbar.scrolled .logo-subtext { color: var(--accent); }

.nav-links {
    display: none;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.navbar.scrolled .nav-links a { color: var(--dark); }

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.nav-links a.btn-primary {
    color: var(--white);
    padding: 0.8rem 1.5rem;
}

.hamburger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--white);
}

.navbar.scrolled .bar { background-color: var(--dark); }

.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu Active */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    justify-content: center;
    align-items: center;
}

.nav-links.active a {
    color: var(--dark);
    font-size: 1.5rem;
}

.hamburger.active .bar { background-color: var(--dark); }

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transform: scale(1.05);
    transition: transform 6s ease;
}

.slide.active .slide-bg {
    transform: scale(1);
}

/* Overlay gradient */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: -1;
}

.slide-content {
    color: var(--white);
    padding: 0 2rem;
    max-width: 800px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.5s;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 10;
}

.slider-controls button {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.7;
}

.slider-controls button:hover {
    opacity: 1;
    transform: scale(1.2);
}

.indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--white);
    transform: scale(1.3);
}

/* Formas flotantes */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--pistachio);
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--strawberry);
    bottom: -50px;
    left: -50px;
    animation: float 5s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(30px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* ==========================================================================
   Frase Impacto
   ========================================================================== */
.impact-phrase {
    padding: var(--section-padding);
    text-align: center;
    background-color: var(--white);
}

.impact-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.impact-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* ==========================================================================
   Producto Estrella
   ========================================================================== */
.star-product {
    padding: var(--section-padding);
    background-color: var(--cream);
    overflow: hidden;
}

.star-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.star-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.star-image {
    width: 100%;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.organic-blob {
    position: absolute;
    top: -5%;
    right: -10%;
    width: 110%;
    height: 110%;
    background-color: var(--pistachio);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1;
    opacity: 0.2;
    animation: blobMorph 4s infinite alternate;
}

@keyframes blobMorph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

.star-content {
    max-width: 500px;
}

.star-features {
    list-style: none;
    margin: 2rem 0;
}

.star-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.star-features .icon {
    color: var(--accent);
    font-weight: bold;
}

/* ==========================================================================
   Sabores Destacados (Slider)
   ========================================================================== */
.featured-flavors {
    padding: var(--section-padding);
}

.flavors-slider-container {
    position: relative;
    margin-top: 2rem;
}

.flavors-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 1.5rem 1rem; /* More padding to allow box-shadow */
}

.flavors-track::-webkit-scrollbar {
    display: none;
}

.flavor-card {
    min-width: 80%; /* Takes up 80% on mobile so the next item peeks */
    max-width: 320px;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    scroll-snap-align: center; /* Snap to center for better mobile UX */
    transition: var(--transition);
}

@media (hover: hover) {
    .flavor-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }
    .flavor-card:hover .flavor-img-wrap img {
        transform: scale(1.1);
    }
}

.flavor-img-wrap {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.flavor-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.flavor-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    z-index: 2;
}

.tag-special { background-color: var(--accent); }
.tag-creamy { background-color: var(--chocolate); }
.tag-fruity { background-color: var(--strawberry); }

.flavor-info {
    padding: 1.5rem;
    text-align: center;
}

.flavor-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.flavor-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.slider-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
    display: none; /* Hidden on mobile by default */
}

.prev-btn { left: -15px; }
.next-btn { right: -15px; }

/* ==========================================================================
   Elige tu antojo (Filtros)
   ========================================================================== */
.craving-section {
    padding: var(--section-padding);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--dark);
    background: transparent;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--dark);
    color: var(--white);
}

.filtered-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* ==========================================================================
   Experiencia
   ========================================================================== */
.experience {
    padding: var(--section-padding);
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.exp-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: var(--cream);
    transition: var(--transition);
}

.exp-card:hover {
    transform: translateY(-5px);
    background: var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.exp-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Artesanal
   ========================================================================== */
.artisanal {
    padding: var(--section-padding);
}

.artisanal-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.artisanal-list {
    list-style: none;
    margin-top: 2rem;
}

.artisanal-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.artisanal-images {
    position: relative;
    width: 100%;
    height: 400px;
}

.art-img-1, .art-img-2 {
    position: absolute;
    border-radius: var(--border-radius);
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.art-img-1 {
    width: 70%;
    height: 80%;
    top: 0;
    left: 0;
    z-index: 1;
}

.art-img-2 {
    width: 60%;
    height: 70%;
    bottom: 0;
    right: 0;
    z-index: 2;
    border: 5px solid var(--dark);
}

/* ==========================================================================
   Combinaciones
   ========================================================================== */
.combinations {
    padding: var(--section-padding);
}

.combo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.combo-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.combo-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.combo-content {
    padding: 1.5rem;
    text-align: center;
}

/* ==========================================================================
   Galería Masonry y Lightbox
   ========================================================================== */
.gallery {
    padding: var(--section-padding);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 10px;
    margin-top: 2rem;
}

.masonry-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.masonry-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Patrón de masonry para móvil */
.masonry-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.masonry-item:nth-child(4) { grid-row: span 2; }

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-nav:hover { background: rgba(255,255,255,0.4); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ==========================================================================
   Strong CTA y Special Orders
   ========================================================================== */
.strong-cta {
    padding: 6rem 1.5rem;
    text-align: center;
    background-image: url('../images/hero1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--white);
}

.cta-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(44, 30, 22, 0.7);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.special-orders {
    padding: var(--section-padding);
}

.orders-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.orders-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ==========================================================================
   Testimonios
   ========================================================================== */
.testimonials {
    padding: var(--section-padding);
    background: var(--white);
}

.testimonial-slider-container {
    overflow: hidden;
    margin-top: 3rem;
    padding: 1rem 0;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 2rem;
    text-align: center;
    background: var(--cream);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stars {
    margin-bottom: 1rem;
}

.comment {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.name {
    font-weight: 600;
    color: var(--accent);
}

/* ==========================================================================
   Contacto, Footer y Otros
   ========================================================================== */
.location-contact {
    padding: var(--section-padding);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.map-mockup {
    width: 100%;
    height: 200px;
    background: #444;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
}

.contact-form-wrapper {
    background: var(--white);
    color: var(--dark);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-body);
}

.btn-full { width: 100%; }

/* Social Grid */
.social-grid-section { padding: var(--section-padding); }

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-top: 2rem;
}

.ig-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.ig-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.ig-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.ig-overlay span {
    font-size: 2rem;
    color: white;
}

.ig-item:hover img { transform: scale(1.1); }
.ig-item:hover .ig-overlay { opacity: 1; }

/* CTA Final */
.final-cta {
    position: relative;
    padding: 8rem 1.5rem;
    text-align: center;
    color: var(--white);
}

.final-cta-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../images/hero2.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.final-cta::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: -1;
}

.final-title { font-size: 3rem; }

/* Footer */
.footer {
    background: var(--white);
    padding: 4rem 1.5rem 1rem;
    border-top: 1px solid #eee;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo .logo-text { color: var(--dark); }
.footer-logo .logo-subtext { color: var(--text-light); }

.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: bold;
}

.footer h4 { margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul a {
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
}
.footer ul a:hover { color: var(--accent); }
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

/* ==========================================================================
   Animaciones (Intersection Observer)
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-left {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible, .fade-right.visible, .fade-left.visible {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   Media Queries (Tablet & Desktop)
   ========================================================================== */
@media (min-width: 768px) {
    .section-title { font-size: 3rem; }
    
    .hamburger { display: none; }
    
    .nav-links {
        display: flex;
    }
    
    .slide-title { font-size: 4.5rem; }
    
    .star-container, .artisanal-container, .orders-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .star-image-wrapper, .star-content, .artisanal-content, .artisanal-images, .orders-text, .orders-image {
        width: 48%;
    }
    
    .slider-btn { display: block; }
    
    .experience-grid, .combo-grid { grid-template-columns: repeat(2, 1fr); }
    
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 200px;
    }
    .masonry-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .masonry-item:nth-child(4) { grid-row: span 2; }
    .masonry-item:nth-child(6) { grid-column: span 2; }
    
    .contact-wrapper { grid-template-columns: 1fr 1fr; }
    
    .instagram-grid { grid-template-columns: repeat(3, 1fr); }
    
    .footer-container { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 1024px) {
    .slide-title { font-size: 5.5rem; }
    
    .experience-grid { grid-template-columns: repeat(4, 1fr); }
    .combo-grid { grid-template-columns: repeat(3, 1fr); }
    
    .instagram-grid { grid-template-columns: repeat(6, 1fr); gap: 0; }
}
