/*
 Theme Name:   GeneratePress Child
 Template:     generatepress
*/

/* ===== Paleta San Javier ===== */
:root{
  --sj-azul: #003A70;
  --sj-azul-medio: #005DA4;
  --sj-azul-oscuro: #00294F;
  --sj-dorado: #D4A017;
}

/* Fuentes Roboto */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/roboto-v51-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/roboto-v51-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/roboto-v51-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/roboto-v51-latin-900.woff2') format('woff2');
}


/*Color de fondo para el menu de arriba*/
.inside-navigation{
    background-color: #ffffff;
}

/*Estilos para el h1 del apartado documentacion dentro del detalle*/
.seccion-docs h2{
    font-size: 1.8rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
}

/* 1. Estructura de la Tarjeta Principal */
.wp-block-post-template .wp-block-group {
    background-color: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 30px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.wp-block-post-template .wp-block-group:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: var(--sj-azul-medio);
}

/* 2. Título del Proceso */
.wp-block-post-template h2.wp-block-post-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1a3a5a !important;
    line-height: 1.4;
    margin-top: 10px !important;
    margin-bottom: 25px !important;
    min-height: 3.5em; /* Alinea los títulos */
}

/* 3. Estilo de "Falsa Tabla" para las columnas */
.wp-block-columns {
    margin-bottom: 0 !important;
    gap: 0 !important;
}
.wp-block-column {
    padding: 10px !important;
    border-bottom: 1px solid #f0f4f8;
    margin-left: 0 !important;
}

/* Etiquetas (Títulos de las columnas) */
.wp-block-column p {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em;
    color: #718096 !important;
    margin-bottom: 5px !important;
}

/* Valores de los campos de Pods */
.pods-field-value, 
.wp-block-column .wp-block-pods-item-field {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #2d3748 !important;
    display: block;
}

/* 4. Especial: Estado del Proceso (Abierto/Cerrado) */
.wp-block-column:last-child {
    background-color: #f8fafc;
    border-radius: 4px;
}

/* 5. Fecha superior (estilo sutil) */
/* (corregido combinador >) */
.wp-block-post-template .wp-block-group > .wp-block-pods-item-field:first-child {
    font-size: 0.85rem;
    color: #a0aec0;
    font-weight: 600;
}

/* 1. Ensanchamos el contenedor principal del tema */
.site-content .grid-container {
    max-width: 1750px !important;
}

/* 2. Aseguramos que el contenido interno también use ese ancho */
.entry-content {
    max-width: 100% !important; 
}

.oferta-empleo-wrapper {
    width: 100%;
    max-width: 1750px;
    margin: 0 auto;
    color: #333;
    box-sizing: border-box;
}

/* Cabecera */
.oferta-header-admin {
    background-color: var(--sj-azul-medio);
    color: #ffffff;
	width: 100%;
	border-radius: 8px;
	margin-bottom:50px;
    padding: 40px 20px;
    text-align: center;
    
}
.oferta-header-admin h1 { font-size: 1.8rem; margin: 0; font-weight: 900; text-transform: uppercase; color: #fff !important; }
.oferta-header-admin h2 { font-size: 1rem; margin: 5px 0; font-weight: 700; color: #fff !important; }

@media (max-width: 768px) {
    .oferta-header-admin {
        padding: 15px 25px;
        margin-top: -10px;
    }

    .oferta-header-admin h1 {
        font-size: 1.3em;
    }
}

/* Barras de información */
.oferta-top-bar {
    background-color: var(--sj-azul-medio);
    color: #fff !important;
    padding: 15px 25px;
    font-weight: 800;
}
.bar-estado { 
    background-color: var(--sj-azul);
    border-top: 1px solid var(--sj-azul);
    margin-bottom: 20px; 
}

/* Tabla técnica */
.tabla-datos-empleo { width: 100%; border-collapse: collapse; border: 1px solid #cce0f5; margin-bottom: 30px; }
.tabla-datos-empleo td { border: 1px solid #cce0f5; padding: 15px 25px; width: 50%; }

/* Rediseño Tablón a UNA COLUMNA */
.tablon-container {
    margin: 40px -25px 0 -25px;
    background-color: #f4f8fb;
    padding: 40px 25px;
}
.tablon-container h2 { margin-top: 0; font-size: 1.8rem; font-weight: 900; margin-bottom: 25px; }
.tablon-lista { display: flex; flex-direction: column; gap: 15px; }

.tablon-item {
    background: #ffffff;
    border-left: 5px solid var(--sj-azul-medio); /* Borde decorativo lateral */
    padding: 20px 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tablon-fecha {
    font-weight: 900;
    color: #333;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.tablon-link {
    color: var(--sj-azul-medio);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
    text-transform: uppercase;
}
.tablon-link:hover {
    text-decoration: underline;
    color: var(--sj-azul);
}

.tablon-titulo-no-link {
    font-weight: 700;
    color: #333;
}

/* Documentación superior */
.docs-grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px; 
}
.doc-link-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    text-decoration: none;
    color: #333;
}
.doc-link-container:hover .doc-text {
    text-decoration: underline;
    color: var(--sj-azul);
}
.pdf-icon-img {
    width: 20px;
    height: auto;
    flex-shrink: 0;
}

/* Tablets y móviles */
@media (max-width: 1024px) {
    .oferta-empleo-wrapper { padding: 0 5px; } 
    .docs-grid { grid-template-columns: 1fr; }
    .tabla-datos-empleo td { display: block; width: 100% !important; padding: 12px 20px; }
}


/* ===== ESTILOS PARA LA PÁGINA PRINCIPAL ===== */

/* ============================================================
   HERO INSTITUCIONAL SAN JAVIER
============================================================ */
/* ==========================================
   HERO SEPARADO EN DOS DIVS (SIN SALTOS)
========================================== */

/* Imagen del hero */
.hero-empleo {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0;  /* la caja azul va después */
}

.hero-empleo-img {
    width: 100%;
    height: 320px;             /* altura estable */
    object-fit: cover;         /* recorte tipo background-image */
    display: block;
}

/* Caja azul debajo del hero */
.hero-empleo-box {
    margin-top: -40px;         /* sube un poquito sobre la foto si quieres */
    background: var(--sj-azul-medio);
    padding: 25px 40px;
    text-align: center;
    border-radius: 8px;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
	
}

.hero-empleo-box h1 { font-size: 1.8rem; margin: 0; font-weight: 900; text-transform: uppercase; color: #fff !important; }

/* Responsive */
@media (max-width: 768px) {
    .hero-empleo-img {
        height: 200px;
    }
    .hero-empleo-box {
        padding: 15px 25px;
        margin-top: -25px;
    }
    .hero-empleo-box h1 {
        font-size: 1.3em;
    }
}

.empleo-titulo-especial {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.empleo-titulo-especial::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--sj-azul-medio);
    margin: 10px auto 0;
}
.empleo-subtitulo { color: #111111; font-size: 1.1rem; }

/* Filtros */
.empleo-filtros-container {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
}
.empleo-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.filtro label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 8px;
    color: #4a5568;
}
.filtro select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #cbd5e0;
    min-width: 200px;
}

/* GRID DE TARJETAS (2 columnas en PC, 1 en móvil) */
.empleo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: stretch;
}
@media (max-width: 768px) {
    .empleo-grid { grid-template-columns: 1fr; }
}

/* Estilo Base de la Tarjeta */
.empleo-card {
    background: #f1f8ff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #b3d7ff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.empleo-card:hover {
    background: #f1f8ff; 
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
    border-color: #90caf9;
}

/* Cabecera de tarjeta */
.empleo-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.empleo-card__categoria {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--sj-azul-medio);

}

/* Título */
.empleo-card__titulo {
   
	display: inline-block;
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 700;
    flex-grow: 0;
	background: rgba(0, 93, 164, 0.1); /* #005DA4 */
	border-radius: 25px;
	padding: 12px 20px;
		color: var(--sj-azul);
    text-decoration: none;
    transition: color 0.2s;
}
.empleo-card__titulo a {
	color: var(--sj-azul);
    text-decoration: none;
    transition: color 0.2s;
}
.empleo-card__titulo:hover {
    color: white;
	background-color: var(--sj-azul-medio);
	transition: color 0.2s;
}

@media (max-width: 1024px) 
{
	/* Título */
.empleo-card__titulo {
   
	display: inline-block;
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 700;
    flex-grow: 0;
	background: rgba(0, 93, 164, 0.1); /* #005DA4 */
	border-radius: 25px;
	padding: 12px 20px;
		color: var(--sj-azul);
    text-decoration: none;
    transition: color 0.2s;
}
.empleo-card__titulo a {
	color: var(--sj-azul);
    text-decoration: none;
    transition: color 0.2s;
}
.empleo-card__titulo:hover {
    color: white;
	background-color: var(--sj-azul-medio);
	transition: color 0.2s;
}
}

/* Tabla */
.empleo-card__tabla {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.dato-item { display: flex; flex-direction: column; font-size: 1rem; }
.dato-item strong {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 4px;
}
.dato-item span { font-weight: 600; color: #2d3748; }

/* Botones */
.empleo-card__links { margin-top: 15px; }
.btn-detalles {
    flex: 1;
    text-align: center;
    display: block;
    width: 100%;
    background-color: var(--sj-azul-medio);
}
.empleo-card__links a {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    flex: 1;
}
.empleo-card__links a:first-child {
    background: var(--sj-azul-medio);
    color: white;
}
.empleo-card__links a:not(:first-child) {
    background: #fff;
    border: 1px solid #cbd5e0;
    color: #4a5568;
}

/* Responsive: tabla */
@media (max-width: 900px) { .empleo-card__tabla { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .empleo-card__tabla { grid-template-columns: 1fr; } }

/* Contenedor principal de filtros */
.empleo-filtros-container {
    padding: 20px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

/* Lista de botones de TIPO */
.filtro-tipo-lista {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.label-lista {
    font-weight: bold;
    color: var(--sj-azul-medio);
    white-space: nowrap;
}
.botones-tipo {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.btn-filtro {
    padding: 8px 16px;
    background: #f0f4f8;
    color: var(--sj-azul-medio);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.btn-filtro:hover { background: #e1e8f0; }
.btn-filtro.active {
    background: var(--sj-azul-medio);
    color: #fff;
}

/* Filtros inferiores (Estado y Grupo) */
.empleo-filtros-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-top: 15px;
}
.filtro-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}
.filtro-inline label {
    font-weight: bold;
    color: var(--sj-azul-medio);
    margin: 0;
    white-space: nowrap;
}
.filtro-inline select {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

/* --- Ajustes para pantallas pequeñas (Móvil) --- */
@media (max-width: 768px) {
    .empleo-filtros-row { flex-direction: column; align-items: stretch; gap: 15px; }
    .filtro-inline { flex-direction: column; align-items: flex-start; gap: 5px; }
    .filtro-inline label { font-size: 0.9rem; }
    .filtro-inline select {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    .empleo-filtros-row a[style*="color: red"] {
        text-align: center;
        padding: 10px;
        background: #fff1f1;
        border-radius: 4px;
        display: block;
    }
}

/* Estilo general para la barra de navegación (GeneratePress) */
.main-navigation {
    background-color: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* Enlaces del menú */
.main-navigation .main-nav ul li a {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px;
}
/* Último enlace como botón */
.main-navigation .main-nav ul li:last-child a {
    background-color: var(--sj-azul-medio);
    color: #ffffff !important;
    border-radius: 5px;
    line-height: 40px;
}
.main-navigation .main-nav ul li:last-child a:hover {
    background-color: var(--sj-azul);
}

/* Alarmas */
.empleo-alarmas-container {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.alarma-item {
    background: #fff5f5;
    border-left: 5px solid #e53e3e;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.alarma-item strong {
    color: #c53030;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.alarma-item p { margin: 0; color: #2d3748; font-size: 1rem; }

.btn-limpiar-link {
    font-size: 15px;
    color: #c53030 !important;
    text-decoration: none;
    font-weight: 700;
    padding: 6px 12px;
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s;
}
.btn-limpiar-link:hover {
    background: #e53e3e;
    color: #ffffff !important;
}

/* --- Paginación personalizada --- */
.empleo-paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}
.empleo-paginacion a {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 38px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    color: var(--sj-azul-medio);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.empleo-paginacion a:hover {
    background: #f1f8ff;
    border-color: var(--sj-azul-medio);
    transform: translateY(-2px);
    color: var(--sj-azul);
}
.empleo-paginacion a.active {
    background: var(--sj-azul-medio);
    color: #ffffff;
    border-color: var(--sj-azul-medio);
    cursor: default;
    box-shadow: 0 4px 6px rgba(0,93,164,0.2);
}

/* Ajuste para móvil: que no se peguen los números */
@media (max-width: 480px) {
    .empleo-paginacion a {
        min-width: 35px;
        height: 35px;
        line-height: 33px;
        font-size: 0.9rem;
    }
}

/* QUITAR TODA SEPARACIÓN ENTRE MENÚ Y FOTO */

/* Quita margen inferior del header del tema */
.site-header,
.site-header .inside-header,
.main-navigation {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Elimina cualquier gap que meta GP */
.inside-navigation {
    padding-bottom: 0 !important;
}

/* Evita espacio heredado en contenedores de bloque */
.site-main > :first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Por si tu hero tiene espacio superior */
.hero-empleo {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.main-navigation {
    box-shadow: none !important;
		margin-bottom:0px !important;
}

.menu-toggle
{
	background-color:white !important;	
	-webkit-tap-highlight-color: transparent !important;
}
.menu-toggle:hover, 
.menu-toggle:focus, 
.mobile-menu-control-wrapper,
.menu-toggle:active {
    background-color: white !important;
}

/* ===== FOOTER SAN JAVIER MODERNO ===== */

.footer-ayto {
    background-color: #ffffff; /* blanco-neutro */
    color: var(--sj-azul-medio);
    padding: 20px;
    margin-top: 40px;
    clear: both !important; /* El mazo para que baje sí o sí */
    display: block !important;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* La primera columna más ancha */
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--sj-azul); /* Usamos tu dorado del root */
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(212, 160, 23, 0.3);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--sj-azul);
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--sj-azul);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    opacity: 0.9;
}

.footer-col ul li a:hover {
    color: var(--sj-azul);
    opacity: 1;
    padding-left: 5px;
}

/* ===== AJUSTES ESPECÍFICOS PARA EL LOGO DEL FOOTER ===== */

.footer-logo {
    margin: 0 0 20px 0 !important; /* Mantiene tu margen solicitado */
    
    /* Ajuste de tamaño profesional */
    max-width: 250px !important; /* Limita el ancho para que no se coma la columna */
    height: auto !important; /* Mantiene la proporción */
    
    /* Corrección de color para fondo oscuro */
    
    display: block; /* Asegura que respete márgenes y esté en su línea */
}

/* Ajuste responsive para móviles */
@media (max-width: 768px) {
    .footer-logo {
        max-width: 200px !important; /* Un poco más pequeño en móvil */
        margin: 20px auto !important; /* Centrado y con margen */
    }
	.aviso-cookies-texto {
		padding: 20px;
	}
}
/* Barra inferior de Copyright */
.footer-copy {
    background-color: #ffffff;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--sj-azul);
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        padding: 0 30px 40px 30px;
        text-align: center;
    }
    
    .footer-col h4::after {
        margin: 10px auto;
    }
}

.aviso-cookies-texto {
    color: var(--sj-azul);
	
}

.wp-singular
{
	background-color:white !important;
}

