/* Login/Register Pages */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* quitar recuadro gris claro detrás */
    padding: 40px 0; /* separar del header sin recuadro */
}
.login-box {
    background: rgba(17, 17, 17, 0.98);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(171, 114, 255, 0.1);
    padding: 40px 32px;
    min-width: 380px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.8s cubic-bezier(.4,2,.6,1);
    backdrop-filter: blur(10px);
}
.login-box h2 {
    color: var(--accent);
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 0 0 12px rgba(171, 114, 255, 0.4);
    font-size: 1.8rem;
}
/* Notificaciones (alertas) estilo tipo UnixLicenses */
.alert {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2200;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    font-weight: 600;
    color: #fff;
    min-width: 220px;
    max-width: calc(100% - 40px);
}
.alert.show { display: block; animation: slideIn 0.32s cubic-bezier(.2,.9,.2,1); }
.alert.alert-error { background: linear-gradient(90deg,#ff6b6b,#ff4757); }
.alert.alert-success { background: linear-gradient(90deg,#4ade80,#10b981); }

@keyframes slideIn {
    from { transform: translateY(-8px) scale(0.98); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.// Notificaciones top-right (nuevo sistema)
#notif-container-top-right {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 2300;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}
.notif-box {
    pointer-events: auto;
    background: linear-gradient(90deg,#1f2937, #111827);
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 36px rgba(0,0,0,0.6);
    min-width: 320px;
    max-width: 420px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 14px;
    transform-origin: right top;
    transition: opacity .18s ease, transform .18s ease;
}
.notif-box .notif-content { flex: 1; font-size: 0.95rem; color: #fff; }
.notif-box .notif-close { background: transparent; border: none; color: #ffffffcc; cursor: pointer; font-size: 14px; }
.notif-box.notif-info { background: linear-gradient(90deg,#334155,#0f172a); }
.notif-box.notif-error { background: linear-gradient(90deg,#ef4444,#dc2626); }
.notif-box.notif-success { background: linear-gradient(90deg,#10b981,#059669); }

/* Asegurar que el contenedor principal no cree un recuadro visible */
.main-content .login-container { background: transparent; }

/* Ajustes responsivos para auth */
@media (max-width: 768px) {
    .login-container { padding: 24px 0; }
    .login-box { width: 100%; max-width: 420px; padding: 28px; }
}

/* Estilos para checkbox de términos en register: checkbox arriba, texto centrado */
.terms-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.terms-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}
.terms-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
    max-width: 320px;
}
.terms-text a {
    color: var(--accent);
    text-decoration: underline;
}
.terms-text a:hover { color: #ffffff; }
/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: rgba(17, 17, 17, 0.6);
    --bg-card-hover: rgba(25, 25, 25, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #a8b3cf;
    --accent: #a970ff;
    --accent-rgba: rgba(171, 114, 255, 0.4);
    --accent-light: rgba(171, 114, 255, 0.1);
    --border-color: rgba(171, 114, 255, 0.15);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    --navbar-bg: rgba(17, 17, 17, 0.85);
    --navbar-hover: rgba(17, 17, 17, 0.95);
}

.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(245, 245, 245, 0.95);
    --text-primary: #000000;
    --text-secondary: #333333;
    --accent: #000000;
    --accent-rgba: rgba(0, 0, 0, 0.4);
    --accent-light: rgba(0, 0, 0, 0.1);
    --border-color: rgba(0, 0, 0, 0.15);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    zoom: 1.0;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Navbar Premium */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.navbar:hover {
    background: var(--navbar-hover);
    border-bottom-color: var(--accent-rgba);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.nav-brand:hover {
    transform: translateX(5px);
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px var(--accent-rgba);
    transition: all 0.3s ease;
}

.nav-logo:hover {
    box-shadow: 0 0 30px var(--accent-rgba);
    transform: rotate(5deg) scale(1.05);
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--accent) 0%, #c71585 100%);
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* User Menu Dropdown */
.user-menu-dropdown {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(171, 114, 255, 0.05);
    border: 1px solid transparent;
}

.user-menu-trigger:hover {
    background: rgba(171, 114, 255, 0.1);
    border-color: rgba(171, 114, 255, 0.2);
    transform: translateY(-2px);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #ab72ff;
    box-shadow: 0 0 15px rgba(171, 114, 255, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ab72ff;
    font-size: 18px;
}

.user-name {
    font-weight: 600;
    color: #ffffff;
}

.dropdown-arrow {
    color: #a8b3cf;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(171, 114, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(171, 114, 255, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: rgba(171, 114, 255, 0.1);
    border-left-color: #ab72ff;
    padding-left: 1.5rem;
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: #ab72ff;
}

.dropdown-item span {
    font-weight: 500;
}

.logout-item:hover {
    background: rgba(248, 113, 113, 0.1);
    border-left-color: #f87171;
}

.logout-item i {
    color: #f87171;
}

.dropdown-divider {
    height: 1px;
    background: rgba(171, 114, 255, 0.15);
    margin: 0.5rem 0;
}

/* Buttons Premium */
.btn {
    padding: 0.7rem 1.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #ab72ff 0%, #c71585 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(171, 114, 255, 0.4);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(171, 114, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-gray {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(73, 80, 87, 0.4);
    border: 1px solid transparent;
}

.btn-gray:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.btn-gray:active {
    transform: translateY(-1px) scale(0.98);
}

/* Main content */
.main-content {
    padding: 40px;
    flex: 1;
    margin-top: 20px;
}

.section {
    margin-bottom: 60px;
}

.section h1, .section h2 {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(171, 114, 255, 0.4);
    margin-bottom: 20px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    justify-items: center;
}

.product-card {
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    width: 100%;
    max-width: 350px;
    margin: 0 15px;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

.product-card p {
    color: #a8b3cf;
    margin-bottom: 15px;
}

.product-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Account Page */
.account-section {
    padding: 80px 40px;
    min-height: 70vh;
}

.account-header {
    text-align: center;
    margin-bottom: 40px;
}

.account-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.account-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.account-content {
    max-width: 800px;
    margin: 0 auto;
}

.account-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.account-card h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: var(--text-primary);
}

.info-item span {
    color: var(--text-secondary);
}

.account-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    .account-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Admin Panel */
.admin-section {
    padding: 80px 40px;
    min-height: 70vh;
}

.admin-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.add-product, .products-list {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.add-product form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.products-list table {
    width: 100%;
    border-collapse: collapse;
}

.products-list th, .products-list td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Footer Premium */
.footer {
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem 1rem;
    margin-top: 8rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, #c71585 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent);
    color: var(--text-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--accent-rgba);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-links i {
    color: var(--accent);
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(171, 114, 255, 0.1);
    border: 1px solid rgba(171, 114, 255, 0.3);
    border-radius: 8px;
    color: #ab72ff;
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-badge i {
    font-size: 1rem;
}

/* Product Detail */
.product-detail {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.product-detail img {
    width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.product-info {
    flex: 1;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    max-width: 600px;
}

.product-info h1 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.product-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 2rem;
}

.menu-item a:hover {
    background-color: rgba(138, 43, 226, 0.2);
    border-radius: 10px;
}

/* Tooltips */
.menu-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ff1493;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-size: 12px;
    margin-left: 10px;
}

.menu-item:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Iconos (usando CSS para simplicidad, en producción usar iconos reales) */
.icon-home::before { content: "🏠"; }
.icon-products::before { content: "🛍️"; }
.icon-offers::before { content: "💰"; }
.icon-contact::before { content: "📞"; }
.icon-account::before { content: "👤"; }

/* Contenido principal */
.main-content {
    margin-left: 90px;
    padding: 32px 24px 24px 24px;
    width: calc(100% - 90px);
    transition: margin-left 0.3s cubic-bezier(.4,2,.6,1);
    font-family: 'Rubik', Arial, sans-serif;
}


.section {
    margin-bottom: 40px;
    animation: fadeIn 0.7s cubic-bezier(.4,2,.6,1);
}

h1, h2 {
    color: #ff00cc;
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 8px #ff00cc44;
}


.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 18px;
}

.product-card {
    background: var(--bg-card);
    padding: 18px 12px 20px 12px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
    will-change: box-shadow, transform;
    animation: fadeIn 0.7s cubic-bezier(.4,2,.6,1);
}
.product-card:hover {
    box-shadow: 0 0 32px 2px var(--accent-rgba);
    transform: scale(1.03);
}
.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 0 12px #ff00cc33;
}


.btn {
    background: linear-gradient(90deg, var(--accent) 0%, #a100ff 100%);
    color: var(--text-primary);
    border: none;
    padding: 12px 28px;
    border-radius: 32px;
    cursor: pointer;
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    box-shadow: 0 0 8px var(--accent-rgba);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    will-change: background, box-shadow, transform;
}
.btn:hover, .btn:focus {
    background: linear-gradient(90deg, #a100ff 0%, var(--accent) 100%);
    box-shadow: 0 0 16px var(--accent-rgba);
    transform: scale(1.04);
}


form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: 'Rubik', Arial, sans-serif;
}
input, textarea {
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    background: rgba(42, 42, 42, 0.8);
    color: var(--text-primary);
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 1px rgba(171, 114, 255, 0.1);
}
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(171, 114, 255, 0.6);
    background: rgba(50, 50, 50, 0.9);
}
textarea {
    resize: vertical;
    min-height: 100px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

/* Hero principal similar a Zaryx Studios */
.hero-section {
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem;
    position: relative;
    overflow: visible;
    background: transparent; /* Mostrar el fondo gris del body en lugar del recuadro negro */
}

.hero-content {
    max-width: 1100px;
    text-align: center;
    padding: 2rem;
    background: transparent; /* Sin fondo adicional */
}

.hero-title {
    font-size: clamp(2.2rem, 5.6vw, 5rem);
    line-height: 1.02;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 6px 30px rgba(0,0,0,0.6), 0 0 24px rgba(171,114,255,0.12);
    font-weight: 800;
}

.hero-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.6rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta .btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 1rem;
}

.about-section {
    padding: 6rem 1.5rem;
    border-top: 1px solid rgba(171,114,255,0.06);
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.02) 100%);
}

.about-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-section h2 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.about-section p {
    color: var(--text-secondary);
    max-width: 820px;
    margin: 0 auto 1.6rem auto;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badge {
    padding: 0.5rem 0.9rem;
    background: rgba(171,114,255,0.06);
    border: 1px solid rgba(171,114,255,0.12);
    color: #d9c9ff;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-section { padding: 4rem 1rem; }
}

/* Ajuste específico para la página de productos: reducir altura del hero para acercar el grid */
.hero-section.hero-products {
    min-height: 58vh; /* menos altura que el hero principal */
    padding-top: 4rem;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-section.hero-products { min-height: 40vh; padding-top: 2.5rem; padding-bottom: 1rem; }
}


/* Auth Pages Enhancements */
.login-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(171, 114, 255, 0.3);
}

.auth-form {
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    z-index: 1;
}

.input-group input {
    padding-left: 40px;
    width: 100%;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-error {
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid rgba(255, 59, 59, 0.3);
    color: #ff6b6b;
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(171, 114, 255, 0.4);
}

.auth-links {
    margin-top: 24px;
    text-align: center;
}

.auth-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #c77dff;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
        min-width: 280px;
    }
    
    .login-logo {
        width: 60px;
        height: 60px;
    }
}

/* Hero Section */
.hero-section {
    padding: 100px 40px;
    text-align: center;
}

.hero-content h1 {
    font-size: 6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(171, 114, 255, 0.4);
}

/* Cart Icon */
.cart-container {
    position: relative;
    margin-right: 20px;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.cart-container:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.2);
    transform: translateY(-2px);
}

.cart-link {
    display: flex;
    align-items: center;
    color: #28a745;
    text-decoration: none;
    font-size: 1.2rem;
    position: relative;
}

.cart-icon {
    font-size: 1.5rem;
    margin-right: 5px;
}

.cart-count {
    color: #ffffff;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 1rem;
    font-weight: bold;
    margin-left: 8px;
    min-width: 18px;
    text-align: center;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.hero-divider {
    width: 100%;
    height: 1px;
    background: rgba(171, 114, 255, 0.2);
    margin: 60px 0;
    border: none;
}

.hero-subtitle {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--accent);
    margin: 80px 0 20px 0;
    text-shadow: 0 0 15px rgba(171, 114, 255, 0.3);
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.badge {
    background: rgba(171, 114, 255, 0.1);
    border: 1px solid rgba(171, 114, 255, 0.3);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(171, 114, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(171, 114, 255, 0.2);
}

/* Hero Section - Removed */
.filters-form {
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 30px;
}

.filters-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group input, .filter-group select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Rubik', sans-serif;
}

.filter-group input:focus, .filter-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(171, 114, 255, 0.2);
}

.filter-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    margin-bottom: 5px;
}

.cart-total {
    text-align: center;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cart-total h2 {
    margin-bottom: 20px;
}

.featured-section {
    padding: 200px 40px 80px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.featured-section h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 50px;
    text-shadow: 0 0 15px rgba(171, 114, 255, 0.3);
}

.featured-section .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .featured-section .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}