body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #f1f3f4;
    margin: 0;
}

.container {
    max-width: 560px;
    margin: 60px auto;
    padding: 0 20px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
    text-align: left;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-header strong,
.brand-header span {
    display: block;
}

.brand-header strong {
    color: #202124;
    font-size: 18px;
}

.brand-header span {
    color: #5f6368;
    font-size: 13px;
}

h2 {
    margin-bottom: 5px;
}

p {
    color: #666;
}

hr {
    margin: 20px 0;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary {
    background: #4285f4;
    color: white;
}

.btn-primary:hover {
    background: #3367d6;
}

.btn-success {
    background: #34a853;
    color: white;
}

.btn-warning {
    background: #fbbc05;
    color: black;
}

a {
    text-decoration: none;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.registro-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
    text-align: left;
}

.full {
    grid-column: span 2;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #444;
    line-height: 1.4;
}

.checkbox-option input[type="checkbox"] {
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 0;
    padding: 0;
    border-radius: 3px;
    box-shadow: none;
    flex: 0 0 16px;
}

.checkbox-option span {
    flex: 1;
}

.captcha-field {
    margin-top: 4px;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.captcha-box span {
    color: #202124;
    font-weight: 600;
}

.captcha-box input {
    width: 84px;
    min-width: 84px;
    max-width: 84px;
    margin-left: 0;
}

label {
    font-size: 13px;
    color: #555;
    font-weight: 600;
}

input, select {
    width: 100%;
    box-sizing: border-box;
    border-radius: 6px;
    min-height: 42px;
    padding: 10px 12px;
}

h3 {
    margin-top: 25px;
}
input, select {
    border: 1px solid #dadce0;
    transition: 0.2s;
}

input:focus, select:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66,133,244,0.2);
}
.btn-primary {
    background: #4285f4;
    color: white;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: #3367d6;
    transform: scale(1.02);
}
h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #444;
}
.alert-error {
    background: #fdecea;
    color: #b71c1c;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #e6f4ea;
    color: #137333;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card p {
    margin: 5px 0;
}

.result-card {
    max-width: 520px;
    margin: 0 auto;
}

.result-icon {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.result-icon.success {
    background: #e6f4ea;
    color: #137333;
}

.result-summary {
    margin: 22px 0;
    padding: 16px;
    border: 1px solid #e0e3e7;
    border-radius: 8px;
    background: #f8fafc;
    text-align: left;
}

.result-summary p {
    margin: 8px 0;
}

.result-alert {
    margin-top: 20px;
    text-align: left;
}

.result-temp-password {
    margin-top: 16px;
    padding: 16px;
    border-radius: 8px;
    background: #fff8e1;
    border: 1px solid #f4d37a;
}

.result-temp-password span,
.result-temp-password strong {
    display: block;
}

.result-temp-password span {
    font-size: 13px;
    color: #8a6d1f;
    margin-bottom: 6px;
}

.result-temp-password strong {
    font-size: 24px;
    color: #202124;
    letter-spacing: 1px;
}

.result-actions {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.btn-secondary {
    background: #e8eaed;
    color: #202124;
}

.btn-secondary:hover {
    background: #dfe1e5;
}

.password-card {
    max-width: 520px;
}

.password-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    text-align: left;
}

.login-card {
    max-width: 520px;
}

.login-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    text-align: left;
}

.login-note {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eceff3;
    text-align: center;
}

.login-note p {
    color: #5f6368;
    font-size: 12px;
    line-height: 1.45;
}

.login-link {
    display: block;
    margin-top: -2px;
    margin-bottom: 6px;
    color: #3367d6;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}

.login-actions {
    display: flex;
    justify-content: center;
    margin-top: 2px;
}

.login-secondary-btn {
    width: auto;
    min-width: 220px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap input {
    padding-right: 76px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #3367d6;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    width: auto;
    min-height: auto;
}

.idioma-item {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 16px;
    margin-bottom: 14px;
}

textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dadce0;
    border-radius: 6px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.repeat-item {
    padding: 14px;
    border: 1px solid #e2e6ec;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 12px;
}

.repeat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.repeat-grid-2 {
    grid-template-columns: minmax(0, 1fr) 180px;
}

.repeat-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.full-row {
    grid-column: 1 / -1;
}

.add-inline-btn {
    width: auto;
    min-width: 180px;
}

.cv-item + .cv-item {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eceff3;
}

@media (max-width: 640px) {
    .registro-form {
        grid-template-columns: 1fr;
    }

    .full {
        grid-column: span 1;
    }

    .checkbox-option {
        align-items: flex-start;
    }

    .captcha-box {
        align-items: stretch;
    }

    .captcha-box input {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .idioma-item {
        grid-template-columns: 1fr;
    }

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

.profile-page {
    max-width: 980px;
}

.profile-card {
    padding: 34px 34px 30px;
    text-align: left;
}

.profile-brand {
    justify-content: flex-start;
    margin-bottom: 26px;
}

.profile-hero {
    margin-bottom: 26px;
    padding: 0 0 22px;
    border-bottom: 1px solid #eceff3;
}

.profile-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #3367d6;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.profile-hero h2 {
    margin: 0 0 8px;
    color: #202124;
    font-size: 34px;
    line-height: 1.15;
}

.profile-hero p {
    margin: 0;
    max-width: 720px;
    color: #5f6368;
    font-size: 15px;
    line-height: 1.6;
}

.profile-form {
    display: grid;
    gap: 20px;
}

.profile-section {
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.profile-section-highlight {
    border-color: #d9e5ff;
    box-shadow: inset 0 1px 0 rgba(66, 133, 244, 0.08);
}

.section-heading {
    padding: 22px 24px 18px;
    background: #f8fafd;
    border-bottom: 1px solid #eceff3;
}

.section-heading-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.section-heading h3 {
    margin: 0;
    color: #202124;
    font-size: 20px;
}

.section-heading p {
    margin: 8px 0 0;
    color: #5f6368;
    font-size: 14px;
    line-height: 1.55;
}

.section-body {
    padding: 24px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.profile-grid .full-row,
.repeat-grid .full-row {
    grid-column: 1 / -1;
}

.profile-alert {
    margin-bottom: 20px;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 18px;
    border: 1px solid transparent;
}

.profile-alert strong {
    font-size: 14px;
}

.profile-alert span {
    font-size: 14px;
    line-height: 1.5;
}

.profile-alert-success {
    border-color: #cde6d5;
    box-shadow: 0 8px 22px rgba(19, 115, 51, 0.08);
}

.profile-filters-card {
    margin-bottom: 20px;
    border-color: #e7edf5;
    background: #fbfcfe;
}

.stack-list {
    display: grid;
    gap: 14px;
}

.profile-repeat-card {
    padding: 18px;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.section-action-btn {
    width: auto;
    min-width: 190px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #d2def7;
    border-radius: 8px;
    background: #eef4ff;
    color: #2d5ec9;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.section-action-btn:hover {
    background: #e2edff;
    border-color: #bdd0fb;
    transform: translateY(-1px);
}

.profile-footer-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    padding-top: 6px;
    width: 100%;
}

.profile-secondary-link,
.profile-submit-btn {
    width: 100%;
    min-width: 0;
}

.profile-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-footer-actions-inline {
    margin-top: 18px;
}

.availability-days-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.availability-day-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #f8fafc;
    color: #3c4043;
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
}

.availability-day-option input[type="checkbox"] {
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 0;
}

.institution-page {
    max-width: 1040px;
}

.institution-card {
    padding: 34px 34px 30px;
    text-align: left;
}

.institution-brand {
    justify-content: flex-start;
}

.institution-hero p {
    max-width: 760px;
}

.catalog-grid,
.future-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.read-value {
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #f8fafc;
    color: #202124;
    line-height: 1.45;
}

.future-item {
    padding: 14px 16px;
    border: 1px dashed #cfd8e3;
    border-radius: 8px;
    background: #fbfcfe;
    color: #5f6368;
    font-size: 14px;
    font-weight: 600;
}

.vacancy-list {
    display: grid;
    gap: 16px;
}

.vacancy-list-compact .vacancy-card {
    padding: 16px 18px;
}

.vacancy-card {
    padding: 18px 20px;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    display: grid;
    gap: 14px;
}

.vacancy-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.vacancy-header h4 {
    margin: 0 0 6px;
    color: #202124;
    font-size: 18px;
}

.candidate-link {
    color: #202124;
    text-decoration: none;
}

.candidate-link:hover {
    color: #3367d6;
    text-decoration: underline;
}

.vacancy-header p {
    margin: 0;
    color: #5f6368;
    font-size: 14px;
}

.vacancy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #3c4043;
    font-size: 14px;
}

.vacancy-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.vacancy-status-borrador {
    background: #eef2f7;
    color: #5f6368;
}

.vacancy-status-publicada {
    background: #e6f4ea;
    color: #137333;
}

.vacancy-status-postulado {
    background: #eef4ff;
    color: #2d5ec9;
}

.vacancy-status-en_revision {
    background: #fff4e5;
    color: #b06000;
}

.vacancy-status-preseleccionado {
    background: #e6f4ea;
    color: #137333;
}

.vacancy-status-descartado {
    background: #fce8e6;
    color: #c5221f;
}

.vacancy-status-contratado {
    background: #e8f0fe;
    color: #174ea6;
}

.vacancy-status-pausada {
    background: #fef7e0;
    color: #b06000;
}

.vacancy-status-cerrada {
    background: #fce8e6;
    color: #c5221f;
}

.validation-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e6f4ea;
    color: #137333;
    font-size: 12px;
    font-weight: 700;
}

.validation-badge-secondary {
    background: #eef4ff;
    color: #2d5ec9;
}

.rating-summary-card {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid #dce6f7;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

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

.rating-stars-large {
    color: #f4b400;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.rating-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.rating-grid-form {
    margin-bottom: 10px;
}

.rating-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    background: #fbfcfe;
}

.rating-line span {
    color: #3c4043;
    font-size: 14px;
    font-weight: 600;
}

.rating-line strong {
    color: #f4b400;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.dashboard-card {
    gap: 22px;
}

.dashboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-progress-card {
    min-width: 220px;
    padding: 18px;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    background: #f8fafc;
}

.dashboard-progress-card strong {
    display: block;
    margin-top: 8px;
    color: #202124;
    font-size: 30px;
    line-height: 1;
}

.dashboard-progress-label {
    color: #5f6368;
    font-size: 13px;
    font-weight: 600;
}

.dashboard-progress-bar {
    margin-top: 14px;
    height: 10px;
    border-radius: 999px;
    background: #e8eaed;
    overflow: hidden;
}

.dashboard-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #34a853 0%, #5bc36b 100%);
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-summary-card {
    padding: 16px;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.dashboard-summary-card span {
    display: block;
    color: #5f6368;
    font-size: 13px;
}

.dashboard-summary-card strong {
    display: block;
    margin-top: 8px;
    color: #202124;
    font-size: 16px;
    line-height: 1.4;
}

.dashboard-top-actions {
    margin-bottom: 6px;
}

.dashboard-section-toggle summary {
    list-style: none;
    cursor: pointer;
}

.dashboard-section-toggle summary::-webkit-details-marker {
    display: none;
}

.dashboard-section-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 18px;
    background: #f8fafd;
    border-bottom: 1px solid #eceff3;
}

.dashboard-section-summary h3 {
    margin: 0;
    color: #202124;
    font-size: 20px;
}

.dashboard-section-summary p {
    margin: 8px 0 0;
    color: #5f6368;
    font-size: 14px;
    line-height: 1.55;
}

.dashboard-section-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #3367d6;
    font-size: 12px;
    font-weight: 700;
}

.vacancy-description {
    min-height: 0;
    white-space: normal;
}

.vacancy-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vacancy-actions select {
    width: auto;
    min-width: 180px;
    margin: 0;
}

.vacancy-action-btn {
    width: auto;
    min-width: 180px;
}

.full-width-action {
    width: 100%;
}

.full-width-action .btn {
    width: 100%;
}

@media (max-width: 900px) {
    .dashboard-hero {
        flex-direction: column;
    }

    .dashboard-progress-card {
        width: 100%;
        min-width: 0;
    }

    .dashboard-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .profile-card {
        padding: 28px 24px;
    }

    .section-heading-split {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-footer-actions {
        flex-direction: column-reverse;
    }

    .profile-secondary-link,
    .profile-submit-btn,
    .section-action-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .dashboard-summary-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-section-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-page {
        margin: 30px auto;
    }

    .institution-card {
        padding: 22px 18px;
    }

    .profile-card {
        padding: 22px 18px;
    }

    .profile-hero h2 {
        font-size: 28px;
    }

    .section-heading,
    .section-body {
        padding: 18px;
    }

    .profile-grid,
    .repeat-grid,
    .repeat-grid-2,
    .repeat-grid-3,
    .idioma-item,
    .availability-days-grid,
    .catalog-grid,
    .future-grid,
    .vacancy-header,
    .vacancy-actions {
        grid-template-columns: 1fr;
    }

    .vacancy-header {
        display: grid;
    }

    .vacancy-actions select,
    .vacancy-action-btn {
        width: 100%;
        min-width: 0;
    }
}
