/* ============================================
   MACHOTE WEB - Estilos Globales
   Paleta de colores estilo turquesa/verde azulado
   ============================================ */

/* === VARIABLES CSS === */
:root {
    /* Colores principales - Turquesa/Verde azulado */
    --primary: #14b8a6;           /* Teal principal */
    --primary-dark: #0d9488;      /* Teal oscuro */
    --primary-light: #5eead4;     /* Teal claro */
    --primary-rgb: 20, 184, 166;  /* Para transparencias */
    
    /* Colores secundarios */
    --secondary: #06b6d4;         /* Cyan */
    --secondary-dark: #0891b2;
    --secondary-light: #22d3ee;
    
    /* Colores de acento */
    --accent: #8b5cf6;            /* Violeta para acentos */
    --accent-light: #a78bfa;
    
    /* Grises y neutros */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Estados */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --error: #ef4444;
    --error-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;
    
    /* Fondos */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    
    /* Textos */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    /* Gradientes - Estilo del botón "Nuevo Evento" */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #14b8a6 50%, #10b981 100%);
    --gradient-dark: linear-gradient(135deg, #1e3a5f 0%, #0d4f4f 100%);
    --gradient-hero: linear-gradient(135deg, #e0e7ff 0%, #ccfbf1 100%);
    --gradient-button: linear-gradient(135deg, #5b6cd4 0%, #14b8a6 100%);
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 10px 40px -10px rgba(20, 184, 166, 0.4);
    
    /* Bordes */
    --border-color: #e2e8f0;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-full: 9999px;
    
    /* Transiciones */
    --transition-fast: 150ms ease;
    --transition: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Espaciado */
    --header-height: 70px;
}

/* === RESET Y BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-body);
    min-height: 100vh;
}

/* === TIPOGRAFÍA === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* === HEADER / NAVBAR === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    width: 45px;
    height: 45px;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

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

/* === BOTONES === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Botón Primary - Gradiente turquesa */
.btn-primary {
    background: var(--gradient-button);
    color: var(--text-white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 45px -10px rgba(20, 184, 166, 0.5);
}

/* Botón Secondary (Outline) */
.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--primary);
    color: var(--text-white);
}

/* Botón Ghost */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--gray-100);
    color: var(--text-primary);
}

/* Tamaños de botón */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* === FORMULARIOS === */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input.error {
    border-color: var(--error);
}

.form-input.success {
    border-color: var(--success);
}

/* Input con ícono */
.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .form-input {
    padding-left: 2.75rem;
}

.input-icon-wrapper .icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Toggle password */
.input-icon-wrapper .toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.input-icon-wrapper .toggle-password:hover {
    color: var(--text-secondary);
}

/* Mensaje de error/éxito */
.form-message {
    font-size: 0.8125rem;
    margin-top: 0.375rem;
}

.form-message.error {
    color: var(--error);
}

.form-message.success {
    color: var(--success);
}

/* === MODALES === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px !important;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: transform var(--transition);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 1.5rem 1.5rem 0;
    text-align: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-full);
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

/* Contenedor del modal (para posicionar el botón cerrar) */
.modal-container {
    position: relative;
}

/* === ALERTAS === */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: var(--error-light);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: var(--info-light);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* === LINKS === */
.link {
    color: var(--primary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.link-subtle {
    color: var(--text-secondary);
}

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

/* === SEPARADORES === */
.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider::before {
    margin-right: 1rem;
}

.divider::after {
    margin-left: 1rem;
}

/* === SPINNER/LOADER === */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 2rem) 1.5rem 2rem;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    color: var(--gray-800);
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* === UTILIDADES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .modal {
        max-width: 100%;
        margin: 0.5rem;
        border-radius: var(--border-radius-lg);
    }
}

/* === ANIMACIONES === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.animate-fadeIn { animation: fadeIn var(--transition) forwards; }
.animate-slideUp { animation: slideUp var(--transition) forwards; }
.animate-shake { animation: shake 0.5s forwards; }

/* ============================================
   DASHBOARD - Estilos del panel principal
   ============================================ */

/* === BASE DASHBOARD === */
.dashboard {
    padding-top: calc(var(--header-height) + 1.5rem);
    min-height: 100vh;
}

.dashboard-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* === CONTROL BOX (contenedor principal evento) === */
.control-box {
    background: var(--gradient-hero);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.control-box::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* === ROW TOP: avatar | selector | stats === */
.row-top {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
}

/* === PROFILE AVATAR === */
.profile-avatar {
    width: 120px;
    height: 120px;
    min-width: 120px;
    border-radius: 22px;
    border: 3px solid #fff;
    box-shadow: var(--shadow-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === EVENT SELECTOR === */
.event-selector {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    width: 190px;
    min-width: 170px;
}

/* === BOTÓN VERDE (reutilizable) === */
.btn-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--gradient-button);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-primary);
    white-space: nowrap;
}

.btn-green:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 45px -10px rgba(var(--primary-rgb), 0.5);
}

.btn-green.full-w { width: 100%; }
.btn-green svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-green.danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    box-shadow: 0 3px 12px rgba(220, 38, 38, 0.25);
}

.btn-green.danger:hover {
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.35);
}

/* Tutorial button — smaller, icon only */
.btn-green.btn-tutorial {
    padding: 0.6rem 0.75rem;
    min-width: 0;
    width: auto;
    position: relative;
}

.btn-green.btn-tutorial[title] {
    cursor: help;
}

.btn-green.btn-tutorial:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--gray-800);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    white-space: normal;
    width: 220px;
    line-height: 1.4;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    pointer-events: none;
}

.btn-green.btn-tutorial:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    right: 12px;
    border: 6px solid transparent;
    border-top-color: var(--gray-800);
    z-index: 10;
    pointer-events: none;
}

/* === EVENT COMBO SELECT === */
.event-combo {
    width: 100%;
    padding: 0.55rem 0.8rem;
    font-size: 0.82rem;
    font-family: inherit;
    color: var(--gray-700);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6.5 6.5-6.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    padding-right: 2rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.event-combo:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

/* === STATS ROW === */
.stats-row {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.6rem;
}

/* === STAT CARD === */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.7rem 0.8rem;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.25s ease;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.stat-card .stat-icon {
    width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex-shrink: 0;
}

.stat-card .stat-icon svg {
    width: 17px;
    height: 17px;
}

.stat-card h3 {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0;
}

.stat-card .value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
}

/* Number bubble — same height as stat-icon, aligned */
.stat-bubble {
    min-width: 38px;
    height: 32px;
    padding: 0 0.5rem;
    border-radius: 8px;
    background: var(--success-light);
    color: var(--success);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.stat-card .trend {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.6rem;
    font-weight: 600;
    margin-top: 0.35rem;
    padding: 0.15rem 0.4rem;
    border-radius: 20px;
    width: fit-content;
}

.stat-card .trend.up { color: #15803d; background: var(--success-light); }
.stat-card .trend.down { color: #b91c1c; background: var(--error-light); }
.stat-card .trend.neutral { color: #92400e; background: var(--warning-light); }

/* Stat icon colors */
.stat-icon.views { background: var(--info-light); color: var(--info); }
.stat-icon.photos { background: #fce7f3; color: #db2777; }
.stat-icon.videos { background: #ede9fe; color: #7c3aed; }
.stat-icon.likes { background: var(--error-light); color: var(--error); }

/* === ROW BUTTONS === */
.row-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}

/* === SECTION TITLE === */
.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-title .dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
}

/* === DESIGN PANEL (toggle invitación / álbum) === */
.design-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.design-panel:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.design-view { display: none; }

.design-view.active {
    display: block;
    animation: fadeIn var(--transition) ease;
}

.design-card-header {
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.design-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

/* === BADGE STATUS === */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--border-radius-full);
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-status.draft { background: var(--warning-light); color: #92400e; }
.badge-status.published { background: var(--success-light); color: #15803d; }

/* === DESIGN CARD PREVIEW === */
.design-card-preview {
    margin: 0 1.5rem;
    border-radius: var(--border-radius-xl);
    background: var(--gradient-hero);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 2px dashed rgba(var(--primary-rgb), 0.25);
}

.design-card-preview .preview-icon {
    width: 64px;
    height: 64px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--border-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.design-card-preview .preview-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.design-card-preview p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
    text-align: center;
    max-width: 240px;
}

/* === DESIGN CARD FOOTER & BUTTONS === */
.design-card-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    gap: 0.65rem;
}

.btn-design {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-design.primary {
    background: var(--gradient-button);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-design.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 45px -10px rgba(var(--primary-rgb), 0.5);
}

.btn-design.secondary {
    background: rgba(var(--primary-rgb), 0.06);
    color: var(--primary-dark);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.btn-design.secondary:hover {
    background: rgba(var(--primary-rgb), 0.12);
}

/* === STEPS MINI === */
.steps-mini {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.5rem 0.75rem;
}

.step-dot {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--gray-400);
}

.step-dot .num {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--gray-500);
}

.step-dot.active .num {
    background: var(--primary);
    color: #fff;
}

.step-dot.active {
    color: var(--primary-dark);
}

/* === DASHBOARD ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }

/* === DASHBOARD RESPONSIVE === */
@media (max-width: 1100px) {
    .row-top {
        flex-wrap: wrap;
    }
    .stats-row {
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
    }
}

@media (max-width: 768px) {
    .row-top {
        flex-direction: column;
        align-items: center;
    }
    .profile-avatar {
        width: 80px;
        height: 80px;
        min-width: 80px;
        align-self: center;
    }
    .event-selector {
        width: 100%;
        min-width: unset;
    }
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .row-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
    .row-buttons {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   VISTA WEB - Configuración
   Agregar al final de css/estilos.css
   ========================================= */

/* Contenedor de configuración */
.vistaweb-config {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

/* Grupos de configuración */
.config-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.config-label svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary);
}

/* Inputs modernos */
.input-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: all 0.2s;
}

.input-modern:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Input de color */
.input-color {
    width: 100%;
    height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    padding: 4px;
    background: var(--bg-input);
}

.input-color::-webkit-color-swatch-wrapper {
    padding: 0;
}

.input-color::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

/* Input range (slider) */
.input-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.input-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.input-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Radio cards para orientación */
.radio-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-input);
    transition: all 0.2s;
}

.radio-card:hover .radio-content {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
}

.radio-card input[type="radio"]:checked + .radio-content {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.radio-content svg {
    stroke: var(--text-secondary);
}

.radio-card input[type="radio"]:checked + .radio-content svg {
    stroke: var(--primary);
}

.radio-content span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.radio-card input[type="radio"]:checked + .radio-content span {
    color: var(--primary);
}

/* Toggle switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.toggle-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.toggle-slider {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--gray-300);
    border-radius: 13px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Variables de color adicionales */
:root {
    --success-bg: #f0fdf4;
    --success-border: #86efac;
    --success-color: #166534;
}

/* Dark mode support para variables de éxito */
@media (prefers-color-scheme: dark) {
    :root {
        --success-bg: #064e3b;
        --success-border: #10b981;
        --success-color: #d1fae5;
    }
}