/* =========================
   Estilos premium Tienda
   ========================= */

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Utilidades animación */
.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

.card-info {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

    .card-info:nth-child(1) {
        animation-delay: 0.2s;
    }

    .card-info:nth-child(2) {
        animation-delay: 0.4s;
    }

    .card-info:nth-child(3) {
        animation-delay: 0.6s;
    }

/* Bloque Atención al cliente */
.atencion-cliente-section {
    position: relative;
    padding: 4rem 1.5rem;
    background: linear-gradient(to bottom, var(--color-bg-light), var(--color-bg-light-2));
}

html.dark .atencion-cliente-section {
    background: linear-gradient(to bottom, var(--color-bg-dark), var(--color-bg-dark-2));
}

/* Fondo decorativo */
.atencion-cliente-section::before,
.atencion-cliente-section::after {
    content: "";
    position: absolute;
    border-radius: 9999px;
    filter: blur(64px);
    opacity: 0.15;
    animation: pulse 6s infinite alternate;
}

.atencion-cliente-section::before {
    top: -5rem;
    right: -5rem;
    width: 18rem;
    height: 18rem;
    background: var(--color-accent);
}

.atencion-cliente-section::after {
    bottom: -5rem;
    left: -5rem;
    width: 18rem;
    height: 18rem;
    background: var(--color-accent-2);
}

/* Tarjetas */
.card-info {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

html.dark .card-info {
    background-color: rgba(31, 41, 55, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-info:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: var(--color-accent);
}

/* Iconos */
.card-info .icon-wrapper {
    font-size: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.card-info:hover .icon-wrapper {
    animation: iconBounce 0.6s ease;
}

/* Barra inferior animada */
.card-info .bar {
    height: 4px;
    width: 0;
    border-radius: 9999px;
    background: linear-gradient(to right, var(--color-accent), var(--color-accent-2));
    transition: width 0.4s ease;
}

.card-info:hover .bar {
    width: 100%;
}

/* Variables de color */
:root {
    --color-bg-light: #ffffff;
    --color-bg-light-2: #f9fafb;
    --color-bg-dark: #111827;
    --color-bg-dark-2: #1f2937;
    --color-accent: #f97316; /* naranja */
    --color-accent-2: #fbbf24; /* ámbar */
}

/* Gradiente animado para iconos */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.card-info .icon-wrapper {
    font-size: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(270deg, var(--color-accent), var(--color-accent-2), var(--color-accent));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
    transition: transform 0.3s ease;
}

.card-info:hover .icon-wrapper {
    animation: gradientShift 2s ease infinite, iconBounce 0.6s ease;
}


/* =========================
   Footer premium
   ========================= */
.footer-premium {
    position: relative;
    border-top: 1px solid rgba(0,0,0,0.04);
    background: var(--color-bg-light);
    /* Asegura que el footer se extienda al fondo completo */
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

html.dark .footer-premium {
    border-top-color: rgba(255,255,255,0.06);
    background: var(--color-bg-dark);
}

/* Contenedor y grid */
.footer-premium .container {
    position: relative;
    z-index: 1;
    max-width: 80rem;
    margin-inline: auto;
    padding: 3.5rem 1.5rem;
}

.footer-premium .grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .footer-premium .grid {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
    }
}

/* Columna marca + newsletter */
.brand-newsletter .brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .5rem;
}

.brand-newsletter .logo-mark {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .75rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    color: #111;
    font-weight: 800;
}

.brand-newsletter .brand-text {
    font-weight: 800;
    font-size: 1.25rem;
    color: #1f2937;
}

html.dark .brand-newsletter .brand-text {
    color: #fff;
}

.muted {
    color: #6b7280;
    margin-bottom: 1rem;
}

html.dark .muted {
    color: #9ca3af;
}

/* Newsletter */
.newsletter .nl-row {
    display: flex;
    gap: .6rem;
    align-items: center;
}

.nl-input {
    flex: 1;
    height: 2.75rem;
    padding: 0 .9rem;
    border-radius: .75rem;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.8);
    color: #111827;
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}

    .nl-input::placeholder {
        color: #9ca3af;
    }

    .nl-input:focus {
        border-color: var(--brand, var(--color-accent));
        box-shadow: 0 0 0 3px rgba(var(--brand-rgb, 249, 115, 22), 0.15);
    }

html.dark .nl-input {
    border-color: rgba(255,255,255,0.12);
    background: rgba(31,41,55,0.6);
    color: #e5e7eb;
}

.nl-btn {
    height: 2.75rem;
    padding: 0 1rem;
    border-radius: .75rem;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

    .nl-btn:hover {
        transform: translateY(-1px);
        filter: brightness(1.05);
    }

    .nl-btn:active {
        transform: translateY(0);
    }

.nl-hint {
    font-size: .85rem;
    color: #6b7280;
    margin-top: .4rem;
}

html.dark .nl-hint {
    color: #9ca3af;
}

/* Social pills */
.social {
    display: flex;
    gap: .6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .8rem;
    border-radius: 9999px;
    background: rgba(0,0,0,0.04);
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
}

    .pill:hover {
        background: rgba(var(--brand-rgb, 249, 115, 22), 0.12);
        color: var(--brand, var(--color-accent));
        box-shadow: 0 6px 16px rgba(var(--brand-rgb, 249, 115, 22), 0.18);
        transform: translateY(-1px);
    }

html.dark .pill {
    background: rgba(255,255,255,0.06);
    color: #e5e7eb;
}

    html.dark .pill:hover {
        background: rgba(251,191,36,0.14);
        color: var(--color-accent-2);
        box-shadow: 0 6px 16px rgba(251,191,36,0.18);
    }

/* Títulos y listas */
.title {
    font-weight: 800;
    color: #1f2937;
    margin-bottom: .8rem;
    font-size: 1.05rem;
}

html.dark .title {
    color: #fff;
}

.list {
    display: grid;
    gap: .45rem;
    color: #6b7280;
}

html.dark .list {
    color: #9ca3af;
}

.list .emoji {
    margin-right: .25rem;
}

.link-ux {
    position: relative;
    cursor: default;
    transition: transform .2s ease, color .2s ease;
}

    .link-ux:hover {
        transform: translateX(4px);
        color: var(--color-accent);
    }

html.dark .link-ux:hover {
    color: var(--color-accent-2);
}

.hover-underline {
    position: relative;
    text-decoration: none;
    color: inherit;
}

    .hover-underline::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0;
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
        transition: width .25s ease;
    }

    .hover-underline:hover::after {
        width: 100%;
    }

/* Pagos y confianza */
.pay-trust {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

html.dark .pay-trust {
    border-top-color: rgba(255,255,255,0.08);
}

.pay-row, .trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .5rem;
    margin-top: .6rem;
}

.pay-badge, .trust-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .35rem .7rem;
    border-radius: .6rem;
    background: rgba(0,0,0,0.04);
    color: #374151;
    font-weight: 700;
    font-size: .85rem;
}

html.dark .pay-badge, html.dark .trust-badge {
    background: rgba(255,255,255,0.06);
    color: #e5e7eb;
}

/* Legal */
.legal {
    margin-top: 2rem;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    justify-content: space-between;
    align-items: flex-start;
    color: #6b7280;
    font-size: .9rem;
    border-top: 1px dashed rgba(0,0,0,0.08);
}

html.dark .legal {
    color: #9ca3af;
    border-top-color: rgba(255,255,255,0.12);
}

@media (min-width: 640px) {
    .legal {
        flex-direction: row;
        align-items: center;
    }
}

.links-legal {
    display: flex;
    gap: 1rem;
}

/* Accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}


/* ===== Listas premium con iconos animados y colores por sección ===== */
.list {
    display: grid;
    gap: 0.65rem;
}

    .list li {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 0.75rem;
        border-radius: 0.65rem;
        background: transparent;
        transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    }

        .list li:hover {
            transform: translateX(4px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        }

html.dark .list li:hover {
    box-shadow: 0 4px 12px rgba(255,255,255,0.06);
}

/* Texto del ítem */
.list li span:not(.emoji) {
    font-weight: 500;
    color: #374151;
}

html.dark .list li span:not(.emoji) {
    color: #e5e7eb;
}

/* ===== Iconos base ===== */
.list .emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    font-size: 1.15rem;
    color: #fff;
    flex-shrink: 0;
    animation: iconPulse 3s ease-in-out infinite;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ===== Colores por sección ===== */
.col-contacto .emoji {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2)); /* naranja-ámbar */
}

.col-envios .emoji {
    background: linear-gradient(135deg, #10b981, #34d399); /* verde esmeralda */
}

.col-politicas .emoji {
    background: linear-gradient(135deg, #3b82f6, #60a5fa); /* azul */
}

/* Hover con fondo suave según sección */
.col-contacto li:hover {
    background: rgba(var(--brand-rgb, 249, 115, 22), 0.08);
}

html.dark .col-contacto li:hover {
    background: rgba(251, 191, 36, 0.12);
}

.col-envios li:hover {
    background: rgba(16, 185, 129, 0.08);
}

html.dark .col-envios li:hover {
    background: rgba(52, 211, 153, 0.12);
}

.col-politicas li:hover {
    background: rgba(59, 130, 246, 0.08);
}

html.dark .col-politicas li:hover {
    background: rgba(96, 165, 250, 0.12);
}

/* Animación pulse suave */
@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0,0,0,0.25);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 6px rgba(0,0,0,0);
    }
}

/* ===== Animación fade-in secuencial para listas ===== */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estado inicial: oculto y desplazado */
.footer-premium .list li {
    opacity: 0;
    transform: translateY(12px);
}

/* Clase que activa la animación */
.footer-premium.animate-in .list li {
    animation: fadeInUp 0.6s ease forwards;
}

    /* Retrasos secuenciales */
    .footer-premium.animate-in .list li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .footer-premium.animate-in .list li:nth-child(2) {
        animation-delay: 0.25s;
    }

    .footer-premium.animate-in .list li:nth-child(3) {
        animation-delay: 0.4s;
    }

    .footer-premium.animate-in .list li:nth-child(4) {
        animation-delay: 0.55s;
    }


/* Fade-in secuencial para listas, pagos, sellos y redes */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-premium .list li,
.footer-premium .pay-badge,
.footer-premium .trust-badge,
.footer-premium .social .pill {
    opacity: 0;
    transform: translateY(12px);
}

.footer-premium.animate-in .list li,
.footer-premium.animate-in .pay-badge,
.footer-premium.animate-in .trust-badge,
.footer-premium.animate-in .social .pill {
    animation: fadeInUp 0.6s ease forwards;
}

    /* Retrasos secuenciales */
    .footer-premium.animate-in .list li:nth-child(1),
    .footer-premium.animate-in .social .pill:nth-child(1),
    .footer-premium.animate-in .pay-badge:nth-child(1),
    .footer-premium.animate-in .trust-badge:nth-child(1) {
        animation-delay: 0.1s;
    }

    .footer-premium.animate-in .list li:nth-child(2),
    .footer-premium.animate-in .social .pill:nth-child(2),
    .footer-premium.animate-in .pay-badge:nth-child(2),
    .footer-premium.animate-in .trust-badge:nth-child(2) {
        animation-delay: 0.25s;
    }

    .footer-premium.animate-in .list li:nth-child(3),
    .footer-premium.animate-in .social .pill:nth-child(3),
    .footer-premium.animate-in .pay-badge:nth-child(3),
    .footer-premium.animate-in .trust-badge:nth-child(3) {
        animation-delay: 0.4s;
    }

    .footer-premium.animate-in .list li:nth-child(4),
    .footer-premium.animate-in .social .pill:nth-child(4),
    .footer-premium.animate-in .pay-badge:nth-child(4),
    .footer-premium.animate-in .trust-badge:nth-child(4) {
        animation-delay: 0.55s;
    }

    .footer-premium.animate-in .pay-badge:nth-child(5),
    .footer-premium.animate-in .trust-badge:nth-child(5) {
        animation-delay: 0.7s;
    }


.icon-social {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.icon-pay {
    width: 28px;
    height: auto;
    object-fit: contain;
    margin-right: 0.4rem;
}


/* Área de hover en todo el badge */
.pay-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 0.6rem;
    background: rgba(0,0,0,0.04);
    color: #374151;
    font-weight: 700;
    font-size: 0.85rem;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

html.dark .pay-badge {
    background: rgba(255,255,255,0.06);
    color: #e5e7eb;
}

.icon-pay {
    width: 28px;
    height: auto;
    object-fit: contain;
    margin-right: 0.4rem;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.pay-badge:hover {
    transform: translateY(-2px);
}

/* Hovers por marca (se aplican aunque el mouse esté sobre el texto) */
.pay-badge.pay-visa:hover {
    background: rgba(26, 31, 113, 0.08);
    box-shadow: 0 0 0 3px rgba(26, 31, 113, 0.08) inset;
}

    .pay-badge.pay-visa:hover img {
        filter: drop-shadow(0 0 4px #1a1f71);
    }

.pay-badge.pay-mastercard:hover {
    background: rgba(235, 0, 27, 0.08);
    box-shadow: 0 0 0 3px rgba(235, 0, 27, 0.08) inset;
}

    .pay-badge.pay-mastercard:hover img {
        filter: drop-shadow(0 0 4px #eb001b);
    }

.pay-badge.pay-uala:hover {
    background: rgba(102, 45, 145, 0.10); /* violeta Ualá aprox */
    box-shadow: 0 0 0 3px rgba(102, 45, 145, 0.10) inset;
}

    .pay-badge.pay-uala:hover img {
        filter: drop-shadow(0 0 4px #662d91);
    }

.pay-badge.pay-mercadopago:hover {
    background: rgba(0, 158, 227, 0.10);
    box-shadow: 0 0 0 3px rgba(0, 158, 227, 0.10) inset;
}

    .pay-badge.pay-mercadopago:hover img {
        filter: drop-shadow(0 0 4px #009ee3);
    }

.pay-badge.pay-transferencia:hover {
    background: rgba(107, 114, 128, 0.12); /* gris neutro */
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.12) inset;
}

    .pay-badge.pay-transferencia:hover img {
        filter: drop-shadow(0 0 4px #6b7280);
    }


/* Boton UP */
/* Animación bounce-in */
@keyframes bounce-in {
    0% {
        transform: translateY(20px) scale(0.9);
        opacity: 0;
    }

    60% {
        transform: translateY(-5px) scale(1.05);
        opacity: 1;
    }

    80% {
        transform: translateY(3px) scale(0.98);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* =========================
   Botón Volver Arriba (Final)
   ========================= */
/* =========================================
   ESTÁNDAR DE BOTONES FLOTANTES (WA & UP)
   ========================================= */

/* Aplicar a ambos para consistencia total */
.back-to-top,
.whatsapp-float-btn {
    width: 52px !important; /* Tamaño idéntico */
    height: 52px !important; /* Tamaño idéntico */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Específicos para Volver Arriba */
.back-to-top {
    right: 1.5rem;
    bottom: 1.5rem;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
}

/* Específicos para WhatsApp */
.whatsapp-float-btn {
    right: 5.5rem; /* Ajustado para que no se encimen (1.5rem + 4rem de separación) */
    bottom: 1.5rem;
    background-color: #25D366;
    color: white;
}

    /* Tamaño de los iconos dentro de los botones */
    .back-to-top svg,
    .whatsapp-float-btn svg {
        width: 24px;
        height: 24px;
    }

    /* Hovers */
    .back-to-top:hover,
    .whatsapp-float-btn:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }
/* Asegúrate de borrar la versión que tiene el linear-gradient naranja */

/* Scroll Explorar Productos */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.filtros-animados {
    opacity: 0;
    transform: translateY(20px);
}

    .filtros-animados.visible {
        animation: fade-in-up 0.6s ease forwards;
    }

/* Si tenés header fijo, compensá el ancla */
#filtros-productos {
    scroll-margin-top: 80px;
}


/* Scroll infinito */

/* Estado inicial: invisible y desplazado */
.producto-nuevo {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    /* Estado final: visible y en posición */
    .producto-nuevo.visible {
        opacity: 1;
        transform: translateY(0);
    }


/* Whatsapp */
.whatsapp-float-btn {
    position: fixed;
    bottom: 20px; /* ajustá si querés más arriba o abajo */
    right: 80px; /* separado de la flecha */
    background-color: #25D366;
    color: white;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 998;
    animation: whatsapp-pop 0.6s ease-out;
}

    .whatsapp-float-btn:hover {
        transform: scale(1.08);
        box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    }

    /* Icono */
    .whatsapp-float-btn svg {
        width: 28px;
        height: 28px;
    }

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 110%;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Animación de entrada */
@keyframes whatsapp-pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    70% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

/* Ajustes móviles: subir botones flotantes 60px por encima de la bottom bar */
@media (max-width: 640px) {
    .whatsapp-float-btn,
    .back-to-top {
        bottom: 85px !important; /* Ajustado para que no tape la barra inferior */
    }
}

/* Toast */

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
}

@keyframes progressBar {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.animate-toast-in {
    animation: toastIn 0.4s ease-out;
}

.animate-toast-out {
    animation: toastOut 0.5s ease-in forwards;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, #f97316, #fb923c); /* degradado naranja */
    width: 100%;
    border-radius: 0 0 0.75rem 0.75rem;
}


.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(90deg,#f59e0b,#fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

    .section-title .emoji {
        font-size: 2.2rem;
        -webkit-text-fill-color: initial;
    }

/* Cards */
.card-info {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px) saturate(180%);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card-info:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    }

.dark .card-info {
    background: rgba(31,41,55,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Iconos */
.icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

    .icon-wrapper .emoji {
        -webkit-text-fill-color: initial;
        display: inline-block;
    }

/* Animaciones de íconos */
@keyframes pulse {
    0%,100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

.rotate {
    animation: rotate 6s linear infinite;
}

.bounce {
    animation: bounce 2s infinite;
}

/* Textos */
.card-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.dark .card-title {
    color: #f9fafb;
}

.card-text {
    font-size: 0.95rem;
    color: #6b7280;
}

.dark .card-text {
    color: #d1d5db;
}

/* Barra decorativa */
.bar {
    margin-top: 1rem;
    height: 4px;
    width: 40%;
    background: linear-gradient(90deg,#f59e0b,#fbbf24);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.card-info:hover .bar {
    width: 70%;
}

@keyframes swing {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(6deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(-6deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.swing {
    animation: swing 3s ease-in-out infinite;
}


/* =========================================
   FIX ALINEACIÓN MOBILE (WhatsApp & UP)
   ========================================= */

@media (max-width: 640px) {
    /* 👇 CAMBIA ESTE VALOR: De 85px a 45px para que bajen 👇 */
    .back-to-top,
    .whatsapp-float-btn,
    div[class*="fixed bottom-6 right-[5.5rem]"] {
        bottom: 30px !important; /* Estaban en 85px, ahora están más abajo */
    }

        /* --- El resto del código se mantiene igual para asegurar la simetría --- */

        /* Ajustamos el tamaño para que sean gemelos perfectos */
        .back-to-top,
        .whatsapp-float-btn,
        .back-to-top a,
        .whatsapp-float-btn a {
            width: 52px !important;
            height: 52px !important;
        }

    /* Ajuste de posición lateral para el botón UP (Derecha) */
    .back-to-top {
        right: 1.5rem !important; /* Mismo right que en Desktop (6 * 0.25rem = 1.5rem) */
    }

    /* Ajuste de posición lateral para el botón WhatsApp (Izquierda del UP) */
    .whatsapp-float-btn,
    div[class*="right-[5.5rem]"] {
        right: 5.5rem !important; /* Mismo right que en Desktop */
    }
}


/* =========================================
   SISTEMA DE ANIMACIONES POR SCROLL (Reveal)
   ========================================= */

/* --- Estado inicial: elementos ocultos --- */
.reveal-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

    .reveal-section[data-reveal="fade-right"] {
        opacity: 0;
        transform: translateX(-40px);
    }

    .reveal-section[data-reveal="fade-left"] {
        opacity: 0;
        transform: translateX(40px);
    }

    .reveal-section[data-reveal="fade-up"] {
        opacity: 0;
        transform: translateY(40px);
    }

    .reveal-section[data-reveal="scale"] {
        opacity: 0;
        transform: scale(0.92);
    }

    /* --- Estado revelado --- */
    .reveal-section.revealed {
        opacity: 1;
        transform: translateY(0) translateX(0) scale(1);
    }

/* --- Badges del Hero (stagger) --- */
.reveal-badge {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

    .reveal-badge.revealed {
        opacity: 1;
        transform: translateY(0);
    }

.promo-banner-tienda {
    position: relative;
    display: block;
    min-height: 150px;
    overflow: hidden;
    border-radius: 8px;
    isolation: isolate;
    color: #111827;
    background:
        radial-gradient(circle at 82% 32%, rgba(255,255,255,0.55), transparent 28%),
        linear-gradient(135deg, color-mix(in srgb, var(--promo-color) 94%, #ffffff), color-mix(in srgb, var(--promo-color) 70%, #111827));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    transition: transform .25s ease, box-shadow .25s ease;
}

.promo-banner-tienda:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.promo-banner-tienda::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(255,255,255,0.92), rgba(255,255,255,0.18));
}

.promo-banner-img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-banner-content {
    position: relative;
    z-index: 2;
    max-width: 68%;
    padding: 28px 32px;
}

.promo-banner-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(17, 24, 39, .62);
}

.promo-banner-content h3 {
    margin: 0 0 6px;
    font-size: clamp(1.25rem, 2vw, 1.85rem);
    line-height: .95;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0;
}

.promo-banner-content p {
    max-width: 28rem;
    margin: 0 0 16px;
    font-size: .82rem;
    line-height: 1.35;
    font-weight: 700;
    color: rgba(17, 24, 39, .76);
}

.promo-banner-btn {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 18px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.promo-banner-mark {
    position: absolute;
    right: 26px;
    bottom: 8px;
    z-index: 1;
    font-size: clamp(5rem, 12vw, 8.5rem);
    line-height: .8;
    font-weight: 950;
    color: rgba(17, 24, 39, .16);
    transform: rotate(-8deg);
    pointer-events: none;
}

html.dark .promo-banner-tienda {
    color: #111827;
}

@media (max-width: 640px) {
    .promo-banner-tienda {
        min-height: 178px;
    }

    .promo-banner-content {
        max-width: 82%;
        padding: 24px;
    }

    .promo-banner-mark {
        right: 12px;
        bottom: 12px;
        font-size: 4.8rem;
    }
}

/* --- Shimmer para textos con gradiente animado --- */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.shimmer-text {
    background: linear-gradient( 90deg, currentColor 0%, rgba(var(--brand-rgb, 249, 115, 22), 0.8) 25%, currentColor 50%, rgba(var(--brand-rgb, 249, 115, 22), 0.8) 75%, currentColor 100% );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s linear infinite;
}

/* --- Línea de separación animada --- */
@keyframes lineExpand {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.reveal-section.revealed .animated-line {
    animation: lineExpand 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    width: 0;
}

/* --- Glow hover en tarjetas de soporte --- */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(var(--brand-rgb, 249, 115, 22), 0);
    }

    50% {
        box-shadow: 0 0 30px -5px rgba(var(--brand-rgb, 249, 115, 22), 0.15);
    }
}

.support-card-glow:hover {
    animation: glowPulse 2s ease-in-out infinite;
}

/* --- Respeto a preferencias de movimiento reducido --- */
@media (prefers-reduced-motion: reduce) {
    .reveal-section,
    .reveal-badge {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .shimmer-text {
        animation: none !important;
        -webkit-text-fill-color: currentColor !important;
    }
}
