/* ================================================================
   EMPLEOS DIRECTORIO PETROLERO - Estilos Principales
   Paleta: Navy #1a2332, Naranja #e8712a, Blanco, Gris
   ================================================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: #e8712a;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #d0612a;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Header --- */
.site-header {
    background-color: #1a2332;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-back-arrow {
    font-size: 14px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 420px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-small {
    height: 280px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(26, 35, 50, 0.85) 0%,
            rgba(26, 35, 50, 0.6) 50%,
            rgba(26, 35, 50, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hero-brand-small {
    position: absolute;
    bottom: 20px;
    right: 30px;
}

.hero-logo {
    width: 50px;
    height: auto;
}

.hero-brand-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
}

.brand-line-1 {
    font-size: 1.1rem;
    font-weight: 600;
}

.brand-line-2 {
    font-size: 1.1rem;
    font-weight: 700;
}

/* --- Content Section --- */
.content-section {
    padding: 50px 20px;
    background: #fff;
}

.content-wrapper {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.content-text {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 16px;
    line-height: 1.7;
}

/* --- CTA Button --- */
.btn-cta {
    display: inline-block;
    background: #e8712a;
    color: #fff;
    padding: 14px 36px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-cta:hover {
    background: #d0612a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 113, 42, 0.35);
}

/* --- Buttons General --- */
.btn-primary {
    display: inline-block;
    background: #e8712a;
    color: #fff;
    padding: 12px 28px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary:hover {
    background: #d0612a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(232, 113, 42, 0.3);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #555;
    padding: 12px 28px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #f0f0f0;
    color: #333;
    border-color: #999;
}

.btn-danger {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 12px 28px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-logout {
    font-size: 14px;
    text-decoration: none;
    color: #e74c3c;
    font-weight: 500;
    transition: color 0.2s;
}

.btn-logout:hover {
    color: #c0392b;
}

/* --- Step Indicator --- */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 35px;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #999;
    transition: all 0.4s;
}

.step-dot.active {
    background: #e8712a;
    color: #fff;
    box-shadow: 0 2px 10px rgba(232, 113, 42, 0.35);
}

.step-dot.completed {
    background: #2ecc71;
    color: #fff;
}

.step-line {
    width: 50px;
    height: 3px;
    background: #ddd;
    transition: background 0.4s;
}

.step-line.active {
    background: #e8712a;
}

/* --- Form Card --- */
.form-section .content-wrapper {
    max-width: 680px;
}

.form-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.form-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 22px;
    letter-spacing: 0.3px;
}

.form-card-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    margin-top: -10px;
}

/* --- Form Inputs --- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

/* --- Custom Select Dropdown --- */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    background: #eee;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    user-select: none;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: #e8712a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 113, 42, 0.1);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-select-wrapper.error .custom-select-trigger {
    border-color: #e74c3c;
    background: #fff5f5;
}

.custom-select-value {
    color: #999;
}

.custom-select-value.has-value {
    color: #333;
}

.custom-select-arrow {
    font-size: 0.8rem;
    color: #888;
    transition: transform 0.3s;
}

.custom-select-wrapper.open .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-wrapper.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.custom-select-wrapper.disabled .custom-select-trigger {
    cursor: not-allowed;
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e8712a;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 50;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    max-height: 260px;
    overflow: hidden;
    flex-direction: column;
    display: none;
}

.custom-select-wrapper.open .custom-select-dropdown {
    display: flex;
}

.custom-select-search {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    background: #fafafa;
    font-size: 0.85rem;
    font-family: inherit;
    color: #333;
    outline: none;
    box-shadow: none;
}

.custom-select-search:focus {
    border-bottom-color: #e8712a;
    background: #fff;
    box-shadow: none;
}

.custom-select-options {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    max-height: 200px;
}

.custom-select-option {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background 0.15s;
}

.custom-select-option:hover {
    background: #fff3ea;
}

.custom-select-option.selected {
    background: #e8712a;
    color: #fff;
}

.no-results {
    padding: 12px 14px;
    color: #999;
    font-size: 0.85rem;
    text-align: center;
}

input[type="text"]:not(.custom-select-search),
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #eee;
    color: #333;
    transition: all 0.3s;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #e8712a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 113, 42, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #999;
}

select {
    cursor: pointer;
    appearance: auto;
}

textarea {
    min-height: 80px;
    resize: vertical;
    margin-bottom: 12px;
}

.textarea-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    margin-top: 10px;
}

/* --- Character Counter --- */
.char-counter {
    text-align: right;
    font-size: 0.78rem;
    color: #999;
    margin-top: -8px;
    margin-bottom: 8px;
}

.char-counter.near-limit {
    color: #f57c00;
}

.char-counter.at-limit {
    color: #e74c3c;
    font-weight: 600;
}

/* --- Checkbox Grid --- */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #eee;
    border-radius: 14px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.checkbox-item:hover {
    background: #e3e3e3;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #e8712a;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"]:checked+span,
.checkbox-item:has(input:checked) {
    background: rgba(232, 113, 42, 0.08);
    border-color: #e8712a;
}

/* --- Form Buttons --- */
.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.form-buttons.space-between {
    justify-content: space-between;
}

/* --- Form Steps --- */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Progress Bar --- */
.progress-container {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-container.hidden {
    display: none;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #e8712a, #f5a623);
    border-radius: 3px;
    width: 0%;
    transition: width 0.4s;
}

/* --- Success Page --- */
.success-wrapper {
    padding: 50px 20px;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: #2ecc71;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin: 0 auto 25px;
}

.enlace-unico-box {
    margin-top: 30px;
    padding: 25px;
    border: 2px dashed #e8712a;
    border-radius: 10px;
    background: #fdf5ef;
    text-align: center;
}

.enlace-title {
    font-weight: 700;
    color: #e8712a;
    margin-bottom: 8px;
    font-size: 1rem;
}

.enlace-link {
    word-break: break-all;
    font-size: 0.85rem;
    color: #e8712a;
}

/* --- Panel Usuario --- */
.panel-usuario {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.panel-usuario h3 {
    color: #1a2332;
    margin-bottom: 25px;
}

.info-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
}

.info-grid dt {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 12px;
}

.info-grid dt:first-child {
    margin-top: 0;
}

.info-grid dd {
    font-size: 1rem;
    color: #333;
    margin-top: 3px;
}

.divider {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #eee;
}

.acciones-postulacion h4 {
    color: #1a2332;
    margin-bottom: 8px;
}

.acciones-postulacion p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

/* --- Login Form --- */
.login-form {
    max-width: 400px;
    margin: 60px auto;
    text-align: center;
}

.login-form h3 {
    color: #1a2332;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 25px;
}

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

.error-msg {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding: 10px;
    background: #fde8e8;
    border-radius: 14px;
}

/* --- Admin Panel --- */
.admin-wrapper {
    max-width: 1000px;
    text-align: left;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-header h3 {
    color: #1a2332;
}

.admin-welcome {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

/* --- Table --- */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.88rem;
}

.admin-table thead {
    background: #1a2332;
    color: #fff;
}

.admin-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: #fafafa;
}

.puestos-cell {
    font-size: 0.82rem;
    color: #666;
    max-width: 200px;
}

.empty-row {
    text-align: center;
    padding: 30px !important;
    color: #999;
}

.action-link {
    color: #e8712a;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
}

.action-link:hover {
    text-decoration: underline;
}

.actions-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.inline-form {
    display: inline;
}

.btn-small {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-contact {
    background: #2ecc71;
    color: #fff;
}

.btn-contact:hover {
    background: #27ae60;
}

.btn-reject {
    background: #e74c3c;
    color: #fff;
}

.btn-reject:hover {
    background: #c0392b;
}

/* --- Status Badges --- */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.recibido {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge.en-revisión,
.status-badge.en-revision {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.contactado {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.rechazado,
.status-badge.no-interesado {
    background: #fce4ec;
    color: #c62828;
}

/* --- Detail Grid --- */
.detalle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.detalle-seccion {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
}

.detalle-seccion h4 {
    font-size: 0.95rem;
    color: #1a2332;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8712a;
}

.detalle-seccion dl {
    display: grid;
    gap: 4px;
}

.detalle-seccion dt {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 10px;
}

.detalle-seccion dt:first-of-type {
    margin-top: 0;
}

.detalle-seccion dd {
    font-size: 0.9rem;
    color: #333;
}

.status-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.status-form select {
    flex-grow: 1;
}

/* --- Footer --- */
.site-footer {
    background: #1a2332;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 20px;
    font-size: 0.82rem;
}

/* --- Client Panel: Filter Bar --- */
.filtros-bar {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.filtro-busqueda {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    padding: 0 12px;
    flex: 1;
    min-width: 200px;
    transition: border-color 0.3s;
}

.filtro-busqueda:focus-within {
    border-color: #e8712a;
    box-shadow: 0 0 0 3px rgba(232, 113, 42, 0.1);
}

.filtro-icon {
    font-size: 0.9rem;
    margin-right: 8px;
}

.filtro-input {
    border: none !important;
    background: none !important;
    padding: 10px 0 !important;
    font-size: 0.88rem;
    outline: none;
    width: 100%;
    box-shadow: none !important;
}

.filtros-selects {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filtro-select {
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    background: #fff;
    font-size: 0.85rem;
    font-family: inherit;
    color: #555;
    cursor: pointer;
    transition: border-color 0.3s;
    appearance: auto;
    min-width: 150px;
}

.filtro-select:focus {
    border-color: #e8712a;
    outline: none;
}

.resultados-count {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 18px;
}

/* --- Client Panel: Card Grid --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.candidato-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.candidato-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #e8712a;
}

.card-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-fecha {
    font-size: 0.75rem;
    color: #aaa;
}

.card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a2332, #2c3e50);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.card-nombre {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2332;
    margin: 0;
}

.card-ubicacion {
    font-size: 0.82rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-icon {
    font-size: 0.85rem;
}

.card-puestos {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.puesto-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f4ff;
    color: #1a2332;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 500;
    border: 1px solid #dce3f0;
}

.puesto-tag-more {
    background: #fff3ea;
    color: #e8712a;
    border-color: #fddcc8;
}

.card-info-row {
    display: flex;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid #f5f5f5;
}

.card-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #777;
}

.card-acciones {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
}

.btn-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}

.btn-card-ver {
    flex: 1;
    padding: 9px 16px;
    background: #1a2332;
    color: #fff;
}

.btn-card-ver:hover {
    background: #2c3e50;
    color: #fff;
}

.btn-card-contactar {
    width: 36px;
    height: 36px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 1rem;
}

.btn-card-contactar:hover {
    background: #2ecc71;
    color: #fff;
}

.btn-card-rechazar {
    width: 36px;
    height: 36px;
    background: #fce4ec;
    color: #c62828;
    font-size: 1rem;
}

.btn-card-rechazar:hover {
    background: #e74c3c;
    color: #fff;
}

/* --- Empty State --- */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.empty-state h4 {
    color: #555;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.9rem;
}

/* --- Admin Nav --- */
.admin-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #1a2332;
    color: #fff;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-nav:hover {
    background: #2c3e50;
    color: #fff;
}

.crear-bar {
    margin-bottom: 18px;
}

.card-avatar-empresa {
    background: linear-gradient(135deg, #e8712a, #f5a623);
}

/* --- Modal --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h4 {
    font-size: 1.1rem;
    color: #1a2332;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
    .site-header {
        padding: 10px 16px;
    }

    .logo-img {
        height: 32px;
    }

    .btn-back {
        font-size: 11px;
        padding: 6px 12px;
    }

    .hero {
        height: 300px;
    }

    .hero-small {
        height: 200px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-brand-small {
        display: none;
    }

    .content-section {
        padding: 30px 16px;
    }

    .content-text {
        font-size: 0.95rem;
    }

    .form-card {
        padding: 25px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cedula-row {
        grid-template-columns: 70px 1fr;
    }

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

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

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .actions-cell {
        flex-wrap: wrap;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 10px;
        font-size: 0.82rem;
    }

    .step-line {
        width: 30px;
    }

    .login-form {
        margin: 40px auto;
        padding: 0 16px;
    }

    .success-wrapper {
        padding: 30px 10px;
    }

    .cliente-acciones {
        flex-direction: column;
    }

    .filtros-bar {
        flex-direction: column;
    }

    .filtro-busqueda {
        min-width: 100%;
    }

    .filtros-selects {
        width: 100%;
    }

    .filtro-select {
        flex: 1;
        min-width: 0;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.3rem;
    }

    .hero-brand {
        gap: 8px;
    }

    .hero-logo {
        width: 35px;
    }

    .brand-line-1,
    .brand-line-2 {
        font-size: 0.9rem;
    }

    .btn-cta {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .form-card-title {
        font-size: 1rem;
    }
}