/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; line-height: 1.6; color: #333; background: #f8f9fa; }
a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ─── Header ───────────────────────────────────────────────────────────── */
.site-header { background: #fff; border-bottom: 1px solid #e0e0e0; padding: 15px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-title { font-size: 1.5rem; }
.site-title a { color: #222; }

.nav-menu { display: flex; gap: 20px; }
.nav-menu li a { color: #555; padding: 5px 10px; border-radius: 4px; }
.nav-menu li a:hover { background: #f0f0f0; }

/* ─── Hero ─────────────────────────────────────────────────────────────── */
.qa-hero { background: linear-gradient(135deg, #1a73e8, #0d47a1); color: #fff; text-align: center; padding: 80px 20px; }
.qa-hero h1 { font-size: 2.2rem; margin-bottom: 15px; }
.qa-hero p { font-size: 1.1rem; margin-bottom: 30px; opacity: .9; }
.qa-hero-search { display: flex; max-width: 500px; margin: 0 auto; gap: 10px; }
.qa-hero-search input { flex: 1; padding: 12px 16px; border: none; border-radius: 6px; font-size: 1rem; }
.qa-hero-search button { padding: 12px 24px; border: none; border-radius: 6px; background: #ffb300; color: #222; font-weight: 600; cursor: pointer; font-size: 1rem; }

/* ─── Page Title ───────────────────────────────────────────────────────── */
.page-title { font-size: 1.8rem; margin: 30px 0; color: #222; }

/* ─── Filters ──────────────────────────────────────────────────────────── */
.qa-filters { margin-bottom: 30px; }
.qa-filters form { display: flex; gap: 10px; flex-wrap: wrap; }
.qa-filters select, .qa-filters input[type="text"] { padding: 10px 14px; border: 1px solid #ccc; border-radius: 6px; font-size: .95rem; }
.qa-filters input[type="text"] { flex: 1; min-width: 200px; }
.qa-filters button { padding: 10px 20px; background: #1a73e8; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: .95rem; }

/* ─── Cards Grid ───────────────────────────────────────────────────────── */
.qa-obreros-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin: 30px 0; }
.qa-obrero-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; }
.qa-obrero-card:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.qa-obrero-card-img { height: 200px; overflow: hidden; }
.qa-obrero-card-img img { width: 100%; height: 100%; object-fit: cover; }
.qa-obrero-card-body { padding: 16px; }
.qa-obrero-card-body h2, .qa-obrero-card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.qa-obrero-card-body h2 a, .qa-obrero-card-body h3 a { color: #222; }
.qa-profesion { color: #1a73e8; font-size: .9rem; margin-bottom: 5px; }
.qa-ubicacion { color: #777; font-size: .9rem; margin-bottom: 5px; }
.qa-rating { color: #f59e0b; margin-bottom: 10px; }
.qa-rating small { color: #999; }

/* ─── Single Obrero ────────────────────────────────────────────────────── */
.qa-single-obrero { padding: 30px 0; }
.qa-obrero-header { display: flex; gap: 30px; align-items: center; margin-bottom: 30px; flex-wrap: wrap; }
.qa-obrero-foto { width: 200px; height: 200px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.qa-obrero-foto img { width: 100%; height: 100%; object-fit: cover; }
.qa-obrero-info h1 { font-size: 2rem; margin-bottom: 10px; }

.qa-obrero-content { display: grid; grid-template-columns: 1fr 340px; gap: 40px; }
.qa-obrero-main h2 { font-size: 1.4rem; margin: 25px 0 12px; color: #222; }
.qa-descripcion { color: #555; line-height: 1.7; }

.qa-contacto-info ul li { padding: 6px 0; border-bottom: 1px solid #eee; color: #555; }
.qa-contacto-info ul li strong { color: #333; }

/* ─── Reviews ──────────────────────────────────────────────────────────── */
.qa-review-item { background: #f8f9fa; border-radius: 8px; padding: 16px; margin-bottom: 12px; }
.qa-review-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.qa-review-date { color: #999; font-size: .85rem; }
.qa-review-text { color: #555; }
.qa-review-rating { color: #f59e0b; margin-bottom: 6px; }

/* ─── Sidebar ──────────────────────────────────────────────────────────── */
.qa-sidebar-box { background: #fff; border-radius: 10px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.08); margin-bottom: 20px; }
.qa-sidebar-box h3 { font-size: 1.1rem; margin-bottom: 16px; color: #222; }

/* ─── Forms ────────────────────────────────────────────────────────────── */
.qa-form p { margin-bottom: 14px; }
.qa-form label { display: block; font-weight: 600; margin-bottom: 4px; color: #444; font-size: .9rem; }
.qa-form input:not([type="submit"]), .qa-form select, .qa-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: .95rem; }
.qa-form textarea { resize: vertical; }
.qa-form input:focus, .qa-form select:focus, .qa-form textarea:focus { outline: none; border-color: #1a73e8; box-shadow: 0 0 0 2px rgba(26,115,232,.15); }

.qa-form-msg { margin-top: 10px; padding: 10px; border-radius: 6px; font-size: .9rem; display: none; }
.qa-form-msg.success { display: block; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.qa-form-msg.error { display: block; background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.qa-btn { display: inline-block; padding: 10px 20px; background: #1a73e8; color: #fff; border-radius: 6px; border: none; cursor: pointer; font-size: .95rem; text-decoration: none; }
.qa-btn:hover { background: #1557b0; text-decoration: none; color: #fff; }
.qa-btn-primary { background: #ffb300; color: #222; }
.qa-btn-primary:hover { background: #e6a000; }

/* ─── Profesiones Grid ─────────────────────────────────────────────────── */
.qa-profesiones-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 20px 0 40px; }
.qa-profesion-card { background: #fff; border-radius: 10px; padding: 24px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: transform .2s; }
.qa-profesion-card:hover { transform: translateY(-2px); text-decoration: none; }
.qa-profesion-card h3 { color: #222; margin-bottom: 6px; font-size: 1.05rem; }
.qa-count { color: #999; font-size: .9rem; }

/* ─── Sections ─────────────────────────────────────────────────────────── */
.qa-profesiones-section h2, .qa-destacados-section h2 { font-size: 1.5rem; margin: 40px 0 20px; color: #222; }
.qa-ver-todos { text-align: center; margin: 30px 0; }

/* ─── 404 ──────────────────────────────────────────────────────────────── */
.qa-404 { text-align: center; padding: 80px 20px; }
.qa-404 h1 { font-size: 2.5rem; margin-bottom: 15px; }
.qa-404 p { margin-bottom: 25px; color: #666; }

/* ─── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: #222; color: #ccc; text-align: center; padding: 30px 0; margin-top: 60px; }

/* ─── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .qa-obrero-content { grid-template-columns: 1fr; }
    .qa-obrero-header { flex-direction: column; text-align: center; }
    .qa-hero h1 { font-size: 1.6rem; }
    .qa-hero-search { flex-direction: column; }
}
