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

/* ========================
   ANIMACIONES DE ENTRADA
======================== */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-70px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.anim-slide-down {
    animation: slideDown 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-fade-up {
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Delays escalonados por elemento */
.breadcrumb-bar                              { animation-delay: 0.20s; }
#seccion-hasta-15k                           { animation-delay: 0.35s; }
#seccion-hasta-15k .garantia-card:nth-child(1) { animation-delay: 0.50s; }
#seccion-hasta-15k .garantia-card:nth-child(2) { animation-delay: 0.65s; }
#seccion-hasta-15k .garantia-card:nth-child(3) { animation-delay: 0.80s; }
.section-divider                             { animation-delay: 0.95s; }
#seccion-mayor-15k                           { animation-delay: 1.05s; }
#seccion-mayor-15k .garantia-card:nth-child(1) { animation-delay: 1.20s; }
#seccion-mayor-15k .garantia-card:nth-child(2) { animation-delay: 1.35s; }
#seccion-mayor-15k .garantia-card:nth-child(3) { animation-delay: 1.50s; }
.articulos-elegibles                         { animation-delay: 1.65s; }
.site-footer                                 { animation-delay: 1.80s; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f5;
    color: #222;
}

/* ========================
   HEADER
======================== */
.site-header {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-img {
    width: 100%;
    display: block;
    height: auto;
    border-radius: 0 0 12px 12px;
}

/* ========================
   BREADCRUMB
======================== */
.breadcrumb-bar {
    max-width: 960px;
    margin: 16px auto 0;
    padding: 0 24px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 10px 18px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    font-size: 0.88rem;
    gap: 8px;
}

.breadcrumb-item a {
    color: #E84E0F;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #b83a08;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #666;
    -webkit-user-select: none;
    user-select: none;
    font-size: 0.95rem;
}

.breadcrumb-item.active {
    color: #aaa;
    font-weight: 600;
}

/* ========================
   MAIN CONTENT
======================== */
.main-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* ========================
   SECCIÓN GARANTÍA
======================== */
.garantia-section {
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #E84E0F;
}

/* ========================
   INPUT DE PRECIO
======================== */
.price-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.price-input-group label {
    font-size: 1.24rem;
    font-weight: 700;
    color: #444;
    white-space: nowrap;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background-color: #e0eebf;
    border-radius: 20px;
    padding: 8px 16px;
    gap: 4px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: #84bd00;
}

.input-prefix {
    font-weight: 700;
    font-size: 1rem;
    color: #84bd00;
}

.price-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: 700;
    color: #84bd00;
    font-family: 'Inter', sans-serif;
    width: 110px;
}

.price-input::placeholder {
    color: #9ecf2f;
    font-weight: 400;
}

/* Quitar flechas del input number */
.price-input::-webkit-inner-spin-button,
.price-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.price-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ========================
   TARJETAS
======================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
}

/* ========================
   ESTADO BLOQUEADO
======================== */
.cards-grid.bloqueado {
    pointer-events: none;
}

.cards-grid.bloqueado .garantia-card {
    filter: grayscale(100%) opacity(0.55);
    transition: filter 0.3s ease;
}

.lock-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(180, 180, 180, 0.72);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    z-index: 10;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    animation: lockFadeIn 0.3s ease forwards;
}

.lock-icon {
    font-size: 3rem;
    line-height: 1;
}

.lock-msg {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    text-align: center;
    padding: 0 16px;
}

@keyframes lockFadeIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

.garantia-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background-color: #fff;
}

.garantia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

.card-header {
    padding: 10px 16px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
}

.card-header.green {
    background-color: #84bd00;
}

.card-body {
    padding: 20px 16px;
    text-align: center;
    background-color: #fafaf5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-label {
    font-size: 1.6rem;
    color: #1a1a1a;
    font-weight: 400;
}

.card-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    transition: all 0.3s ease;
    min-height: 38px;
    display: block;
}

.card-price.updated {
    animation: priceFlash 0.4s ease;
}

@keyframes priceFlash {
    0%   { transform: scale(1); color: #1a1a1a; }
    40%  { transform: scale(1.08); color: #84bd00; }
    100% { transform: scale(1); color: #1a1a1a; }
}

.card-footer {
    padding: 9px 16px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}

.card-footer.orange {
    background-color: #FE5000;
}

/* ========================
   SEPARADOR
======================== */
.section-divider {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 36px 0;
}

/* ========================
   ARTÍCULOS ELEGIBLES
======================== */
.articulos-elegibles {
    margin-top: 40px;
    font-size: 0.82rem;
    color: #555;
    line-height: 1.6;
    border-top: 1px solid #ddd;
    padding-top: 16px;
}

.articulos-elegibles p:first-child {
    margin-bottom: 4px;
    font-size: 0.85rem;
    color: #333;
}

/* ========================
   FOOTER
======================== */
.site-footer {
    max-width: 960px;
    margin: 40px auto 0;
    padding: 0 24px 50px;
}

.footer-img {
    width: 100%;
    display: block;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ========================
   TOAST
======================== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background-color: rgba(34, 139, 34, 0.85);
}

.toast.error {
    background-color: rgba(200, 30, 30, 0.85);
}

/* ========================
   RESPONSIVE (CELULAR)
======================== */
@media (max-width: 768px) {
    .site-header {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .header-img {
        border-radius: 0;
        box-shadow: none;
    }

    .site-footer {
        max-width: 100%;
        padding: 0;
        margin-top: 30px;
    }

    .footer-img {
        border-radius: 0;
        box-shadow: none;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
