/* 
  SUPLECLUB.COM - Diseño Visual Potenciado & Sistema ERP
  Paleta de Colores derivada del Logo Oficial (Supleclub.jpg):
  - Primario: #0E223D (Azul Marino Profundo / Prestigio Médico)
  - Secundario: #16355E (Azul Nocturno Vibrante)
  - Acento Dorado: #C89D46 / #D4AF37 (Oro Cálido Lujoso)
  - WhatsApp: #25D366 / #128C7E (Verde Esmeralda Conversión)
  - Fondos: #F8FAF9 (Puro Claro) / #FFFFFF
  - Texto: #0F172A / #475569
*/

:root {
    --primary: #0E223D;
    --primary-light: #16355E;
    --primary-dark: #071324;
    --accent-gold: #C89D46;
    --accent-gold-light: #E5C378;
    --accent-gold-glow: rgba(200, 157, 70, 0.25);
    --whatsapp: #25D366;
    --whatsapp-hover: #1EBE57;
    --bg-light: #F8FAF9;
    --bg-white: #FFFFFF;
    --card-bg: #FFFFFF;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --danger: #EF4444;
    --success: #10B981;
    --shadow-sm: 0 2px 4px rgba(14, 34, 61, 0.04);
    --shadow-md: 0 6px 16px rgba(14, 34, 61, 0.08);
    --shadow-lg: 0 12px 30px rgba(14, 34, 61, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

#hero, #productos, #nosotros, #testimonios, #faq {
    scroll-margin-top: 96px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   VISTAS GENERALES (TIENDA VS PORTAL)
   ========================================== */
.view-section {
    display: none;
}

.view-section.active {
    display: block;
}

/* ==========================================
   BARRA SUPERIOR DE ANUNCIOS & PORTAL TOGGLE
   ========================================== */
.top-announcement-bar {
    background-color: var(--primary-dark);
    color: #FFFFFF;
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(200, 157, 70, 0.3);
}

.announcement-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.announcement-text strong {
    color: var(--accent-gold);
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-wa-link {
    color: #FFFFFF;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-wa-link:hover {
    color: var(--accent-gold);
}

.wa-dot {
    width: 8px;
    height: 8px;
    background-color: var(--whatsapp);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--whatsapp);
}

/* ==========================================
   HEADER PRINCIPAL Y LOGO DE MARCA
   ========================================== */
.main-header {
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid var(--accent-gold);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #FFFFFF;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(200, 157, 70, 0.4);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.brand-text-group {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #FFFFFF;
    line-height: 1.1;
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-gold);
}

.nav-menu ul {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: #E2E8F0;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-trigger-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(200, 157, 70, 0.4);
    color: #FFFFFF;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cart-trigger-btn:hover {
    background-color: var(--accent-gold);
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--whatsapp);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #FFFFFF;
    margin: 5px 0;
}

/* ==========================================
   HERO SECTION DE ALTO IMPACTO
   ========================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: #FFFFFF;
    padding: 80px 0 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(200, 157, 70, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.gold-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200, 157, 70, 0.15);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold-light);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gold-gradient-text {
    background: linear-gradient(135deg, #FFF 0%, var(--accent-gold) 60%, #E5C378 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    font-size: 1.1rem;
    color: #CBD5E1;
    margin-bottom: 32px;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-trust-badges {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-text strong {
    display: block;
    font-size: 0.9rem;
    color: #FFFFFF;
}

.badge-text span {
    font-size: 0.78rem;
    color: var(--accent-gold);
}

.hero-media {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-card-glow {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(200, 157, 70, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hero-img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 5;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    object-fit: cover;
}

.hero-floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--primary-dark);
    border: 1px solid var(--accent-gold);
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 240px;
}

.star-rating {
    font-size: 0.8rem;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 4px;
}

.hero-floating-card strong {
    font-size: 0.95rem;
    color: #FFFFFF;
    display: block;
}

.hero-floating-card p {
    font-size: 0.78rem;
    color: #94A3B8;
    margin-bottom: 8px;
}

.hero-price {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-gold);
}

/* ==========================================
   BOTONES Y ELEMENTOS DE ACCIÓN
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #B38634 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px var(--accent-gold-glow);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #D5A037 0%, #9C7229 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 157, 70, 0.4);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-outline {
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--accent-gold);
    color: var(--primary);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-block {
    width: 100%;
}

.btn-danger-sm {
    background-color: #FEF2F2;
    color: var(--danger);
    border: 1px solid #FCA5A5;
}

.btn-danger-sm:hover {
    background-color: var(--danger);
    color: #FFFFFF;
}

/* ==========================================
   SECCIONES DE LA TIENDA Y CATÁLOGO
   ========================================== */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 48px;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Filtros de Categoría */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    color: var(--accent-gold);
    border-color: var(--primary);
}

/* Grid de Productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}

.product-tag-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
    border: 1px solid var(--accent-gold);
}

.product-img-wrapper {
    height: 240px;
    background-color: #F1F5F9;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-img-wrapper img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.current-price {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.original-price {
    font-size: 1rem;
    color: #94A3B8;
    text-decoration: line-through;
}

.product-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ==========================================
   POR QUÉ SUPLECLUB, TESTIMONIOS & FAQ
   ========================================== */
.why-us-section {
    background-color: #FFFFFF;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 32px;
    border-radius: var(--radius-md);
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.testimonials-section {
    background-color: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: #FFFFFF;
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.testimonial-card .stars {
    margin-bottom: 12px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.author-info strong {
    display: block;
    color: var(--primary);
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Acordeón FAQ */
.faq-section {
    background-color: #FFFFFF;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    padding: 0 24px 20px 24px;
    display: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-top: 1px solid #F1F5F9;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* ==========================================
   ESTILOS DEL PORTAL ADMINISTRATIVO (ERP)
   ========================================== */
.portal-header {
    background-color: var(--primary-dark);
    color: #FFFFFF;
    padding: 24px 0;
    border-bottom: 2px solid var(--accent-gold);
}

.portal-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.portal-logo {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    background-color: #FFFFFF;
}

.portal-brand h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #FFFFFF;
}

.portal-brand p {
    font-size: 0.85rem;
    color: var(--accent-gold);
}

.portal-tabs-bar {
    background-color: var(--primary);
    border-bottom: 1px solid rgba(226, 232, 240, 0.1);
}

.portal-tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 20px 0 20px;
}

.portal-tab-btn {
    background: transparent;
    border: none;
    color: #94A3B8;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all 0.2s ease;
}

.portal-tab-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
}

.portal-tab-btn.active {
    color: var(--accent-gold);
    background-color: var(--bg-light);
    border-top: 2px solid var(--accent-gold);
}

.portal-content-area {
    padding: 40px 20px 80px 20px;
}

.portal-tab-content {
    display: none;
}

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

/* TARJETAS KPI Y DASHBOARD */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.kpi-card {
    background-color: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.kpi-card.gold-border {
    border-left: 4px solid var(--accent-gold);
}

.kpi-card.highlight-green {
    border-left: 4px solid var(--success);
    background-color: #F0FDF4;
}

.kpi-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.text-green {
    color: var(--success) !important;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.kpi-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.portal-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.admin-card {
    background-color: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.max-width-800 {
    max-width: 800px;
    margin: 0 auto;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert-item-box {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.inventory-summary-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

/* FORMULARIOS Y TABLAS ADMINISTRATIVAS */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: #FFFFFF;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px var(--accent-gold-glow);
}

.calculation-preview-box {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 20px 0;
}

.calculation-preview-box h5 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    padding: 4px 0;
    color: var(--text-muted);
}

.calc-row.highlight {
    border-top: 1px solid #CBD5E1;
    margin-top: 8px;
    padding-top: 8px;
    font-size: 1rem;
    color: var(--primary);
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.admin-table th {
    background-color: var(--primary);
    color: var(--accent-gold);
    padding: 12px 16px;
    font-weight: 600;
    font-family: var(--font-heading);
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.admin-table tr:hover {
    background-color: #F8FAFC;
}

.admin-table tr.row-voided {
    opacity: 0.55;
}

.admin-table tr.row-voided td {
    text-decoration: line-through;
}

.admin-table tr.row-voided td:last-child {
    text-decoration: none;
}

/* ==========================================
   MODALES Y POPUPS
   ========================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(7, 19, 36, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #FFFFFF;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    animation: modalPop 0.3s ease;
}

.modal-lg {
    max-width: 800px;
}

/* Galería de miniaturas en el modal de detalle de producto */
.product-gallery-thumbs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.product-gallery-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.product-gallery-thumb:hover {
    opacity: 1;
}

.product-gallery-thumb.active {
    border-color: var(--accent-gold);
    opacity: 1;
}

@keyframes modalPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #94A3B8;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 16px;
}

/* Carrito Items */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #F8FAFC;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #FFFFFF;
    cursor: pointer;
    font-weight: 700;
}

.cart-summary-box {
    background-color: #F1F5F9;
    padding: 16px;
    border-radius: var(--radius-md);
}

.cart-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.cart-row.total-row {
    border-top: 1px solid #CBD5E1;
    padding-top: 8px;
    margin-top: 8px;
    font-size: 1.1rem;
}

/* Sticky Bar Móvil */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    padding: 12px 16px;
    z-index: 99;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mobile-btn-cart {
    background-color: var(--accent-gold);
    color: var(--primary);
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.mobile-btn-wa {
    background-color: var(--whatsapp);
    color: #FFFFFF;
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

/* ==========================================
   PIE DE PÁGINA (FOOTER)
   ========================================== */
.site-footer {
    background-color: var(--primary-dark);
    color: #CBD5E1;
    padding-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.1);
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #FFFFFF;
    padding: 2px;
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #FFFFFF;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #94A3B8;
    max-width: 320px;
}

.footer-links-col h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--accent-gold);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.footer-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col a {
    color: #CBD5E1;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links-col a:hover {
    color: var(--accent-gold);
}

.footer-links-col span {
    font-size: 0.9rem;
    color: #94A3B8;
}

.footer-badges-list li {
    font-size: 0.9rem;
    color: #CBD5E1;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 20px;
    font-size: 0.82rem;
    color: #94A3B8;
}

/* ==========================================
   BOTÓN FLOTANTE DE WHATSAPP (TABLET & ESCRITORIO)
   ========================================== */
.floating-wa-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: var(--whatsapp);
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    cursor: pointer;
    z-index: 90;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-wa-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
}

.floating-wa-btn:focus-visible {
    outline: 2px solid var(--accent-gold-light);
    outline-offset: 3px;
}

/* ==========================================
   RESPONSIVE DESIGN (TELÉFONOS & TABLETS)
   ========================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtext {
        margin: 0 auto 32px auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust-badges {
        justify-content: center;
    }

    .portal-two-cols {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--primary-dark);
        padding: 20px;
        border-bottom: 2px solid var(--accent-gold);
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 16px;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

    .mobile-sticky-bar {
        display: grid;
    }

    body {
        padding-bottom: 60px;
    }

    .form-grid-2, .form-grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 8px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    /* La barra sticky móvil ya ofrece acceso directo a WhatsApp */
    .floating-wa-btn {
        display: none;
    }
}
