:root {
    --primary-dark: #131921;
    --secondary-dark: #232f3e;
    --accent-orange: #febd69;
    --accent-orange-hover: #f3a847;
    --amazon-yellow: #ffd814;
    --amazon-yellow-hover: #f7ca00;
    --whatsapp-green: #25d366;
    --whatsapp-dark: #1ebe5d;
    --bg-light: #eaeded;
    --text-main: #0f1111;
    --text-muted: #565959;
    --amazon-blue: #007185;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Roboto, Arial, sans-serif; background-color: var(--bg-light); color: var(--text-main); }
header {
    background-color: var(--primary-dark);
    color: white;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.logo { font-size: 1.7rem; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -0.5px; white-space: nowrap; }
.logo span { color: var(--accent-orange); }
.search-bar {
    display: flex;
    flex-grow: 1;
    max-width: 720px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 0 2px transparent;
    transition: box-shadow 0.2s;
}
.search-bar:focus-within { box-shadow: 0 0 0 3px var(--accent-orange); }
.search-select {
    background-color: #f3f3f3;
    border: none;
    border-right: 1px solid #cdcdcd;
    padding: 0 12px;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
}
.search-bar input {
    width: 100%;
    padding: 11px 14px;
    border: none;
    font-size: 0.95rem;
    outline: none;
}
.search-bar button {
    padding: 0 20px;
    background-color: var(--accent-orange);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-bar button:hover { background-color: var(--accent-orange-hover); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.account-btn {
    background: none;
    border: 1px solid transparent;
    color: white;
    cursor: pointer;
    text-align: left;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    position: relative;
}
.account-btn:hover { border-color: white; }
.account-line-1 { font-size: 0.76rem; color: #ccc; display: block; }
.account-line-2 { font-size: 0.92rem; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.account-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    color: var(--text-main);
    min-width: 240px;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    padding: 15px;
    z-index: 1200;
    border: 1px solid #ddd;
}
.account-btn:hover .account-dropdown { display: block; }
.dropdown-signin-btn {
    display: block;
    width: 100%;
    background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
    border: 1px solid #a88734;
    padding: 8px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    color: #111;
    margin-bottom: 8px;
}
.dropdown-signin-btn:hover { background: #f0c14b; }
.dropdown-sub { font-size: 0.78rem; color: #555; text-align: center; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 10px; }
.dropdown-sub a { color: var(--amazon-blue); text-decoration: none; font-weight: 600; }
.dropdown-list { list-style: none; font-size: 0.86rem; }
.dropdown-list li { padding: 6px 0; }
.dropdown-list a { color: #333; text-decoration: none; }
.dropdown-list a:hover { color: #c45500; text-decoration: underline; }
.cart-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.cart-btn:hover { border-color: white; background: rgba(255,255,255,0.08); }
.cart-badge {
    background-color: var(--accent-orange);
    color: var(--primary-dark);
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 0.85rem;
}
.sub-nav {
    background-color: var(--secondary-dark);
    color: white;
    padding: 10px 24px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    align-items: center;
}
.filter-chip {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid transparent;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.filter-chip:hover { border-color: white; }
.filter-chip.active {
    background-color: var(--accent-orange);
    color: var(--primary-dark);
    font-weight: 700;
}
.hero {
    background: linear-gradient(to bottom, rgba(19, 25, 33, 0.55) 0%, rgba(19, 25, 33, 0.75) 70%, var(--bg-light) 100%),
                url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?auto=format&fit=crop&w=1500&q=80') center/cover;
    height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}
.hero h1 { font-size: 2.6rem; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.6); margin-bottom: 10px; }
.hero p { font-size: 1.15rem; max-width: 650px; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
.container { max-width: 1360px; margin: -50px auto 50px; padding: 0 20px; position: relative; z-index: 10; }
.filter-toolbar {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.filter-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.filter-group { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.filter-group select, .filter-group input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem;
}
.btn-reset {
    background: #f0f2f2;
    border: 1px solid #d5d9d9;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
}
.btn-reset:hover { background: #e3e6e6; }
.section-box {
    background: white;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}
.section-title { font-size: 1.45rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.badge-offer { background-color: #cc0c39; color: white; font-size: 0.78rem; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 20px;
}
.product-card {
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.discount-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #cc0c39;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 14px;
    background-color: #f7f7f7;
}
.product-cat { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; font-weight: 600; }
.product-title { font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.rating { color: #ffa41c; font-size: 0.9rem; margin-bottom: 8px; }
.rating span { color: var(--text-muted); font-size: 0.8rem; }
.product-price { font-size: 1.38rem; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.old-price { font-size: 0.88rem; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; font-weight: normal; }
.shipping-tag { font-size: 0.84rem; color: #007600; font-weight: 600; margin-bottom: 14px; }
.btn-group { display: flex; flex-direction: column; gap: 8px; }
.btn-cart {
    background-color: var(--amazon-yellow);
    border: 1px solid #fcd200;
    padding: 10px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.2s;
}
.btn-cart:hover { background-color: var(--amazon-yellow-hover); }
.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 20px;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.btn-whatsapp:hover { background-color: var(--whatsapp-dark); }
.contact-banner {
    background: linear-gradient(135deg, var(--secondary-dark), var(--primary-dark));
    color: white;
    border-radius: 8px;
    padding: 35px 25px;
    text-align: center;
    margin-top: 30px;
}
.contact-banner h3 { font-size: 1.6rem; margin-bottom: 8px; }
.contact-banner p { color: #ccc; margin-bottom: 22px; font-size: 0.98rem; }
.social-icons-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}
.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, opacity 0.2s;
}
.social-btn:hover { transform: translateY(-3px); opacity: 0.92; }
.social-wa { background-color: #25d366; }
.social-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-fb { background-color: #1877f2; }
.social-tt { background-color: #000000; border: 1px solid #333; }
.social-yt { background-color: #ff0000; }
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 62px;
    height: 62px;
    background-color: var(--whatsapp-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.35);
    z-index: 1500;
    text-decoration: none;
    transition: transform 0.25s;
}
.whatsapp-float:hover { transform: scale(1.1); background-color: var(--whatsapp-dark); }
.whatsapp-tooltip {
    position: fixed;
    bottom: 38px;
    right: 98px;
    background: white;
    color: #111;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 1499;
    pointer-events: none;
}
footer { background-color: var(--secondary-dark); color: white; }
.footer-top {
    background-color: #37475a;
    text-align: center;
    padding: 14px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}
.footer-top:hover { background-color: #485769; }
.footer-links {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}
.footer-links h4 { margin-bottom: 14px; font-size: 1.05rem; color: var(--accent-orange); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #ddd; text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { text-decoration: underline; color: white; }
.footer-bottom {
    background-color: var(--primary-dark);
    text-align: center;
    padding: 25px 20px;
    font-size: 0.85rem;
    color: #bbb;
}
.legal-links-bar { margin-bottom: 10px; display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
.legal-links-bar a { color: #fff; text-decoration: none; font-weight: 500; }
.legal-links-bar a:hover { text-decoration: underline; color: var(--accent-orange); }
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.65);
    justify-content: center;
    align-items: center;
    z-index: 2500;
    padding: 15px;
}
.modal-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 12px;
}
.close-btn { background: none; border: none; font-size: 1.6rem; cursor: pointer; color: #555; }
.legal-text-content h4 { margin: 14px 0 6px; color: var(--primary-dark); }
.legal-text-content p { font-size: 0.93rem; line-height: 1.6; color: #333; margin-bottom: 10px; }
.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 15px 0;
    font-size: 0.88rem;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
}
.auth-modal-box {
    background: white;
    border-radius: 8px;
    max-width: 380px;
    width: 100%;
    padding: 26px 28px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.35);
    position: relative;
    border: 1px solid #ddd;
}
.auth-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
}
.auth-brand {
    text-align: center;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.auth-brand span { color: #e47911; }
.auth-title {
    font-size: 1.55rem;
    font-weight: 500;
    margin-bottom: 14px;
    color: #111;
}
.auth-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #111;
}
.auth-input {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #a6a6a6;
    border-radius: 4px;
    font-size: 0.95rem;
    margin-bottom: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input:focus {
    border-color: #e77600;
    box-shadow: 0 0 3px 2px rgba(228, 121, 17, 0.35);
}
.auth-btn-primary {
    width: 100%;
    background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
    border: 1px solid #a88734;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    cursor: pointer;
    margin-bottom: 14px;
}
.auth-btn-primary:hover { background: linear-gradient(to bottom, #f5d78e, #eeb933); }
.auth-btn-google {
    width: 100%;
    background: #fff;
    border: 1px solid #dadce0;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #3c4043;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    transition: background 0.2s;
}
.auth-btn-google:hover { background: #f8f9fa; border-color: #c6c9cc; }
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #767676;
    font-size: 0.78rem;
    margin: 14px 0;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e7e7e7;
}
.auth-divider:not(:empty)::before { margin-right: .75em; }
.auth-divider:not(:empty)::after { margin-left: .75em; }
.auth-btn-secondary {
    width: 100%;
    background: linear-gradient(to bottom, #f7f8fa, #e7e9ec);
    border: 1px solid #adb1b8;
    padding: 9px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #111;
    cursor: pointer;
}
.auth-btn-secondary:hover { background: #e7e9ec; }
.auth-legal-note {
    font-size: 0.76rem;
    color: #555;
    line-height: 1.45;
    margin-bottom: 12px;
}
.auth-legal-note a, .auth-link {
    color: var(--amazon-blue);
    text-decoration: none;
    cursor: pointer;
}
.auth-legal-note a:hover, .auth-link:hover {
    color: #c45500;
    text-decoration: underline;
}
.auth-user-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f3f3f3;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.88rem;
    margin-bottom: 14px;
}
.email-sim-box {
    background: #f0f8ff;
    border: 1px solid #b6d4fe;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 14px;
    font-size: 0.84rem;
    color: #084298;
}
.email-sim-code {
    display: inline-block;
    background: #fff;
    border: 1px dashed #084298;
    padding: 3px 10px;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 2px;
    margin-top: 5px;
    border-radius: 4px;
}
.google-account-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.google-account-item:hover { background: #f1f3f4; }
.google-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a73e8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
@media (max-width: 768px) {
    header { flex-wrap: wrap; }
    .search-bar { order: 3; max-width: 100%; margin: 5px 0 0; }
    .search-select { display: none; }
    .hero h1 { font-size: 1.9rem; }
    .whatsapp-tooltip { display: none; }
}
.btn-cart:disabled { background-color: #e7e7e7; border-color: #d5d9d9; color: #888; cursor: not-allowed; }
.checkout-fields { margin: 14px 0; }
.checkout-fields .auth-input { margin-bottom: 10px; }
.checkout-fields textarea.auth-input { resize: vertical; min-height: 56px; font-family: inherit; }
.checkout-aviso { background: #fff8e5; border: 1px solid #f0c14b; border-radius: 6px; padding: 10px 12px; font-size: 0.88rem; margin: 14px 0; }
.dropdown-list .link-acento { color: #c45500; font-weight: 600; }
.pagina-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 15px; }
.mensaje-error { background: #fff0f0; border: 1px solid #f5c2c7; color: #842029; border-radius: 6px; padding: 10px 12px; font-size: 0.88rem; margin-bottom: 14px; }
.mensaje-ok { background: #edf7ed; border: 1px solid #b7dfb9; color: #1e4620; border-radius: 6px; padding: 10px 12px; font-size: 0.88rem; margin-bottom: 14px; }
