/* ==========================================
   KidsShop - Estilos principales
   Fuentes: Baloo 2 (títulos) + Nunito (cuerpo)
   ========================================== */

:root {
    --c1: #FF6B9D;
    --c2: #FFD93D;
    --c3: #6BCB77;
    --bg: #FFF9FB;
    --text: #2D2D3A;
    --text-light: #6B6B80;
    --white: #fff;
    --radius: 18px;
    --shadow: 0 8px 32px rgba(255, 107, 157, 0.13);
    --shadow-hover: 0 16px 48px rgba(255, 107, 157, 0.22);
    --transition: 0.3s cubic-bezier(.4, 0, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* ---- TOP BANNER ---- */
.top-banner {
    background: linear-gradient(90deg, var(--c1), #ff8fab);
    color: #fff;
    text-align: center;
    padding: 9px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ---- HEADER ---- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,249,251,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(255,107,157,0.13);
    box-shadow: 0 2px 16px rgba(255,107,157,0.07);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.logo-link { text-decoration: none; }
.logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Baloo 2', cursive;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--c1);
}
.logo-icon { font-size: 1.8rem; }
.logo-img { height: 52px; object-fit: contain; }

.nav-main {
    display: flex;
    gap: 4px;
    margin-left: auto;
}
.nav-main a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: var(--transition);
}
.nav-main a:hover {
    background: var(--c1);
    color: #fff;
}
.header-actions { display: flex; gap: 10px; align-items: center; }
.btn-wsp {
    background: var(--c3);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-wsp:hover { filter: brightness(1.1); transform: translateY(-1px); }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--c1);
}
.nav-mobile {
    display: none;
    flex-direction: column;
    background: var(--white);
    padding: 12px 24px;
    border-top: 1px solid rgba(255,107,157,0.1);
}
.nav-mobile a {
    padding: 11px 0;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 1.05rem;
}
.nav-mobile.open { display: flex; }

/* ---- HERO ---- */
.hero {
    position: relative;
    height: 400px; /* Altura fija */
    max-width: 1300px; /* Ancho máximo */
    width: 95%; 
    margin: 15px auto 0; /* Margen inferior eliminado, margen superior reducido */
    border-radius: 30px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
    padding: 0 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}
.shape {
    position: absolute;
    font-size: 2.2rem;
    animation: floatShape 6s ease-in-out infinite;
    opacity: 0.7;
}
.s1 { top: 10%; left: 5%; animation-delay: 0s; font-size: 3rem; }
.s2 { top: 20%; right: 8%; animation-delay: 1s; font-size: 2.5rem; }
.s3 { bottom: 15%; left: 10%; animation-delay: 2s; }
.s4 { bottom: 30%; right: 15%; animation-delay: 0.5s; font-size: 1.8rem; }
.s5 { top: 50%; left: 50%; animation-delay: 1.5s; }
@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
}
.hero-badge {
    display: inline-block;
    background: var(--c2);
    color: #6b4700;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 5px 16px;
    border-radius: 30px;
    margin-bottom: 15px;
    letter-spacing: 0.04em;
}
.hero-title {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 15px;
    text-shadow: 0 2px 15px rgba(255,255,255,0.8);
}
.hero-title span { color: var(--c1); }
.hero-sub {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.5;
    text-shadow: 0 1px 10px rgba(255,255,255,0.8);
}
.btn-hero {
    display: inline-block;
    background: linear-gradient(135deg, var(--c1), #ff8fab);
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(255,107,157,0.3);
    transition: var(--transition);
}
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(255,107,157,0.4); }

.hero-img-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35; /* Atenuada */
}

.hero-illustration {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 5;
}
.toy-blob, .toy-blob2, .toy-blob3 {
    font-size: 5rem;
    animation: floatToy 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}
.toy-blob2 { animation-delay: 1.3s; font-size: 4rem; }
.toy-blob3 { animation-delay: 2.6s; font-size: 3.5rem; }
@keyframes floatToy {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.toy-blob, .toy-blob2, .toy-blob3 {
    font-size: 5rem;
    animation: floatToy 4s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1));
}
.toy-blob2 { animation-delay: 1.3s; font-size: 4rem; }
.toy-blob3 { animation-delay: 2.6s; font-size: 3.5rem; }
@keyframes floatToy {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ---- PROMO STRIP ---- */
.promo-strip {
    background: linear-gradient(90deg, var(--c2), #ffec6e);
    padding: 16px 24px;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    color: #5a3e00;
}

/* ---- SECTIONS ---- */
.section { padding: 25px 0; }
.section-alt { background: linear-gradient(180deg, #fff5fa 0%, #fff9fb 100%); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 20px; }
.section-title {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--c1), var(--c2));
    border-radius: 4px;
    margin-top: 8px;
}
.section-sub { color: var(--text-light); font-size: 1rem; margin-top: 10px; }

/* ---- CATEGORÍAS ---- */
.cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px;
}
.cat-card {
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    font-family: 'Nunito', sans-serif;
}
.cat-card:hover, .cat-card.active {
    border-color: var(--c1);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, #fff0f7, #fff9e6);
}
.cat-icon { font-size: 2.5rem; }
.cat-name { font-weight: 800; font-size: 0.95rem; color: var(--text); }
.cat-count { font-size: 0.78rem; color: var(--text-light); background: #f5f5f5; padding: 2px 10px; border-radius: 20px; }
.cat-all { border: 2px dashed rgba(255,107,157,0.3); }

/* ---- PRODUCTOS ---- */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.prod-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.prod-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.prod-card.hidden { display: none; }
.prod-img-wrap {
    position: relative;
    background: linear-gradient(135deg, #fff0f7, #fff9e6);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.prod-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.prod-card:hover .prod-img { transform: scale(1.06); }
.prod-img-placeholder { font-size: 5rem; opacity: 0.4; }
.prod-badge-oferta {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--c1);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
}
.prod-badge-dest {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--c2);
    color: #6b4700;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
}
.prod-info { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.prod-cat { font-size: 0.75rem; color: var(--c1); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.prod-name { font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.prod-desc { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; flex: 1; }
.prod-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.precio-normal { font-family: 'Baloo 2', cursive; font-size: 1.3rem; font-weight: 800; color: var(--c1); }
.precio-oferta { font-family: 'Baloo 2', cursive; font-size: 1.3rem; font-weight: 800; color: var(--c3); }
.precio-tachado { font-size: 0.85rem; color: #bbb; text-decoration: line-through; margin-right: 4px; }
.btn-comprar {
    background: linear-gradient(135deg, var(--c1), #ff8fab);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}
.btn-comprar:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(255,107,157,0.4); }
.empty-state {
    text-align: center;
    padding: 60px;
    font-size: 1.1rem;
    color: var(--text-light);
}
.empty-state span { font-size: 4rem; display: block; margin-bottom: 12px; }

/* ---- NOSOTROS ---- */
.nosotros-box {
    background: var(--white);
    border-radius: 28px;
    padding: 52px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.nosotros-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3));
}
.nosotros-deco { font-size: 3.5rem; margin-bottom: 16px; }
.nosotros-box h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text);
}
.nosotros-box p { font-size: 1.05rem; color: var(--text-light); line-height: 1.8; margin-bottom: 32px; max-width: 640px; margin-left: auto; margin-right: auto; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.feature {
    padding: 24px 16px;
    background: var(--bg);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat-icon { font-size: 2.2rem; }
.feature strong { font-weight: 800; font-size: 0.95rem; color: var(--text); }
.feature p { font-size: 0.82rem; color: var(--text-light); }

/* ---- SUSCRIPCIÓN ---- */
.section-suscripcion {
    background: linear-gradient(135deg, #fff0f7 0%, #fff9e6 100%);
}
.suscripcion-box {
    background: var(--white);
    border-radius: 28px;
    padding: 56px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.sus-deco { font-size: 4rem; margin-bottom: 16px; }
.suscripcion-box h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}
.suscripcion-box p { color: var(--text-light); margin-bottom: 28px; font-size: 1rem; line-height: 1.7; }
.sus-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sus-form input {
    padding: 14px 20px;
    border: 2px solid #ffe0ee;
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    background: var(--bg);
}
.sus-form input:focus { border-color: var(--c1); }
.sus-form button {
    background: linear-gradient(135deg, var(--c1), #ff8fab);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Nunito', sans-serif;
}
.sus-form button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,157,0.35); }
.sus-mensaje { margin-top: 14px; font-weight: 700; font-size: 0.95rem; min-height: 24px; }
.sus-mensaje.ok { color: var(--c3); }
.sus-mensaje.error { color: #e74c3c; }

/* ---- FOOTER ---- */
.footer {
    background: var(--text);
    color: rgba(255,255,255,0.85);
    padding: 60px 24px 0;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-text { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; opacity: 0.7; }
.footer h4 { font-family: 'Baloo 2', cursive; font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--c1); }
.social-links { display: flex; flex-direction: column; gap: 10px; }
.social-btn {
    display: inline-block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.2s;
}
.social-btn:hover { color: var(--c2); }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.6;
}
.admin-link { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.8rem; }
.admin-link:hover { color: var(--c1); opacity: 1; }

/* ---- ANIMATIONS ---- */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .hero { 
        height: auto; 
        min-height: 500px; 
        flex-direction: column; 
        text-align: center; 
        padding: 50px 24px; 
        justify-content: center;
    }
    .hero-content { margin-bottom: 30px; }
    .hero-illustration { 
        position: relative; 
        right: auto; 
        top: auto; 
        transform: none; 
        flex-direction: row; 
        justify-content: center;
        gap: 20px;
    }
    .toy-blob, .toy-blob2, .toy-blob3 { font-size: 3.5rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .nav-main { display: none; }
    .nav-toggle { display: block; }
}
@media (max-width: 600px) {
    .header-inner { padding: 12px 16px; }
    .nosotros-box, .suscripcion-box { padding: 32px 20px; }
    .section { padding: 52px 0; }
    .cats-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .productos-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ---- CARRITO DE COMPRAS ---- */
.btn-cart-toggle {
    background: var(--white);
    border: 2px solid var(--c1);
    color: var(--c1);
    padding: 8px 12px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 800;
    transition: var(--transition);
    position: relative;
}
.btn-cart-toggle:hover {
    background: var(--c1);
    color: #fff;
}
.cart-count {
    background: var(--c2);
    color: #6b4700;
    font-size: 0.75rem;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0 4px;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0; right: -400px;
    width: 400px;
    max-width: 90%;
    height: 100vh;
    background: var(--white);
    z-index: 1200;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: 0.4s cubic-bezier(.4, 0, .2, 1);
}
.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 24px;
    border-bottom: 2px solid var(--bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.5rem;
    color: var(--text);
}
.cart-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-clear-cart {
    background: none;
    border: 1.5px solid #ffccd5;
    color: #ff4d6d;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}
.btn-clear-cart:hover {
    background: #fff0f3;
    border-color: #ff4d6d;
}
.cart-close {
    background: var(--bg);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}
.cart-close:hover {
    background: var(--c1);
    color: #fff;
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.cart-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--bg);
    align-items: center;
}
.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--bg);
}
.cart-item-info {
    flex: 1;
}
.cart-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 4px;
}
.cart-item-price {
    color: var(--c1);
    font-weight: 800;
    font-size: 0.9rem;
}
.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 20px;
}
.btn-remove-item {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.4;
    transition: var(--transition);
}
.btn-remove-item:hover {
    opacity: 1;
    transform: scale(1.1);
}
.cart-item-controls button {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    color: var(--c1);
    width: 24px;
}
.cart-item-qty {
    font-weight: 800;
    font-size: 0.9rem;
    min-width: 15px;
    text-align: center;
}

.cart-footer {
    padding: 24px;
    background: var(--bg);
    border-radius: 30px 30px 0 0;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 800;
}
#cartTotalText {
    color: var(--c1);
    font-family: 'Baloo 2', cursive;
    font-size: 1.5rem;
}
.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, var(--c3), #8ade94);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(107, 203, 119, 0.3);
    transition: var(--transition);
    font-family: 'Nunito', sans-serif;
}
.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(107, 203, 119, 0.4);
}
.cart-empty-msg {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}
.cart-empty-msg span {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

/* ---- MODAL DETALLES ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.modal-detail {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -40%);
    width: 900px;
    max-width: 95%;
    max-height: 90vh;
    background: var(--white);
    z-index: 2100;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
}
.modal-detail.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}
.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--bg);
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: var(--transition);
}
.modal-close:hover {
    background: var(--c1);
    color: #fff;
    transform: rotate(90deg);
}
.modal-content {
    display: flex;
    height: 100%;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-img-side {
    flex: 1;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.modal-img-side img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 20px;
}
.modal-info-side {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.modal-cat { color: var(--c1); font-weight: 800; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.1em; }
.modal-title { font-family: 'Baloo 2', cursive; font-size: 2.5rem; line-height: 1.1; color: var(--text); }
.modal-price-wrap { display: flex; align-items: center; gap: 15px; }
.modal-price { font-family: 'Baloo 2', cursive; font-size: 2rem; font-weight: 800; color: var(--c1); }
.modal-price-old { font-size: 1.2rem; color: #bbb; text-decoration: line-through; }
.modal-desc { color: var(--text-light); line-height: 1.7; font-size: 1.05rem; }

/* Compartir */
.modal-share {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.share-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-light);
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.share-btns {
    display: flex;
    gap: 10px;
}
.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}
.share-btn span { font-size: 1.1rem; }
.share-btn.wsp {
    background: #e8f9ec;
    color: #128c7e;
}
.share-btn.wsp:hover {
    background: #128c7e;
    color: #fff;
}
.share-btn.fb {
    background: #e7efff;
    color: #1877f2;
}
.share-btn.fb:hover {
    background: #1877f2;
    color: #fff;
}

/* Talles */
.talles-wrap { margin-top: 10px; }
.talles-label { font-weight: 800; display: block; margin-bottom: 12px; color: var(--text); }
.talles-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.talle-btn {
    min-width: 45px;
    height: 45px;
    border: 2px solid #eee;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Nunito', sans-serif;
}
.talle-btn:hover { border-color: var(--c1); color: var(--c1); }
.talle-btn.active {
    background: var(--c1);
    border-color: var(--c1);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255,107,157,0.3);
}

.modal-actions { margin-top: 20px; }
.btn-modal-add {
    width: 100%;
    background: linear-gradient(135deg, var(--c1), #ff8fab);
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(255,107,157,0.3);
}
.btn-modal-add:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(255,107,157,0.4); }

@media (max-width: 850px) {
    .modal-content { flex-direction: column; }
    .modal-info-side { padding: 30px 24px; }
    .modal-img-side { padding: 20px; }
    .modal-title { font-size: 1.8rem; }
}
