/**
 * Estilos Panel Administrativo - CreativeCR
 * Versión modular separada del HTML
 */

/* ===== FUENTES PERSONALIZADAS ===== */
@font-face {
    font-family: 'BatmanForever';
    src: url('../../fonts/batman-forever-font-betterstudio.com/batmfo__.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'GreatVibes';
    src: url('../../fonts/great_vibes/greatvibes-regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Rufina';
    src: url('../../fonts/rufina/rufina-regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Rufina';
    src: url('../../fonts/rufina/rufina-bold.ttf') format('truetype');
    font-weight: bold;
    font-display: swap;
}

/* ===== VARIABLES CSS ===== */
:root {
    --primary: #f4debe;
    --secondary: #bfa082;
    --accent: #847b45;
    --dark: #2d3748;
    --orange: #f5aa5f;
    --bg: #f7fafc;
    --text: #1a202c;
    --text-secondary: #4a5568;
    --sidebar: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
    --card: #ffffff;
    --border: #e5e7eb;
}

.dark {
    --primary: #f4debe;
    --secondary: #bfa082;
    --accent: #847b45;
    --dark: #a0aec0;
    --orange: #ed8936;
    --bg: #1a202c;
    --text: #f7fafc;
    --text-secondary: #cbd5e0;
    --sidebar: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
    --card: #2d3748;
    --border: #4a5568;
}

/* ===== BASE Y RESET ===== */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
    background: var(--bg);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: var(--text);
    font-family: 'Rufina', serif;
}

* {
    box-sizing: border-box;
}

/* ===== TIPOGRAFÍA ===== */
.font-batman { font-family: 'BatmanForever', 'Arial Black', sans-serif; }
.font-great-vibes { font-family: 'GreatVibes', cursive; }
.font-rufina { font-family: 'Rufina', serif; }
.font-rufina-bold { font-family: 'Rufina', serif; font-weight: bold; }

.glow {
    text-shadow: 0 0 10px rgba(245, 170, 95, 0.6);
    filter: drop-shadow(0 0 8px rgba(245, 170, 95, 0.4));
}

.section-title {
    color: var(--orange);
}

/* ===== SIDEBAR ===== */
.sidebar {
    background: var(--sidebar);
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    border-right: 4px solid var(--orange);
    transition: all 0.3s ease;
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    overflow-y: auto;
    z-index: 40;
}

.sidebar h1,
.sidebar p,
.sidebar span:not(.material-symbols-outlined) {
    color: white !important;
}

.sidebar-item {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin: 4px 8px;
    padding: 12px 16px;
    color: white !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-item:hover {
    background: rgba(245,170,95,0.15);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(245,170,95,0.2);
}

.sidebar-item.active {
    background: linear-gradient(135deg, var(--orange), #ff9f4d);
    color: #000 !important;
    box-shadow: 0 4px 15px rgba(245,170,95,0.4);
    transform: translateX(6px);
}

.sidebar-item.active .material-symbols-outlined {
    color: #000 !important;
}

.sidebar-item.active span:last-child {
    font-weight: bold;
    color: #000 !important;
}

/* ===== HEADER ===== */
.dashboard-header {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    background: var(--card);
    border-bottom: 2px solid var(--border);
    padding: 16px 24px;
    z-index: 30;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: 280px;
    margin-top: 80px;
    padding: 16px;
    min-height: calc(100vh - 80px);
}

@media (min-width: 640px) {
    .main-content {
        padding: 20px;
    }
}

@media (min-width: 1024px) {
    .main-content {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 12px;
    }
}

/* ===== CARDS ===== */
.dashboard-card {
    background: var(--card);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

@media (min-width: 640px) {
    .dashboard-card {
        padding: 20px;
    }
}

@media (min-width: 1024px) {
    .dashboard-card {
        padding: 24px;
    }
}

.stat-card {
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid var(--orange);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-4px) scale(1.02);
}

.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-center;
    border-radius: 12px;
    color: white;
}

/* ===== BOTONES ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--accent));
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245,170,95,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,170,95,0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ===== FORMULARIOS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    transition: all 0.3s ease;
    font-family: 'Rufina', serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(245, 170, 95, 0.1);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    cursor: pointer;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    min-height: 100px;
    resize: vertical;
    font-family: 'Rufina', serif;
}

/* ===== NOTIFICACIONES ===== */
.notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    min-width: 300px;
    max-width: 500px;
    background: white;
    color: #1a202c;
}

.notification-success {
    background: #10b981;
    color: white;
}

.notification-error {
    background: #ef4444;
    color: white;
}

.notification-warning {
    background: #f59e0b;
    color: white;
}

.notification-info {
    background: #3b82f6;
    color: white;
}

/* ===== TABLAS ===== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--primary);
    border-bottom: 2px solid var(--orange);
}

.admin-table th {
    padding: 16px;
    text-align: left;
    font-weight: bold;
    color: var(--dark);
}

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

.admin-table tbody tr:hover {
    background: rgba(245,170,95,0.05);
}

/* ===== MODAL ===== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-center;
    padding: 20px;
}

.modal-content {
    background: var(--card);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 24px;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 2px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes bounce-gentle {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

.animate-fade-out {
    animation: fadeOut 0.3s ease-in-out;
}

.animate-bounce-gentle {
    animation: bounce-gentle 2s infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
        z-index: 1000;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .dashboard-header {
        left: 0;
        margin-left: 0;
        position: fixed;
        width: 100%;
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 70px;
        padding: 12px;
        width: 100%;
    }
    
    /* Overlay para cerrar sidebar */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

/* ===== UTILIDADES ===== */
.hidden {
    display: none !important;
}

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

.bg-orange {
    background: var(--orange) !important;
}

.border-orange {
    border-color: var(--orange) !important;
}

/* ===== PÁGINA DE LOGIN PROFESIONAL ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 480px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    margin-bottom: 24px;
}

.logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f5aa5f, #ed8936);
    border-radius: 50%;
    padding: 20px;
    box-shadow: 
        0 15px 35px rgba(245, 170, 95, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.1);
    border: 4px solid rgba(255, 255, 255, 0.8);
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.1);
}

.login-title {
    font-family: 'BatmanForever', 'Arial Black', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
}

.login-subtitle {
    font-family: 'GreatVibes', cursive;
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 16px;
}

.login-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f5aa5f, transparent);
    margin: 0 auto;
    border-radius: 2px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rufina', serif;
    font-weight: bold;
    font-size: 0.95rem;
    color: #2d3748;
}

.form-icon {
    color: #f5aa5f;
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Rufina', serif;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #f5aa5f;
    box-shadow: 0 0 0 3px rgba(245, 170, 95, 0.1);
    background: white;
}

.password-container {
    position: relative;
}

.password-input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 4px;
    border-radius: 4px;
}

.password-toggle:hover {
    color: #f5aa5f;
    background: rgba(245, 170, 95, 0.1);
}

.pin-input {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
    font-weight: bold;
}

.pin-badge {
    background: linear-gradient(135deg, #f5aa5f, #ed8936);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: auto;
}

.form-separator {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0;
}

.separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.separator-text {
    font-family: 'Rufina', serif;
    font-size: 0.9rem;
    color: #718096;
    font-weight: bold;
}

.login-button {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #f5aa5f, #ed8936);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Rufina', serif;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(245, 170, 95, 0.3);
    margin-top: 8px;
}

.login-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(245, 170, 95, 0.4);
}

.login-button:active:not(:disabled) {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-text {
    font-weight: bold;
}

.button-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.login-button:hover:not(:disabled) .button-icon {
    transform: translateX(4px);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    font-family: 'Rufina', serif;
    font-weight: bold;
    font-size: 0.95rem;
    margin-top: 16px;
}

.error-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.error-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
}

.security-info {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rufina', serif;
    font-size: 0.85rem;
    color: #718096;
}

.security-item .material-symbols-outlined {
    font-size: 1rem;
    color: #10b981;
}

/* Credenciales de Acceso */
.credentials-info {
    margin-top: 20px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
}

.credentials-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rufina', serif;
    font-weight: bold;
    font-size: 0.9rem;
    color: #1e40af;
    margin-bottom: 12px;
}

.credentials-title .material-symbols-outlined {
    font-size: 1.1rem;
    color: #3b82f6;
}

.credentials-details {
    font-family: 'Rufina', serif;
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.6;
}

.credentials-details p {
    margin: 4px 0;
}

.credentials-details strong {
    color: #1e40af;
    font-weight: bold;
}

.login-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.footer-text {
    font-family: 'Rufina', serif;
    font-size: 0.85rem;
    color: #a0aec0;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(245, 170, 95, 0.2);
    border-top: 4px solid #f5aa5f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-family: 'Rufina', serif;
    font-size: 1.1rem;
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 640px) {
    .login-card {
        padding: 32px 24px;
        margin: 16px;
        border-radius: 20px;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .login-subtitle {
        font-size: 1.25rem;
    }
    
    .logo-container {
        width: 80px;
        height: 80px;
        padding: 16px;
    }
    
    .form-input {
        padding: 14px 16px;
    }
    
    .login-button {
        padding: 16px 20px;
    }
    
    .security-info {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 12px;
    }
    
    .login-card {
        padding: 24px 20px;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .form-input {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    .login-button {
        padding: 14px 18px;
        font-size: 1rem;
    }
}

/* ===== BADGES Y TAGS ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.badge-success {
    background: #10b981;
    color: white;
}

.badge-warning {
    background: #f59e0b;
    color: white;
}

.badge-danger {
    background: #ef4444;
    color: white;
}

.badge-info {
    background: #3b82f6;
    color: white;
}

/* ===== LOADING SCREEN ===== */
#loadingScreen {
    transition: opacity 0.3s ease;
}

#loadingScreen.fade-out {
    opacity: 0;
}
.spinner {
    border: 3px solid rgba(245,170,95,0.2);
    border-top: 3px solid var(--orange);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.loading-spinner {
    border: 4px solid rgba(245,170,95,0.2);
    border-top: 4px solid var(--orange);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== SECCIÓN ===== */
.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* ===== ACCESIBILIDAD ===== */
*:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== SCROLLBAR PERSONALIZADO ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ===== TARJETAS DE PRODUCTOS - ARREGLAR DESBORDAMIENTO ===== */
.product-card {
    min-height: 200px;
    max-height: 400px;
    overflow: hidden;
    word-wrap: break-word;
    hyphens: auto;
}

.product-card .product-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.product-card .product-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 8px 0 4px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card .product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--orange);
    margin: 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card .product-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin: 4px 0;
}

.product-card .product-category {
    font-size: 0.75rem;
    background: var(--orange);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin: 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Botones en tarjetas de productos */
.product-card .product-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.product-card .product-actions button {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive para tarjetas de productos */
@media (max-width: 640px) {
    .product-card {
        min-height: 180px;
        max-height: 350px;
    }
    
    .product-card .product-image {
        height: 100px;
    }
    
    .product-card .product-title {
        font-size: 0.875rem;
        -webkit-line-clamp: 1;
    }
    
    .product-card .product-price {
        font-size: 1.125rem;
    }
    
    .product-card .product-description {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }
    
    .product-card .product-actions {
        flex-direction: column;
    }
    
    .product-card .product-actions button {
        width: 100%;
    }
}

/* ===== GRID RESPONSIVE ===== */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .admin-grid { 
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .admin-grid { 
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
        gap: 24px;
    }
}

@media (min-width: 1536px) {
    .admin-grid { 
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
    }
}

/* ===== EFECTOS ESPECIALES ===== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(245,170,95,0.4);
    }
    100% {
        box-shadow: 0 0 20px rgba(245,170,95,0.8);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .sidebar,
    .dashboard-header,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 0;
    }
    
    .dashboard-card {
        box-shadow: none !important;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

