/* ==================== VARIABLES GLOBALES ==================== */
:root {
    --primary: #1a2a4f;
    --primary-dark: #0e1a33;
    --accent: #e84393;
    --accent-dark: #d63384;
    --gold: #d4af37;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --black: #212529;
    --gray: #6c757d;
    --border: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.5;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== HEADER ==================== */
header {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
header.scrolled {
    box-shadow: var(--shadow-lg);
    padding: 0.7rem 2rem;
}
.logo img {
    max-height: 55px;
    transition: var(--transition);
}
.logo img:hover {
    transform: scale(1.02);
}
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}
nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
nav a:hover {
    color: var(--gold);
}
nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.2s;
}
nav a:hover::after {
    width: 100%;
}
.user-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.btn-login, .btn-logout {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}
.btn-login:hover, .btn-logout:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--primary);
    color: white;
    padding: 2rem 2rem 1rem;
    margin-top: 3rem;
}
footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
footer .footer-section h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}
footer .footer-section p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}
footer .footer-section a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}
footer .footer-section a:hover {
    color: var(--gold);
    text-decoration: underline;
}
footer .footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.85rem;
}

/* ==================== PROMO BAR ==================== */
.promo-bar-led {
    background: var(--accent);
    color: white;
    overflow: hidden;
    white-space: nowrap;
    padding: 0.7rem 0;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid var(--gold);
}
.promo-bar-led .marquee-text {
    display: inline-block;
    animation: scroll 20s linear infinite;
    padding-left: 100%;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.promo-bar-led img {
    height: 24px;
    vertical-align: middle;
    margin-right: 10px;
}

/* ==================== HERO SLIDER ==================== */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 24px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}
.hero-slider .slide.active {
    opacity: 1;
    z-index: 2;
}
.hero-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    z-index: 10;
}
.hero-controls button {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 1.5rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.hero-controls button:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.05);
}

/* ==================== CATEGORY TABS ==================== */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.category-indicator {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.95rem;
    margin-right: 0.5rem;
    padding: 0.5rem 0;
    letter-spacing: 0.5px;
    border-right: 2px solid var(--gold);
    padding-right: 1rem;
}
.category-tab {
    background: var(--light-bg);
    border: 1.5px solid var(--border);
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 40px;
    box-shadow: var(--shadow-sm);
}
.category-tab:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.category-tab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

/* ==================== FILTROS ==================== */
.catalog-filters {
    margin-bottom: 2rem;
}
.filters-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.search-box input {
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: 40px;
    width: 260px;
    font-size: 0.9rem;
    transition: var(--transition);
}
.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 67, 147, 0.2);
}

/* ==================== PRODUCTOS GRID ==================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.product-image-wrapper {
    position: relative;
    overflow: hidden;
}
.product-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.product-card:hover img {
    transform: scale(1.03);
}
.product-card .info {
    padding: 1.2rem;
}
.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--black);
}
.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent);
}
.old-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 0.85rem;
    margin-right: 0.5rem;
}
.offer-tag {
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: bold;
    display: inline-block;
    margin-top: 0.5rem;
}
.btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    margin-top: 1rem;
    display: inline-block;
    font-size: 0.9rem;
}
.btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.btn-large {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
}
.btn-sm {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}
.btn-sm:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* ==================== ETIQUETAS DE PRODUCTOS ==================== */
.product-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(2px);
}
.tag-nuevo {
    background: #28a745;
}
.tag-rebaja {
    background: #dc3545;
}
.tag-temporada {
    background: #fd7e14;
}
.tag-recien {
    background: #17a2b8;
}
.product-detail-right .product-tag {
    position: relative;
    display: inline-block;
    top: 0;
    left: 0;
    margin-bottom: 1rem;
}

/* ==================== DETALLE PRODUCTO ==================== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.product-gallery {
    background: var(--light-bg);
    border-radius: 24px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}
.main-image img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    max-height: 500px;
}
.thumbnails {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.thumbnails img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    border: 2px solid transparent;
}
.thumbnails img.active,
.thumbnails img:hover {
    opacity: 1;
    border-color: var(--accent);
    transform: scale(1.05);
}
.product-detail-right h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--black);
}
.product-price {
    margin: 1rem 0;
}
.current-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent);
}
.discount-badge {
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    font-weight: bold;
}
.variant-selector .variant-group {
    margin-bottom: 1.2rem;
}
.variant-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
.variant-selector select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--white);
    border: 2px solid var(--border);
    border-radius: 40px;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--black);
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    transition: var(--transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e84393' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}
.variant-selector select:hover {
    border-color: var(--accent);
}
.variant-selector select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 67, 147, 0.2);
}
.variant-stock {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--accent);
    padding: 0.8rem 1rem;
    border-radius: 16px;
    margin: 0.8rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    display: inline-block;
    width: auto;
    box-shadow: var(--shadow-sm);
}
.variant-stock:empty {
    display: none;
}
.product-actions .btn-large {
    background: var(--accent);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    width: 100%;
    max-width: 280px;
    transition: var(--transition);
}
.product-actions .btn-large:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.review-item {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 1rem;
}
.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.review-rating {
    color: var(--gold);
}
.star-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #ccc;
    cursor: pointer;
    transition: var(--transition);
}
.star-btn.selected {
    color: var(--gold);
}

/* ==================== CARRITO ==================== */
.cart-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    flex-wrap: wrap;
}
.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}
.cart-item-details {
    flex: 1;
}
.cart-item-price {
    font-weight: bold;
    color: var(--accent);
}
.cart-item-actions {
    margin-top: 0.5rem;
}
.cart-item-actions .quantity {
    display: inline-block;
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}
.cart-item-actions button {
    background: var(--light-bg);
    border: 1px solid var(--border);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-right: 0.5rem;
}
.cart-item-actions button:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.cart-item-actions .remove-item {
    width: auto;
    border-radius: 30px;
    padding: 0 12px;
    background: #dc3545;
    color: white;
    border: none;
}
.cart-item-actions .remove-item:hover {
    background: #c82333;
}
.cart-summary {
    margin-top: 2rem;
    text-align: right;
    border-top: 2px solid var(--accent);
    padding-top: 1rem;
}
.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.empty-cart {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    padding: 2rem;
}

/* ==================== ADMIN PANEL ==================== */
.admin-menu {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 24px;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    justify-content: center;
}
.admin-menu button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}
.admin-menu button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--accent);
}
.admin-table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.admin-table th {
    background: var(--primary);
    color: white;
    padding: 14px 12px;
    font-weight: 600;
    font-size: 0.9rem;
}
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.admin-table tr:hover td {
    background-color: rgba(232, 67, 147, 0.05);
}
.admin-table tr:last-child td {
    border-bottom: none;
}
#productForm .form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
#productForm .form-row .form-group {
    flex: 1;
    min-width: 150px;
}
#productForm .form-group label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}
#productForm .form-group input,
#productForm .form-group select,
#productForm .form-group textarea {
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
}
.variant-table {
    background: var(--light-bg);
    border-radius: 16px;
    overflow: hidden;
}
.variant-table th {
    background: var(--primary);
    color: white;
    padding: 10px;
    font-size: 0.85rem;
}
.variant-table td {
    background: white;
    padding: 8px;
}
.remove-variant {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
    font-size: 0.75rem;
    cursor: pointer;
}
.additional-image-item, .banner-item, .oferta-item {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
}
.inventory-product {
    background: white;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.inventory-header h3 {
    color: var(--primary);
    margin: 0 0 0.25rem;
}
.inventory-header .category {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.inventory-table {
    width: 100%;
    border-collapse: collapse;
}
.inventory-table th {
    background: var(--light-bg);
    padding: 8px;
    text-align: left;
    font-weight: 500;
}
.inventory-table td {
    padding: 8px;
    border-bottom: 1px solid var(--border);
}
.stock-input {
    width: 80px;
    padding: 4px 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
}
.report-card {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.report-card h2 {
    color: var(--primary);
    margin-top: 0;
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    color: #1a2a4f;
    padding: 10px 20px;
    border-radius: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-weight: 500;
    z-index: 2000;
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 280px;
    text-align: center;
    animation: slideInRight 0.3s ease, fadeOut 0.5s ease 2.5s forwards;
    border-left: 4px solid;
}
.toast-success {
    border-left-color: #28a745;
    background: #f0fff4;
    color: #155724;
}
.toast-error {
    border-left-color: #dc3545;
    background: #fff5f5;
    color: #721c24;
}
.toast-info {
    border-left-color: var(--accent);
    background: #fef2f6;
    color: #880e4f;
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==================== MODALES ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 28px;
    width: 95%;
    max-width: 1000px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalFadeIn 0.3s;
    overflow: visible;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1.2rem;
    top: 0.8rem;
}
.close:hover {
    color: black;
}

/* ==================== FORMULARIOS GENERALES ==================== */
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: var(--transition);
    font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 67, 147, 0.2);
}

/* ==================== LOGIN CARDS ==================== */
.login-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem 1rem;
}
.login-card {
    max-width: 420px;
    width: 100%;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    border-top: 4px solid var(--accent);
    transition: var(--transition);
}
.login-card:hover {
    box-shadow: var(--shadow-lg);
}
.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.login-header h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.login-header p {
    color: var(--gray);
    font-size: 0.85rem;
}
.login-card .form-group {
    margin-bottom: 1.25rem;
}
.login-card .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--primary);
    font-size: 0.85rem;
}
.login-card .form-group input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 0.9rem;
    transition: var(--transition);
    background-color: var(--white);
}
.login-card .form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(232, 67, 147, 0.2);
}
.btn-login-submit {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.7rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}
.btn-login-submit:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
}
.login-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.login-footer a:hover {
    text-decoration: underline;
}
.login-message {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #dc3545;
    animation: fadeIn 0.3s;
}

/* ==================== TABLA DE COSTOS (CALCULADORA) ==================== */
.cost-calculator-container {
    background: var(--white);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.cost-table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}
.cost-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 1000px;
}
.cost-table th {
    background: var(--primary);
    color: white;
    padding: 12px 8px;
    font-weight: 600;
    text-align: center;
    font-size: 0.85rem;
    white-space: nowrap;
}
.cost-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    vertical-align: middle;
    background-color: var(--white);
}
.cost-table tr:hover td {
    background-color: rgba(232, 67, 147, 0.05);
}
.cost-table input {
    width: 100%;
    min-width: 80px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.85rem;
    text-align: center;
    transition: var(--transition);
    background-color: var(--white);
}
.cost-table input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(232, 67, 147, 0.2);
}
.cost-table .readonly-cell {
    font-weight: 600;
    color: var(--primary);
    background-color: var(--light-bg);
    border-radius: 12px;
    padding: 6px 8px;
}
.cost-table .btn-eliminar-fila {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}
.cost-table .btn-eliminar-fila:hover {
    background: #c82333;
    transform: scale(1.02);
}
.cost-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.cost-message {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    animation: fadeIn 0.3s;
}
.adicionales-list {
    margin-bottom: 5px;
}
.adicional-item {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-bottom: 5px;
    flex-wrap: wrap;
}
.adicional-item input {
    padding: 4px 6px;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.suma-adicionales {
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 4px;
}
.margen-bar-container {
    background: #e9ecef;
    border-radius: 10px;
    height: 12px;
    width: 80px;
    overflow: hidden;
}
.margen-bar {
    height: 100%;
    width: 0%;
    transition: width 0.2s;
}
.promo-img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    margin: 1rem 0;
    display: block;
}
.promo-card {
    background: var(--white);
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.promo-card .video-container iframe,
.promo-card video {
    max-width: 100%;
    max-height: 300px;
    border-radius: 16px;
}

/* ==================== PROMOCIONES EN CATÁLOGO ==================== */
.promo-section-title {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--primary);
    border-left: 5px solid var(--accent);
    padding-left: 1rem;
}
.promos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.promo-card-catalog {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.promo-card-catalog:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.promo-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light-bg);
}
.promo-card-info {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.promo-card-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}
.promo-text {
    color: var(--gray);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}
.promo-discount {
    background: var(--accent);
    color: white;
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: bold;
    margin: 0.5rem 0;
    align-self: flex-start;
}
.promo-validity {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0.5rem 0;
}
.promo-products {
    margin-top: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
    font-size: 0.85rem;
}
.promo-products-list a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.promo-products-list a:hover {
    text-decoration: underline;
    color: var(--accent-dark);
}
.promo-video {
    margin: 0.5rem 0;
}
.promo-video iframe,
.promo-video video {
    width: 100%;
    max-height: 180px;
    border-radius: 16px;
}
.no-promos {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 24px;
    color: var(--gray);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    main { padding: 1rem; }
    
    /* --- HEADER MÓVIL MEJORADO --- */
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
        text-align: left;
    }
    header.scrolled { padding: 0.5rem 1rem; }
    
    .logo img { max-height: 45px; }
    
    /* Ocultamos el menú tradicional */
    header > nav {
        display: none;
    }
    
    .user-area {
        margin-left: 0;
        margin-top: 0;
        justify-content: flex-end;
    }
    
    .hamburger-btn {
        display: flex;
        margin-left: 0.5rem;
    }
    /* --- FIN HEADER MÓVIL --- */
    
    .hero { height: 200px; border-radius: 16px; }
    .hero-controls button { width: 32px; height: 32px; font-size: 1rem; }
    .promo-bar-led { font-size: 0.75rem; padding: 0.5rem 0; }
    .promo-bar-led img { height: 18px; }
    .filters-row { flex-direction: column; align-items: stretch; }
    .search-box input { width: 100%; }
    .category-tabs { gap: 0.3rem; }
    .category-tab { padding: 0.4rem 1rem; font-size: 0.8rem; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
    .product-card img { height: 180px; }
    .product-card .info { padding: 0.8rem; }
    .product-card h3 { font-size: 0.9rem; }
    .price { font-size: 1rem; }
    .btn { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
    .product-detail { grid-template-columns: 1fr; gap: 1rem; }
    .product-gallery { padding: 0.5rem; }
    .main-image img { max-height: 250px; }
    .thumbnails img { width: 45px; height: 45px; }
    .product-detail-right h1 { font-size: 1.4rem; }
    .current-price { font-size: 1.4rem; }
    .variant-selector select { max-width: 100%; font-size: 0.85rem; padding: 0.6rem 1rem; }
    .variant-stock { font-size: 0.8rem; padding: 0.6rem; width: 100%; }
    .product-actions .btn-large { max-width: 100%; width: 100%; padding: 0.7rem; }
    .cart-item { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
    .cart-item img { width: 100%; max-width: 120px; height: auto; }
    .cart-item-details { width: 100%; }
    .cart-item-price { align-self: flex-end; }
    .cart-summary { text-align: center; }
    .admin-menu { padding: 1rem; gap: 0.5rem; justify-content: center; }
    .admin-menu button { padding: 0.5rem 1rem; font-size: 0.75rem; }
    .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
    .admin-table th, .admin-table td { padding: 8px; font-size: 0.8rem; }
    #productForm .form-row { flex-direction: column; gap: 0.5rem; }
    .variant-table { display: block; overflow-x: auto; }
    .inventory-product { padding: 0.8rem; }
    .inventory-table { display: block; overflow-x: auto; }
    .stock-input { width: 60px; }
    .report-card { padding: 0.8rem; }
    .report-card h2 { font-size: 1.2rem; }
    .modal-content { width: 95%; margin: 15% auto; padding: 1.2rem; }
    .modal-content h2 { font-size: 1.3rem; }
    footer { padding: 1.5rem 1rem 1rem; }
    footer .footer-content { grid-template-columns: 1fr; gap: 1.2rem; text-align: center; }
    footer .footer-section h3 { font-size: 1rem; }
    footer .footer-section p { font-size: 0.8rem; }
    .toast {
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
        font-size: 0.85rem;
        padding: 10px;
        animation: slideInUp 0.3s ease, fadeOut 0.5s ease 2.5s forwards;
    }
    @keyframes slideInUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    main { padding: 1.5rem; }
    .hero { height: 350px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
    .product-card img { height: 220px; }
    .product-detail { gap: 1.5rem; }
    .admin-menu button { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
    .variant-selector select { max-width: 240px; }
    .product-actions .btn-large { max-width: 240px; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .hero { height: 180px; }
    .category-tab { padding: 0.3rem 0.8rem; font-size: 0.7rem; }
    .product-card h3 { font-size: 0.85rem; }
    .price { font-size: 0.9rem; }
    .btn { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
    .admin-menu button { width: 100%; text-align: center; }
}
/* ==================== PÁGINA QUIÉNES SOMOS (CON ONDAS Y TEXTO JUSTIFICADO) ==================== */
.about-page-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0f1e 0%, #0e1a2f 50%, #1a2a4f 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-x: hidden;
}

/* Fondo animado con ondas */
.about-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 100% 100% 0 0;
    animation: wave 12s ease-in-out infinite;
}
.wave:nth-child(2) {
    bottom: 10px;
    background: rgba(232, 67, 147, 0.06);
    animation: wave 14s ease-in-out infinite reverse;
}
.wave:nth-child(3) {
    bottom: 20px;
    background: rgba(255, 255, 255, 0.04);
    animation: wave 16s ease-in-out infinite;
}
@keyframes wave {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-4%) translateY(-12px); }
}

.about-page-container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
}
.about-page-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 48px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(2px);
    animation: fadeInUp 0.5s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.about-hero {
    text-align: center;
    margin-bottom: 3rem;
}
.about-hero h1 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
.about-hero h1::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background: var(--accent);
    margin: 0.5rem auto 0;
    border-radius: 3px;
}
.about-hero-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--black);
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}
.about-mv {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.about-mv-card {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 32px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.about-mv-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.about-mv-card h2 {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--gold);
    padding-left: 1rem;
}
.justified-text {
    text-align: justify;
    color: var(--gray);
    line-height: 1.6;
    font-size: 1rem;
}
.about-empty {
    text-align: center;
    padding: 3rem;
}
.about-empty h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}
@media (max-width: 768px) {
    .about-page-main { padding: 1rem; }
    .about-page-content { padding: 1.5rem; border-radius: 32px; }
    .about-hero h1 { font-size: 1.8rem; }
    .about-hero-text { font-size: 0.95rem; }
    .about-mv-card { padding: 1.2rem; }
    .about-mv-card h2 { font-size: 1.4rem; }
    .justified-text { font-size: 0.9rem; }
}
/* ==================== MEJORAS PARA ADMIN - CONFIGURACIÓN GENERAL ==================== */
.settings-section {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s;
}
.settings-section:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.settings-section h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.admin-field {
    margin-bottom: 1rem;
}
.admin-field label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.admin-field input, 
.admin-field textarea, 
.admin-field select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: white;
}
.admin-field input:focus, 
.admin-field textarea:focus, 
.admin-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 67, 147, 0.2);
}
.admin-field textarea {
    resize: vertical;
}
.btn-save {
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: inline-block;
    margin-top: 0.5rem;
}
.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* ==================== REPORTES MEJORADOS ==================== */
.reports-dashboard {
    animation: fadeIn 0.3s ease;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 1.2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    border-radius: 24px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.chart-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.data-table {
    background: white;
    border-radius: 24px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.table-wrapper {
    overflow-x: auto;
}

.date-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.date-filters label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.date-filters input {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 12px;
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    .stats-cards {
        grid-template-columns: 1fr 1fr;
    }
}
.chart-card {
    overflow-x: auto;
}
.chart-card canvas {
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
}
/* ==================== SKELETON SCREEN ==================== */
.skeleton-card {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 20px;
    height: 380px;
    animation: shimmer 1.5s infinite;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 768px) {
    .skeleton-card { height: 300px; }
}
@media (max-width: 480px) {
    .skeleton-card { height: 280px; }
}
/* ==================== REGISTRO REDISEÑADO ==================== */
.registro-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}
.registro-container {
    max-width: 700px;
    width: 100%;
    background: var(--white);
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    border: 1px solid rgba(212, 175, 55, 0.15);
}
.registro-header {
    text-align: center;
    margin-bottom: 2rem;
}
.registro-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.registro-header p {
    color: var(--gray);
    font-size: 0.95rem;
}
.registro-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-row-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-group-compact {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.form-group-compact label {
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-group-compact input {
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}
.form-group-compact input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 67, 147, 0.15);
}
.form-group-compact input::placeholder {
    color: #adb5bd;
    font-size: 0.85rem;
}
.checkbox-group {
    margin: 0.25rem 0;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--gray);
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    display: none;
}
.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: inline-block;
    position: relative;
    transition: var(--transition);
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--accent);
    border-color: var(--accent);
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.checkbox-label a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.checkbox-label a:hover {
    text-decoration: underline;
}
.btn-registro-submit {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    border: none;
    padding: 0.9rem;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    box-shadow: var(--shadow-sm);
}
.btn-registro-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.registro-message {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 24px;
}
.registro-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}
.registro-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.registro-footer a:hover {
    text-decoration: underline;
}
@media (max-width: 600px) {
    .registro-container { padding: 1.8rem; }
    .form-row-dual { grid-template-columns: 1fr; gap: 0.75rem; }
    .registro-header h1 { font-size: 1.6rem; }
}
/* ==================== BOTÓN FLOTANTE WHATSAPP ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 768px) {
    .whatsapp-float { width: 50px; height: 50px; bottom: 15px; right: 15px; }
    .whatsapp-float img { width: 24px !important; height: 24px !important; }
}
/* ==================== BOTÓN VOLVER ARRIBA (ELEGANTE CON PROGRESO) ==================== */
.scroll-top-btn {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top-btn:hover {
    transform: translateY(-5px);
    background: var(--primary);
    color: var(--gold);
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
}
.scroll-top-btn span {
    position: relative;
    z-index: 2;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.3s ease;
}
.scroll-top-btn:hover span {
    transform: translateY(-2px);
}
.progress-ring {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 48px;
    height: 48px;
    transform: rotate(-90deg);
    z-index: 1;
}
.progress-ring-circle {
    fill: none;
    stroke: var(--gold);
    stroke-width: 2.5;
    stroke-dasharray: 125.6;
    stroke-dashoffset: 125.6;
    transition: stroke-dashoffset 0.1s linear, stroke 0.3s ease;
}
.scroll-top-btn:hover .progress-ring-circle {
    stroke: white;
}
@media (max-width: 768px) {
    .scroll-top-btn { bottom: 85px; right: 15px; width: 44px; height: 44px; }
    .progress-ring { width: 44px; height: 44px; }
    .progress-ring-circle { r: 18; }
}
/* ==================== ANIMACIÓN BOTÓN AGREGAR AL CARRITO ==================== */
.btn.add-to-cart,
#addToCartDetailBtn {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, background 0.2s ease;
}
.btn.add-to-cart:active,
#addToCartDetailBtn:active {
    transform: scale(0.95);
}
.btn.add-to-cart.added,
#addToCartDetailBtn.added {
    background: #28a745;
    pointer-events: none;
}
.btn.add-to-cart.added::after,
#addToCartDetailBtn.added::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    animation: checkPop 0.3s ease;
}
@keyframes checkPop {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
/* ==================== ICONOS REDES SOCIALES EN FOOTER ==================== */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}
.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}
/* ==================== SELECTOR DE CANTIDAD MEJORADO ==================== */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 40px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.qty-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover {
    background: var(--accent);
    color: white;
}
.qty-input {
    width: 50px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--black);
    background: var(--white);
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-input:focus {
    outline: none;
    background: var(--light-bg);
}
/* ==================== BREADCRUMBS (MIGAS DE PAN) ==================== */
.breadcrumbs {
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray);
    border-bottom: 1px solid var(--border);
}
.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.breadcrumbs li {
    display: flex;
    align-items: center;
}
.breadcrumbs li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--gray);
    font-size: 1.1rem;
}
.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.breadcrumbs a:hover {
    color: var(--accent);
    text-decoration: underline;
}
.breadcrumbs span {
    color: var(--accent);
    font-weight: 600;
}
/* ==================== MEJORA TÁCTIL PARA MÓVILES ==================== */
@media (max-width: 768px) {
    .qty-btn, .btn-sm, .remove-item, .category-tab, .hero-controls button,
    .btn-login, .btn-logout, .btn-registro-submit, .btn-login-submit {
        min-width: 44px;
        min-height: 44px;
    }
    .qty-btn { width: 44px; height: 44px; }
    .qty-input { height: 44px; }
    .remove-item { padding-left: 16px; padding-right: 16px; }
}
/* ==================== MENÚ HAMBURGUESA PARA MÓVIL ==================== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}
.hamburger-btn span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.hamburger-btn.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

header .main-nav.active {
    display: block !important;
}

@media (max-width: 768px) {
    .hamburger-btn { display: flex; }
    header nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 9999;
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }
    header nav.active { transform: translateY(0); }
    header nav ul { flex-direction: column; gap: 1rem; text-align: center; }
    header nav a { font-size: 1.1rem; display: block; padding: 0.5rem; }
    .user-area { margin-left: auto; }
    header > .user-area .btn-login { display: inline-block; }
}
/* Spinner para botones */
.btn.loading {
    opacity: 0.7;
    cursor: wait;
}
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
/* ==================== MODO OSCURO ==================== */
body.dark-mode {
    --primary: #121826;
    --primary-dark: #0a0e14;
    --accent: #f06292;
    --accent-dark: #ec407a;
    --gold: #dfb83c;
    --white: #1e1e2f;
    --light-bg: #2a2a3a;
    --black: #f0f0f0;
    --gray: #b0b0b0;
    --border: #3a3a4a;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .product-card,
body.dark-mode .admin-table,
body.dark-mode .modal-content,
body.dark-mode .login-card,
body.dark-mode .registro-container,
body.dark-mode .cost-calculator-container,
body.dark-mode .stat-card,
body.dark-mode .chart-card,
body.dark-mode .settings-section {
    background: var(--white);
    color: var(--black);
    border-color: var(--border);
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: var(--light-bg);
    color: var(--black);
    border-color: var(--border);
}

body.dark-mode .category-tab {
    background: var(--light-bg);
    color: var(--black);
}

body.dark-mode .category-tab.active {
    background: var(--accent);
    color: white;
}

body.dark-mode .btn-darkmode {
    background: none;
    color: white;
}

.btn-darkmode:hover {
    opacity: 0.8;
}
/* Botón de registro deshabilitado */
.btn-registro-submit:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}
/* Indicador fijo "Click para ampliar" */
.product-gallery .main-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.product-gallery .main-image::after {
    content: "🔍 Click para ampliar";
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.85;        /* ← siempre visible */
    pointer-events: none; /* para que no bloquee el clic */
}
/* ==================== DESCRIPCIÓN DE PRODUCTO MEJORADA ==================== */
.product-description h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-description .desc-text {
    text-align: justify;
    line-height: 1.8;
    font-size: 1rem;
    color: #444;
    white-space: pre-line;       /* Respeta los saltos de línea que pongas en el textarea */
    font-family: 'Inter', 'Segoe UI', sans-serif;
}