/* ============================================
   SISTEMA DE EMPLEO - GRUPO CEGEDZA
   Identidad Visual Oficial
   Colores: #ffffff, #f2911f, #36bbdd, #2d3e72
   ============================================ */

/* === Google Fonts Import === */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* === CSS Custom Properties === */
:root {
    /* Colores de Marca CEGEDZA */
    --brand-white: #ffffff;
    --brand-orange: #f2911f;
    --brand-cyan: #36bbdd;
    --brand-navy: #2d3e72;

    /* Variaciones de naranja */
    --orange-50: #fff8f0;
    --orange-100: #ffecd6;
    --orange-200: #ffd9ad;
    --orange-300: #ffc07a;
    --orange-400: #f9a647;
    --orange-500: #f2911f;
    --orange-600: #d97a12;
    --orange-700: #b5630d;

    /* Variaciones de cyan */
    --cyan-50: #effbfe;
    --cyan-100: #d4f3fa;
    --cyan-200: #ade7f5;
    --cyan-300: #7ad8ee;
    --cyan-400: #50c7e3;
    --cyan-500: #36bbdd;
    --cyan-600: #2a9bbf;
    --cyan-700: #1f7a9b;

    /* Variaciones de navy */
    --navy-50: #f0f2f8;
    --navy-100: #dde1ef;
    --navy-200: #b8c0dc;
    --navy-300: #8e9ac5;
    --navy-400: #6a79ad;
    --navy-500: #4d5d92;
    --navy-600: #3d4e80;
    --navy-700: #2d3e72;
    --navy-800: #1f2c54;
    --navy-900: #141d3a;
    --navy-950: #0c1225;

    /* Colores de estado */
    --emerald-50: #ecfdf5;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;

    --rose-50: #fff1f2;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;

    /* Alias "primary" → naranja de marca (usado en admin JS/PHP) */
    --primary-50:  #fff8f0;
    --primary-100: #ffecd6;
    --primary-200: #ffd9ad;
    --primary-500: #f2911f;
    --primary-600: #d97a12;

    /* Amber (usado en badges y cards del admin) */
    --amber-50:  #fffbeb;
    --amber-100: #fef3c7;
    --amber-500: #f59e0b;
    --amber-600: #d97706;

    /* Violet (usado en classification-badges) */
    --violet-50:  #f5f3ff;
    --violet-500: #8b5cf6;
    --violet-600: #7c3aed;

    /* Neutros */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Gradientes de Marca */
    --gradient-brand: linear-gradient(135deg, var(--brand-orange) 0%, #e85d26 50%, var(--brand-cyan) 100%);
    --gradient-hero: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 25%, var(--brand-navy) 50%, var(--navy-600) 100%);
    --gradient-primary: linear-gradient(135deg, var(--brand-orange) 0%, #e8732a 100%);
    --gradient-secondary: linear-gradient(135deg, var(--brand-cyan) 0%, #2a9bbf 100%);
    --gradient-card: linear-gradient(135deg, rgba(54, 187, 221, 0.03) 0%, rgba(242, 145, 31, 0.03) 100%);
    --gradient-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --gradient-accent: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-orange) 100%);

    /* Sombras */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-brand: 0 10px 40px rgba(45, 62, 114, 0.2);
    --shadow-orange: 0 4px 20px rgba(242, 145, 31, 0.3);
    --shadow-cyan: 0 4px 20px rgba(54, 187, 221, 0.3);

    /* Bordes */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Transiciones */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

/* === FORMULARIO PÚBLICO === */

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    padding: 48px 20px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated background orbs */
.hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(54, 187, 221, 0.15) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 145, 31, 0.12) 0%, transparent 70%);
    animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-25px) rotate(3deg); }
    66% { transform: translateY(-10px) rotate(-2deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

/* Logo container */
.hero-logo {
    width: 200px;
    height: auto;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoFadeIn 1s ease-out;
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.15));
}

.hero-logo img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

@keyframes logoFadeIn {
    from { opacity: 0; transform: translateY(-15px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--brand-white);
    margin-bottom: 14px;
    letter-spacing: -0.03em;
    line-height: 1.2;
    animation: slideUp 0.7s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(0.92rem, 2vw, 1.08rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
    animation: slideUp 0.7s ease-out 0.4s both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 36px;
    flex-wrap: wrap;
    animation: slideUp 0.7s ease-out 0.6s both;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    transition: var(--transition-base);
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(54, 187, 221, 0.3);
    transform: translateY(-2px);
}

.trust-badge .icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Form Container */
.form-container {
    max-width: 720px;
    margin: -45px auto 50px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.form-card {
    background: var(--brand-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.03);
    padding: 44px 40px;
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

/* Progress Steps */
.form-progress {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 36px;
    padding: 0 10px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    color: var(--gray-400);
    font-size: 0.78rem;
    font-weight: 600;
    transition: var(--transition-slow);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.progress-step.active {
    background: var(--navy-50);
    color: var(--brand-navy);
    box-shadow: 0 0 0 2px rgba(45, 62, 114, 0.1);
}

.progress-step.completed {
    background: var(--emerald-50);
    color: var(--emerald-600);
}

.progress-step .step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    background: var(--gray-300);
    color: var(--brand-white);
    transition: var(--transition-base);
}

.progress-step.active .step-num {
    background: var(--brand-navy);
    box-shadow: 0 2px 8px rgba(45, 62, 114, 0.4);
}

.progress-step.completed .step-num {
    background: var(--emerald-500);
}

/* Form Section */
.form-section {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.form-section.active {
    display: block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 0.88rem;
    color: var(--gray-500);
    font-weight: 400;
}

/* Form Fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy-700);
    margin-bottom: 7px;
    letter-spacing: 0.01em;
}

.form-group label .required {
    color: var(--brand-orange);
    margin-left: 2px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    font-size: 0.92rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    outline: none;
}

.form-control:hover {
    border-color: var(--gray-300);
    background: var(--brand-white);
}

.form-control:focus {
    border-color: var(--brand-cyan);
    background: var(--brand-white);
    box-shadow: 0 0 0 4px rgba(54, 187, 221, 0.12);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Evaluation sections */
.eval-section-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.eval-icon {
    font-size: 1.1rem;
}

.eval-question {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 14px;
    transition: var(--transition-base);
}

.eval-question:hover {
    border-color: var(--cyan-200);
    background: var(--cyan-50);
}

.eval-question-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
    line-height: 1.5;
}

.eval-tip {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--orange-50);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--brand-orange);
    line-height: 1.5;
}

/* Radio group */
.radio-group {
    display: flex;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 2px solid var(--gray-200);
    transition: var(--transition-base);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-600);
}

.radio-option:hover {
    border-color: var(--brand-cyan);
    background: var(--cyan-50);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + .radio-custom + .radio-text {
    color: var(--brand-navy);
    font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--brand-cyan);
    background: var(--cyan-50);
    box-shadow: 0 0 0 3px rgba(54, 187, 221, 0.12);
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    position: relative;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--brand-cyan);
    background: var(--brand-cyan);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--brand-white);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.eval-textarea {
    margin-top: 4px;
}

/* Consent */
.consent-box {
    background: var(--navy-50);
    border: 1px solid var(--navy-100);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--gray-600);
}

.consent-label input[type="checkbox"] {
    display: none;
}

.consent-check {
    width: 22px;
    height: 22px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: var(--transition-base);
}

.consent-label input[type="checkbox"]:checked + .consent-check {
    background: var(--brand-cyan);
    border-color: var(--brand-cyan);
}

.consent-label input[type="checkbox"]:checked + .consent-check::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--brand-white);
    font-size: 0.75rem;
    font-weight: 800;
}

.consent-text .required {
    color: var(--brand-orange);
}

/* File Upload */
.file-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-slow);
    background: var(--gray-50);
    position: relative;
}

.file-upload-area:hover {
    border-color: var(--brand-cyan);
    background: var(--cyan-50);
}

.file-upload-area.dragover {
    border-color: var(--brand-cyan);
    background: var(--cyan-50);
    box-shadow: 0 0 0 4px rgba(54, 187, 221, 0.12);
    transform: scale(1.01);
}

.file-upload-area.has-file {
    border-color: var(--emerald-400);
    background: var(--emerald-50);
    border-style: solid;
}

.upload-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--cyan-100), var(--orange-100));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition-base);
}

.file-upload-area:hover .upload-icon {
    transform: scale(1.1) rotate(-3deg);
    background: linear-gradient(135deg, var(--cyan-200), var(--orange-200));
}

.upload-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.upload-hint {
    font-size: 0.78rem;
    color: var(--gray-400);
}

.file-info {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--emerald-600);
    font-weight: 500;
}

.file-upload-area.has-file .file-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mb-6 {
    margin-bottom: 24px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--brand-white);
    box-shadow: var(--shadow-md), var(--shadow-orange);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 8px 30px rgba(242, 145, 31, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--gradient-success);
    color: var(--brand-white);
    box-shadow: var(--shadow-md), 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 8px 25px rgba(16, 185, 129, 0.35);
}

.btn-danger {
    background: var(--rose-500);
    color: var(--brand-white);
}

.btn-danger:hover {
    background: var(--rose-600);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--brand-white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.success-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(12, 18, 37, 0.7);
    backdrop-filter: blur(12px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.success-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-card {
    background: var(--brand-white);
    border-radius: var(--radius-2xl);
    padding: 52px 44px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    box-shadow: var(--shadow-2xl);
    animation: scaleIn 0.5s var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.success-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-success);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--emerald-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 40px;
    animation: bounceIn 0.6s ease 0.2s both;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 10px;
}

.success-text {
    font-size: 0.92rem;
    color: var(--gray-500);
    margin-bottom: 28px;
    line-height: 1.7;
}

/* Error styles */
.form-error {
    font-size: 0.78rem;
    color: var(--rose-500);
    margin-top: 4px;
    display: none;
    font-weight: 500;
}

.form-group.error .form-control {
    border-color: var(--rose-400);
    background: var(--rose-50);
}

.form-group.error .form-error {
    display: block;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--navy-900);
    color: var(--brand-white);
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-size: 0.88rem;
    font-weight: 500;
    z-index: 2000;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-2xl);
    max-width: 90%;
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: var(--rose-600);
}

.toast.success {
    background: var(--emerald-600);
}

/* Footer */
.page-footer {
    text-align: center;
    padding: 36px 20px;
    color: var(--gray-400);
    font-size: 0.82rem;
    background: var(--gray-50);
}

.page-footer a {
    color: var(--brand-cyan);
    text-decoration: none;
    font-weight: 500;
}

/* =======================================
   PANEL DE ADMINISTRACIÓN
   ======================================= */

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
    color: var(--brand-white);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: var(--transition-base);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar-brand-text {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.sidebar-brand-sub {
    font-size: 0.72rem;
    color: var(--gray-400);
    font-weight: 400;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: var(--radius-md);
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition-fast);
    margin-bottom: 4px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--brand-white);
}

.nav-item.active {
    background: var(--brand-orange);
    color: var(--brand-white);
    box-shadow: 0 2px 12px rgba(242, 145, 31, 0.3);
}

.nav-item .nav-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.nav-badge {
    margin-left: auto;
    background: var(--brand-cyan);
    color: var(--brand-white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    min-width: 22px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 0.82rem;
    font-weight: 600;
}

.user-role {
    font-size: 0.7rem;
    color: var(--gray-400);
}

/* Admin Main */
.admin-main {
    flex: 1;
    margin-left: 260px;
    background: var(--gray-50);
}

.admin-header {
    padding: 20px 32px;
    background: var(--brand-white);
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-xs);
}

.admin-content {
    padding: 28px 32px;
}

.admin-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-navy);
    letter-spacing: -0.02em;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--brand-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.stat-card .stat-icon.blue { background: var(--cyan-100); }
.stat-card .stat-icon.orange { background: var(--orange-100); }
.stat-card .stat-icon.green { background: var(--emerald-50); }
.stat-card .stat-icon.purple { background: var(--navy-50); }

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: -0.02em;
}

.stat-card .stat-label {
    font-size: 0.82rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Data Table */
.data-table-wrapper {
    background: var(--brand-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.table-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-navy);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--gray-50);
}

.data-table th {
    padding: 12px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-500);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--gray-100);
}

.data-table td {
    padding: 14px 16px;
    font-size: 0.88rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-50);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: var(--transition-fast);
}

.data-table tbody tr:hover {
    background: var(--cyan-50);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.new {
    background: var(--cyan-100);
    color: var(--cyan-700);
}

.status-badge.review {
    background: var(--orange-100);
    color: var(--orange-700);
}

.status-badge.approved {
    background: var(--emerald-50);
    color: var(--emerald-600);
}

.status-badge.rejected {
    background: var(--rose-50);
    color: var(--rose-600);
}

/* Score display */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 700;
    border: 3px solid;
}

.score-good {
    color: var(--emerald-600);
    background: var(--emerald-50);
    border-color: var(--emerald-400);
}

.score-mid {
    color: var(--brand-orange);
    background: var(--orange-50);
    border-color: var(--orange-400);
}

.score-low {
    color: var(--rose-600);
    background: var(--rose-50);
    border-color: var(--rose-400);
}

/* Modal / Detail Panel */
/* ===================== */

/* Overlay: oculto por defecto, centrado */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 18, 37, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

/* Mostrar cuando tiene clase .show */
.modal-overlay.show {
    display: flex;
}

/* Tarjeta del modal */
.modal-card {
    background: var(--brand-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Encabezado del modal */
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: var(--brand-white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-navy);
    letter-spacing: -0.01em;
    margin: 0;
}

/* Botón X cerrar */
.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}
.modal-close:hover {
    background: var(--rose-50);
    color: var(--rose-600);
    transform: rotate(90deg);
}

/* Cuerpo del modal: scrollable */
.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Footer del modal */
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
    background: var(--gray-50);
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(54, 187, 221, 0.12) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite;
}

.login-card {
    background: var(--brand-white);
    border-radius: var(--radius-2xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
    font-size: 42px;
}

.login-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-navy);
    text-align: center;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 0.88rem;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 32px;
}

/* Search/Filter */
.search-box {
    display: flex;
    align-items: center;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0 14px;
    transition: var(--transition-base);
}

.search-box:focus-within {
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(54, 187, 221, 0.1);
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 8px;
    font-size: 0.88rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--gray-800);
    flex: 1;
}

.search-box input::placeholder {
    color: var(--gray-400);
}

/* Alert messages */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.alert-error {
    background: var(--rose-50);
    color: var(--rose-600);
    border: 1px solid rgba(244, 63, 94, 0.15);
}

.alert-success {
    background: var(--emerald-50);
    color: var(--emerald-600);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.alert-info {
    background: var(--cyan-50);
    color: var(--cyan-700);
    border: 1px solid rgba(54, 187, 221, 0.15);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 20px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.pagination a:hover {
    background: var(--cyan-50);
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
}

.pagination .active {
    background: var(--brand-navy);
    color: var(--brand-white);
    border-color: var(--brand-navy);
}

/* ===================================================
   ESTILOS ESPECÍFICOS DEL PANEL ADMIN
   =================================================== */

/* Login page (admin) */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.login-page::before {
    content: '';
    position: absolute;
    top: -30%; right: -20%;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(54,187,221,0.12) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite;
}
.login-header { text-align: center; margin-bottom: 28px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-error {
    display: none;
    background: var(--rose-50);
    color: var(--rose-600);
    border: 1px solid var(--rose-400);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 12px;
}
.login-error.show { display: block; }

/* Admin header extras */
.admin-page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-navy);
    letter-spacing: -0.02em;
}
.admin-header-left  { display: flex; align-items: center; gap: 14px; }
.admin-header-right { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--gray-600);
    padding: 4px;
    border-radius: var(--radius-sm);
}
.menu-toggle:hover { background: var(--gray-100); }

/* Search bar in header */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0 12px;
    transition: var(--transition-base);
    gap: 8px;
}
.search-bar:focus-within {
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(54,187,221,0.1);
    background: #fff;
}
.search-bar input {
    border: none; outline: none; background: transparent;
    padding: 9px 0; font-size: 0.88rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--gray-800); width: 180px;
}
.search-bar input::placeholder { color: var(--gray-400); }
.search-icon { color: var(--gray-400); font-size: 0.9rem; }

/* Table Panel (card wrapper) */
.table-panel {
    background: var(--brand-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Filter tabs */
.table-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--gray-200);
    background: transparent;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-600);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.filter-btn:hover { background: var(--cyan-50); border-color: var(--brand-cyan); color: var(--cyan-700); }
.filter-btn.active { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }

/* Table Footer / pagination */
.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid var(--gray-100);
    font-size: 0.82rem;
    color: var(--gray-500);
    flex-wrap: wrap;
    gap: 10px;
}
.table-info { font-size: 0.82rem; color: var(--gray-500); }
.page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    font-size: 0.8rem; font-weight: 600;
    color: var(--gray-600); text-decoration: none;
    transition: var(--transition-fast);
}
.page-btn:hover { background: var(--cyan-50); border-color: var(--brand-cyan); color: var(--cyan-700); }
.page-btn.active { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }

/* Mark / favorite button */
.mark-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    color: var(--gray-300);
    line-height: 1;
}
.mark-btn:hover, .mark-btn.marked { color: #f59e0b; }

/* Marked row highlight */
.data-table tbody tr.marked { background: #fffbeb; }
.data-table tbody tr.marked:hover { background: #fef3c7; }

/* Candidate cell */
.candidate-cell { display: flex; align-items: center; gap: 12px; }
.candidate-avatar {
    width: 38px; height: 38px;
    border-radius: var(--radius-md);
    background: var(--gradient-accent);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700;
    flex-shrink: 0;
}
.candidate-name  { font-size: 0.88rem; font-weight: 600; color: var(--gray-800); }
.candidate-email { font-size: 0.75rem; color: var(--gray-500); margin-top: 2px; }

/* Score badge (table) */
.score-badge {
    display: inline-flex;
    align-items: center; justify-content: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem; font-weight: 700;
    white-space: nowrap;
}
.score-badge.high    { background: var(--emerald-50); color: var(--emerald-600); border: 1.5px solid var(--emerald-400); }
.score-badge.medium  { background: var(--amber-50);   color: var(--amber-600);   border: 1.5px solid var(--amber-500); }
.score-badge.low     { background: var(--rose-50);    color: var(--rose-600);    border: 1.5px solid var(--rose-400); }
.score-badge.pending { background: var(--gray-100);   color: var(--gray-500);    border: 1.5px solid var(--gray-300); }

/* Classification badge */
.classification-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem; font-weight: 600;
    white-space: nowrap;
    background: var(--gray-100); color: var(--gray-600);
}
.classification-badge.apto_entrevista    { background: var(--emerald-50); color: var(--emerald-600); }
.classification-badge.entrenable         { background: var(--amber-50);   color: var(--amber-600); }
.classification-badge.rechazado_modalidad{ background: var(--rose-50);    color: var(--rose-600); }
.classification-badge.pendiente          { background: var(--gray-100);   color: var(--gray-500); }

/* App count */
.app-count {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    font-size: 0.82rem; font-weight: 700;
    background: var(--gray-100); color: var(--gray-600);
}
.app-count.multiple { background: var(--cyan-100); color: var(--cyan-700); }

/* Modal: Detail grid (inside candidate modal) */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.detail-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}
.detail-label  { font-size: 0.72rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.detail-value  { font-size: 0.92rem; color: var(--gray-800); font-weight: 500; }

/* Timeline (aplicaciones) */
.timeline { border-left: 3px solid var(--gray-200); padding-left: 20px; position: relative; }
.timeline-title {
    font-size: 0.88rem; font-weight: 700; color: var(--brand-navy);
    margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.timeline-item {
    display: flex; gap: 12px;
    padding: 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: var(--transition-fast);
}
.timeline-item:hover { border-color: var(--cyan-200); background: var(--cyan-50); }
.timeline-cv-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    background: var(--navy-50); color: var(--brand-navy);
    border-radius: var(--radius-md);
    font-size: 0.8rem; font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--navy-100);
    transition: var(--transition-fast);
}
.timeline-cv-link:hover { background: var(--brand-navy); color: #fff; }

/* Score meter (progress bar) */
.score-meter {
    height: 6px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 12px;
}
.score-meter-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.score-meter-fill.high   { background: var(--emerald-500); }
.score-meter-fill.medium { background: var(--amber-500); }
.score-meter-fill.low    { background: var(--rose-500); }
.score-meter-fill.pending{ background: var(--gray-300); }

/* Evaluation criterio/peso tags */
.eval-criterio {
    font-size: 0.72rem; font-weight: 700;
    color: var(--primary-600);
    background: var(--primary-50);
    padding: 2px 8px; border-radius: var(--radius-full);
}
.eval-peso {
    font-size: 0.72rem; font-weight: 600;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 2px 8px; border-radius: var(--radius-full);
}

/* Rating input (admin evaluation) */
.rating-input {
    margin-top: 10px;
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap;
}
.rating-input label { font-size: 0.78rem; font-weight: 600; color: var(--gray-600); }
.admin-rating {
    width: 80px;
    padding: 6px 10px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    outline: none;
    transition: var(--transition-fast);
    background: var(--brand-white);
}
.admin-rating:focus { border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(242,145,31,0.12); }

/* Admin notes textarea */
.admin-notes textarea,
textarea#adminNotes {
    width: 100%;
    min-height: 100px;
    padding: 12px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--gray-800);
    resize: vertical;
    outline: none;
    transition: var(--transition-fast);
    background: var(--gray-50);
}
.admin-notes textarea:focus,
textarea#adminNotes:focus {
    border-color: var(--brand-cyan);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(54,187,221,0.1);
}

/* stat-card icon variants (amber & rose) */
.stat-card .stat-icon.amber { background: var(--amber-100); }
.stat-card .stat-icon.rose  { background: var(--rose-50); }

/* Question card (preguntas page) */
.question-card {
    background: var(--brand-white);
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    transition: var(--transition-base);
}
.question-card:hover { border-color: var(--cyan-200); box-shadow: var(--shadow-sm); }
.question-card-header {
    display: flex; align-items: flex-start;
    gap: 14px; padding: 16px 20px;
}
.question-card-body {
    font-size: 0.92rem; font-weight: 600; color: var(--gray-800);
    margin-bottom: 10px; line-height: 1.5;
}
.question-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.question-meta-tag {
    font-size: 0.72rem; font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--gray-100); color: var(--gray-600);
}
.question-meta-tag.tipo-si_no     { background: var(--cyan-100);    color: var(--cyan-700); }
.question-meta-tag.tipo-texto_corto{ background: var(--primary-50); color: var(--primary-600); }
.question-meta-tag.peso           { background: var(--navy-50);     color: var(--navy-700); }
.question-active-toggle { display: flex; align-items: center; gap: 8px; }

/* Toggle Switch */
.switch { position: relative; display: inline-block; width: 38px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
    position: absolute; cursor: pointer;
    inset: 0; background: var(--gray-300); border-radius: 22px;
    transition: var(--transition-base);
}
.switch-slider::before {
    content: ''; position: absolute;
    width: 16px; height: 16px;
    left: 3px; bottom: 3px;
    background: #fff; border-radius: 50%;
    transition: var(--transition-base);
    box-shadow: var(--shadow-xs);
}
.switch input:checked + .switch-slider { background: var(--emerald-500); }
.switch input:checked + .switch-slider::before { transform: translateX(16px); }

/* Spinner (loading in modal) */
.modal-spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 14px;
}

/* === Responsive === */
@media (max-width: 768px) {
    /* Formulario público */
    .hero-section { padding: 36px 16px 56px; }
    .hero-logo { width: 160px; }
    .form-card { padding: 28px 20px; border-radius: var(--radius-xl); }
    .form-container { margin-top: -35px; }
    .form-row { grid-template-columns: 1fr; }
    .form-progress { flex-wrap: wrap; gap: 6px; }
    .progress-step { padding: 6px 12px; font-size: 0.72rem; }
    .progress-step span:last-child { display: none; }
    .trust-badges { gap: 8px; }
    .trust-badge { padding: 6px 12px; font-size: 0.75rem; }
    .radio-group { flex-direction: column; gap: 8px; }
    .btn-lg { padding: 14px 28px; font-size: 0.92rem; }

    /* Admin sidebar */
    .menu-toggle { display: flex; }
    .admin-sidebar {
        transform: translateX(-100%);
        width: 260px;
        transition: transform var(--transition-base);
    }
    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0,0,0,0.3);
    }
    .admin-main { margin-left: 0; }
    .admin-header { padding: 14px 16px; }
    .admin-content { padding: 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .search-bar input { width: 120px; }

    /* Modal full-screen en móvil */
    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal-card {
        max-width: 100%;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-height: 92vh;
    }
}

@media (max-width: 480px) {
    .hero-logo { width: 140px; }
    .trust-badge span:last-child { display: none; }
    .stats-grid { grid-template-columns: 1fr; }
    .admin-header-right .search-bar { display: none; }
    .detail-grid { grid-template-columns: 1fr; }
}
