/*
Theme Name:   Empleo Cali Hoy Child
Theme URI:    https://www.empleocalihoy.com
Description:  Child theme de GeneratePress para el portal de empleos Empleo Cali Hoy
Author:       Harold
Template:     generatepress
Version:      0.2.9
Text Domain:  empleocalihoy-child
*/

/* ---------- Formularios (registro, ingreso, publicar oferta) ---------- */
.ech-form { max-width: 720px; }
.ech-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.ech-form input[type="text"], .ech-form input[type="email"], .ech-form input[type="tel"],
.ech-form input[type="password"], .ech-form select, .ech-form textarea { width: 100%; }
.ech-form input[type="checkbox"] { margin-right: 6px; }
.ech-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .ech-fila { grid-template-columns: 1fr; } }
.ech-error { background: #fdecea; border: 1px solid #f5c2c0; padding: 12px 16px; margin-bottom: 16px; border-radius: 6px; }
.ech-error ul { margin: 0 0 0 18px; }
.ech-ok { background: #e8f5e9; border: 1px solid #b7dfba; padding: 12px 16px; border-radius: 6px; }

/* ---------- Listado y tarjetas ---------- */
.ech-cabecera { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ech-cabecera h1 { margin: 0; font-size: 1.8em; }
.ech-descripcion { margin-bottom: 16px; color: #555; }
.ech-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ech-filtros select { flex: 1 1 160px; }
.ech-boton { display: inline-block; background: #1d3557; color: #fff; padding: 8px 16px; border-radius: 6px; border: 0; text-decoration: none; cursor: pointer; font-size: 0.95em; }
.ech-boton:hover { background: #274472; color: #fff; }
.ech-boton-sec { background: #fff; color: #1d3557; border: 1px solid #1d3557; white-space: nowrap; }
.ech-boton-sec:hover { background: #eef2f8; color: #1d3557; }
.ech-boton-grande { width: 100%; padding: 12px; font-size: 1.05em; }
.ech-lista { display: flex; flex-direction: column; gap: 10px; }
.ech-tarjeta { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e3e6ea; border-radius: 12px; padding: 14px 16px; }
.ech-tarjeta-img { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: #e8eef7; display: flex; align-items: center; justify-content: center; }
.ech-thumb { width: 100%; height: 100%; object-fit: cover; }
.ech-inicial { font-weight: 700; font-size: 1.4em; color: #1d3557; }
.ech-tarjeta-cuerpo { flex: 1; min-width: 0; }
.ech-tarjeta h2 { font-size: 1.05em; margin: 0 0 2px; }
.ech-tarjeta h2 a { text-decoration: none; }
.ech-meta { margin: 0 0 6px; color: #555; font-size: 0.9em; }
.ech-etiquetas { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.ech-tag { background: #f1f3f5; color: #444; font-size: 0.78em; padding: 2px 10px; border-radius: 20px; }
.ech-tag-cat { background: #e8eef7; color: #1d3557; }
.ech-fecha { margin: 0; font-size: 0.78em; color: #888; }
@media (max-width: 600px) { .ech-tarjeta { flex-wrap: wrap; } .ech-tarjeta .ech-boton { width: 100%; text-align: center; } }

/* ---------- Detalle ---------- */
.ech-detalle { background: #fff; border: 1px solid #e3e6ea; border-radius: 12px; padding: 20px; }
.ech-detalle h1 { font-size: 1.6em; margin: 0 0 4px; }
.ech-detalle h2 { font-size: 1.1em; margin: 18px 0 6px; }
.ech-contacto { margin: 14px 0 18px; }
.ech-contacto #ech-contacto-datos { border: 1px solid #b7dfba; background: #e8f5e9; border-radius: 8px; padding: 12px 16px; }
.ech-contacto #ech-contacto-datos .ech-boton { margin: 4px 6px 4px 0; }
.ech-imagen img { max-width: 100%; height: auto; border-radius: 8px; }
.ech-requisitos { margin-left: 20px; }
.ech-compartir { margin-top: 18px; font-size: 0.9em; }
.ech-aviso { background: #fff7e0; border: 1px solid #f0d98a; padding: 12px 16px; border-radius: 8px; margin-bottom: 14px; }
.ech-similares { margin-top: 24px; }
.ech-vacio { padding: 20px 0; }

/* ---------- Anuncios ---------- */
.ech-ad { margin: 16px 0; text-align: center; min-height: 20px; }
.ech-ad-demo { border: 1px dashed #aaa; color: #888; padding: 14px; font-size: 0.8em; border-radius: 8px; }

/* ---------- Página de inicio ---------- */
.ech-hero { background: #eef3fa; border-radius: 12px; padding: 32px 24px; margin-bottom: 18px; text-align: center; }
.ech-hero h1 { margin: 0 0 6px; font-size: 2em; color: #1d3557; }
.ech-hero-sub { margin: 0 0 18px; color: #4a5568; }
.ech-hero-form { display: flex; flex-wrap: wrap; gap: 8px; max-width: 860px; margin: 0 auto; }
.ech-hero-form input[type="search"] { flex: 2 1 220px; }
.ech-hero-form select { flex: 1 1 160px; }
.ech-hero-form .ech-boton { flex: 0 0 auto; }
.ech-hero-cifra { margin: 14px 0 0; color: #4a5568; font-size: 0.95em; }
.ech-seccion { margin: 26px 0; }
.ech-seccion h2 { font-size: 1.3em; margin: 0 0 10px; }
.ech-seccion-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ech-subtitulo { font-size: 1em; margin: 14px 0 6px; color: #555; }
.ech-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ech-chips a { display: inline-block; background: #fff; border: 1px solid #d5dbe3; color: #1d3557; padding: 6px 14px; border-radius: 20px; text-decoration: none; font-size: 0.92em; }
.ech-chips a:hover { background: #e8eef7; border-color: #1d3557; }
.ech-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: #1d3557; color: #fff; border-radius: 12px; padding: 24px; margin: 28px 0; }
.ech-cta h2 { color: #fff; margin: 0 0 4px; font-size: 1.3em; }
.ech-cta p { margin: 0; max-width: 560px; }
.ech-cta .ech-boton-grande-cta { background: #fff; color: #1d3557; padding: 12px 24px; font-weight: 600; }
.ech-cta .ech-boton-grande-cta:hover { background: #e8eef7; color: #1d3557; }
.ech-comunidad .ech-boton { margin-right: 8px; }
@media (max-width: 600px) { .ech-hero { padding: 24px 16px; } .ech-hero h1 { font-size: 1.6em; } .ech-hero-form .ech-boton { width: 100%; } }

/* ==========================================================
   APARIENCIA GENERAL (v0.2)
   ========================================================== */
:root {
    --ech-azul: #1d3557;
    --ech-azul-claro: #274472;
    --ech-acento: #e76f2a;
    --ech-fondo: #f4f6f9;
    --ech-borde: #e3e6ea;
    --ech-texto: #1f2933;
}

body { background: var(--ech-fondo); color: var(--ech-texto); }
body, button, input, select, textarea { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--ech-azul); }
a:hover { color: var(--ech-acento); }

/* Cabecera y menú */
.site-header { background: #fff; border-bottom: 1px solid var(--ech-borde); box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.main-title a, .main-title a:hover { color: var(--ech-azul); font-weight: 800; letter-spacing: -.3px; }
.site-description { color: #6b7785; }
.main-navigation, .main-navigation ul ul { background: #fff; }
.main-navigation .main-nav ul li a { color: var(--ech-texto); font-weight: 500; }
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a { color: var(--ech-azul); background: transparent; }

/* "Publicar oferta" como botón destacado (solo en escritorio) */
@media (min-width: 769px) {
    .main-navigation .main-nav ul li a[href*="publicar-oferta"] {
        background: var(--ech-acento);
        color: #fff;
        line-height: 38px;
        padding: 0 18px;
        margin: 11px 6px;
        border-radius: 8px;
        font-weight: 600;
    }
    .main-navigation .main-nav ul li a[href*="publicar-oferta"]:hover,
    .main-navigation .main-nav ul li.current-menu-item > a[href*="publicar-oferta"] {
        background: #cf5f1f;
        color: #fff;
    }
}

/* Contenido */
.site-content { padding-top: 8px; }
.ech-tarjeta { transition: box-shadow .15s ease, transform .15s ease; }
.ech-tarjeta:hover { box-shadow: 0 4px 14px rgba(29,53,87,.10); transform: translateY(-1px); }
.ech-hero { background: linear-gradient(135deg, #eaf1fb 0%, #f7fafd 100%); border: 1px solid var(--ech-borde); }
.ech-hero-form input[type="search"], .ech-hero-form select,
.ech-filtros select, .ech-filtros input[type="search"], .ech-filtros input[type="text"] {
    border: 1px solid #cfd6df; border-radius: 8px; padding: 10px 12px; background: #fff;
}
.ech-boton { background: var(--ech-azul); border-radius: 8px; font-weight: 600; }
.ech-boton:hover { background: var(--ech-azul-claro); }
.ech-cta { background: linear-gradient(135deg, #1d3557 0%, #274472 100%); }

/* Pie de página */
.site-footer { background: #fff; border-top: 1px solid var(--ech-borde); }
.site-info { color: #6b7785; font-size: .85em; }

/* ---------- Pie de página y páginas de texto ---------- */
.ech-pie { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 8px; }
.ech-pie a { color: var(--ech-azul); text-decoration: none; font-size: .9rem; }
.ech-pie a:hover { color: var(--ech-acento); text-decoration: underline; }
.ech-pie-nota { margin: 0; text-align: center; color: #6b7785; font-size: .8rem; max-width: 760px; margin-inline: auto; }
.site-info .inside-site-info { justify-content: center; }
.page .entry-content h2 { font-size: 1.25em; margin-top: 1.6em; }
.page .entry-content ul { margin-bottom: 1em; }
.ech-form textarea { border: 1px solid #cfd6df; border-radius: 8px; padding: 10px 12px; }
.ech-form select { border: 1px solid #cfd6df; border-radius: 8px; padding: 10px 12px; }

/* Listas con viñetas en descripciones y botón de reporte */
.ech-texto ul.ech-lista-vinetas { margin: 0 0 1.2em 1.4em; padding: 0; list-style: disc; }
.ech-texto ul.ech-lista-vinetas li { margin-bottom: 6px; }
.ech-texto p { margin-bottom: 1em; }
.ech-reportar { margin-top: 10px; font-size: 0.85em; }
.ech-reportar a { color: #6b7785; text-decoration: none; border-bottom: 1px dotted currentColor; }
.ech-reportar a:hover { color: #b3261e; }

/* Corrección: el botón secundario ("Ver oferta") quedaba azul sobre azul */
.ech-boton.ech-boton-sec { background: #fff; color: var(--ech-azul); border: 1px solid var(--ech-azul); }
.ech-boton.ech-boton-sec:hover { background: #eef2f8; color: var(--ech-azul); }
.ech-cta .ech-boton.ech-boton-grande-cta { background: #fff; color: var(--ech-azul); }
.ech-cta .ech-boton.ech-boton-grande-cta:hover { background: #e8eef7; color: var(--ech-azul); }

/* Páginas migradas de Blogger: tablas y listas */
.ech-tabla-scroll { overflow-x: auto; margin: 0 0 1.5em; }
.ech-tabla-scroll table { border-collapse: collapse; width: 100%; font-size: 0.9em; }
.ech-tabla-scroll th, .ech-tabla-scroll td { border: 1px solid #e3e6ea; padding: 8px 10px; text-align: left; vertical-align: top; }
.ech-tabla-scroll th { background: #eef2f8; color: var(--ech-azul); }
.ech-tabla-scroll tr:nth-child(even) td { background: #fafbfc; }

/* Etiqueta "Convocatoria" */
.ech-tag-conv { background: #fff3e6; color: #b4530d; font-weight: 600; border: 1px solid #f3cfa8; }
