/*
Theme Name: Child theme (Kikmo Theme)
Theme URI: http://www.tudominio.com/
Description: Child theme to customize original theme.
Author: Cesar
Author URI: http://www.kikmo-group.com/
Template: onepress
Version: 1.0.5
*/

/* =========================================================
   1. CUSTOM HERO OVERLAY (Para sección Hero normal)
   ========================================================= */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Oscuridad normal */
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    /* MODIFICACIÓN: Eliminado text-align: left para que se centre automáticamente */
}

/* =========================================================
   2. MEJORAS SECCIÓN SERVICIOS (Diseño de tarjetas)
   ========================================================= */
.section-services .service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
}

.section-services .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}

.section-services .service-image {
    margin-right: 0;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.section-services .service-content {
    flex: 1;
    width: 100%;
}

/* =========================================================
   3. ESTILOS PÁGINA DE EMPLEOS (template-jobs.php)
   ========================================================= */

/* Ocultar título por defecto */
.page-header {
    display: none;
}

/* FONDO GENERAL DE LA PÁGINA (Gris Claro Profesional) */
#primary.content-area,
#content-section {
    background-color: #f7f7f7; 
}

/* FIX VISIBILIDAD HEADER (Menú en negro para fondo claro) */
.header-on-top #site-navigation.main-navigation, 
.header-on-top #nav-toggle span::before,
.header-on-top #nav-toggle span::after,
.header-on-top .site-text-logo,
.header-on-top .main-navigation a {
    color: #333333; 
}

/* --- HEADER TIPO HERO (JOBS) --- */
.jobs-hero-header {
    position: relative;
    padding: 100px 0;
    min-height: 450px;
    background-size: cover;
    background-position: center center;
    color: #ffffff;
    display: flex;
    align-items: center;
    /* Mantenemos Jobs centrado o lo cambiamos a left si prefieres consistencia */
    justify-content: center; 
    text-align: center; 
    
    /* Uses the dark high-tech background */
    background-image: url('<?php echo get_stylesheet_directory_uri(); ?>/images/philipp-katzenberger-1313574-unsplash-compressor.jpg');
}

/* Overlay más claro (0.5) para que la imagen se vea mejor */
.jobs-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

.jobs-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    color: #ffffff;
}

.jobs-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #ffffff;
}

.jobs-hero-tagline {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Forzar ocultar botones en Jobs */
.jobs-hero-actions {
    display: none !important;
}

/* --- BARRA LATERAL (FILTROS) --- */
#jobs-filter-sidebar {
    padding: 40px 20px 40px 0;
    background: #ffffff; 
    border-right: 1px solid #f0f0f0;
    height: 100%;
}

.job-filter-widget {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    margin-bottom: 10px;
}

.job-filter-widget h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

/* --- LISTADO DE TARJETAS --- */
#jobs-list-content {
    padding: 40px 20px;
}

.archive-main-title {
    text-align: left;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

/* Tarjeta Individual */
.job-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 20px;
    text-align: left;
    transition: box-shadow 0.3s ease;
}
.job-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #03c4eb;
}

.post-job-listing .entry-header h3 {
    margin-top: 0;
    font-size: 1.5rem;
}
.post-job-listing .entry-header h3 a {
    color: #03c4eb;
    text-decoration: none;
}

.job-meta-tag {
    display: inline-block;
    background: #f0f4f8;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.job-apply-button {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    gap: 10px;
}

.job-apply-button .btn {
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 4px;
}

/* =========================================================
   4. ESTILOS PARA EL ÁREA DE CLIENTES (LOGIN)
   ========================================================= */

.client-login-box {
    background: #ffffff;
    padding: 40px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: -100px; /* Efecto visual para solapar con el header */
    position: relative;
    z-index: 10;
}

/* Si no usamos el efecto de margen negativo en ciertas vistas */
.page-template-template-clients .client-login-box {
    margin-top: -80px; /* Ajustado para que suba sobre la imagen */
}

.client-login-box .login-username, 
.client-login-box .login-password {
    margin-bottom: 20px;
}

.client-login-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.client-login-box input[type="text"],
.client-login-box input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.client-login-box .login-submit input[type="submit"] {
    background-color: #03c4eb;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.3s;
}

.client-login-box .login-submit input[type="submit"]:hover {
    background-color: #02a3c4;
}

/* =========================================================
   5. ESTILOS COLORES CORPORATIVOS MENÚ
   ========================================================= */

/* Ajustes generales para que los enlaces parezcan botones */
@media screen and (min-width: 1140px) {
    #site-navigation .onepress-menu > li > a[href*="jobs"],
    #site-navigation .onepress-menu > li > a[href*="client"],
    #site-navigation .onepress-menu > li > a[href*="contact"] {
        color: #ffffff !important; /* Texto blanco forzado */
        padding: 10px 15px !important; /* Padding unificado */
        border-radius: 4px; /* Bordes redondeados */
        margin-left: 5px;
        
        /* ALINEACIÓN: 4px para el equilibrio visual */
        position: relative;
        top: 0; 
        vertical-align: middle;
        margin-top: 4px !important; 
        
        line-height: 1.2; 
        transition: all 0.3s ease;
        opacity: 0.9;
        display: inline-block;
        border: 4px solid transparent; /* BORDE MÁS GRUESO (4px) */
    }

    /* Efecto Hover - Solo cambia opacidad, no posición */
    #site-navigation .onepress-menu > li > a[href*="jobs"]:hover,
    #site-navigation .onepress-menu > li > a[href*="client"]:hover,
    #site-navigation .onepress-menu > li > a[href*="contact"]:hover {
        opacity: 1;
        transform: none; 
    }

    /* 1. JOBS -> Magenta Corporativo (#e6007e) */
    #site-navigation .onepress-menu > li > a[href*="jobs"] {
        background-color: #e6007e;
        border-color: #e6007e;
    }
    #site-navigation .onepress-menu > li > a[href*="jobs"]:hover {
        background-color: transparent !important;
        color: #333333 !important;
        border-color: #e6007e !important;
    }

    /* 2. CLIENT AREA -> Naranja (#F59C00) */
    #site-navigation .onepress-menu > li > a[href*="client"] {
        background-color: #F59C00;
        border-color: #F59C00;
    }
    #site-navigation .onepress-menu > li > a[href*="client"]:hover {
        background-color: transparent !important;
        color: #333333 !important;
        border-color: #F59C00 !important;
    }

    /* 3. CONTACT -> Azul Primario (#00ADBA) */
    #site-navigation .onepress-menu > li > a[href*="contact"] {
        background-color: #00ADBA;
        border-color: #00ADBA;
    }
    #site-navigation .onepress-menu > li > a[href*="contact"]:hover {
        background-color: transparent !important;
        color: #333333 !important;
        border-color: #00ADBA !important;
    }
}

/* Ajuste para menú móvil (opcional, para que se vea el color también ahí) */
@media screen and (max-width: 1139px) {
    #site-navigation .onepress-menu > li > a[href*="jobs"] { color: #e6007e !important; }
    #site-navigation .onepress-menu > li > a[href*="client"] { color: #F59C00 !important; }
    #site-navigation .onepress-menu > li > a[href*="contact"] { color: #00ADBA !important; }
}

/* =========================================================
   7. INCREASE LOGO SIZE (Ajuste Final de Producción)
   ========================================================= */

/* 1. Desbloqueamos el contenedor para que no limite la altura */
#masthead .site-branding .site-logo-div {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

/* 2. Ajuste natural hasta un máximo considerable */
#masthead .site-branding .site-logo-div img {
    max-height: 250px !important; /* Altura máxima permitida */
    width: auto !important;       /* Mantiene la proporción */
    height: auto !important;      /* Permite escalar naturalmente */
}

/* Ajuste para móviles */
@media screen and (max-width: 768px) {
    #masthead .site-branding .site-logo-div img {
        max-height: 100px !important;
    }
}