/* =========================================================
   Monse Party Shop — Hoja de estilos principal
   ========================================================= */

:root {
    --primary-color: #FF6F91;
    --secondary-color: #FFC75F;
    --accent-color: #845EC2;
    --text-color: #4B4453;
    --background-color: #FFF9FB;
    --card-color: #FFFFFF;

    --primary-color-dark: #E85578;
    --success-color: #4CAF6D;
    --shadow-soft: 0 8px 24px rgba(75, 68, 83, 0.08);
    --shadow-hover: 0 14px 32px rgba(75, 68, 83, 0.14);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --font-heading: 'Baloo 2', 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    margin: 0 0 0.5em;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 111, 145, 0.35);
}
.btn-primary:hover { background: var(--primary-color-dark); }

.btn-secondary {
    background: var(--card-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover { background: var(--primary-color); color: #fff; }

.btn-accent {
    background: var(--accent-color);
    color: #fff;
}

.btn-block { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
    background: var(--card-color);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 24px;
}
.logo {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}
.logo img { max-height: 48px; }

.main-nav {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.main-nav a {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
    transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--primary-color); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}
.cart-link {
    position: relative;
    font-size: 24px;
}
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 7px;
    min-width: 18px;
    text-align: center;
}

/* ---------- Menú hamburguesa (responsivo) ---------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: var(--text-color);
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-color);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        box-shadow: var(--shadow-soft);
        transition: max-height 0.3s ease;
    }
    .main-nav.open { max-height: 400px; }
    .main-nav a {
        padding: 16px 24px;
        border-top: 1px solid rgba(75,68,83,0.08);
    }
    .header-inner { position: relative; }
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, rgba(255,111,145,0.12), rgba(132,94,194,0.10));
    padding: 80px 24px;
    text-align: center;
}
.hero-brand {
    font-size: 18px;
    letter-spacing: 4px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 12px;
}
.hero h1 {
    font-size: 48px;
    color: var(--text-color);
    max-width: 780px;
    margin: 0 auto 20px;
}
.hero p {
    font-size: 18px;
    max-width: 620px;
    margin: 0 auto 36px;
    color: var(--text-color);
    opacity: 0.85;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Secciones ---------- */
.section {
    padding: 72px 24px;
}
.section-title {
    text-align: center;
    margin-bottom: 12px;
    font-size: 34px;
}
.section-subtitle {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
    opacity: 0.8;
    font-size: 16px;
}

/* ---------- Categorías ---------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}
.category-card {
    background: var(--card-color);
    border-radius: var(--radius-md);
    padding: 28px 16px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.category-icon { font-size: 40px; margin-bottom: 12px; }
.category-name { font-weight: 700; font-size: 15px; }

/* ---------- Productos ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
}
.product-card {
    background: var(--card-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.product-image {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #FFF0F4, #F3ECFB);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    position: relative;
    overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }

.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}
.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-nuevo { background: var(--accent-color); }
.badge-vendido { background: var(--primary-color); }
.badge-kit { background: var(--secondary-color); color: var(--text-color); }
.badge-oferta { background: var(--success-color); }

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.product-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}
.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
}
.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}
.product-old-price {
    font-size: 14px;
    text-decoration: line-through;
    opacity: 0.5;
}
.product-discount {
    font-size: 12px;
    font-weight: 700;
    color: var(--success-color);
}

/* ---------- Cómo funciona ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}
.step-card { text-align: center; }
.step-number {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--secondary-color);
    -webkit-text-stroke: 1px var(--primary-color);
}
.step-title {
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0;
    color: var(--primary-color);
}

/* ---------- Mensaje de marca ---------- */
.brand-message {
    background: var(--card-color);
    text-align: center;
    padding: 72px 24px;
}
.brand-message h2 { color: var(--accent-color); font-size: 34px; }
.brand-message p { max-width: 640px; margin: 0 auto; font-size: 17px; opacity: 0.85; }

/* ---------- Filtros / listado ---------- */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}
.filter-chip {
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--card-color);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    border: 2px solid transparent;
}
.filter-chip.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ---------- Página de producto ---------- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px 24px;
}
@media (max-width: 800px) {
    .product-detail { grid-template-columns: 1fr; }
}
.product-detail-image {
    background: linear-gradient(135deg, #FFF0F4, #F3ECFB);
    border-radius: var(--radius-lg);
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    overflow: hidden;
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }

.product-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.product-thumbnail {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    cursor: pointer;
    background: linear-gradient(135deg, #FFF0F4, #F3ECFB);
    flex-shrink: 0;
}
.product-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbnail.active,
.product-thumbnail:hover { border-color: var(--primary-color); }
.product-detail-info h1 { font-size: 32px; }
.rating-stars { color: var(--secondary-color); font-size: 20px; letter-spacing: 2px; }
.product-detail-desc { font-size: 16px; opacity: 0.85; margin: 16px 0; }

.accordion-item {
    border-bottom: 1px solid rgba(75,68,83,0.1);
}
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--accent-color);
}
.accordion-body {
    display: none;
    padding: 0 0 16px;
    opacity: 0.85;
}
.accordion-item.open .accordion-body { display: block; }
.accordion-item.open .accordion-header .chevron { transform: rotate(180deg); }
.chevron { transition: transform 0.2s ease; }

.product-custom-description {
    font-size: 15px;
    line-height: 1.7;
    margin: 20px 0;
}
.product-custom-description p { margin: 0 0 14px; }
.product-custom-description ul,
.product-custom-description ol { margin: 0 0 14px; padding-left: 22px; }
.product-custom-description li { margin-bottom: 6px; }
.product-custom-description a { color: var(--primary-color); text-decoration: underline; }
.product-custom-description img { border-radius: var(--radius-sm); margin: 12px 0; }
.product-custom-description h1,
.product-custom-description h2,
.product-custom-description h3,
.product-custom-description h4 { color: var(--accent-color); margin: 20px 0 10px; }
.product-custom-description strong { color: var(--text-color); }

.payment-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(75,68,83,0.15);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
.payment-option:has(input:checked) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.digital-notice {
    background: rgba(132, 94, 194, 0.08);
    border: 1px dashed var(--accent-color);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 600;
    margin: 20px 0;
}

/* ---------- Carrito ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(75,68,83,0.08);
}
.cart-item-name { font-weight: 700; }
.qty-input {
    width: 60px;
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(75,68,83,0.2);
    text-align: center;
}
.cart-summary {
    background: var(--card-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    max-width: 360px;
    margin-left: auto;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}
.cart-empty { text-align: center; padding: 80px 24px; }

/* ---------- Formularios ---------- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(75,68,83,0.2);
    font-family: var(--font-body);
    font-size: 15px;
}
.form-control:focus { outline: none; border-color: var(--primary-color); }
textarea.form-control { resize: vertical; min-height: 100px; }

.card-box {
    background: var(--card-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 32px;
}

.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 600;
}
.alert-success { background: rgba(76, 175, 109, 0.12); color: var(--success-color); }
.alert-error { background: rgba(232, 85, 120, 0.12); color: var(--primary-color-dark); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--text-color);
    color: #fff;
    padding: 56px 24px 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 700px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 34px; }
    .product-detail { padding: 24px 16px; }
}
.footer-logo { font-family: var(--font-heading); font-size: 24px; color: var(--secondary-color); margin-bottom: 12px; }
.footer-col h4 { color: var(--secondary-color); font-size: 15px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { opacity: 0.85; font-size: 14px; }
.footer-col a:hover { opacity: 1; color: var(--secondary-color); }
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 13px;
    opacity: 0.7;
}

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.empty-state { text-align: center; padding: 60px 24px; opacity: 0.7; }
