/* css/style.css */

/* Estilos Generales del Body */
body {
    font-family: 'Poppins', 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #F8FAFC; /* Fondo muy claro, casi blanco */
    color: #1F2937; /* Texto oscuro principal */
    padding-top: 104px; /* Ajustar por la altura del header fijo */
}

header, footer {
    flex-shrink: 0;
}

main {
    flex-grow: 1;
}

/* Encabezado: Fondo BLANCO para resaltar el logo con elementos oscuros y texto oscuro */
#mainHeader {
    background-color: #FFFFFF; /* Fondo blanco */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); /* Sombra ligera */
}
/* La clase .header-top-bar ya no está en el HTML, por lo que no se necesita CSS para ella */


/* Estilo para enlace de navegación en header claro: ¡Letras OSCURAS y legibles! */
.nav-link {
    color: #1F2937; /* Texto OSCURO para enlaces por defecto */
    font-size: 1.05rem; /* Slightly larger base size */
    font-weight: 700; /* Bolder weight for readability */
    transition: color 0.2s ease, font-weight 0.2s ease;
}
.nav-link:hover {
    color: #2563EB; /* Azul principal del logo al hover */
    font-weight: 800; /* Extra bold on hover */
}
.nav-link-active {
    color: #1F2937; /* Texto OSCURO para enlace activo */
    font-weight: 800; /* Extra bold for active link */
    position: relative;
}
.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background-color: #3B82F6; /* Azul primario más brillante del logo */
    border-radius: 9999px; /* Píldora */
}
@media (min-width: 768px) { /* On desktop, slightly larger font for nav links */
    .nav-link {
        font-size: 1.1rem; /* Slightly larger on desktop */
    }
    .nav-link-active {
        font-size: 1.1rem;
    }
}


/* Ajuste de dropdown para header claro */
.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #FFFFFF; /* Fondo blanco para el dropdown */
    min-width: 180px;
    z-index: 60;
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid #E2E8F0; /* Borde sutil */
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown .dropdown-menu.open {
    display: block;
}
.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    color: #1F2937; /* Texto oscuro en dropdown */
    transition: background-color 0.2s ease, color 0.2s ease;
}
.dropdown-menu a:hover {
    background-color: #F8FAFC; /* Fondo muy claro al hover */
    color: #2563EB; /* Azul primario al hover */
}

/* Efecto Hover para Tarjetas (Generalizado, sutil para profesionalismo) */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.15), 0 5px 8px -4px rgba(0, 0, 0, 0.1);
}

/* Hero section specific styles */
.hero-main-section {
    background: linear-gradient(to bottom right, #F8FAFC 0%, #E0F9FF 100%); /* Degradado muy sutil de blanco a azul claro */
    position: relative;
    overflow: hidden;
    padding-bottom: 6rem;
    border-bottom: 1px solid #E2E8F0;
}
.hero-pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Patrón de puntos azul claro muy sutil (SVG data URI) */
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23DBEAFE" fill-opacity="0.5"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0 20v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 24v-4H4v4H0v2h4v4h2v-4h4v-2H6zm0 20v-4H4v4H0v2h4v4h2v-4h4v-2H6zM18 0v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0 20v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm-6 8v-4H8v4H4v2h4v4h2v-4h4v-2h-4zm0 20v-4H8v4H4v2h4v4h2v-4h4v-2h-4zm24-8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-20v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm-6-20v-4H30v4H26v2h4v4h2v-4h4v-2h-4zm0 40v-4H30v4H26v2h4v4h2v-4h4v-2h-4z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    background-size: 60px 60px;
    opacity: 0.8;
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
}
/* Texto Hero: Color negro para máxima legibilidad en fondo claro */
.hero-text-main {
    color: #000000;
}
.hero-btn-candidato {
    background-color: #3B82F6; /* Azul principal del logo */
    color: white;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.hero-btn-candidato:hover {
    background-color: #2563EB; /* Un poco más oscuro al hover */
    transform: translateY(-2px);
}
.hero-btn-empresa {
    background-color: #10B981; /* Verde principal del logo */
    color: white;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.hero-btn-empresa:hover {
    background-color: #059669; /* Un poco más oscuro al hover */
    transform: translateY(-2px);
}
.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 50%;
    z-index: 1;
}
@media (max-width: 768px) { /* Para móviles, la imagen se oculta */
    .hero-image {
        display: none;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content .flex {
        justify-content: center;
    }
}


/* Feature Icons (colores de marca) */
.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: #E0F2FE; /* Azul muy claro */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    color: #3B82F6; /* Azul de marca */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-icon-wrapper.green {
    background: #D1FAE5; /* Verde muy claro */
    color: #059669; /* Verde de marca */
}
.feature-icon-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Latest Vacancies styling */
.vacancy-card {
    background-color: white;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-radius: 0.75rem; /* rounded-lg */
    transition: all 0.3s ease;
}
.vacancy-card .company-logo {
    border: 1px solid #E2E8F0;
    padding: 0.25rem;
    background-color: #F8FAFC;
    border-radius: 0.5rem; /* rounded-lg */
}
.vacancy-card:hover {
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* Call to Action section (degradado sutil) */
.cta-section-bg {
    background: linear-gradient(135deg, #2563EB 0%, #10B981 100%); /* Degradado azul a verde del logo */
    border-radius: 1.5rem;
}

/* Testimonials Section */
.testimonial-card {
    background-color: #FFFFFF;
    border-radius: 1rem;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    border: 1px solid #E2E8F0;
}
.testimonial-avatar {
    border: 3px solid;
}
.testimonial-text {
    color: #4B5563;
}

/* --- Partners Carousel Specific Styles --- */
.partners-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    background-color: #FFFFFF;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.partners-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}
.partners-carousel-item {
    flex: 0 0 20%; /* Show 5 items at a time */
    min-width: 150px; /* Minimum width for smaller screens */
    padding: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.partners-carousel-item img {
    max-width: 100%;
    height: 60px; /* Fixed height for logos */
    object-fit: contain;
    filter: grayscale(100%) opacity(70%);
    transition: filter 0.3s ease;
}
.partners-carousel-item img:hover {
    filter: grayscale(0%) opacity(100%);
}
.partners-carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.1);
    color: #6B7280;
    border: none;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 20;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1.25rem;
}
.partners-carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.2);
    color: #1F2937;
}
.partners-carousel-button.prev {
    left: 0.5rem;
}
.partners-carousel-button.next {
    right: 0.5rem;
}

/* --- Main Image Carousel (at the end of the page) --- */
.main-image-carousel-container {
    position: relative;
    width: 100%;
    height: 400px; /* Altura fija para el carrusel de imágenes */
    overflow: hidden;
    background-color: #E2E8F0; /* Fondo claro si la imagen no carga */
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-top: 6rem; /* Espacio superior */
}
.main-image-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex; /* Para centrar el posible texto de la imagen */
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}
.main-image-carousel-item.active {
    opacity: 1;
}
.main-image-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Oscurece la imagen ligeramente */
}
.main-image-carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 20;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-image-carousel-button:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}
.main-image-carousel-button.prev {
    left: 1rem;
}
.main-image-carousel-button.next {
    right: 1rem;
}
.carousel-text-content { /* Contenido opcional sobre la imagen del carrusel */
    position: relative;
    z-index: 10;
    max-width: 80%;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* --- Footer Styles --- */
.main-footer {
    background-color: #1F2937; /* Gris oscuro para el footer */
    color: #D1D5DB; /* Gris claro para el texto */
    padding: 2.5rem 0;
    margin-top: 4rem; /* Espacio superior */
}
.footer-logo {
    filter: brightness(1.5); /* Aclara el logo para fondo oscuro */
    opacity: 0.9;
}
.footer-link {
    color: #9CA3AF; /* Gris para enlaces */
    transition: color 0.2s ease;
}
.footer-link:hover {
    color: #F8FAFC; /* Más claro al hover */
}
.social-icon {
    color: #9CA3AF; /* Iconos grises */
    transition: color 0.2s ease;
}
.social-icon:hover {
    color: #FFFFFF; /* Blancos al hover */
}

/* Estilos para la zona de carga de archivos (CV y Logo) */
.file-input-label {
    border: 2px dashed #D1D5DB; /* Borde punteado */
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 150px; /* Ajustado para un aspecto más cuadrado y flexible */
    height: auto; /* Permite que la altura se ajuste al contenido */
    transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
.file-input-label.dragover,
.file-input-label:hover {
    border-color: #2563EB; /* Color de hover */
    background-color: #EFF6FF; /* Fondo claro al hover */
}

/* Regla para ocultar el input de archivo nativo */
input[type="file"].hidden-file-input {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
    opacity: 0;
}

.logo-preview {
    max-width: 100%;
    max-height: 120px;
    margin-top: 0.5rem;
    border-radius: 0.25rem;
    object-fit: contain;
}

/* admin_layout_header.php specific styles */
.admin-nav-button {
    /* Existing properties */
    background-color: #3B82F6; /* Default color, overridden by specific pages */
    color: white;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;

    /* Increased padding */
    padding: 0.75rem 1.25rem;
}
.admin-nav-button.active {
    background-color: #0F766E; /* Example active state color, adjust as per your design */
}