*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --azul:       #2563eb;
    --azul-dark:  #1d4ed8;
    --azul-light: #eff6ff;
    --navy:       #0f172a;
    --gris-texto: #475569;
    --gris-borde: #e2e8f0;
    --gris-fondo: #f8fafc;
    --blanco:     #ffffff;
    --sombra-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --sombra-md:  0 4px 16px rgba(0,0,0,.08);
    --sombra-hover: 0 8px 24px rgba(37,99,235,.15);
    --radio:      10px;
    --radio-lg:   16px;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    color: var(--navy);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ── HEADER ────────────────────────────── */
.site-header {
    background: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f1f5f9;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 2rem;
}
.logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a0a0a;
    letter-spacing: -0.3px;
    white-space: nowrap;
}
.logo span { color: var(--azul); }
.site-header nav { display: flex; gap: 0.25rem; align-items: center; }
.site-header nav a {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.site-header nav a:hover { color: #0a0a0a; background: #f9fafb; text-decoration: none; }
.btn-registro {
    background: #0a0a0a !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 0.4rem 1rem !important;
    font-size: 0.875rem !important;
}
.btn-registro:hover { background: #1e293b !important; }

/* ── MAIN ───────────────────────────────── */
main.container { padding-top: 0; padding-bottom: 4rem; }
.home-main { padding-top: 0 !important; }

/* ── HERO ───────────────────────────────── */
.hero {
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 3.5rem;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f0f7ff;
    color: var(--azul);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 1.75rem;
    letter-spacing: 0.3px;
    border: 1px solid #dbeafe;
}
.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #0a0a0a;
}
.hero h1 span { color: var(--azul); }
.hero p {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ── BUSCADOR ───────────────────────────── */
.buscador {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.4rem;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.buscador input,
.buscador select {
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: transparent;
    color: var(--navy);
    flex: 1;
    outline: none;
    min-width: 0;
}
.buscador select {
    border-left: 1.5px solid #f3f4f6;
    border-radius: 0;
    color: #6b7280;
    cursor: pointer;
}
.buscador button {
    padding: 0.65rem 1.5rem;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
    flex-shrink: 0;
}
.buscador button:hover { background: #1e293b; }
.buscador button:active { transform: scale(0.98); }

/* ── STATS ──────────────────────────────── */
.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: #0a0a0a; letter-spacing: -0.5px; }
.stat span { font-size: 0.78rem; color: #9ca3af; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── SECCIONES ──────────────────────────── */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.section-header h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.2px; color: #0a0a0a; }
.section-header a { font-size: 0.875rem; color: #6b7280; }
section { margin-bottom: 3.5rem; }

/* ── PAÍSES ─────────────────────────────── */
.grid-paises {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.5rem;
}
.card-pais {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.75rem;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 500;
    color: #374151;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.card-pais:hover {
    border-color: #dbeafe;
    background: #f0f7ff;
    color: var(--azul);
    text-decoration: none;
}
.card-pais .bandera { font-size: 2rem; margin-bottom: 0.4rem; line-height: 1; }

/* ── PÁGINA DE PAÍS ─────────────────────── */
.pais-page-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 2.5rem;
}
.pais-page-bandera { font-size: 3rem; line-height: 1; flex-shrink: 0; }
.pais-page-header h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px; color: #0a0a0a; margin-bottom: 0.25rem; }
.pais-page-header p  { font-size: 0.95rem; color: #64748b; margin: 0; }

/* ── CATEGORÍAS DESTACADAS ──────────────── */
.grid-destacadas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.card-destacada {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s, border-color .15s, transform .15s;
}
.card-destacada:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    text-decoration: none;
}
.card-destacada-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.card-destacada-icon svg { width: 22px; height: 22px; }
.card-destacada-body strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}
.card-destacada-body p {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
}

/* ── CATEGORÍAS ─────────────────────────── */
.grid-categorias { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.card-categoria {
    padding: 0.45rem 1rem;
    background: #f9fafb;
    border: 1px solid #f1f5f9;
    color: #374151;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.card-categoria:hover {
    background: #f0f7ff;
    color: var(--azul);
    border-color: #dbeafe;
    text-decoration: none;
}

/* ── CARDS EMPRESA ──────────────────────── */
.grid-empresas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.card-empresa {
    background: var(--blanco);
    border: 1px solid var(--gris-borde);
    border-radius: var(--radio-lg);
    padding: 1.5rem;
    box-shadow: var(--sombra-sm);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.card-empresa:hover { box-shadow: var(--sombra-md); transform: translateY(-2px); }
.card-empresa-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.card-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.card-empresa h2 { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.card-empresa h2 a { color: var(--navy); }
.card-empresa h2 a:hover { color: var(--azul); text-decoration: none; }
.card-empresa .badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    background: var(--azul-light);
    color: var(--azul);
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.card-empresa .meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--gris-texto);
}
.card-empresa .meta::before { content: '📍'; font-size: 0.75rem; }
.card-empresa .resumen {
    font-size: 0.875rem;
    color: var(--gris-texto);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-empresa .ver-mas {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--azul);
    margin-top: 0.25rem;
    align-self: flex-start;
}
.card-empresa .ver-mas:hover { text-decoration: underline; }

/* ── RESULTADOS ─────────────────────────── */
.resultados-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gris-borde);
}
.resultados-header h1 { font-size: 1.4rem; font-weight: 700; }
.resultados-header .total { font-size: 0.9rem; color: var(--gris-texto); }
.descripcion-categoria { margin: 0.75rem 0 0; color: var(--gris-texto); line-height: 1.6; }

.cat-paises-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0 2rem;
    padding: 1rem 1.25rem;
    background: var(--gris-fondo);
    border: 1px solid var(--gris-borde);
    border-radius: 12px;
    flex-wrap: wrap;
}
.cat-paises-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
}
.cat-paises-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex: 1;
}
.cat-pais-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: #fff;
    border: 1px solid var(--gris-borde);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #374151;
    transition: border-color .15s, color .15s, box-shadow .15s;
    text-decoration: none;
}
.cat-pais-btn:hover {
    border-color: #bfdbfe;
    color: var(--azul);
    box-shadow: 0 2px 8px rgba(37,99,235,.1);
    text-decoration: none;
}
.cat-pais-flag { font-size: 1rem; line-height: 1; }
.sin-resultados {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gris-texto);
}
.sin-resultados p { font-size: 1.1rem; margin-bottom: 1rem; }

/* ══ COMPANY PROFILE (estilo Clutch) ════════════════ */

/* Hero */
.cp-hero {
    background: var(--navy);
    border-radius: var(--radio-lg);
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}
.cp-hero-inner { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.cp-logo-wrap {
    width: 90px; height: 90px; flex-shrink: 0;
    background: #fff; border-radius: var(--radio);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.cp-logo-img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cp-logo-fallback { font-size: 2.5rem; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #1e293b; }
.cp-hero-body { flex: 1; min-width: 0; }
.cp-nombre { font-size: 1.7rem; font-weight: 700; letter-spacing: -.3px; margin-bottom: 0.5rem; color: #fff; }
.cp-rating-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.cp-rating-num { font-size: 1.1rem; font-weight: 700; color: #fbbf24; }
.cp-rating-count { font-size: 0.85rem; color: #94a3b8; }
.cp-stats-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.cp-stat { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: #cbd5e1; }
.cp-stat-icon { font-size: 0.9rem; }
.cp-btn-sitio {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--azul); color: #fff;
    padding: 0.65rem 1.4rem; border-radius: 8px;
    font-size: 0.9rem; font-weight: 600;
    transition: background .15s;
    white-space: nowrap;
}
.cp-btn-sitio:hover { background: var(--azul-dark); text-decoration: none; color: #fff; }

/* Estrellas */
.cp-stars .star        { color: #e2e8f0; font-size: 1.1rem; }
.cp-stars .star.full   { color: #f59e0b; }
.cp-stars .star.half   { color: #f59e0b; opacity: .6; }
.cp-stars-lg .star     { font-size: 1.35rem; }
.cp-stars-sm .star     { font-size: 0.9rem; }

/* Layout */
.cp-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1.25rem; align-items: start; }

/* Sidebar */
.cp-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.cp-card {
    background: var(--blanco);
    border: 1px solid var(--gris-borde);
    border-radius: var(--radio-lg);
    padding: 1.5rem;
    box-shadow: var(--sombra-sm);
}
.cp-card-titulo { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gris-texto); margin-bottom: 1rem; }
.cp-card-mapa { padding: 0; overflow: hidden; }

.cp-contact-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.cp-contact-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.875rem; }
.cp-contact-icon { flex-shrink: 0; width: 20px; text-align: center; }
.cp-contact-list a { color: var(--azul); word-break: break-all; }
.cp-contact-list a:hover { text-decoration: underline; }

.cp-redes { display: flex; flex-direction: column; gap: 0.5rem; }
.cp-red-link {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.5rem 0.75rem; border-radius: 8px;
    font-size: 0.875rem; font-weight: 500; color: var(--navy);
    background: var(--gris-fondo); border: 1px solid var(--gris-borde);
    transition: background .15s;
}
.cp-red-link:hover { background: var(--azul-light); color: var(--azul); text-decoration: none; }

/* Main */
.cp-main { display: flex; flex-direction: column; gap: 1.25rem; }
.cp-descripcion { line-height: 1.8; color: #334155; font-size: 0.95rem; }

/* Servicios */
.cp-servicios {
    list-style: none; display: flex; flex-direction: column; gap: 0;
}
.cp-servicios li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--gris-borde);
    font-size: 0.9rem; color: var(--navy);
    display: flex; align-items: center; gap: 0.6rem;
}
.cp-servicios li::before { content: '✓'; color: var(--azul); font-weight: 700; flex-shrink: 0; }
.cp-servicios li:last-child { border-bottom: none; }

/* Reviews */
.cp-reviews-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.cp-reviews-summary { display: flex; align-items: center; gap: 1rem; }
.cp-reviews-big-num { font-size: 3rem; font-weight: 800; color: var(--navy); line-height: 1; }
.cp-reviews-subtitle { font-size: 0.8rem; color: var(--gris-texto); margin-top: 0.2rem; }
.cp-reviews-list { display: flex; flex-direction: column; gap: 1.25rem; }
.cp-review {
    padding: 1.25rem;
    border: 1px solid var(--gris-borde);
    border-radius: var(--radio);
    background: var(--gris-fondo);
}
.cp-review-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.cp-review-avatar {
    width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.cp-review-avatar.cp-review-avatar-letra {
    background: var(--azul); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
}
.cp-review-meta { flex: 1; min-width: 0; }
.cp-review-autor { font-size: 0.9rem; font-weight: 700; display: block; }
.cp-review-tiempo { font-size: 0.78rem; color: var(--gris-texto); white-space: nowrap; margin-left: auto; }
.cp-review-texto { font-size: 0.9rem; color: #334155; line-height: 1.7; }

/* Similares */
.cp-similares-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.cp-similares-list li { display: flex; align-items: center; justify-content: space-between; padding: 0.65rem 0; border-bottom: 1px solid var(--gris-borde); }
.cp-similares-list li:last-child { border-bottom: none; }
.cp-similares-list a { font-size: 0.9rem; font-weight: 500; color: var(--azul); }
.cp-similares-list a:hover { text-decoration: underline; }
.cp-similares-pais { font-size: 0.78rem; color: var(--gris-texto); text-transform: uppercase; }

@media (max-width: 900px) {
    .cp-layout { grid-template-columns: 1fr; }
    .cp-hero-inner { flex-direction: column; align-items: flex-start; }
    .cp-btn-sitio { width: 100%; justify-content: center; }
}

/* ── SIMILARES LATAM (ancho completo, fuera del layout) ─── */
.similares-latam-section { margin-top: 2.5rem; }

/* ── SIMILARES INLINE (dentro de ficha) ─── */
.cp-similares-inline {
    background: var(--blanco);
    border: 1px solid var(--gris-borde);
    border-radius: var(--radio-lg);
    padding: 1.5rem;
    box-shadow: var(--sombra-sm);
}

/* ── EMPRESAS SIMILARES ─────────────────── */
.similares {
    background: var(--blanco);
    border: 1px solid var(--gris-borde);
    border-radius: var(--radio-lg);
    padding: 1.5rem;
    box-shadow: var(--sombra-sm);
}
.similares h2 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.similares ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.similares li a {
    display: block;
    padding: 0.6rem 0.9rem;
    background: var(--gris-fondo);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--navy);
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.similares li a:hover { background: var(--azul-light); color: var(--azul); text-decoration: none; }

/* ── BREADCRUMB ─────────────────────────── */
.breadcrumb {
    font-size: 0.82rem;
    color: var(--gris-texto);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.breadcrumb a { color: var(--gris-texto); }
.breadcrumb a:hover { color: var(--azul); text-decoration: none; }
.breadcrumb span { color: var(--navy); font-weight: 500; }
.breadcrumb .sep { color: #cbd5e1; }

/* ── PAGINACIÓN ─────────────────────────── */
.paginacion {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    justify-content: center;
}
.paginacion a {
    padding: 0.55rem 1.1rem;
    background: var(--blanco);
    color: var(--azul);
    border: 1.5px solid var(--azul);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}
.paginacion a:hover { background: var(--azul); color: #fff; text-decoration: none; }
.paginacion span { font-size: 0.875rem; color: var(--gris-texto); }

/* ── 404 ────────────────────────────────── */
.error-404 { text-align: center; padding: 5rem 2rem; }
.error-404 h1 { font-size: 5rem; font-weight: 800; color: var(--gris-borde); margin-bottom: 0.5rem; }
.error-404 p { color: var(--gris-texto); margin-bottom: 1.5rem; }
.error-404 a { padding: 0.7rem 1.5rem; background: var(--azul); color: #fff; border-radius: var(--radio); font-weight: 600; }
.error-404 a:hover { background: var(--azul-dark); text-decoration: none; }

/* ── FOOTER ─────────────────────────────── */
.site-footer {
    background: var(--navy);
    color: #64748b;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
    font-size: 0.875rem;
}
.footer-inner { display: flex; flex-direction: column; gap: 2rem; align-items: stretch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; width: 100%; }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; text-align: center; }
.footer-col-titulo { color: #fff; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.4rem; }
.footer-col a { color: #94a3b8 !important; font-size: 0.875rem; }
.footer-col a:hover { color: #fff !important; text-decoration: none; }
.footer-paises { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; border-top: 1px solid #1e293b; padding-top: 1.5rem; }
.footer-paises a { color: #64748b !important; font-size: 0.8rem; white-space: nowrap; }
.footer-paises a:hover { color: #fff !important; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #1e293b; padding-top: 1.25rem; }
.footer-logo { color: #fff; font-weight: 700; font-size: 1rem; }
.footer-logo span { color: var(--azul); }

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
    .hero { padding: 2.5rem 1.5rem; }
    .hero h1 { font-size: 1.7rem; }
    .stats { gap: 1.5rem; }
    .grid-destacadas { grid-template-columns: repeat(2, 1fr); }
    .grid-empresas { grid-template-columns: repeat(2, 1fr); }
    .ficha-empresa { padding: 1.5rem; }
    .ficha-empresa-top { flex-direction: column; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
@media (max-width: 480px) {
    .grid-empresas { grid-template-columns: 1fr; }
    .buscador input, .buscador select { min-width: 100%; flex: none; width: 100%; }
    .site-header nav .btn-registro { display: none; }
    .stats { flex-wrap: wrap; gap: 1rem; }
}

/* Grid últimas empresas - home */
.card-empresa {
    display: flex; flex-direction: column; gap: 0.65rem;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 1.1rem; text-decoration: none; color: inherit;
    transition: box-shadow .15s, border-color .15s;
}
.card-empresa:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); border-color: #cbd5e1; }
.card-empresa-header { display: flex; align-items: center; gap: 0.65rem; }
.card-empresa-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 7px; flex-shrink: 0; }
.card-empresa-nombre { font-size: 0.95rem; font-weight: 700; color: #0f172a; text-decoration: none; }
.card-empresa-nombre:hover { color: #2563eb; text-decoration: underline; }
.card-empresa-desc { font-size: 0.8rem; color: #64748b; line-height: 1.5; margin: 0; flex: 1; }
.card-empresa-pais { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: #475569; }
.card-empresa-rating { margin-left: auto; font-size: 0.8rem; color: #f59e0b; font-weight: 600; }
.card-empresa-reviews { color: #94a3b8; font-weight: 400; }
.card-empresa-cats { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.1rem; }
.card-empresa-tag { font-size: 0.65rem; font-weight: 500; padding: 0.15rem 0.45rem; border-radius: 4px; background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; letter-spacing: 0.01em; }

/* Países inline */
.paises-inline { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pais-chip {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.65rem 1.25rem; border-radius: 12px;
    background: #fff; border: 1px solid #e2e8f0;
    font-size: 0.95rem; font-weight: 500; color: #374151;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    transition: box-shadow .15s, border-color .15s, color .15s, background .15s;
}
.pais-chip span:first-child { font-size: 1.3rem; line-height: 1; }
.pais-chip:hover {
    background: #f0f7ff; border-color: #bfdbfe;
    color: var(--azul); box-shadow: 0 3px 10px rgba(37,99,235,.12);
    text-decoration: none;
}

/* ── Contacto ─────────────────────────────────────────── */
.contacto-wrap {
    max-width: 680px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}
.contacto-header { margin-bottom: 2rem; }
.contacto-header h1 { font-size: 2rem; font-weight: 800; color: #0f172a; margin: 0 0 0.5rem; }
.contacto-header p  { color: #64748b; font-size: 1rem; margin: 0; }
.contacto-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contacto-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 540px) { .contacto-fila { grid-template-columns: 1fr; } }
.contacto-campo { display: flex; flex-direction: column; gap: 0.4rem; }
.contacto-campo label { font-size: 0.85rem; font-weight: 600; color: #374151; }
.contacto-campo input,
.contacto-campo textarea {
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #0f172a;
    background: #fff;
    transition: border-color .15s;
    font-family: inherit;
    resize: vertical;
}
.contacto-campo input:focus,
.contacto-campo textarea:focus { outline: none; border-color: #2563eb; }
.contacto-btn {
    align-self: flex-start;
    padding: 0.75rem 2rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.contacto-btn:hover { background: #1d4ed8; }
.contacto-ok {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 12px;
}
.contacto-ok-icono {
    flex-shrink: 0;
    width: 2.2rem; height: 2.2rem;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700;
}
.contacto-ok strong { display: block; color: #15803d; font-size: 1rem; margin-bottom: 0.25rem; }
.contacto-ok p { margin: 0; color: #166534; font-size: 0.9rem; }

/* ── Blog home grid ─────────────────────── */
.blog-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media(max-width: 780px) { .blog-home-grid { grid-template-columns: 1fr; } }

.blog-home-featured {
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.blog-home-featured-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.blog-home-featured-body {
    padding: 1.25rem 1.5rem 1.5rem;
}
.blog-home-featured-titulo {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 0.75rem;
}
.blog-home-featured-titulo a { color: #0f172a; text-decoration: none; }
.blog-home-featured-titulo a:hover { color: #2563eb; }
.blog-home-featured-extracto {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0 0 1.25rem;
}
.blog-home-featured-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border: 2px solid #0f172a;
    border-radius: 50px;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .03em;
    text-transform: uppercase;
    transition: background .15s, color .15s;
}
.blog-home-featured-btn:hover { background: #0f172a; color: #fff; }

.blog-home-secundarios {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
}
.blog-home-sec {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid #f1f5f9;
    flex: 1;
}
.blog-home-sec:first-child { border-top: 1px solid #f1f5f9; }
.blog-home-sec-img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    display: block;
}
.blog-home-sec-placeholder { background: #e2e8f0; }
.blog-home-sec-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}
.blog-home-sec-titulo {
    font-size: 0.97rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}
.blog-home-sec-cat {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f97316;
}
.blog-home-sec-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-home-sec-leer {
    display: inline-block;
    align-self: flex-end;
    width: fit-content;
    margin-top: 0.3rem;
    padding: 0.2rem 0.65rem;
    border: 1.5px solid #0f172a;
    border-radius: 50px;
    color: #0f172a;
    font-size: 0.65rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .03em;
    text-transform: uppercase;
    transition: background .15s, color .15s;
}
.blog-home-sec-leer:hover { background: #0f172a; color: #fff; }

/* ── Blog ───────────────────────────────── */
.blog-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}
@media(max-width:860px) { .blog-wrap { grid-template-columns: 1fr; } }

.blog-index-header { margin-bottom: 1.5rem; }
.blog-index-header h1 { font-size: 1.8rem; font-weight: 800; color: #0f172a; margin: 0 0 0.4rem; }
.blog-back { color: #2563eb; font-size: 0.9rem; text-decoration: none; }
.blog-back:hover { text-decoration: underline; }

.blog-lista { display: flex; flex-direction: column; gap: 1.5rem; }

.blog-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.25rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .15s;
}
.blog-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
@media(max-width:600px) { .blog-card { grid-template-columns: 1fr; } }

.blog-card-img-wrap { display: block; }
.blog-card-img { width: 100%; height: 100%; object-fit: cover; min-height: 140px; display: block; }

.blog-card-body { padding: 1.25rem 1.25rem 1.25rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
@media(max-width:600px) { .blog-card-body { padding: 1rem; } }

.blog-card-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.blog-cat-tag {
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.blog-cat-tag:hover { background: #dbeafe; }
.blog-fecha { color: #94a3b8; font-size: 0.8rem; }

.blog-card-titulo { margin: 0; font-size: 1.1rem; font-weight: 700; line-height: 1.35; }
.blog-card-titulo a { color: #0f172a; text-decoration: none; }
.blog-card-titulo a:hover { color: #2563eb; }

.blog-card-extracto { margin: 0; color: #475569; font-size: 0.88rem; line-height: 1.55; }

.blog-leer-mas {
    display: inline-block;
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
}
.blog-leer-mas:hover { text-decoration: underline; }

.blog-paginacion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}
.blog-paginacion a { color: #2563eb; text-decoration: none; font-weight: 600; }
.blog-paginacion a:hover { text-decoration: underline; }
.blog-paginacion span { color: #64748b; font-size: 0.9rem; }

/* Sidebar */
.blog-sidebar { position: sticky; top: 1.5rem; }
.blog-widget { background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 1.25rem; margin-bottom: 1.25rem; }
.blog-widget-titulo { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #64748b; margin: 0 0 1rem; }
.blog-cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.blog-cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    border-radius: 7px;
    color: #374151;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background .1s;
}
.blog-cat-list li a:hover, .blog-cat-list li a.activo { background: #eff6ff; color: #2563eb; }
.blog-cat-count { background: #e2e8f0; color: #64748b; font-size: 0.72rem; font-weight: 700; padding: 1px 7px; border-radius: 10px; }

.blog-recientes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.blog-recientes li { border-bottom: 1px solid #f1f5f9; padding-bottom: 0.65rem; }
.blog-recientes li:last-child { border-bottom: none; padding-bottom: 0; }
.blog-recientes li a { color: #0f172a; text-decoration: none; font-size: 0.88rem; font-weight: 600; display: block; line-height: 1.35; }
.blog-recientes li a:hover { color: #2563eb; }
.blog-fecha-sm { color: #94a3b8; font-size: 0.75rem; display: block; margin-top: 2px; }

/* Post detail */
.blog-post-header { margin-bottom: 1.5rem; }
.blog-post-titulo { font-size: 2rem; font-weight: 800; line-height: 1.2; color: #0f172a; margin: 0.5rem 0; }
@media(max-width:600px) { .blog-post-titulo { font-size: 1.5rem; } }
.blog-post-extracto { font-size: 1.05rem; color: #475569; line-height: 1.6; margin: 0.75rem 0 0; }

.blog-post-img-wrap { margin-bottom: 2rem; border-radius: 12px; overflow: hidden; }
.blog-post-img { width: 100%; max-height: 420px; object-fit: cover; display: block; }

.blog-post-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #1e293b;
}
.blog-post-content h1 { font-size: 1.7rem; font-weight: 800; margin: 2rem 0 0.75rem; color: #0f172a; }
.blog-post-content h2 { font-size: 1.4rem; font-weight: 700; margin: 1.75rem 0 0.65rem; color: #0f172a; }
.blog-post-content h3 { font-size: 1.15rem; font-weight: 700; margin: 1.4rem 0 0.5rem; color: #0f172a; }
.blog-post-content p { margin: 0 0 1rem; }
.blog-post-content ul, .blog-post-content ol { padding-left: 1.75rem; margin: 0 0 1rem; }
.blog-post-content li { margin-bottom: 0.35rem; }
.blog-post-content a { color: #2563eb; }
.blog-post-content a:hover { text-decoration: underline; }
.blog-post-content strong { font-weight: 700; }
.blog-post-content em { font-style: italic; }
.blog-post-content blockquote {
    border-left: 4px solid #2563eb;
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    background: #eff6ff;
    border-radius: 0 8px 8px 0;
    color: #1e40af;
    font-style: italic;
}
.blog-post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.88rem;
    margin: 1rem 0;
}
.blog-post-content code {
    font-family: 'Courier New', monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
}
.blog-post-content pre code { background: none; padding: 0; }
.blog-post-content img { max-width: 100%; border-radius: 8px; margin: 1rem 0; }
.blog-post-content hr { border: none; border-top: 1.5px solid #e2e8f0; margin: 2rem 0; }

.blog-post-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1.5px solid #e2e8f0; }
