:root {
        --cream: #f5f0e6;
        --cream2: #ede8da;
        --lavender: #c8b4e0;
        --lav-soft: #e8dff5;
        --lav-pale: #f3eefb;
        --sage: #7a9468;
        --sage-dark: #5a7050;
        --brown: #5c4a2a;
        --muted: #8a7d6a;
        --border: #d8cfc0;
        --dark: #2e2416;
    }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Nunito', sans-serif; background: var(--cream); color: var(--dark); }
.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}
.logo-img2 {
    height: 200px;
    width: auto;
    object-fit: contain;
}
        /* NAV */
        nav {
            background: var(--cream);
            border-bottom: 1.5px solid var(--border);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .logo-nav {
            font-family: 'Caveat', cursive;
            font-size: 1.8rem;
            color: var(--sage-dark);
            text-decoration: none;
        }
        .nav-links { display: flex; gap: 1.8rem; align-items: center; }
        .nav-links a { font-size: 0.85rem; color: var(--muted); text-decoration: none; font-weight: 500; transition: color 0.2s; }
        .nav-links a:hover { color: var(--sage); }
        .nav-links .btn-contacto {
            background: var(--lav-soft);
            color: #8040a0;
            border: 1.5px solid var(--lavender);
            padding: 0.4rem 1.1rem;
            border-radius: 30px;
            font-weight: 700;
            transition: all 0.2s;
        }
        .nav-links .btn-contacto:hover { background: var(--lavender); color: white; }

        /* HERO */
        .hero {
            text-align: center;
            padding: 4rem 2rem 3rem;
            background: linear-gradient(180deg, var(--cream) 0%, var(--lav-pale) 100%);
            position: relative;
            overflow: hidden;
        }
        .hero::before, .hero::after {
            content: '🌿';
            position: absolute;
            font-size: 4rem;
            opacity: 0.15;
        }
        .hero::before { top: 20px; left: 5%; transform: rotate(-20deg); }
        .hero::after  { top: 20px; right: 5%; transform: rotate(20deg) scaleX(-1); }
        .hero-tag {
            display: inline-block;
            background: var(--lav-soft);
            color: #8040a0;
            border: 1.5px solid var(--lavender);
            border-radius: 30px;
            font-size: 0.75rem;
            padding: 0.3rem 1rem;
            letter-spacing: 0.06em;
            margin-bottom: 1.2rem;
            font-weight: 700;
        }
        .hero h1 { font-family: 'Caveat', cursive; font-size: clamp(2.8rem, 7vw, 4.5rem); color: var(--sage-dark); line-height: 1.1; margin-bottom: 0.5rem; }
        .hero-sub { font-size: 1rem; color: var(--muted); margin-bottom: 1rem; font-weight: 300; }
        .hero-desc { font-size: 0.92rem; color: var(--muted); max-width: 440px; margin: 0 auto; line-height: 1.8; }
        .hero-badges { display: flex; justify-content: center; gap: 1.2rem; margin-top: 1.8rem; flex-wrap: wrap; }
        .hero-badge { font-size: 0.8rem; color: var(--sage); font-weight: 600; }

        /* PRODUCTS */
        .section-wrap { padding: 3rem 2rem 7rem; max-width: 1100px; margin: 0 auto; }
        .section-header { text-align: center; margin-bottom: 2.5rem; }
        .section-header h2 { font-family: 'Caveat', cursive; font-size: 2.2rem; color: var(--sage-dark); margin-bottom: 0.3rem; }
        .section-header p { font-size: 0.85rem; color: var(--muted); }
        .dot-divider { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: 0.8rem 0 2.5rem; color: var(--lavender); font-size: 0.8rem; letter-spacing: 0.3em; }

        .productos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }

        .producto-card {
            background: white;
            border: 1.5px solid var(--border);
            border-radius: 16px;
            overflow: hidden;
            cursor: pointer;
            position: relative;
            transition: transform 0.25s, box-shadow 0.25s, border-color 0.2s;
            user-select: none;
        }
        .producto-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(120,100,70,0.12); }
        .producto-card.seleccionado { border-color: var(--lavender); box-shadow: 0 0 0 3px var(--lav-soft); }

        .check-badge {
            position: absolute; top: 10px; right: 10px;
            width: 30px; height: 30px;
            background: var(--lavender);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            color: white; font-size: 0.9rem;
            opacity: 0; transform: scale(0.3) rotate(-30deg);
            transition: opacity 0.2s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
            z-index: 2;
        }
        .producto-card.seleccionado .check-badge { opacity: 1; transform: scale(1) rotate(0); }

        .producto-img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform 0.4s ease; }
        .producto-card:hover .producto-img { transform: scale(1.04); }

        .imagen-placeholder {
            width: 100%; height: 220px;
            background: linear-gradient(135deg, var(--lav-pale), var(--cream2));
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            gap: 0.5rem; color: var(--lavender); font-size: 2.5rem;
        }
        .imagen-placeholder span { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.1em; font-family: 'Nunito', sans-serif; }

        .producto-info { padding: 1.1rem 1.3rem 1.3rem; }
        .producto-info h3 { font-family: 'Caveat', cursive; font-size: 1.3rem; color: var(--brown); margin-bottom: 0.3rem; }
        .producto-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.9rem; font-weight: 300; }
        .producto-footer { display: flex; justify-content: space-between; align-items: center; }
        .precio { font-family: 'Caveat', cursive; font-size: 1.5rem; color: var(--sage); }
        .stock-pill { font-size: 0.7rem; padding: 0.22rem 0.7rem; border-radius: 30px; font-weight: 700; }
        .stock-ok { background: #edf7ed; color: #3a7a3a; border: 1px solid #b7ddb7; }
        .stock-no { background: #fdf2f0; color: #a04040; border: 1px solid #f5c6c6; }
        .agotado-overlay {
            position: absolute; inset: 0;
            background: rgba(245,240,230,0.75);
            display: flex; align-items: center; justify-content: center;
            font-family: 'Caveat', cursive; font-size: 1.3rem; color: var(--muted);
            cursor: default;
        }

        /* BARRA */
        .seleccion-bar {
            position: fixed; bottom: 0; left: 0; right: 0;
            background: var(--sage-dark);
            padding: 1rem 2rem;
            display: flex; justify-content: space-between; align-items: center;
            transform: translateY(100%);
            transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
            z-index: 200;
            box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
        }
        .seleccion-bar.visible { transform: translateY(0); }
        .bar-info { color: rgba(255,255,255,0.8); font-size: 0.85rem; }
        .bar-info strong { color: white; font-family: 'Caveat', cursive; font-size: 1.2rem; }
        .bar-nombres { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
        .btn-pedir {
            background: var(--lavender); color: white; border: none;
            padding: 0.7rem 2rem; border-radius: 30px;
            font-family: 'Nunito', sans-serif; font-size: 0.88rem; font-weight: 700;
            cursor: pointer; transition: background 0.2s, transform 0.15s; white-space: nowrap;
        }
        .btn-pedir:hover { background: #b09ad0; transform: scale(1.03); }

        /* MODAL BASE */
        .modal-overlay {
            position: fixed; inset: 0;
            background: rgba(46,36,22,0.5);
            z-index: 300;
            display: none; align-items: center; justify-content: center;
            padding: 1rem;
            backdrop-filter: blur(4px);
        }
        .modal-overlay.open { display: flex; }
        .modal {
            background: var(--cream); width: 100%; max-width: 540px;
            max-height: 92vh; overflow-y: auto;
            border-radius: 20px; padding: 2.2rem; position: relative;
            animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
            border: 1.5px solid var(--border);
        }
        @keyframes popIn {
            from { opacity: 0; transform: scale(0.92) translateY(20px); }
            to   { opacity: 1; transform: scale(1) translateY(0); }
        }
        .modal-close {
            position: absolute; top: 1rem; right: 1.2rem;
            background: var(--cream2); border: none; width: 30px; height: 30px;
            border-radius: 50%; font-size: 1.1rem; cursor: pointer; color: var(--muted);
            display: flex; align-items: center; justify-content: center; transition: background 0.2s;
        }
        .modal-close:hover { background: var(--border); }
        .modal-title { font-family: 'Caveat', cursive; font-size: 2rem; color: var(--sage-dark); margin-bottom: 0.2rem; }
        .modal-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.5rem; }

        /* RESUMEN */
        .resumen-box { background: var(--lav-pale); border: 1.5px solid var(--lavender); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
        .resumen-label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8040a0; font-weight: 700; margin-bottom: 0.7rem; display: block; }
        .resumen-item { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 0.35rem 0; border-bottom: 1px solid rgba(200,180,224,0.3); color: var(--brown); }
        .resumen-item:last-child { border-bottom: none; }
        .resumen-precio { font-family: 'Caveat', cursive; font-size: 1.1rem; color: var(--sage); }

        /* FORM */
        .form-group { margin-bottom: 1.1rem; }
        .form-group label { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; font-weight: 700; }
        .form-group input, .form-group textarea {
            width: 100%; padding: 0.7rem 0.9rem;
            border: 1.5px solid var(--border); background: white; border-radius: 10px;
            font-family: 'Nunito', sans-serif; font-size: 0.9rem; color: var(--dark);
            outline: none; transition: border-color 0.2s;
        }
        .form-group input:focus, .form-group textarea:focus { border-color: var(--lavender); }
        .form-group textarea { resize: vertical; min-height: 75px; }
        .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
        .btn-submit {
            width: 100%; padding: 0.9rem;
            background: var(--sage-dark); color: white; border: none; border-radius: 30px;
            font-family: 'Nunito', sans-serif; font-size: 0.9rem; font-weight: 700;
            cursor: pointer; transition: background 0.2s, transform 0.15s; margin-top: 0.5rem;
        }
        .btn-submit:hover { background: var(--lavender); transform: scale(1.01); }

        /* MODAL CONTACTO */
        .contacto-modal { text-align: center; padding: 0.5rem 0; }
        .contacto-links { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
        .contacto-btn {
            display: flex; align-items: center; gap: 1rem;
            padding: 1rem 1.5rem; border-radius: 14px; text-decoration: none;
            font-weight: 700; font-size: 0.95rem; transition: transform 0.2s, box-shadow 0.2s;
        }
        .contacto-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
        .contacto-btn-ig { background: linear-gradient(135deg, #f5e8ff, #ffe0f0); border: 1.5px solid #e0b4f0; color: #8040a0; }
        .contacto-btn-wa { background: linear-gradient(135deg, #e8f8ee, #d4f0dc); border: 1.5px solid #90d4a8; color: #2a7a4a; }
        .contacto-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
        .contacto-icon-ig { background: #e8d0f8; }
        .contacto-icon-wa { background: #c8ecd8; }
        .contacto-btn-text { text-align: left; }
        .contacto-btn-label { font-size: 0.72rem; opacity: 0.7; font-weight: 400; }
        .contacto-btn-value { font-size: 1rem; font-weight: 700; }
        .contacto-note { font-size: 0.8rem; color: var(--muted); margin-top: 1.5rem; line-height: 1.6; }

        /* FOOTER */
        footer { border-top: 1.5px solid var(--border); padding: 2.5rem 2rem; text-align: center; background: var(--cream2); }
        .footer-logo { font-family: 'Caveat', cursive; font-size: 1.8rem; color: var(--sage-dark); margin-bottom: 0.4rem; }
        footer p { font-size: 0.8rem; color: var(--muted); }
        .footer-social { display: flex; justify-content: center; gap: 1.5rem; margin-top: 0.8rem; }
        .footer-social a { font-size: 0.82rem; color: #8040a0; text-decoration: none; font-weight: 700; }

        /* ALERT */
        .alert-wrap { max-width: 700px; margin: 1rem auto; padding: 0 2rem; }
        .alert { padding: 0.9rem 1.2rem; border-radius: 10px; font-size: 0.88rem; }
        .alert-danger { background: #fdf2f0; border: 1.5px solid #f5c6c6; color: #a04040; }
        .alert-success { background: #edf7ed; border: 1.5px solid #b7ddb7; color: #2a6a2a; }

        @media (max-width: 600px) {
            .hero h1 { font-size: 2.8rem; }
            .form-row { grid-template-columns: 1fr; }
            .productos-grid { grid-template-columns: 1fr; }
            .seleccion-bar { flex-direction: column; gap: 0.8rem; text-align: center; }
            nav { padding: 0.8rem 1rem; }
            .section-wrap { padding: 2rem 1rem 7rem; }
        }/* ============================================
   RESPONSIVE - SOLO PARA TIENDA (index.html)
   ============================================ */

/* Móviles pequeños (hasta 576px) */
@media (max-width: 576px) {
    /* Navbar */
    nav {
        flex-direction: column;
        padding: 0.5rem 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
    
    /* Hero */
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-desc {
        font-size: 0.85rem;
    }
    
    /* Grid de productos */
    .productos-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .producto-img {
        height: 180px;
    }
    
    .precio {
        font-size: 1.2rem;
    }
    
    /* Barra de selección */
    .seleccion-bar {
        padding: 0.5rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .btn-pedir {
        width: 100%;
        padding: 0.6rem;
    }
    
    /* Formulario de pedido */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .resumen-box {
        max-height: 200px;
        overflow-y: auto;
    }
    
    /* Footer */
    footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-social {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Tablets (577px - 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   IMÁGENES RESPONSIVAS
   ============================================ */

img {
    max-width: 100%;
    height: auto;
}

.producto-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.prod-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
}

@media (max-width: 576px) {
    .producto-img {
        aspect-ratio: 16 / 9;
    }
    
    .prod-thumb {
        width: 35px;
        height: 35px;
    }
}
/* ============================================
   CONTENEDOR RESPONSIVO
   ============================================ */

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}
.categorias-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.cat-filter {
    border: 1px solid var(--border);
    background: white;
    color: var(--muted);
    border-radius: 20px;
    padding: 0.35rem 0.9rem;
    cursor: pointer;
    font-size: 0.8rem;
}

.cat-filter.active {
    background: var(--lav-soft);
    color: #8040a0;
    border-color: var(--lavender);
}

.producto-categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.7rem;
}

.cat-chip {
    font-size: 0.68rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.12rem 0.5rem;
    color: var(--muted);
    background: var(--cream2);
}

.producto-carrusel,
.detalle-carrusel {
    position: relative;
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.55);
    color: white;
    cursor: pointer;
    z-index: 2;
}

.carrusel-prev { left: 8px; }
.carrusel-next { right: 8px; }

.btn-mini {
    border: 1px solid var(--lavender);
    background: var(--lav-soft);
    color: #8040a0;
    border-radius: 18px;
    padding: 0.2rem 0.7rem;
    font-size: 0.76rem;
    cursor: pointer;
}

.detalle-prod {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detalle-info .producto-desc {
    margin-top: 0.7rem;
}

.similares-box {
    margin-top: 1rem;
}

.similares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.6rem;
}

.similar-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-align: left;
}

.similar-item span {
    font-size: 0.78rem;
    color: var(--dark);
}

@media (max-width: 768px) {
    .detalle-prod {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   AJUSTES PARA CELULAR (agregado oct 2026)
   Solo afecta pantallas chicas; escritorio queda igual.
   ============================================ */
@media (max-width: 600px) {
    /* Nav: logo a la izquierda y botones a la derecha, en una sola fila */
    nav {
        flex-direction: row;
        padding: 0.5rem 1rem;
    }
    .logo-img { height: 38px; }
    .nav-links {
        flex-wrap: nowrap;
        gap: 0.4rem;
        margin-top: 0;
    }
    .nav-links a { font-size: 0.85rem; padding: 0.4rem 0.8rem; }

    /* Hero más compacto */
    .hero { padding: 1.8rem 1rem 2rem; }
    .hero::before, .hero::after { font-size: 2.6rem; top: 12px; }
    .hero-tag { font-size: 0.7rem; margin-bottom: 0.8rem; }
    .logo-img2 { height: 150px; }
    .hero-badges { gap: 0.5rem 1rem; margin-top: 1.2rem; }

    /* Colección */
    .section-wrap { padding: 2rem 1rem 9rem; }
    .section-header { margin-bottom: 1.2rem; }
    .section-header h2 { font-size: 2rem; }
    .dot-divider { margin: 0.6rem 0 1.2rem; }
    .categorias-filtros { gap: 0.4rem; }
    .cat-filter { font-size: 0.85rem; padding: 0.45rem 0.9rem; }

    .productos-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 0;
    }
    /* La foto se ve más completa (antes se recortaba a 16:9) */
    .producto-img,
    .imagen-placeholder {
        height: auto;
        aspect-ratio: 4 / 3;
    }
    .producto-card:hover { transform: none; }
    .producto-info { padding: 0.9rem 1rem 1rem; }
    .carrusel-btn { width: 38px; height: 38px; font-size: 1rem; }
    .btn-mini { padding: 0.5rem 1rem; font-size: 0.85rem; }

    /* Barra del carrito: compacta y respetando el borde inferior del celular */
    .seleccion-bar {
        flex-direction: row;
        gap: 0.8rem;
        text-align: left;
        padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    }
    .seleccion-bar .btn-pedir {
        width: auto;
        padding: 0.7rem 1.1rem;
        white-space: nowrap;
    }

    /* Ventanas (producto, pedido, contacto) como hoja desde abajo */
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .modal {
        max-width: 100% !important;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        padding: 1.6rem 1.1rem calc(1.4rem + env(safe-area-inset-bottom));
    }
    .modal-close {
        top: 0.8rem;
        right: 0.8rem;
        width: 38px;
        height: 38px;
        z-index: 3;
    }
    .modal-title { font-size: 1.8rem; padding-right: 2.5rem; }

    .detalle-prod { grid-template-columns: 1fr; }
    .detalle-carrusel .producto-img { border-radius: 12px; aspect-ratio: 1 / 1; }
    .detalle-info .producto-footer { flex-wrap: wrap; gap: 0.7rem; }
    .detalle-info .btn-pedir { flex: 1 1 100%; padding: 0.8rem; }
    .similares-grid { grid-template-columns: 1fr 1fr; }

    /* Formulario: 16px evita que el iPhone haga zoom al escribir */
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-group input,
    .form-group textarea { font-size: 16px; }
    .resumen-box { max-height: none; }
    .resumen-item { gap: 0.8rem; }

    .contacto-btn { padding: 0.9rem 1.1rem; }

    footer { padding: 1.8rem 1rem calc(1.8rem + env(safe-area-inset-bottom)); }
}

/* Celulares muy angostos (iPhone SE, Android chicos) */
@media (max-width: 360px) {
    .nav-links a { padding: 0.35rem 0.6rem; font-size: 0.8rem; }
    .logo-img { height: 32px; }
    .seleccion-bar { flex-direction: column; text-align: center; }
    .seleccion-bar .btn-pedir { width: 100%; }
    .similares-grid { grid-template-columns: 1fr; }
}

/* ============================================
   VISOR DE IMAGENES EN PANTALLA COMPLETA
   ============================================ */
.zoomable { cursor: zoom-in; }

.visor {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(20, 16, 10, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 0.5rem;
}
.visor.open { display: flex; }

.visor-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    user-select: none;
    -webkit-user-drag: none;
}

.visor-cerrar,
.visor-flecha {
    position: absolute;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.visor-cerrar:hover,
.visor-flecha:hover { background: rgba(255, 255, 255, 0.3); }

.visor-cerrar {
    top: calc(0.8rem + env(safe-area-inset-top));
    right: 0.8rem;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
    line-height: 1;
}

.visor-flecha {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 2rem;
    line-height: 1;
}
.visor-prev { left: 0.8rem; }
.visor-next { right: 0.8rem; }
.visor.una-sola .visor-flecha { display: none; }

.visor-contador {
    position: absolute;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .visor { padding: 3.5rem 0; }
    .visor-img { border-radius: 0; }
    .visor-flecha { width: 40px; height: 40px; font-size: 1.6rem; background: rgba(0, 0, 0, 0.35); }
    .visor-prev { left: 0.4rem; }
    .visor-next { right: 0.4rem; }
}

/* ============================================
   MASCOTA DEL PIE DE PAGINA
   ============================================ */
footer { position: relative; }

.footer-mascota {
    position: absolute;
    right: 2.5rem;
    bottom: 1rem;
    width: 60px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s;
}
.footer-mascota img { display: block; width: 100%; height: auto; }
.footer-mascota:hover { transform: rotate(-6deg) scale(1.05); }
.footer-mascota.salto { animation: mascotaSalto 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes mascotaSalto {
    0%   { transform: translateY(0) scale(1); }
    30%  { transform: translateY(-18px) scale(1.08, 0.94); }
    60%  { transform: translateY(0) scale(0.94, 1.06); }
    100% { transform: translateY(0) scale(1); }
}

/* Que la barra del carrito no tape el pie */
body:has(.seleccion-bar.visible) footer { padding-bottom: 7rem; }
body:has(.seleccion-bar.visible) .footer-mascota { bottom: 5.5rem; }

@media (max-width: 600px) {
    .footer-mascota {
        position: static;
        display: block;
        width: 50px;
        margin: 1rem auto 0;
    }
}

/* Links extra (Facebook y canal de difusion) */
.footer-social { flex-wrap: wrap; row-gap: 0.5rem; }
.contacto-btn-fb { background: linear-gradient(135deg, #e8f0ff, #dbe6fb); border: 1.5px solid #a9c0ee; color: #2d5bb5; }
