/* ==========================================================================
   BrocoLED - Estilos Globales, Temas y Layouts (Premium Technological Dark Mode)
   ========================================================================== */

/* Variables de Diseño */
:root {
    --bg-main: #090d16;
    --bg-surface: #0f1524;
    --bg-card: rgba(15, 21, 36, 0.7);
    --bg-card-hover: rgba(22, 31, 54, 0.85);
    
    --primary: #00ff88; /* Verde Cultivo */
    --primary-rgb: 0, 255, 136;
    --accent: #ffcc00; /* Dorado Sol/Espectro */
    --accent-rgb: 255, 204, 0;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(var(--primary-rgb), 0.3);
    --glow: rgba(var(--primary-rgb), 0.15);
    
    --success: #10b981;
    --error: #f43f5e;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Reseteos y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Barra de desplazamiento */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Tipografías y Textos */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
}

span.highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Efecto Glassmorphism */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px 0 var(--glow);
    background: var(--bg-card-hover);
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #059669);
    color: #fff;
    box-shadow: 0 4px 20px -2px rgba(var(--primary-rgb), 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px -2px rgba(var(--primary-rgb), 0.6), 0 0 15px 2px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #047857);
    color: white;
}
.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}

.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Header & Navegación */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(9, 13, 22, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.logo span {
    color: var(--primary);
}

.logo svg {
    width: 32px;
    height: 32px;
    fill: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(var(--primary-rgb), 0.4);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 10rem 2rem 6rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(var(--primary-rgb), 0.08) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(var(--accent-rgb), 0.05) 0%, transparent 50%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Badges / Sellos del Hero */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.hero-badge svg {
    color: var(--primary);
    width: 16px;
    height: 16px;
}

/* Hero Visual (Panel Glow) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
    filter: blur(20px);
    z-index: 1;
    animation: pulseGlow 8s infinite alternate;
}

.hero-img-wrapper {
    position: relative;
    z-index: 2;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: perspective(800px) rotateY(-10deg) rotateX(10deg);
    transition: var(--transition);
}

.hero-img-wrapper:hover {
    transform: perspective(800px) rotateY(-3deg) rotateX(3deg);
}

.hero-img-wrapper img {
    display: block;
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}

/* Sellos Comerciales Generales (Ficha de beneficios) */
.benefits-bar {
    background: rgba(15, 21, 36, 0.4);
    border-y: 1px solid var(--border);
    padding: 2rem 0;
    backdrop-filter: blur(10px);
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-sm);
    color: var(--primary);
}

.benefit-info h4 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.benefit-info p {
    font-size: 0.8rem;
}

/* Secciones Generales */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Calculadora de Cultivo */
.calculator-box {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    padding: 3rem;
    align-items: center;
}

.calc-selectors {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calc-title h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.tent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.tent-option {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.tent-option:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.tent-option.active {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
    box-shadow: 0 0 15px 0 rgba(var(--primary-rgb), 0.2);
    font-weight: 700;
}

.tent-size-label {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.2rem;
}

.tent-desc-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Recomendación del Calculator */
.calc-result {
    position: relative;
}

.result-card {
    opacity: 0;
    transform: translateY(20px);
    display: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.result-card.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.result-header-text h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.result-tag {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.result-body {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.result-specs {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.result-spec {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    border-bottom: 1px dotted var(--border);
    padding-bottom: 0.4rem;
}

.result-spec span:first-child {
    color: var(--text-muted);
}

.result-spec span:last-child {
    font-weight: 600;
    color: #fff;
}

.result-visual {
    text-align: center;
}

.result-visual img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.result-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.result-price-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

/* Catálogo de Productos */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.product-media {
    position: relative;
    width: 100%;
    height: 240px;
    background: #0d121f;
    overflow: hidden;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-media img {
    transform: scale(1.05);
}

.product-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(var(--primary-rgb), 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-details {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.product-title-row h3 {
    font-size: 1.35rem;
    color: #fff;
}

.product-area-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

.product-ideal-list {
    margin-bottom: 1.5rem;
}

.product-ideal-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}

.product-ideal-item::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
}

.product-specs-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.product-spec-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 0.3rem;
}

.product-spec-row:last-child {
    border: none;
    padding: 0;
}

.product-spec-row span:first-child {
    color: var(--text-dim);
}

.product-spec-row span:last-child {
    color: var(--text-main);
    font-weight: 500;
}

/* Sellos del Catálogo */
.product-commercial-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.8rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.commercial-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.product-price-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.product-price-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

/* Sección del Espectro & Tecnología */
.spectrum-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.spectrum-content h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.spectrum-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.spectrum-item {
    display: flex;
    gap: 1rem;
}

.spectrum-item-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 50%;
    color: var(--accent);
}

.spectrum-item-text h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.spectrum-visual {
    position: relative;
    padding: 2rem;
    border-radius: var(--radius-md);
    background: #0d121f;
    border: 1px solid var(--border);
    overflow: hidden;
}

/* Gráfico de Espectro Simulado en CSS */
.spectrum-chart {
    height: 200px;
    width: 100%;
    background: linear-gradient(to right, 
        #3b0066 0%,   /* UV */
        #0000ff 20%,  /* Blue */
        #00ff00 40%,  /* Green */
        #ffff00 60%,  /* Yellow */
        #ff0000 80%,  /* Red (660nm) */
        #7f0000 95%,  /* Far Red (730nm) */
        #000000 100%
    );
    border-radius: var(--radius-sm);
    position: relative;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.spectrum-chart-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Curva simulada */
    background: radial-gradient(ellipse at 50% 100%, transparent 30%, #0d121f 70%);
}

.spectrum-chart-peaks {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Marcadores del Espectro */
.peak-marker {
    position: absolute;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    color: #fff;
    font-weight: 600;
}

.peak-marker::before {
    content: "";
    width: 2px;
    height: 40px;
    background: rgba(255,255,255,0.4);
    margin-bottom: 5px;
}

.peak-blue { left: 20%; }
.peak-red { left: 80%; }
.peak-farred { left: 93%; }

.spectrum-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* FAQ Acordeón */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-card);
    transition: var(--transition);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
}

.faq-question svg {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.faq-item.active {
    border-color: rgba(var(--primary-rgb), 0.2);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: #060a12;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-about p {
    font-size: 0.9rem;
    max-width: 320px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 1.2rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-admin-link {
    color: var(--text-dim);
    transition: var(--transition);
}

.footer-admin-link:hover {
    color: var(--primary);
}

/* ==========================================================================
   Estilos del Panel de Administración (admin.php)
   ========================================================================== */

.admin-body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
}

/* Login Screen */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.08) 0%, transparent 60%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 3rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header .logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.login-header .logo-text span {
    color: var(--primary);
}

.login-header p {
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.2);
}

.error-msg {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Admin Dashboard Layout */
.admin-header {
    background: rgba(15, 21, 36, 0.9);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.admin-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header .logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.admin-header .logo-text span:first-child {
    color: var(--primary);
}

.admin-header .logo-text span:last-child {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.8rem;
    vertical-align: middle;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.admin-main {
    padding: 3rem 2rem 8rem;
}

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

.admin-intro {
    padding: 2rem;
    margin-bottom: 3rem;
}

.admin-intro h1 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

/* Editor List */
.products-editor-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.editor-card {
    padding: 2.5rem;
}

.editor-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.2rem;
    margin-bottom: 2rem;
}

.editor-card-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
}

.editor-card-header .power-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Image Upload Widget */
.image-upload-widget {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #060a12;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    transition: var(--transition);
}

.gallery-item-delete:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.upload-trigger-btn {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255,255,255,0.01);
}

.upload-trigger-btn:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.03);
}

.upload-trigger-btn svg {
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    width: 32px;
    height: 32px;
}

.upload-trigger-btn span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.file-input-hidden {
    display: none;
}

/* Specs Dynamic List Editor */
.specs-editor-table {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.spec-editor-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr auto;
    gap: 0.8rem;
    align-items: center;
}

.btn-remove-row {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.btn-remove-row:hover {
    color: var(--error);
}

.btn-add-spec {
    align-self: flex-start;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

/* Floating Actions Bar */
.floating-admin-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 21, 36, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 1.2rem 2rem;
    z-index: 1000;
}

.floating-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.save-status {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.save-status.changed {
    color: var(--warning);
    animation: pulseStatus 1.5s infinite;
}


/* --- Laboratorio de Cultivo (Simulador) --- */
.lab-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
    padding: 0 1rem;
}

.lab-panel {
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.grow-stage-display {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.02);
}

.stage-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ==========================================================================
   Animaciones e Media Queries
   ========================================================================== */

@keyframes pulseGlow {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.15); }
}

@keyframes pulseStatus {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Media Queries */

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-badges {
        justify-content: center;
    }
    .hero-img-wrapper {
        transform: none;
    }
    .hero-img-wrapper:hover {
        transform: scale(1.02);
    }
    .calculator-box {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .spectrum-box {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .editor-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        align-items: center;
    }
    .nav-menu {
        padding: 0;
        margin: 0 auto;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    .lab-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .lab-panel {
        padding: 1.2rem;
        gap: 1.5rem;
    }
    .grow-stage-display {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .stage-stats {
        width: 100%;
    }
    .hero-section {
        padding-top: 12rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .calculator-box {
        padding: 1.5rem;
    }
    .result-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .result-visual {
        order: -1;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .admin-header-container {
        flex-direction: column;
        gap: 1rem;
    }
    .editor-card {
        padding: 1.5rem;
    }
    .floating-bar-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================================================
   Nuevas Adiciones: Tabs, Guía PDF, Mapa de Comunas y WhatsApp Flotante
   ========================================================================== */

/* Tabs del Panel de Administración */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    color: var(--primary);
    background: rgba(0, 255, 136, 0.08);
    border-color: rgba(0, 255, 136, 0.25);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.settings-editor-form {
    padding: 2.5rem;
}

.settings-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.settings-section-title:first-of-type {
    margin-top: 0;
}

/* Sección Asesoría PDF */
#asesoria-pdf {
    padding: 6rem 2rem;
}

.pdf-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    padding: 4rem;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.pdf-badge {
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--primary);
    padding: 0.4rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.pdf-content h2 {
    font-size: 2.4rem;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.pdf-content p {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.pdf-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.pdf-feat-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.pdf-feat-icon {
    font-size: 1.8rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 0.8rem;
    border-radius: var(--radius-sm);
}

.pdf-feat-text h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.pdf-feat-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

.pdf-billing-note {
    display: flex;
    gap: 1rem;
    background: rgba(255, 204, 0, 0.05);
    border: 1px solid rgba(255, 204, 0, 0.1);
    padding: 1.2rem;
    border-radius: var(--radius-sm);
    align-items: flex-start;
}

.pdf-billing-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.pdf-billing-text strong {
    color: var(--secondary);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.3rem;
}

.pdf-billing-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* 3D Book Mockup */
.pdf-visual {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.book-mockup {
    width: 260px;
    height: 360px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-20deg) rotateX(10deg);
    transition: transform 0.6s ease;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5);
}

.book-mockup:hover {
    transform: rotateY(-5deg) rotateX(5deg);
}

.book-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #091a0f 0%, #03060c 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 4px 12px 12px 4px;
    z-index: 5;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateZ(10px);
    overflow: hidden;
}

.book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 5%, rgba(0,0,0,0.1) 8%, rgba(255,255,255,0.03) 12%, rgba(255,255,255,0) 15%);
    z-index: 6;
}

.book-logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
}

.book-logo span {
    color: var(--primary);
}

.book-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-top: 2rem;
    text-shadow: 0 0 10px rgba(0,255,136,0.3);
}

.book-subtitle {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.5rem;
}

.book-details {
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-top: auto;
}

.book-author {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.book-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--primary);
    color: #030712;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.3rem 2.5rem;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.book-spine {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    background: #050e08;
    transform: rotateY(-90deg) translateZ(10px);
    transform-origin: left;
    z-index: 4;
    border-radius: 4px 0 0 4px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.book-pages {
    position: absolute;
    top: 4px;
    left: 20px;
    width: calc(100% - 20px);
    height: calc(100% - 8px);
    background: #e2e8f0;
    transform: translateZ(-10px);
    z-index: 1;
    border-radius: 0 8px 8px 0;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
}

/* Cobertura Mapa Interactiva */
#cobertura-mapa {
    padding: 6rem 2rem;
}

.map-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
    align-items: center;
}

.map-visual-side {
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-wrapper {
    width: 100%;
    max-width: 420px;
    position: relative;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    overflow: visible;
}

.neon-map-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.map-commune-path {
    fill: rgba(13, 18, 31, 0.6);
    stroke: rgba(0, 255, 136, 0.15);
    stroke-width: 1.5;
    cursor: pointer;
    transition: fill 0.3s ease, stroke 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.map-commune-path:hover,
.map-commune-path:active {
    fill: rgba(0, 255, 136, 0.22) !important;
    stroke: var(--primary) !important;
    stroke-width: 2.5px;
    opacity: 1 !important;
    filter: drop-shadow(0 0 10px var(--primary));
    z-index: 10;
}

/* Map Tooltip */
.map-tooltip {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--primary);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.25);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    white-space: nowrap;
}

.map-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: ledPulse 0.8s infinite alternate;
}

.tooltip-text-wrapper {
    display: flex;
    flex-direction: column;
}

.tooltip-commune {
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}

.tooltip-status {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.map-text-side h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.map-text-side p {
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.map-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.map-info-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.map-info-card:hover {
    border-color: rgba(0, 255, 136, 0.2);
    background: rgba(0, 255, 136, 0.01);
}

.info-card-header {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.info-card-icon {
    font-size: 1.4rem;
}

.info-card-header h4 {
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
}

.map-info-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* WhatsApp Widget Flotante */
.whatsapp-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1500;
    font-family: var(--font-sans);
}

.wa-widget-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    position: relative;
    outline: none;
}

.wa-widget-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.wa-widget-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.wa-widget-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #060a12;
}

.wa-widget-chat {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    animation: waChatOpen 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform-origin: bottom right;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

@keyframes waChatOpen {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.wa-chat-header {
    background: rgba(37, 211, 102, 0.1);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.wa-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.wa-chat-info h4 {
    color: #fff;
    margin: 0 0 2px;
    font-size: 0.95rem;
    font-weight: 700;
}

.wa-chat-info span {
    color: #25D366;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wa-chat-info span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 0 6px #25D366;
}

.wa-chat-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.wa-chat-close:hover {
    color: #fff;
}

.wa-chat-body {
    padding: 1.5rem;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(5px);
    max-height: 250px;
    overflow-y: auto;
}

.wa-chat-bubble {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 12px 12px 12px 0;
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.wa-chat-bubble strong {
    color: var(--primary);
}

.wa-chat-footer {
    padding: 1rem 1.5rem;
    background: rgba(3, 7, 18, 0.95);
    border-top: 1px solid var(--border);
}

/* Floating Widget Animations */
@keyframes ledPulse {
    from { transform: scale(1); box-shadow: 0 0 6px var(--primary); }
    to { transform: scale(1.3); box-shadow: 0 0 12px var(--primary); }
}

.led-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    margin-left: 5px;
    animation: ledPulse 0.8s infinite alternate;
    vertical-align: middle;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    20%, 60% { transform: rotate(-10deg); }
    40%, 80% { transform: rotate(10deg); }
}

.wa-widget-btn.wiggle {
    animation: wiggle 0.6s ease;
}

/* Responsive updates for new sections */
@media (max-width: 992px) {
    .pdf-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2.5rem;
    }
    .pdf-visual {
        order: -1;
    }
    .map-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    #asesoria-pdf, #cobertura-mapa {
        padding: 4rem 1rem;
    }
    .pdf-container, .map-grid {
        padding: 1.5rem;
    }
    .pdf-content h2, .map-text-side h3 {
        font-size: 1.8rem;
    }
    .book-mockup {
        width: 220px;
        height: 300px;
    }
    .book-title {
        font-size: 1.3rem;
    }
    .whatsapp-widget {
        bottom: 15px;
        right: 15px;
    }
    .wa-widget-chat {
        width: 280px;
        bottom: 70px;
    }
}

/* Badges Neón para conversión */
.badge-mas-vendido {
    background: var(--accent) !important;
    color: #000 !important;
    box-shadow: 0 0 12px var(--accent-glow) !important;
    border: 1px solid var(--accent) !important;
}
.badge-ideal-iniciacion {
    background: #ffcc00 !important;
    color: #000 !important;
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.4) !important;
    border: 1px solid #ffcc00 !important;
}
.badge-recomendado {
    background: #00e1ff !important;
    color: #000 !important;
    box-shadow: 0 0 12px rgba(0, 225, 255, 0.4) !important;
    border: 1px solid #00e1ff !important;
}
.badge-alto-rendimiento {
    background: #ff4500 !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(255, 69, 0, 0.4) !important;
    border: 1px solid #ff4500 !important;
}
.badge-lider-profesional {
    background: #a832a4 !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(168, 50, 164, 0.4) !important;
    border: 1px solid #a832a4 !important;
}

/* --- ESTILOS SIMULADOR DE ESPECTRO LED (CONTROLADOR VIRTUAL) --- */
.led {
    transition: all 0.3s ease;
}
.led.active-white {
    background: #eef5ff !important;
    box-shadow: 0 0 8px #fff, 0 0 15px rgba(230, 240, 255, 0.8) !important;
}
.led.active-red {
    background: #ff2233 !important;
    box-shadow: 0 0 8px #ff2233, 0 0 16px rgba(255, 0, 0, 0.9) !important;
}
.led.active-far-red {
    background: #ff0055 !important;
    box-shadow: 0 0 8px #ff0055, 0 0 16px rgba(255, 0, 85, 0.9) !important;
}
.spectrum-buttons button.active {
    background: var(--accent) !important;
    color: #000 !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 15px var(--accent-glow) !important;
}

/* --- ESTILOS DEL DASHBOARD DE PEDIDOS Y VENTAS --- */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 255, 136, 0.05);
}

.stat-icon {
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.stat-sub {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Layout Grid para Pedidos */
.orders-grid {
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 2rem;
    align-items: start;
}

/* Tablas Administrativas */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.admin-table th {
    padding: 1rem 0.8rem;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 1rem 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
    color: #fff;
}

/* Selectores de Estado en Tablas */
.select-status-inline {
    background: rgba(0, 0, 0, 0.4) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0.4rem 0.6rem !important;
    border-radius: 4px !important;
    font-size: 0.8rem !important;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.select-status-inline:focus {
    outline: none;
    border-color: var(--primary) !important;
}

/* Colores de estado del select */
.select-status-inline[data-status="Pendiente"] {
    color: #ffcc00 !important;
    border-color: rgba(255, 204, 0, 0.3) !important;
}

.select-status-inline[data-status="Completado"] {
    color: var(--accent) !important;
    border-color: rgba(0, 255, 136, 0.3) !important;
}

.select-status-inline[data-status="Enviado"] {
    color: #00ccff !important;
    border-color: rgba(0, 204, 255, 0.3) !important;
}

.select-status-inline[data-status="Cancelado"] {
    color: var(--error) !important;
    border-color: rgba(244, 63, 94, 0.3) !important;
}

/* Botones de acción */
.btn-delete-order {
    background: transparent;
    border: none;
    color: var(--error);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-order:hover {
    background: rgba(244, 63, 94, 0.15);
    transform: scale(1.15);
}

/* Responsividad para Pedidos */
@media (max-width: 1200px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .orders-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* --- ESTILOS ADICIONALES PARA SLIDER DE PPFD --- */
#ppfdSlider {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    border: none;
}

#ppfdSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    cursor: pointer;
    transition: transform 0.1s ease;
}

#ppfdSlider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

#ppfdSlider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    cursor: pointer;
    transition: transform 0.1s ease;
}

#ppfdSlider::-moz-range-thumb:hover {
    transform: scale(1.25);
}



