/**
 * Directorio Empresarial v9.0.0
 * Estilo consistente con editorial-v8 (navy #0f1b3d + azul #2196F3)
 */

/* ============ Archivo/Búsqueda ============ */
.eq-directorio-wrap { max-width:1200px; margin:0 auto; padding:24px 1rem 48px; }
.eq-directorio-head { display:flex; flex-wrap:wrap; gap:16px; align-items:end; justify-content:space-between; border-bottom:2px solid #0f1b3d; padding-bottom:14px; margin-bottom:24px; }
.eq-directorio-head h1 { font-family:'Merriweather', Georgia, serif; font-size:2rem; color:#0f1b3d; margin:0; letter-spacing:.3px; }
.eq-directorio-head p { margin:4px 0 0; color:#556; font-size:.95rem; }

.eq-directorio-filters { display:grid; grid-template-columns:2fr 1fr auto; gap:8px; margin-bottom:24px; background:#f5f7fb; padding:14px; border-radius:10px; }
.eq-directorio-filters input, .eq-directorio-filters select { padding:10px 12px; border:1px solid #d5dae4; border-radius:6px; font-size:.95rem; background:#fff; }
.eq-directorio-filters button { background:#2196F3; color:#fff; border:0; padding:10px 22px; font-weight:700; border-radius:6px; cursor:pointer; letter-spacing:.5px; }
.eq-directorio-filters button:hover { background:#1976d2; }
@media (max-width:720px) { .eq-directorio-filters { grid-template-columns:1fr; } }

/* ============ Grid de empresas ============ */
.eq-empresas-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px; }
.eq-empresa-card { background:#fff; border:1px solid #e5e9f0; border-radius:10px; overflow:hidden; display:flex; flex-direction:column; transition:transform .18s, box-shadow .18s; }
.eq-empresa-card:hover { transform:translateY(-3px); box-shadow:0 8px 24px rgba(15,27,61,.12); }
.eq-empresa-card__logo { height:120px; background:#f7f9fc; display:flex; align-items:center; justify-content:center; padding:14px; border-bottom:1px solid #eef1f6; }
.eq-empresa-card__logo img { max-height:100%; max-width:100%; object-fit:contain; }
.eq-empresa-card__logo--placeholder { color:#2196F3; font-family:'Merriweather', serif; font-size:1.6rem; font-weight:700; }
.eq-empresa-card__body { padding:14px 16px; flex:1; display:flex; flex-direction:column; }
.eq-empresa-card__title { font-family:'Merriweather', serif; font-size:1.05rem; color:#0f1b3d; margin:0 0 6px; }
.eq-empresa-card__title a { color:inherit; text-decoration:none; }
.eq-empresa-card__title a:hover { color:#2196F3; }
.eq-empresa-card__sector { display:inline-block; font-size:.72rem; text-transform:uppercase; letter-spacing:.7px; color:#2196F3; font-weight:700; margin-bottom:8px; }
.eq-empresa-card__desc { font-size:.88rem; color:#556; line-height:1.45; margin:0 0 12px; flex:1; }
.eq-empresa-card__meta { font-size:.8rem; color:#788; display:flex; flex-wrap:wrap; gap:10px; border-top:1px dashed #e5e9f0; padding-top:10px; }
.eq-empresa-card__meta span::before { content:"•"; margin-right:6px; color:#2196F3; }
.eq-empresa-card__meta span:first-child::before { content:""; margin:0; }
.eq-empresa-card__destacada { position:absolute; top:8px; right:8px; background:#e94560; color:#fff; font-size:.65rem; padding:3px 8px; border-radius:12px; letter-spacing:.5px; text-transform:uppercase; }
.eq-empresa-card { position:relative; }

.eq-no-results { text-align:center; padding:60px 20px; color:#556; }
.eq-no-results h3 { color:#0f1b3d; font-family:'Merriweather', serif; }

/* ============ Single empresa ============ */
.eq-empresa-single { max-width:1100px; margin:0 auto; padding:24px 1rem 48px; }
.eq-empresa-hero { background:linear-gradient(135deg,#0f1b3d 0%, #1e3a8a 100%); color:#fff; padding:36px 28px; border-radius:12px; display:flex; gap:28px; align-items:center; flex-wrap:wrap; }
.eq-empresa-hero__logo { width:140px; height:140px; background:#fff; border-radius:12px; display:flex; align-items:center; justify-content:center; padding:14px; flex-shrink:0; }
.eq-empresa-hero__logo img { max-width:100%; max-height:100%; object-fit:contain; }
.eq-empresa-hero__info { flex:1; min-width:240px; }
.eq-empresa-hero__info h1 { font-family:'Merriweather', serif; margin:0 0 6px; font-size:2rem; }
.eq-empresa-hero__sectors { font-size:.85rem; color:#7fd0ff; letter-spacing:.5px; }
.eq-empresa-hero__desc { margin-top:12px; font-size:1.02rem; line-height:1.55; opacity:.95; }
.eq-empresa-hero__cta { display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }
.eq-empresa-hero__cta a { background:#2196F3; color:#fff; padding:10px 18px; border-radius:6px; text-decoration:none; font-weight:600; font-size:.9rem; }
.eq-empresa-hero__cta a.secondary { background:transparent; border:1px solid #7fd0ff; color:#7fd0ff; }

.eq-empresa-body { display:grid; grid-template-columns:2fr 1fr; gap:28px; margin-top:28px; }
@media (max-width:820px) { .eq-empresa-body { grid-template-columns:1fr; } }
.eq-empresa-content { background:#fff; padding:24px; border-radius:10px; border:1px solid #e5e9f0; line-height:1.7; color:#333; }
.eq-empresa-content h2 { font-family:'Merriweather', serif; color:#0f1b3d; }
.eq-empresa-aside { background:#f5f7fb; padding:20px; border-radius:10px; border:1px solid #e5e9f0; height:fit-content; }
.eq-empresa-aside h3 { margin:0 0 12px; font-family:'Merriweather', serif; color:#0f1b3d; font-size:1.1rem; border-bottom:2px solid #2196F3; padding-bottom:6px; }
.eq-empresa-aside dl { margin:0; }
.eq-empresa-aside dt { font-size:.75rem; text-transform:uppercase; letter-spacing:.6px; color:#788; margin-top:12px; }
.eq-empresa-aside dd { margin:2px 0 0; color:#0f1b3d; font-weight:600; word-break:break-word; }
.eq-empresa-aside dd a { color:#2196F3; text-decoration:none; }

/* Dark mode */
body.dark-mode .eq-directorio-head h1,
body.dark-mode .eq-empresa-card__title,
body.dark-mode .eq-no-results h3,
body.dark-mode .eq-empresa-content h2,
body.dark-mode .eq-empresa-aside h3 { color:#e6ecfb; }
body.dark-mode .eq-directorio-filters { background:#1a2332; }
body.dark-mode .eq-directorio-filters input,
body.dark-mode .eq-directorio-filters select { background:#0f1b3d; color:#e6ecfb; border-color:#2a3550; }
body.dark-mode .eq-empresa-card { background:#1a2332; border-color:#2a3550; }
body.dark-mode .eq-empresa-card__logo { background:#0f1b3d; border-color:#2a3550; }
body.dark-mode .eq-empresa-card__desc { color:#a8b3cc; }
body.dark-mode .eq-empresa-content,
body.dark-mode .eq-empresa-aside { background:#1a2332; color:#e6ecfb; border-color:#2a3550; }
body.dark-mode .eq-empresa-aside dd { color:#e6ecfb; }
