@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800;900&display=swap');

:root {
    --bg-main: #f9fafb;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --footer-bg: #0b1120;
    --glow-color: rgba(59, 130, 246, 0.1);
    --bg-pattern: radial-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    --aurora-1: #3b82f6;
    --aurora-2: #8b5cf6;
}

[data-theme="dark"] {
    --bg-main: #030712; /* Un negro/azul más profundo y elegante */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --footer-bg: #060913;
    --glow-color: rgba(96, 165, 250, 0.12);
    --bg-pattern: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    --aurora-1: #3b82f6;
    --aurora-2: #ec4899;
}

/* Scrollbar Ultra Moderno */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; border: 2px solid var(--bg-main); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Configuración básica */
body { 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    margin: 0; 
    padding: 0; 
    background-color: var(--bg-main); 
    background-image: var(--bg-pattern);
    background-size: 24px 24px;
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* --- Pre-cargador --- */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-main); z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.5s ease, visibility 0.5s ease; }
#preloader img { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; margin-bottom: 20px; animation: pulse-glow 2s infinite; border: 2px solid var(--aurora-1); background: #111; padding: 4px; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--border-color); border-top-color: var(--aurora-1); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse-glow { 0% { transform: scale(1); box-shadow: 0 0 0 0 var(--glow-color); } 70% { transform: scale(1.05); box-shadow: 0 0 0 30px rgba(59, 130, 246, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }

/* --- Ocultar elementos de Google Translate --- */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }
#goog-gt-tt { display: none !important; }
.goog-text-highlight { background-color: transparent !important; box-shadow: none !important; }

/* Encabezado y Navegación */
header { 
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff; 
    padding: 1rem 4rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky;
    top: 0;
    z-index: 900;
    border-bottom: 1px solid var(--border-color);
}
header img { height: 50px; width: 50px; object-fit: cover; border-radius: 50%; transition: all 0.3s ease; border: 2px solid rgba(255,255,255,0.1); background: #111; }
header img:hover { transform: scale(1.1) rotate(5deg); box-shadow: 0 0 20px var(--glow-color); border-color: var(--aurora-1); }
.menu-toggle { display: none; color: white; cursor: pointer; }
nav { display: flex; align-items: center; }
nav a { 
    color: #fff; 
    margin: 0 5px; 
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none; 
    cursor: pointer; 
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
nav a:hover { color: var(--aurora-1); background: rgba(255,255,255,0.05); transform: translateY(-2px); }

/* Dropdown Menú Usuario */
.user-menu { position: relative; display: inline-flex; align-items: center; margin-left: 10px; }
.avatar-icon { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 16px; border-radius: 30px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.3s; }
.avatar-icon:hover { background: rgba(255, 255, 255, 0.2); }
.user-name { font-weight: 600; font-size: 0.9rem; }
.dropdown-content { display: none; position: absolute; top: 120%; right: 0; background-color: var(--card-bg); min-width: 180px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); z-index: 1000; }
.dropdown-content a { color: var(--text-main); padding: 12px 20px; margin: 0; display: block; border-bottom: 1px solid var(--border-color); font-weight: 500; }
.dropdown-content a:hover { background-color: var(--bg-main); color: var(--aurora-1); }
.dropdown-content a:last-child { border-bottom: none; }

/* Estilos para Submenús (Dropdown) */
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.nav-link.has-submenu {
    display: flex;
    align-items: center;
    gap: 5px;
}
.nav-link.has-submenu svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}
.nav-dropdown:hover .nav-link.has-submenu svg {
    transform: rotate(180deg);
}
.nav-dropdown-content {
    display: none;
    position: absolute;
    background-color: #0f172a; /* Mismo color que la cabecera */
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3);
    z-index: 1;
    border-radius: 12px;
    margin-top: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    padding: 8px 0;
}
.nav-dropdown-content a { color: white; padding: 10px 20px; text-decoration: none; display: block; text-align: left; border-radius: 0; margin: 0; width: 100%; box-sizing: border-box; font-weight: 500; font-size: 0.9rem; }
.nav-dropdown-content a:hover { background-color: rgba(255,255,255,0.1); color: var(--aurora-1); transform: none; }
.nav-dropdown:hover .nav-dropdown-content { display: block; }

/* Secciones principales */
section { 
    padding: 3rem 2rem; 
    margin: 2rem auto; 
    max-width: 1100px; 
    background: transparent;
    scroll-margin-top: 90px;
}
h2 { font-size: 3rem; color: var(--text-main); margin-bottom: 0.5rem; text-align: center; font-weight: 900; letter-spacing: -1px; }
section > p { text-align: center; color: var(--text-muted); margin-bottom: 3rem; font-size: 1.1rem; }

/* Buscador de Productos */
.search-container { max-width: 600px; margin: 0 auto 1.5rem auto; text-align: center; }
#buscador-demos { width: 100%; padding: 14px 20px; font-size: 1rem; border-radius: 30px; border: 1px solid var(--border-color); background: var(--bg-main); color: var(--text-main); transition: all 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.05); outline: none; }
#buscador-demos:focus { border-color: var(--aurora-1); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }

/* Botones de Filtro y Etiquetas */
.filter-container { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 2.5rem; }
.filter-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); padding: 8px 18px; border-radius: 20px; font-size: 0.9rem; cursor: pointer; transition: all 0.3s; width: auto; font-weight: 500; box-shadow: none; }
.filter-btn:hover { background: var(--border-color); transform: none; box-shadow: none; }
.filter-btn.active { background: var(--aurora-1); color: white; border-color: var(--aurora-1); box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3); }

/* Hero / Inicio */
#inicio {
    position: relative;
    z-index: 1;
    text-align: center;
    background: var(--card-bg);
    color: var(--text-main);
    padding: 8rem 2rem;
    border-radius: 24px;
    margin-top: 3rem;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 20px 40px -10px var(--glow-color);
    overflow: hidden;
}
[data-theme="light"] #inicio { box-shadow: inset 0 1px 0 rgba(255,255,255,1), 0 20px 40px -10px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.05); }
.hero-content { position: relative; z-index: 2; }
.glow-orb { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; opacity: 0.7; pointer-events: none; }
.orb-1 { top: -20%; left: -10%; width: 50vw; height: 50vw; background: var(--aurora-1); opacity: 0.15; max-width: 400px; max-height: 400px; animation: spin 20s linear infinite alternate; }
.orb-2 { bottom: -20%; right: -10%; width: 50vw; height: 50vw; background: var(--aurora-2); opacity: 0.15; max-width: 400px; max-height: 400px; animation: spin 25s linear infinite; }
.orb-3 { top: 20%; left: 30%; width: 40vw; height: 40vw; background: var(--aurora-1); opacity: 0.1; max-width: 500px; max-height: 500px; animation: spin 30s linear infinite reverse; }
.hero-badge { display: inline-block; padding: 8px 22px; background: linear-gradient(var(--bg-main), var(--bg-main)) padding-box, linear-gradient(90deg, var(--aurora-1), var(--aurora-2)) border-box; border: 1px solid transparent; color: var(--text-main); border-radius: 50px; font-size: 0.95rem; font-weight: 700; margin-bottom: 2rem; box-shadow: 0 0 30px var(--glow-color); animation: float 4s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-5px); } 100% { transform: translateY(0px); } }
#inicio h1 { font-size: 4.8rem; font-weight: 900; margin-bottom: 1.5rem; line-height: 1.1; letter-spacing: -2.5px; }
#inicio h1 span { background: linear-gradient(300deg, var(--aurora-1) 0%, var(--aurora-2) 50%, var(--aurora-1) 100%); background-size: 200% 200%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: shine 4s ease infinite; }
@keyframes shine { to { background-position: 200% center; } }
#inicio p { font-size: 1.35rem; color: var(--text-muted); max-width: 750px; margin: 0 auto; line-height: 1.8; font-weight: 400; }
.hero-shape { position: absolute; border-radius: 50%; background: var(--aurora-1); filter: blur(120px); z-index: 0; pointer-events: none; }
.shape-1 { width: 300px; height: 300px; top: -100px; left: -100px; background: var(--aurora-2); opacity: 0.2; animation: float 8s ease-in-out infinite alternate; }
.shape-2 { width: 400px; height: 400px; bottom: -150px; right: -150px; opacity: 0.25; animation: float 10s ease-in-out infinite; }
.shape-3 { width: 250px; height: 250px; bottom: 50px; left: 100px; background: var(--aurora-2); opacity: 0.15; animation: float 12s ease-in-out infinite reverse; }
[data-theme="dark"] .hero-shape { filter: blur(150px); }
[data-theme="dark"] .shape-1 { opacity: 0.3; }
[data-theme="dark"] .shape-2 { opacity: 0.4; }
[data-theme="dark"] .shape-3 { opacity: 0.2; }

/* Client Scroller */
#clients { padding-top: 0; padding-bottom: 0; }
.scroller { max-width: 900px; margin: auto; }
.scroller__inner { padding-block: 1rem; display: flex; flex-wrap: wrap; gap: 4rem; list-style: none; margin: 0; padding: 0; }
.scroller[data-animated="true"] .scroller__inner { width: max-content; flex-wrap: nowrap; animation: scroll 40s linear infinite; }
.scroller__inner img { max-height: 40px; filter: grayscale(1); opacity: 0.6; transition: all 0.3s; }
.scroller__inner img:hover { filter: grayscale(0); opacity: 1; }
[data-theme="dark"] .scroller__inner img { filter: brightness(0) invert(1); opacity: 0.5; }
[data-theme="dark"] .scroller__inner img:hover { opacity: 1; }

@keyframes scroll {
  to {
    transform: translate(calc(-50% - 2rem));
  }
}

.scroller[data-speed="fast"] {
  animation-duration: 20s;
}
.scroller[data-speed="slow"] {
  animation-duration: 60s;
}

.section-link { text-align: center; margin-top: 2.5rem; }

/* Features Section */
.feature-card { text-align: center; padding: 2rem; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; }
.feature-icon { font-size: 3rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* --- Nuestro Proceso --- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; position: relative; }
.process-step { background: var(--card-bg); padding: 2.5rem 2rem; border-radius: 16px; text-align: center; border: 1px solid var(--border-color); transition: all 0.3s ease; }
.process-step:hover { transform: translateY(-5px); border-color: var(--aurora-1); box-shadow: 0 15px 30px -10px var(--glow-color); }
.step-number { width: 50px; height: 50px; background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2)); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; margin: 0 auto 1.5rem; box-shadow: 0 5px 15px var(--glow-color); }
.process-step h3 { margin-bottom: 1rem; color: var(--text-main); font-size: 1.2rem; }
.process-step p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Testimonials Preview Section */
.testimonials-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 900px; margin: 0 auto; }
.testimonial-card { background: var(--card-bg); border: 1px solid var(--border-color); padding: 2rem; border-radius: 16px; }
.testimonial-card p { font-style: italic; color: var(--text-muted); border-left: 3px solid var(--aurora-1); padding-left: 1.5rem; margin-top: 0; }
.testimonial-card h4 { text-align: right; margin-bottom: 0; }

/* CTA Section */
#cta {
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
    color: white;
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
}
#cta h2 { color: white; }
#cta p { color: white; opacity: 0.9; margin-bottom: 2rem; }
#cta .btn-primary {
    background: white;
    color: var(--aurora-1);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
}
#cta .btn-primary:hover {
    background: var(--bg-main);
    color: var(--aurora-1);
}


.hero-buttons { display: flex; gap: 15px; justify-content: center; margin-top: 2.5rem; }

/* Sistema de grilla para tarjetas */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2.5rem; 
    margin-top: 1.5rem;
}
.card { 
    background: var(--card-bg);
    border: 1px solid var(--border-color); 
    padding: 2.5rem 2rem; 
    text-align: center; 
    border-radius: 16px; 
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px -10px var(--glow-color); border-color: #3b82f6; }
.card img { max-width: 100%; height: auto; border-radius: 12px; margin-bottom: 1rem;}

/* Diseño de Mockup de Navegador para Demos */
.demo-container { border-radius: 12px; overflow: hidden; background: var(--card-bg); border: 1px solid var(--border-color); position: relative; display: flex; flex-direction: column; height: 280px; margin-bottom: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.4s ease; }
.card:hover .demo-container { transform: scale(1.02); border-color: rgba(59, 130, 246, 0.4); }
.browser-bar { background: rgba(15, 23, 42, 0.03); padding: 10px 15px; display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--border-color); z-index: 4; position: relative; }
[data-theme="dark"] .browser-bar { background: rgba(255, 255, 255, 0.05); }
.browser-bar .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.browser-bar .dot.red { background: #ff5f56; box-shadow: 0 0 5px rgba(255,95,86,0.5); }
.browser-bar .dot.yellow { background: #ffbd2e; box-shadow: 0 0 5px rgba(255,189,46,0.5); }
.browser-bar .dot.green { background: #27c93f; box-shadow: 0 0 5px rgba(39,201,63,0.5); }
.browser-bar .badge { margin-left: auto; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; background: var(--glow-color); color: var(--aurora-1); padding: 4px 10px; border-radius: 10px; }
.demo-iframe-wrapper { position: relative; flex-grow: 1; width: 100%; background: #ffffff; }
.demo-cover, .demo-loader, .demo-iframe { width: 100%; height: 100%; position: absolute; top:0; left:0; }
.demo-iframe { z-index: 1; opacity: 0; transition: opacity 0.5s; border: none; }
.demo-loader { z-index: 2; display: flex; justify-content: center; align-items: center; background: rgba(255,255,255,0.9); }
[data-theme="dark"] .demo-loader { background: rgba(15,23,42,0.9); }
.demo-cover { z-index: 3; object-fit: cover; transition: opacity 0.4s ease; }
.live-thumbnail { width: 250%; height: 250%; transform: scale(0.4); transform-origin: top left; pointer-events: none; border: none; position: absolute; top: 0; left: 0; z-index: 2; background: #fff; transition: opacity 0.4s ease; }
.thumbnail-shield { position: absolute; inset: 0; z-index: 3; background: transparent; cursor: pointer; }

/* Overlay Global para Demos (Efecto Mac/Glassmorphism) */
.demo-overlay { position: fixed; inset: 0; z-index: 99999; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); display: flex; flex-direction: column; padding: 2rem 4rem; opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); transform: scale(0.95); }
.demo-overlay.active { opacity: 1; visibility: visible; transform: scale(1); }
.demo-overlay-header { background: var(--bg-main); padding: 15px 25px; border-radius: 16px 16px 0 0; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border-color); border-bottom: none; box-shadow: 0 -5px 30px rgba(0,0,0,0.2); }
.demo-overlay-close { background: transparent; padding: 5px; color: var(--text-muted); width: auto; border-radius: 8px; box-shadow: none; transition: all 0.2s; }
.demo-overlay-close:hover { background: #ef4444; color: white; transform: scale(1.1); box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3); }
.demo-overlay-body { flex-grow: 1; position: relative; background: #fff; border-radius: 0 0 16px 16px; overflow: hidden; border: 1px solid var(--border-color); border-top: none; box-shadow: 0 25px 50px rgba(0,0,0,0.3); }

.card h3 { font-size: 1.4rem; color: var(--text-main); margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1;}
.card h2 { font-size: 2rem; color: var(--aurora-1); margin-bottom: 1.5rem; }

/* Botones */
button { 
    background: linear-gradient(to right, var(--aurora-1), var(--aurora-2));
    color: white; 
    border: none; 
    padding: 14px 24px; 
    cursor: pointer; 
    border-radius: 8px; 
    font-weight: 600; 
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s;
}
button:hover { box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4); transform: translateY(-2px); }
button.whatsapp-btn { background: #25D366; margin-top: 15px; box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);}
button.whatsapp-btn:hover { background: #1ebe5d; box-shadow: 0 10px 15px rgba(37, 211, 102, 0.3); transform: translateY(-2px); }
button.vaciar-btn { background: #ef4444; margin-top: 10px; box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2); }
button.vaciar-btn:hover { background: #dc2626; box-shadow: 0 10px 15px rgba(239, 68, 68, 0.3); transform: translateY(-2px); }
button.mp-btn { background: #009ee3; margin-top: 10px; box-shadow: 0 4px 6px rgba(0, 158, 227, 0.2); }
button.mp-btn:hover { background: #008ac9; box-shadow: 0 10px 15px rgba(0, 158, 227, 0.3); }
.btn-eliminar-item { background: transparent; padding: 0; width: auto; color: #dc2626; box-shadow: none; border-radius: 0; font-size: 0.8rem; }
.btn-eliminar-item:hover { background: transparent; transform: scale(1.2); box-shadow: none; }
.coupon-container { display: flex; margin-bottom: 1rem; }
.coupon-container input { flex-grow: 1; border-radius: 8px 0 0 8px; border: 1px solid var(--border-color); padding: 10px; background: var(--bg-main); color: var(--text-main); }
.coupon-container button { width: auto; border-radius: 0 8px 8px 0; padding: 10px 15px; font-size: 0.9rem; }
#resumen-pago { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; border-top: 1px solid var(--border-color); padding-top: 1rem; }
.resumen-line { display: flex; justify-content: space-between; margin-bottom: 5px; }
.resumen-line.discount span:first-child { color: #10b981; font-weight: 600; }
.resumen-line.discount span:last-child { color: #10b981; font-weight: 600; }

.btn-icon { background: transparent; padding: 5px; width: auto; color: var(--text-muted); box-shadow: none; border-radius: 8px; transition: all 0.2s; }
.btn-icon:hover { background: var(--glow-color); transform: scale(1.1); box-shadow: none; color: var(--aurora-1); }
.btn-download { display: inline-block; background: transparent; border: 2px solid var(--aurora-1); color: var(--aurora-1); padding: 12px 24px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: all 0.3s; }
.btn-download:hover { background: var(--aurora-1); color: white; box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4); transform: translateY(-2px); }

/* Botón Primario Animado Premium */
a.btn-primary, a.btn-secondary { display: inline-block; box-sizing: border-box; text-align: center; }
a.btn-primary:hover, a.btn-secondary:hover { color: white; }
a.btn-secondary:hover { color: var(--aurora-1); }
button.btn-primary { position: relative; overflow: hidden; z-index: 1; width: auto; padding: 16px 40px; border-radius: 50px; font-size: 1.1rem; font-weight: 700; background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2)); background-size: 200% 200%; animation: gradient-shift 4s ease infinite; box-shadow: 0 10px 25px -5px var(--glow-color); border: 1px solid rgba(255,255,255,0.2); }
button.btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent); transform: skewX(-20deg); transition: all 0.7s ease; z-index: -1; }
button.btn-primary:hover::before { left: 150%; }
@keyframes gradient-shift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
button.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 40px -5px var(--glow-color); }
button.btn-primary:active, button.btn-secondary:active, button:active { transform: translateY(1px) scale(0.98); }

button.btn-secondary { width: auto; padding: 16px 40px; border-radius: 50px; background: var(--card-bg); backdrop-filter: blur(10px); border: 1px solid var(--border-color); color: var(--text-main); font-size: 1.1rem; font-weight: 700; transition: all 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
button.btn-secondary:hover { border-color: var(--aurora-1); color: var(--aurora-1); background: var(--bg-main); transform: translateY(-3px); box-shadow: 0 10px 20px var(--glow-color); }

/* Carrito flotante */
#panel-carrito { display: none; position: fixed; right: 20px; top: 100px; width: 360px; background: var(--card-bg); border: 1px solid var(--border-color); padding: 2rem; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); z-index: 1000; }
#panel-carrito ul { list-style: none; padding: 0; margin-bottom: 1rem; max-height: 200px; overflow-y: auto;}
#panel-carrito li { display: flex; justify-content: space-between; margin-bottom: 12px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; font-size: 0.95rem; color: var(--text-muted);}
#panel-carrito li strong { color: var(--text-main); }
#panel-carrito .total-line { font-size: 1.3rem; margin-bottom: 1rem; border-top: 2px solid var(--border-color); padding-top: 15px; color: var(--text-main);}

/* Formularios de Autenticación */
.auth-container { max-width: 400px; margin: 4rem auto; background: var(--card-bg); padding: 2.5rem; border-radius: 16px; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); border: 1px solid var(--border-color); }
.auth-container h2 { text-align: center; margin-bottom: 1.5rem; font-size: 1.8rem; color: var(--text-main); }
.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: 12px; border: 1px solid var(--border-color); background: var(--bg-main); color: var(--text-main); border-radius: 8px; box-sizing: border-box; font-family: 'Inter', sans-serif; transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--aurora-1); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.auth-links { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; }
.auth-links a { color: var(--aurora-1); text-decoration: none; font-weight: 600; }
.link-styled { color: var(--aurora-1); text-decoration: none; font-weight: 600; }
.auth-links a:hover { color: var(--aurora-2); text-decoration: underline; }

/* --- Toasts (Notificaciones Flotantes) --- */
.alert { display: none !important; } /* Oculta la caja estática original automáticamente */
#toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 999999; display: flex; flex-direction: column; gap: 15px; pointer-events: none; }
.toast { background: var(--card-bg); color: var(--text-main); padding: 16px 20px; border-radius: 16px; box-shadow: 0 10px 40px -10px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 15px; transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease; opacity: 0; min-width: 280px; max-width: 400px; font-weight: 500; font-size: 0.95rem; line-height: 1.4; border: 1px solid var(--border-color); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.toast.show { transform: translateX(0); opacity: 1; pointer-events: auto; }
.toast-success { border-left: 4px solid #10b981; }
.toast-error { border-left: 4px solid #ef4444; }
.toast-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--bg-main); padding: 8px; border-radius: 50%; border: 1px solid var(--border-color); }

/* --- Animación Carrito --- */
@keyframes cart-bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); color: var(--aurora-1); font-weight: bold; }
    100% { transform: scale(1); }
}
.cart-bump { animation: cart-bump 0.4s ease-out; display: inline-block; }

/* --- Banner de Cookies --- */
#cookie-banner { position: fixed; bottom: 20px; left: 20px; max-width: 400px; background: var(--card-bg); border: 1px solid var(--border-color); padding: 20px; border-radius: 16px; box-shadow: 0 15px 40px -10px rgba(0,0,0,0.2); z-index: 99999; display: flex; flex-direction: column; gap: 15px; transform: translateY(150%); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
#cookie-banner.show { transform: translateY(0); }
#cookie-banner p { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
#cookie-banner strong { color: var(--text-main); font-weight: 700; }
.cookie-buttons { display: flex; gap: 10px; }
.cookie-buttons button { padding: 10px 20px; font-size: 0.9rem; flex-grow: 1; }

/* --- Animaciones de Scroll --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
    will-change: opacity, transform;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* --- Comentarios --- */
.estrellas { font-size: 1.2rem; margin-bottom: 1rem; }
#comentarios .card { background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: none; }
#comentarios .card h4 { margin-top: 1rem; color: var(--text-main); font-size: 1rem; font-weight: 700; }
#comentarios textarea { resize: vertical; }
#comentarios textarea:focus, #comentarios select:focus { outline: none; border-color: var(--text-main); box-shadow: 0 0 0 1px var(--text-main); }

/* --- Elementos del Panel Admin --- */
.admin-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #e2e8f0; gap: 15px; }
.admin-item:last-child { border-bottom: none; }
.admin-item-content { flex-grow: 1; text-align: left; }
.btn-danger { background: #dc2626; color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; font-weight: 600; width: auto; background-image: none; box-shadow: none; }
.btn-danger:hover { background: #b91c1c; transform: translateY(-2px); box-shadow: 0 4px 6px rgba(220, 38, 38, 0.2); }
.admin-btn-mini { padding: 6px 12px; font-size: 0.85rem; width: auto; }
.admin-btn-mini.edit { background: #3b82f6; color: white; }
.admin-btn-mini.edit:hover { background: #2563eb; }
.admin-btn-mini.delete { background: #ef4444; color: white; }
.admin-btn-mini.delete:hover { background: #dc2626; }
.admin-btn-mini.invoice { background: #64748b; color: white; text-decoration: none; }
.admin-btn-mini.invoice:hover { background: #475569; }
.admin-select-mini { padding: 6px; border-radius: 6px; border: 1px solid var(--border-color); background: var(--bg-main); color: var(--text-main); }

/* Nuevo layout de tarjetas para contenido del admin */
.admin-content-card { background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 1.5rem; display: flex; flex-direction: column; }
.admin-content-header { padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--border-color); }
.admin-content-body { padding: 1.5rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.admin-content-body p { margin: 0; }
.admin-content-footer { padding: 1rem 1.5rem; background: var(--card-bg); border-top: 1px solid var(--border-color); display: flex; align-items: center; gap: 10px; }

.admin-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.admin-section-header { margin-bottom: 2rem; }
.admin-section-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 1rem;
    letter-spacing: -1px;
}
.admin-section-header h1 svg { stroke-width: 2; color: var(--aurora-1); }

.admin-card-header { font-size: 1.2rem; font-weight: 700; color: var(--text-main); margin-top: 0; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }

/* --- Dashboard Admin --- */
.chart-container { position: relative; height: 300px; margin-top: 2rem; background: var(--bg-main); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border-color); }

.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 1rem; }
.dashboard-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; text-align: left; box-shadow: 0 4px 6px rgba(0,0,0,0.02); transition: all 0.3s ease; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.dashboard-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--aurora-1); opacity: 0; transition: opacity 0.3s; }
.dashboard-card:hover::before { opacity: 1; }
.dashboard-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px -10px var(--glow-color); border-color: rgba(59,130,246,0.2); }
.dashboard-card h4 { margin: 0 0 10px 0; color: var(--text-muted); font-size: 0.95rem; font-weight: 600; text-transform: none; letter-spacing: normal; }
.dashboard-card .numero { font-size: 2.5rem; font-weight: 800; color: var(--text-main); margin: 0; line-height: 1; }

/* --- Layout del Panel Admin SaaS --- */
.admin-wrapper { display: flex; height: 100vh; background: var(--bg-main); color: var(--text-main); padding: 0; overflow: hidden; }
.admin-sidebar { width: 280px; flex-shrink: 0; background: var(--card-bg); border-right: 1px solid var(--border-color); padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 0.2rem; z-index: 10; overflow-y: auto; }
.admin-sidebar-header { display: flex; align-items: center; gap: 12px; margin-bottom: 2.5rem; padding-left: 10px; }
.admin-sidebar-header img { width: 45px; height: 45px; border-radius: 50%; background: #111; border: 2px solid var(--border-color); }
.admin-sidebar-header h2 { font-size: 1.3rem; text-align: left; margin: 0; color: var(--text-main); font-weight: 800; letter-spacing: -0.5px;}
.admin-sidebar-group-header { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.5rem; padding-left: 12px; }
.admin-tab { background: transparent; color: var(--text-muted); border: none; text-align: left; padding: 12px 16px; border-radius: 10px; cursor: pointer; font-size: 0.95rem; font-weight: 500; transition: all 0.2s ease; width: 100%; box-shadow: none; display: flex; align-items: center; gap: 12px; margin-bottom: 2px;}
.admin-tab:hover { background: var(--bg-main); color: var(--text-main); transform: translateX(4px); box-shadow: none; }
.admin-tab.active { background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1)); color: var(--aurora-1); font-weight: 600; border: 1px solid rgba(59,130,246,0.2); transform: translateX(4px); }
.admin-tab.return-btn { margin-top: auto; color: #ef4444; }
.admin-tab.return-btn:hover { background: rgba(239, 68, 68, 0.1); color: #dc2626; box-shadow: none;}
.admin-main { flex: 1; padding: 2rem 3rem; display: flex; flex-direction: column; overflow-y: auto; position: relative; }
.admin-main-inner { max-width: 1200px; margin: 0 auto; width: 100%; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.admin-topbar-search { display: flex; align-items: center; gap: 10px; background: var(--card-bg); padding: 10px 16px; border-radius: 12px; border: 1px solid var(--border-color); width: 300px; transition: all 0.3s; }
.admin-topbar-search:focus-within { border-color: var(--aurora-1); box-shadow: 0 0 0 3px var(--glow-color); width: 350px;}
.admin-topbar-search input { border: none; background: transparent; color: var(--text-main); font-size: 0.95rem; width: 100%; outline: none; }
.admin-topbar-actions { display: flex; align-items: center; gap: 20px; }
.user-profile-admin { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.user-profile-admin img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-color); background: var(--card-bg);}

.admin-section { display: none; animation: fadeIn 0.4s ease; }
.admin-section.active { display: block; }
.admin-panel-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 2rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05); margin-bottom: 2rem; position: relative; overflow: hidden; transition: box-shadow 0.3s; }
.admin-panel-card:hover { box-shadow: 0 15px 35px -10px rgba(0,0,0,0.08); }

.admin-content-card { transition: all 0.3s; }
.admin-content-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -10px var(--glow-color); border-color: rgba(59,130,246,0.3); }

/* Inputs y CodeMirror del panel Admin */
.admin-panel-card input[type="text"], .admin-panel-card input[type="number"], .admin-panel-card input[type="email"], .admin-panel-card input[type="password"], .admin-panel-card input[type="date"], .admin-panel-card select, .admin-panel-card textarea {
    background: var(--bg-main); border: 1px solid var(--border-color); padding: 12px 16px; border-radius: 10px; font-size: 0.95rem; color: var(--text-main); transition: all 0.2s; width: 100%; box-sizing: border-box;
}
.admin-panel-card input:focus, .admin-panel-card select:focus, .admin-panel-card textarea:focus {
    outline: none; border-color: var(--aurora-1); box-shadow: 0 0 0 3px var(--glow-color); background: var(--card-bg);
}
.CodeMirror { border: 1px solid var(--border-color); border-radius: 10px; font-family: 'Consolas', 'Monaco', monospace; height: auto; min-height: 200px; margin-top: 5px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Preguntas Frecuentes (FAQ) --- */
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 20px; background: transparent; border: none; font-size: 1.05rem; font-weight: 600; color: var(--text-main); display: flex; justify-content: space-between; align-items: center; cursor: pointer; border-radius: 0; box-shadow: none; transition: background 0.3s; }
.faq-question:hover { background: var(--border-color); transform: none; box-shadow: none; }
.faq-icon { font-size: 1.5rem; transition: transform 0.3s; color: var(--text-main); font-weight: 400; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease; background: var(--bg-main); }
.faq-answer p { margin: 0; padding: 0 20px 20px 20px; color: var(--text-muted); font-size: 0.95rem; text-align: left; }
.faq-item.active .faq-answer { max-height: 500px; }

/* Estilos para páginas personalizadas (como politica-de-privacidad) */
.custom-page-content { line-height: 1.8; font-size: 1.1rem; color: var(--text-muted); }
.custom-page-content h1, .custom-page-content h2, .custom-page-content h3, .custom-page-content h4 { color: var(--text-main); margin-top: 2rem; margin-bottom: 1rem; font-weight: 800; letter-spacing: -0.5px; }
.custom-page-content p { margin-bottom: 1.5rem; }
.custom-page-content ul, .custom-page-content ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.custom-page-content li { margin-bottom: 0.5rem; }
.custom-page-content a { color: var(--aurora-1); text-decoration: none; font-weight: 600; }
.custom-page-content a:hover { text-decoration: underline; color: var(--aurora-2); }
.custom-page-content img { max-width: 100%; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); margin: 1.5rem 0; }
.custom-page-content blockquote { border-left: 4px solid var(--aurora-1); margin: 1.5rem 0; padding-left: 1.5rem; font-style: italic; color: var(--text-main); background: var(--card-bg); padding: 1.5rem; border-radius: 0 12px 12px 0; }

/* Estilos para Página de Producto Individual */
.main-producto { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.producto-detalle { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: flex-start; margin-top: 2rem; }
.producto-col-media { position: sticky; top: 120px; }
.demo-container-full { border-radius: 12px; overflow: hidden; background: var(--card-bg); border: 1px solid var(--border-color); height: 60vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.producto-iframe { width: 100%; height: 100%; border: none; }
.producto-col-info h1 { font-size: 2.5rem; margin-top: 0.5rem; margin-bottom: 1rem; text-align: left; }
.producto-col-info .badge { margin-left: 0; }
.producto-descripcion { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem; }
.producto-precio { font-size: 2.5rem; font-weight: 800; color: var(--aurora-1); margin-bottom: 2rem; }
.productos-relacionados { margin-top: 5rem; }
.productos-relacionados h2 { text-align: left; margin-bottom: 2rem; }

/* Rating Summary */
.rating-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 1.5rem; }
.rating-summary .stars { --percent: calc(var(--rating) / 5 * 100%); display: inline-block; font-size: 1.5rem; line-height: 1; }
.rating-summary .stars::before { content: '★★★★★'; letter-spacing: 3px; background: linear-gradient(90deg, #ffc107 var(--percent), #e0e0e0 var(--percent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.rating-summary span { font-size: 0.9rem; color: var(--text-muted); }

/* Product Reviews Section */
.producto-reviews { margin-top: 5rem; border-top: 1px solid var(--border-color); padding-top: 3rem; }
.producto-reviews h2 { text-align: left; }
.rating-form-container { background: var(--card-bg); padding: 2rem; border-radius: 12px; border: 1px solid var(--border-color); margin-bottom: 3rem; }
.rating-form-container h3 { margin-top: 0; text-align: left; }

/* Star Rating Input */
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 5px; margin-bottom: 1.5rem; }
.star-rating input { display: none; }
.star-rating label { font-size: 2.5rem; color: #e0e0e0; cursor: pointer; transition: color 0.2s; }
.star-rating input:checked ~ label,
.star-rating:not(:checked) > label:hover,
.star-rating:not(:checked) > label:hover ~ label { color: #ffc107; }

/* Reviews List */
.reviews-list { display: flex; flex-direction: column; gap: 2rem; }
.review-item { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 2rem; }
.review-item:last-child { border-bottom: none; }
.review-avatar img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.review-content { flex-grow: 1; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 0.5rem; }
.review-header strong { font-size: 1.1rem; }
.review-header .stars { font-size: 1rem; }
.review-date { font-size: 0.8rem; color: var(--text-muted); margin-left: auto; }
.review-comment { color: var(--text-muted); line-height: 1.7; }
.admin-section .stars {
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
}
.admin-section .stars::before {
    content: '★★★★★';
    letter-spacing: 3px;
    background: linear-gradient(90deg, #ffc107 var(--percent), #e0e0e0 var(--percent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Estilos para el Blog */
.blog-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.blog-card { text-decoration: none; padding: 0; text-align: left; overflow: hidden; }
.blog-card-image { height: 200px; background-size: cover; background-position: center; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-image { transform: scale(1.05); }
.blog-card-content { padding: 1.5rem; }
.blog-card-content h3 { margin-top: 0; font-size: 1.3rem; }
.blog-card-content p { font-size: 0.9rem; }
.blog-card-date { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

/* Estilos para Artículo Individual */
.main-article { max-width: 800px; margin: 0 auto; padding: 0 2rem; }
.article-header { height: 40vh; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 3rem; color: white; border-radius: 16px; overflow: hidden; margin-top: 3rem; background-size: cover; background-position: center; }
.article-header-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%); }
.article-header h1, .article-header p { position: relative; z-index: 2; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.article-header h1 { font-size: 3rem; margin: 0; }
.article-header p { margin: 0.5rem 0 0 0; font-weight: 500; opacity: 0.9; }
.article-content { padding: 3rem 0; }

/* --- Footer --- */
footer { background: var(--footer-bg); color: #94a3b8; padding: 4rem 2rem 2rem; margin-top: 4rem; border-top: 1px solid var(--border-color); }
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid #1e293b; }
.footer-column h4 { color: white; font-size: 1rem; margin-bottom: 1.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-column a { color: #94a3b8; text-decoration: none; display: block; margin-bottom: 1rem; transition: color 0.3s; }
.footer-column a:hover { color: white; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-logo img { height: 40px; width: 40px; object-fit: cover; border-radius: 50%; background: #1e293b; }
.footer-logo h3 { color: white; font-size: 1.5rem; margin: 0; font-weight: 800;}
.footer-column p { margin: 0 0 1.5rem 0; font-size: 0.95rem; line-height: 1.6; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { color: #94a3b8; transition: all 0.3s ease; display: inline-flex; padding: 10px; border-radius: 50%; background: #1e293b; }
.footer-socials a:hover { color: white; background: var(--aurora-1); transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 2rem; font-size: 0.9rem; color: #64748b; }

/* --- Botón Volver Arriba --- */
#btn-volver-arriba { display: none; position: fixed; bottom: 30px; right: 30px; z-index: 999; background: var(--text-main); color: var(--bg-main); padding: 0; border-radius: 50%; width: 50px; height: 50px; justify-content: center; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: all 0.3s; }
#btn-volver-arriba:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

/* --- Pop-up Promocional --- */
.promo-overlay { position: fixed; inset: 0; z-index: 9990; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.4s ease; padding: 20px; }
.promo-overlay.active { opacity: 1; visibility: visible; }
.promo-popup { background: var(--bg-main); border: 1px solid var(--aurora-1); border-radius: 24px; padding: 3rem 2rem; max-width: 450px; text-align: center; position: relative; transform: scale(0.9) translateY(20px); transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), 0 0 30px var(--glow-color); }
.promo-overlay.active .promo-popup { transform: scale(1) translateY(0); }
.promo-close { position: absolute; top: 15px; right: 15px; background: transparent; border: none; color: var(--text-muted); cursor: pointer; transition: all 0.2s; padding: 6px; border-radius: 50%; display: flex; }
.promo-close:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); transform: scale(1.1); }
.promo-icon { font-size: 4rem; margin-bottom: 1rem; filter: drop-shadow(0 10px 15px var(--glow-color)); animation: float 3s ease-in-out infinite; }
.promo-content h2 { font-size: 1.8rem; margin-bottom: 1rem; letter-spacing: -0.5px; }
.promo-content p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.5rem; }
.promo-content strong { color: var(--aurora-1); font-weight: 800; }

/* --- Diseño Responsivo (Teléfonos Móviles y Tablets) --- */
@media (max-width: 768px) {
    header { padding: 1rem 1.5rem; flex-direction: row; justify-content: space-between; }
    .menu-toggle { display: block; z-index: 1001; }
    
    /* Diseño de Menú Lateral tipo SaaS */
    nav { position: fixed; top: 0; right: -100%; width: 260px; height: 100vh; background: #0f172a; flex-direction: column; align-items: flex-start; justify-content: center; padding: 2rem; transition: right 0.3s ease; z-index: 1000; box-shadow: -5px 0 15px rgba(0,0,0,0.5); gap: 20px; }
    nav.active { right: 0; }
    nav a { margin: 0; font-size: 1.1rem; width: 100%; display: block; }
    
    /* Ajustar menú de usuario dentro de la barra lateral */
    .user-menu { margin-left: 0; width: 100%; }
    .dropdown-content { position: static; box-shadow: none; background: transparent; border: none; padding-left: 1rem; border-left: 2px solid #334155; border-radius: 0; margin-top: 10px; }
    .dropdown-content a { color: #94a3b8; padding: 8px 0; border-bottom: none; }
    .dropdown-content a:hover { background: transparent; color: #60a5fa; }
    
    #inicio { padding: 5rem 1.5rem; margin-top: 1.5rem; }
    #inicio h1 { font-size: 2.2rem; }
    #inicio p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; }
    button.btn-primary, button.btn-secondary { width: 100%; }
    h2 { font-size: 2rem; }
    .testimonials-container { grid-template-columns: 1fr; }
    section { padding: 2rem 1.5rem; }
    .grid { gap: 1.5rem; }
    #panel-carrito { width: 90%; right: 5%; left: 5%; top: 160px; padding: 1.5rem; box-sizing: border-box; }
    .auth-container { width: 90%; padding: 1.5rem; margin: 2rem auto;}
    .footer-content { flex-direction: column; text-align: center; }
    #btn-volver-arriba { bottom: 20px; right: 20px; width: 45px; height: 45px; }
    
    /* Ajustes móviles para Overlay y Footer */
    .demo-overlay { padding: 1rem 0.5rem; border-radius: 0; }
    .footer-grid { text-align: center; }
    .footer-logo, .footer-socials { justify-content: center; }
    
    /* Ajustes móviles para página de producto */
    .producto-detalle { grid-template-columns: 1fr; }
    .producto-col-media { position: static; height: 50vh; margin-bottom: 2rem; }
    .demo-container-full { height: 100%; }
    .producto-col-info h1 { font-size: 2rem; }
    .productos-relacionados h2 { text-align: center; }

    /* Ajustes móviles para Admin */
    .admin-wrapper { flex-direction: column; padding: 0; gap: 0; height: auto; overflow: visible; }
    .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); padding: 1rem; flex-direction: row; overflow-x: auto; height: auto; position: sticky; top: 0; border-radius: 0; z-index: 100;}
    .admin-sidebar-header { display: none; }
    .admin-sidebar-group-header { display: none; }
    .admin-tab { width: auto; flex-shrink: 0; padding: 8px 16px; font-size: 0.9rem; margin: 0;}
    .admin-tab.return-btn { margin-top: 0;}
    .admin-main { padding: 1.5rem; overflow-y: visible; }
    .admin-topbar { flex-direction: column-reverse; gap: 1rem; align-items: stretch; }
    .admin-topbar-search { width: 100%; }
    .admin-topbar-search:focus-within { width: 100%; }
    .admin-topbar-actions { justify-content: space-between; }
    .admin-panel-card { padding: 1.5rem; border-radius: 16px; }
    
    /* Ajustes móviles para Toasts */
    #toast-container { bottom: 20px; right: 20px; left: 20px; align-items: center; }
    .toast { min-width: 100%; transform: translateY(120%); }
    .toast.show { transform: translateY(0); }
    
    /* Ajustes móviles para Cookies */
    #cookie-banner { bottom: 0; left: 0; right: 0; max-width: 100%; border-radius: 20px 20px 0 0; padding: 20px 15px; border-bottom: none; }
    .cookie-buttons { flex-direction: column; }
}