/* MACHOTE WEB - Estilos Globales - Paleta Turquesa */

:root {
    --primary: #14b8a6;
    --primary-dark: #0d9488;
    --primary-light: #5eead4;
    --primary-rgb: 20, 184, 166;
    --secondary: #06b6d4;
    --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;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --error: #ef4444;
    --error-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    --gradient-hero: linear-gradient(135deg, #e0e7ff 0%, #ccfbf1 100%);
    --gradient-button: linear-gradient(135deg, #5b6cd4 0%, #14b8a6 100%);
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
    --shadow-primary: 0 10px 40px -10px rgba(20,184,166,0.4);
    --border-color: #e2e8f0;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-full: 9999px;
    --transition-fast: 150ms ease;
    --transition: 250ms ease;
    --header-height: 70px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text-primary); background: var(--bg-body); min-height: 100vh; }

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; }
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 */
.header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-height); background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); z-index: 1000; }
.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; }
.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); }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover:not(:disabled) { background: var(--primary); color: var(--text-white); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover:not(:disabled) { background: var(--gray-100); color: var(--text-primary); }
.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); }
.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; }
.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; }
.form-message { font-size: 0.8125rem; margin-top: 0.375rem; }
.form-message.error { color: var(--error); }

/* Modales */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); 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; 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); }
.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; }
.link:hover { color: var(--primary-dark); text-decoration: underline; }
.link-subtle { color: var(--text-secondary); }
.link-subtle:hover { color: var(--primary); }

/* Spinner */
.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 */
.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; }
.hero-content { text-align: center; 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-right { text-align: right; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 768px) {
    :root { --header-height: 60px; }
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .logo-text { display: none; }
    .btn { padding: 0.5rem 1rem; font-size: 0.875rem; }
    .modal { max-width: 100%; margin: 0.5rem; }
}

/* Animaciones */
@keyframes shake { 0%, 100% { transform: translateX(0); } 10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); } 20%, 40%, 60%, 80% { transform: translateX(5px); } }
.animate-shake { animation: shake 0.5s forwards; }
