/* ===== RESET BÁSICO Y VARIABLES GLOBALES ===== */
:root {
    --primary-color: #003366; /* Azul institucional oscuro */
    --secondary-color: #D4AF37; /* Dorado para acentos */
    --accent-color: #CE1126; /* Rojo para llamadas a la acción */
    --text-color: #333;
    --bg-color: #f4f7f6;
    --card-bg-color: #fff;
    --border-color: #e0e0e0;
    --subtle-text-color: #6b7280;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* ===== ESTILOS DEL ENCABEZADO ===== */
.main-header .top-bar {
    height: 5px;
    background: linear-gradient(to right, #FFD100, #0038A8, #CE1126); /* Bandera de Venezuela */
}

.header-social-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    min-height: 36px;
    padding: 0.25rem 5%;
    color: #fff;
    background: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.social-links {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    color: inherit;
    border-radius: 50%;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.social-links svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

.main-header .main-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    /* Transición para el cambio de padding */
    padding: 1rem 5%;
    transition: padding 0.3s ease-in-out;
}

.main-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    margin-right: auto;
    /* Transición para el cambio de tamaño de fuente */
    transition: font-size 0.3s ease-in-out;
}

.main-header .logo-img {
    height: 80px; /* Altura base del logo */
    display: block; /* Para evitar espacios extra debajo de la imagen */
    transition: height 0.3s ease-in-out; /* Transición para la altura */
}

.main-header .nav-links {
    display: flex;
    margin-left: auto;
    list-style: none;
    gap: 2rem;
}

.main-header .nav-links li {
    position: relative;
}

.main-header .nav-links summary {
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.main-header .nav-links summary::-webkit-details-marker {
    display: none;
}

.main-header .nav-links summary::after {
    content: "▾";
    margin-left: 0.4rem;
    font-size: 0.75em;
}

.main-header .dropdown-menu {
    position: absolute;
    top: 100%;
    left: -1rem;
    z-index: 1001;
    min-width: 12rem;
    padding: 0.5rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.main-header .dropdown-menu li {
    width: 100%;
}

.main-header .dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.main-header .dropdown-menu a:hover,
.main-header .dropdown-menu a[aria-current="page"] {
    background: #f1f5f9;
}

.main-header .nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-header .nav-links a:hover {
    color: var(--secondary-color);
}

.main-header .mail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.main-header .mail-icon:hover,
.main-header .mail-icon:focus-visible {
    color: #fff;
    background-color: var(--primary-color);
}

.main-header .mail-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.header-account {
    position: relative;
    flex: 0 0 auto;
}

.header-account-details {
    position: relative;
}

.header-account-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 0;
    cursor: pointer;
    list-style: none;
}

.header-account-details > summary::-webkit-details-marker {
    display: none;
}

.header-account-details > summary::after {
    content: "▾";
    font-size: 0.75em;
}

.account-avatar-icon,
.header-account-avatar {
    width: 1.65rem;
    height: 1.65rem;
    flex: 0 0 auto;
}

.account-avatar-icon {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.header-account-avatar {
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
}

.header-account-name {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-account-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    z-index: 1002;
    min-width: 13rem;
    padding: 0.5rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.65rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.header-account-menu a,
.header-account-signout {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    color: var(--primary-color);
    text-align: left;
    text-decoration: none;
    font: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.header-account-menu a:hover,
.header-account-signout:hover,
.header-account-signout:focus-visible {
    background: #f1f5f9;
}

.header-account-status {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 1003;
    width: min(18rem, 80vw);
    padding: 0.65rem 0.8rem;
    color: #842029;
    font-size: 0.85rem;
    background: #f8d7da;
    border-radius: 0.4rem;
}

.header-account-status.is-visible {
    display: block;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

/* ===== ESTILOS DE LA SECCIÓN HERO ===== */
.hero {
    color: white;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden; /* Oculta lo que se salga del contenedor */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Lo movemos detrás del contenido del hero */
}

.hero .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 1.5s ease-in-out; /* Transición suave de opacidad */
}

.hero .slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(109, 109, 109, 0));
    z-index: 1; /* Se coloca sobre la imagen de fondo del slide */
}

.hero .slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    position: relative;
    z-index: 2; /* Se coloca sobre el gradiente */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button-hero {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(206, 17, 38, 0.4);
}

/* Estilos para las flechas y puntos del carrusel */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 3; /* Por encima del contenido */
    transition: background-color 0.3s ease;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.carousel-arrow.prev {
    left: 1rem;
    border-radius: 0 5px 5px 0;
}

.carousel-arrow.next {
    right: 1rem;
    border-radius: 5px 0 0 5px;
}

.carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: white;
}

/* ===== ESTILOS DE LA SECCIÓN "QUIÉNES SOMOS" ===== */
.about-section {
    padding: 5rem 5%;
    background-color: var(--card-bg-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

[hidden] {
    display: none !important;
}

.platform-section {
    min-height: 65vh;
    padding: 4rem 5%;
}

.platform-container {
    max-width: 1180px;
    margin: 0 auto;
}

.platform-heading {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.platform-heading h1 {
    margin: 0.25rem 0 0.75rem;
    color: var(--primary-color);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.platform-heading p {
    color: var(--subtle-text-color);
}

.eyebrow {
    color: var(--accent-color) !important;
    font-size: 0.8rem !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.25rem;
}

.account-auth-panel {
    max-width: 520px;
    margin: 0 auto;
}

.session-inactivity-warning {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 1rem;
    max-width: calc(100vw - 2rem);
    padding: 0.9rem 1rem;
    border: 1px solid #f0b429;
    border-radius: 10px;
    background: #fff8e1;
    color: #4a3900;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.session-inactivity-warning.is-visible {
    display: flex;
}

.session-inactivity-warning button {
    border: 0;
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
    background: var(--primary-color, #0066a1);
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.account-auth-view[hidden] {
    display: none;
}

.account-auth-view > p {
    margin: 0.5rem 0 1rem;
}

.account-auth-view form .submit-button {
    width: 100%;
}

.account-auth-view .auth-switch-prompt {
    margin: 1.25rem 0 0.5rem;
}

.auth-text-button {
    display: block;
    margin-top: 0.8rem;
    padding: 0.25rem 0;
    color: var(--primary-color);
    font: inherit;
    text-decoration: underline;
    background: none;
    border: 0;
    cursor: pointer;
}

.auth-text-button[hidden] {
    display: none;
}

.auth-text-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.account-auth-view .field-help {
    margin: 0.35rem 0 0;
}

.platform-card {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--card-bg-color);
    box-shadow: 0 8px 28px rgba(16, 42, 67, 0.06);
}

.platform-card h2,
.platform-card h3 {
    color: var(--primary-color);
}

.platform-card > p,
.platform-card-heading p {
    color: var(--subtle-text-color);
}

.platform-card label {
    display: block;
    margin: 0.85rem 0 0.35rem;
    color: #374151;
    font-weight: 600;
}

.platform-card input:not([type="checkbox"]),
.platform-card select,
.platform-card textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: var(--text-color);
    font: inherit;
}

.platform-card input:focus,
.platform-card select:focus,
.platform-card textarea:focus {
    outline: 3px solid rgba(0, 51, 102, 0.13);
    border-color: var(--primary-color);
}

.platform-card .submit-button {
    margin-top: 1rem;
}

.platform-card-heading,
.platform-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.platform-filters {
    align-items: end;
    justify-content: stretch;
    margin: 0 auto 2rem;
    max-width: 100%;
}

.platform-filters .filter-group {
    flex: 1;
}

.platform-filters .filter-group input {
    min-width: 230px;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font: inherit;
}

.section-heading {
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.professional-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

.professional-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.professional-card h2 {
    font-size: 1.25rem;
}

.professional-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e7eb;
}

.professional-headline {
    color: #374151;
    font-weight: 600;
}

.professional-meta,
.vacancy-company {
    color: var(--subtle-text-color);
    font-size: 0.92rem;
}

.professional-card > p,
.vacancy-card > p {
    white-space: pre-line;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
}

.tag-list li {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #eef4fa;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.platform-cta {
    margin-top: 3rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: #eef4fa;
}

.platform-cta h2 {
    color: var(--primary-color);
}

.vacancy-list {
    display: grid;
    gap: 1rem;
}

.vacancy-card {
    display: grid;
    gap: 0.75rem;
}

.vacancy-card h3 {
    font-size: 1.35rem;
}

.vacancy-card details p {
    margin-top: 0.6rem;
    white-space: pre-line;
}

.vacancy-card .cta-button {
    justify-self: start;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.application-modal-content {
    max-width: 600px;
}

.application-modal-content label {
    display: block;
    margin: 1rem 0 0.4rem;
    font-weight: 600;
}

.application-modal-content textarea,
.application-modal-content input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font: inherit;
}

.application-list {
    display: grid;
    gap: 0.75rem;
    padding: 0;
    list-style: none;
}

.application-list li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.application-card {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.application-card h3 {
    color: var(--primary-color);
}

.application-letter {
    margin: 0.5rem 0;
    white-space: pre-line;
}

.application-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.75rem;
}

.application-actions select {
    padding: 0.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font: inherit;
}

.status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #eef4fa;
    color: var(--primary-color);
    font-size: 0.82rem;
}

#directory-message:empty,
#jobs-message:empty {
    display: none;
}

    @media (max-width: 760px) {
        .main-header .main-nav {
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .main-header .logo-img {
            height: 52px;
        }

        .main-header .nav-links {
            order: 3;
            width: 100%;
            margin-left: 0;
            justify-content: center;
            flex-wrap: wrap;
            gap: 0.75rem 1.25rem;
        }

        .main-header .dropdown-menu {
            left: 50%;
            transform: translateX(-50%);
        }

        .platform-section {
            padding: 2.5rem 5%;
        }

        .platform-filters {
            align-items: stretch;
        }

        .platform-filters .filter-group input {
            min-width: 0;
        }

        .platform-card-heading,
        .platform-cta {
            align-items: flex-start;
            flex-direction: column;
        }
    }

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-text ul {
    list-style-position: inside;
    padding-left: 0;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* ===== ESTILOS DE LA SECCIÓN DE NOTICIAS ===== */
.news-section {
    padding: 5rem 5%;
    background-color: var(--bg-color);
}

.news-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-content h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.news-card-date {
    display: block;
    margin: -0.35rem 0 0.75rem;
    color: var(--subtle-text-color);
    font-size: 0.88rem;
}

/* ===== ESTILOS DE LA PAGINACIÓN ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    gap: 0.5rem;
}

.pagination-button {
    border: 1px solid var(--primary-color);
    background-color: #fff;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px;
    font-weight: 600;
}

.pagination-button:hover,
.pagination-button.active {
    background-color: var(--primary-color);
    color: #fff;
}

.pagination-button:disabled {
    background-color: #e9ecef;
    border-color: #dee2e6;
    cursor: not-allowed;
}

/* ===== ESTILOS DEL ENCABEZADO CUANDO SE HACE SCROLL ===== */
.main-header.scrolled .main-nav {
    /* Reducimos el padding vertical para hacerlo más compacto */
    padding: 0.5rem 5%;
}

.main-header.scrolled .logo {
    /* Reducimos el tamaño del logo */
    font-size: 1.3rem;
}

.main-header.scrolled .logo-img {
    /* Reducimos la altura del logo */
    height: 32px;
}

/* ===== OTRAS SECCIONES Y PIE DE PÁGINA ===== */
.placeholder-section {
    padding: 4rem 5%;
    text-align: center;
    min-height: 300px;
    border-bottom: 1px solid #ddd;
}

.main-footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
}

.footer-sitemap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: left;
}

.footer-sitemap h2 {
    margin-bottom: 0.65rem;
    color: #fff;
    font-size: 1rem;
}

.footer-sitemap ul {
    display: grid;
    gap: 0.35rem;
    list-style: none;
}

.footer-sitemap a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.footer-sitemap a:hover,
.footer-sitemap a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0.75rem;
    font-weight: 600;
}

.footer-social .social-links {
    gap: 0.75rem;
}

.footer-social .social-links a {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.footer-social .social-links svg {
    width: 1.2rem;
    height: 1.2rem;
}

@media (max-width: 760px) {
    .header-social-bar {
        justify-content: center;
    }

    .header-social-bar .social-links {
        gap: 0.35rem;
    }

    .footer-social {
        flex-direction: column;
    }

    .footer-sitemap {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 28rem;
    }
}

/* ===== ESTILOS DE LA SECCIÓN DE REGISTRO ===== */
.registration-section {
    background-color: #fff;
    padding: 5rem 5%;
    text-align: center;
}

.registration-section .container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.registration-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.registration-section p {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #666;
}

.registration-form fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.registration-form legend {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 0 0.5rem;
    margin-left: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group input[type="url"] {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 51, 102, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.checkbox-group input {
    margin-right: 0.7rem;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.submit-button:hover {
    background-color: #a50f1f; /* Un rojo más oscuro */
    transform: translateY(-2px);
}

/* ESTILOS PARA MENSAJES DE RESPUESTA DEL FORMULARIO */
.form-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* ===== ESTILOS DEL SPINNER DE CARGA ===== */
.loading-spinner {
    border: 5px solid rgba(0, 0, 0, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 3rem auto; /* Centrar el spinner en su contenedor */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== ESTILOS DEL MODAL DE NOTICIAS ===== */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg-color);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    position: relative;
    animation: fadeInModal 0.3s;
}

.close-button {
    color: var(--subtle-text-color);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--accent-color);
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.modal-text-content #modal-title {
    color: var(--primary-color);
}

.modal-text-content #modal-date {
    color: var(--subtle-text-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== ESTILOS DEL ASISTENTE DE REGISTRO (WIZARD) ===== */
.wizard-progress {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    counter-reset: step;
}

.wizard-progress::before, .wizard-progress-bar {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background-color: #e0e0e0;
    z-index: -1;
}

.wizard-progress-bar {
    width: 0;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

.wizard-step {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 3px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #e0e0e0;
    transition: all 0.4s ease;
    position: relative;
}

.wizard-step::after {
    content: attr(data-step-name);
    position: absolute;
    top: 45px;
    font-size: 0.8rem;
    color: #888;
    width: 100px;
    text-align: center;
}

.wizard-step.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.wizard-step.completed {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.wizard-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(206, 17, 38, 0.3);
}

/* ===== ESTILOS DE LA PÁGINA DE DIRECTORIO ===== */
.directory-section {
    background-color: #fff;
    padding: 5rem 5%;
}

.directory-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.directory-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.directory-section p {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #666;
}

.filters-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.filter-group select {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    min-width: 250px;
}

.filter-group.search-group {
    flex-grow: 1; /* Permite que el campo de búsqueda crezca */
    min-width: 300px;
}

.filter-group input[type="search"] {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}

.clear-filters-button {
    align-self: flex-end; /* Se alinea con la parte inferior de los otros filtros */
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--accent-color);
    background-color: transparent;
    color: var(--accent-color);
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: fit-content;
    margin-bottom: 1px; /* Pequeño ajuste para alinear perfectamente */
}

.clear-filters-button:hover {
    background-color: var(--accent-color);
    color: white;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.company-card {
    background-color: var(--bg-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}

.company-logo {
    display: block;
    width: 100%;
    height: 120px;
    margin-bottom: 1rem;
    object-fit: contain;
    object-position: center;
}

.company-logo-placeholder {
    display: flex;
    width: 100%;
    height: 120px;
    margin-bottom: 1rem;
    align-items: center;
    justify-content: center;
    color: #9aa6b2;
    background-color: #f3f5f7;
    border: 1px solid #e5e9ed;
    border-radius: 6px;
}

.company-logo-placeholder svg {
    width: 56px;
    height: 56px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.company-logo[hidden],
.modal-company-logo[hidden],
.company-logo-placeholder[hidden] {
    display: none;
}

.company-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.company-card h3 { color: var(--primary-color); margin-bottom: 0.5rem; }
.company-card p { font-size: 0.9rem; color: #666; margin-bottom: 0.5rem; }
.company-card .company-description { font-size: 1rem; color: var(--text-color); margin-top: 1rem; }
.no-results { text-align: center; grid-column: 1 / -1; font-size: 1.2rem; padding: 2rem; }

/* ===== ESTILOS DEL MODAL DE DETALLE DE EMPRESA ===== */
.modal-content.large {
    max-width: 800px;
}

#modal-company-name {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.modal-company-rif {
    color: #777;
    font-weight: bold;
    margin-bottom: 2rem;
    display: block;
}

.modal-company-logo {
    display: block;
    width: min(100%, 240px);
    height: 120px;
    margin-bottom: 1rem;
    object-fit: contain;
    object-position: left center;
}

.modal-company-logo-placeholder {
    width: min(100%, 240px);
}

.modal-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.modal-detail-section h3 {
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.modal-detail-section p {
    margin-bottom: 0.5rem;
}

/* ===== ESTILOS DEL PANEL DE ADMINISTRACIÓN ===== */
.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.admin-container h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.admin-container h3 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.admin-form {
    max-width: 400px;
    margin: 2rem auto;
}

.admin-news-section > p {
    color: var(--subtle-text-color);
}

.admin-news-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 1rem;
    max-width: 900px;
    margin: 1.5rem 0 2rem;
}

.admin-news-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-news-form .form-group:nth-child(3),
.admin-news-form .form-group:nth-child(4),
.admin-news-form .form-group:nth-child(5),
.admin-news-form .admin-news-form-actions,
.admin-news-form .form-message {
    grid-column: 1 / -1;
}

.admin-news-form input,
.admin-news-form textarea,
.admin-news-form select {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font: inherit;
}

.admin-news-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.admin-news-form .form-message:empty {
    display: none;
}

.admin-news-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-news-actions .action-btn.edit {
    background-color: var(--primary-color);
}

.admin-news-actions .action-btn.delete {
    background-color: var(--accent-color);
}

.admin-news-state {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.82rem;
    background: #64748b;
}

.admin-news-state.publicada {
    background: #16803c;
}

.admin-news-state.archivada {
    background: #475569;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th, .admin-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.admin-table th {
    background-color: var(--bg-color);
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    color: white;
    font-size: 0.8rem;
}

.action-btn.approve { background-color: #28a745; }
.action-btn.reject { background-color: var(--accent-color); }
.action-btn.view { background-color: var(--primary-color); }

.status-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.status-badge.active_affiliate { background-color: #28a745; }
.status-badge.rejected { background-color: #6c757d; }
.status-badge.inactive { background-color: #ffc107; color: #333; }

@media (max-width: 760px) {
    .admin-news-form {
        grid-template-columns: 1fr;
    }

    .admin-news-form .form-group,
    .admin-news-form .admin-news-form-actions,
    .admin-news-form .form-message {
        grid-column: 1;
    }
}

.home-discovery {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #f4f7f6 0%, #eaf0f5 100%);
}

.home-discovery .container {
    max-width: 1200px;
    margin: 0 auto;
}

.home-discovery .eyebrow {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-discovery h2 {
    max-width: 760px;
    margin: 0.5rem 0 0.75rem;
    color: var(--primary-color);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.home-discovery-intro {
    max-width: 720px;
    margin-bottom: 1.75rem;
    color: var(--subtle-text-color);
    font-size: 1.05rem;
}

.home-search {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(220px, 1.7fr) auto;
    gap: 0.75rem;
    max-width: 850px;
    margin-bottom: 2rem;
    padding: 0.65rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background-color: #fff;
    box-shadow: 0 12px 32px rgba(0, 31, 63, 0.08);
}

.home-search select,
.home-search input {
    min-width: 0;
    padding: 0.85rem 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f7f9fb;
    color: var(--text-color);
    font: inherit;
}

.home-search select:focus,
.home-search input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
}

.home-search .cta-button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-category-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: start;
    min-height: 132px;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-category-card:hover,
.home-category-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 28px rgba(0, 31, 63, 0.1);
}

.home-category-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 10px;
    background: #edf3f8;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 800;
}

.home-category-card strong,
.home-category-card small {
    display: block;
}

.home-category-card strong {
    margin-bottom: 0.35rem;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.home-category-card small {
    color: var(--subtle-text-color);
    font-size: 0.9rem;
    line-height: 1.45;
}

.home-category-arrow {
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: 700;
}

.home-business-cta {
    margin-top: 1.5rem;
    color: var(--subtle-text-color);
}

.home-business-cta a {
    color: var(--primary-color);
    font-weight: 700;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 760px) {
    .home-discovery {
        padding: 3.5rem 5%;
    }

    .home-search {
        grid-template-columns: 1fr;
    }

    .home-category-grid {
        grid-template-columns: 1fr;
    }

    .home-category-card {
        min-height: 0;
    }
}

.company-selector-card {
    display: grid;
    grid-template-columns: minmax(180px, 0.4fr) minmax(220px, 1fr);
    align-items: center;
    gap: 0.5rem 1.25rem;
    margin-bottom: 1.25rem;
}

.company-selector-card label {
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.company-selector-card select {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    font: inherit;
}

.company-selector-card .professional-meta {
    grid-column: 2;
}

.company-vacancy-list {
    display: grid;
    gap: 0.75rem;
}

.company-vacancy-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fbfcfd;
}

.company-vacancy-details h3 {
    color: var(--primary-color);
}

.company-vacancy-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: min(100%, 210px);
}

.company-vacancy-actions select {
    min-width: 130px;
}

.company-vacancy-form {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.company-vacancy-form h3 {
    color: var(--primary-color);
}

@media (max-width: 760px) {
    .company-selector-card {
        grid-template-columns: 1fr;
    }

    .company-selector-card .professional-meta {
        grid-column: 1;
    }

    .company-vacancy-card {
        align-items: stretch;
        flex-direction: column;
    }

    .company-vacancy-actions {
        width: 100%;
    }
}

.profile-progress-card {
    margin-bottom: 2rem;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #f8fafc;
}

.profile-progress-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.profile-progress-heading h3 {
    color: var(--primary-color);
}

.profile-progress-heading p,
.field-help {
    color: var(--subtle-text-color);
    font-size: 0.9rem;
}

#profile-progress-value {
    color: var(--primary-color);
    font-size: 1.35rem;
}

#profile-progress {
    display: block;
    width: 100%;
    height: 0.7rem;
    margin-bottom: 1rem;
    accent-color: var(--primary-color);
}

.profile-completion-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 0.5rem 1rem;
    list-style: none;
    color: #64748b;
    font-size: 0.9rem;
}

.profile-completion-list .is-complete {
    color: #166534;
}

#profile-form .profile-editor-section {
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-color);
}

#profile-form .profile-editor-section h3,
.professional-detail-group h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.05rem;
}

#profile-form .profile-editor-section > .field-help {
    display: block;
    margin: 0 0 0.8rem;
}

.profile-collection {
    display: grid;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.profile-collection-item {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.profile-collection-item legend {
    padding: 0 0.4rem;
    color: var(--primary-color);
    font-weight: 700;
}

.profile-collection-item .form-grid {
    margin-bottom: 0.75rem;
}

.professional-detail-group {
    display: grid;
    gap: 0.4rem;
    padding-top: 0.6rem;
}

.professional-detail-group a {
    overflow-wrap: anywhere;
}

.professional-detail-group p {
    margin: 0.2rem 0;
    white-space: pre-line;
}

.profile-view-heading,
.profile-editor-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.profile-view-heading h3,
.profile-editor-heading h3 {
    margin: 0.25rem 0;
    color: var(--primary-color);
}

.profile-view-heading .submit-button {
    width: auto;
    margin: 0;
}

.profile-editor-heading {
    margin-top: 1.5rem;
}

.professional-profile-display {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    padding: clamp(1.25rem, 3vw, 2.5rem);
}

.profile-display-identity {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-display-identity > div {
    flex: 1;
    min-width: 0;
}

.profile-social-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
    margin-left: auto;
    align-self: flex-start;
}

.profile-display-identity h2 {
    margin: 0 0 0.35rem;
    color: var(--primary-color);
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.profile-display-avatar {
    width: 104px;
    height: 104px;
    flex: 0 0 auto;
}

.profile-display-section {
    padding-top: 1rem;
}

.profile-display-section > h3 {
    margin: 0 0 0.6rem;
    color: var(--primary-color);
}

.profile-display-section > p,
.profile-display-section > div > p {
    margin: 0.35rem 0;
    white-space: pre-line;
}

.profile-social-icon {
    display: inline-flex;
    width: 2.6rem;
    height: 2.6rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 50%;
    background: #eef4fa;
    color: var(--primary-color);
    text-decoration: none;
}

.profile-social-icon:hover,
.profile-social-icon:focus-visible {
    background: var(--primary-color);
    color: #fff;
}

.profile-social-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

@media (max-width: 600px) {
    .profile-display-identity {
        flex-wrap: wrap;
        gap: 0.9rem;
    }

    .profile-social-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

#profile-form .field-help {
    flex-basis: 100%;
    margin-left: 2rem;
}

.professional-preview-section {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
}

.professional-preview-section .platform-card-heading {
    align-items: flex-start;
    margin-bottom: 1rem;
}

.professional-preview-section h3 {
    color: var(--primary-color);
}

.visibility-badge {
    flex: 0 0 auto;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
}

.visibility-badge.is-visible {
    background: #dcfce7;
    color: #166534;
}

.profile-preview-card {
    max-width: 760px;
    margin-bottom: 0.75rem;
    border-color: #dbe5ef;
}

.preview-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preview-identity h2 {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.preview-avatar-fallback {
    display: grid;
    flex: 0 0 74px;
    place-items: center;
    color: var(--primary-color);
    font-weight: 800;
}

.profile-preview-card .preview-placeholder {
    color: #94a3b8;
    font-style: italic;
}

.preview-experience {
    white-space: pre-line;
}

.preview-directory-link {
    display: inline-block;
    margin-top: 0.75rem;
    text-decoration: none;
}

@media (max-width: 600px) {
    .profile-progress-heading,
    .professional-preview-section .platform-card-heading {
        flex-direction: column;
    }

    .preview-identity {
        align-items: flex-start;
    }
}

.professional-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}

.professional-tools-grid h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.professional-tools-grid .field-help,
.professional-cv-card > p,
.professional-applications-card > p {
    margin: 0.5rem 0;
}

.professional-cv-card input[type="file"] {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.7rem;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    font: inherit;
}

.professional-cv-card .application-actions {
    margin-top: 0.75rem;
}

.professional-applications-list {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.professional-application-card {
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    background: #fbfcfd;
}

.professional-application-card h4 {
    color: var(--primary-color);
}

.professional-application-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.45rem;
    color: var(--subtle-text-color);
    font-size: 0.9rem;
}

.professional-application-card .application-actions {
    margin-top: 0.65rem;
}

.application-status-recibida {
    background: #e0f2fe;
    color: #075985;
}

.application-status-en_revision {
    background: #fef3c7;
    color: #92400e;
}

.application-status-preseleccionada {
    background: #dcfce7;
    color: #166534;
}

.application-status-rechazada,
.application-status-retirada {
    background: #f1f5f9;
    color: #475569;
}
