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

:root {
    --azul:       oklch(0.45 0.15 254);
    --azul-dark:  oklch(0.4 0.15 254);
    --azul-light: oklch(0.93 0.05 254);
    --verde:      oklch(0.55 0.16 165);
    --navy:       oklch(0.22 0.01 60);
    --gris-texto: oklch(0.22 0.01 60 / 0.65);
    --gris-borde: oklch(0.22 0.01 60 / 0.1);
    --gris-fondo: oklch(0.985 0.004 75);
    --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 16px 32px -20px oklch(0.22 0.01 60 / 0.25);
    --radio:      8px;
    --radio-lg:   16px;
    --font-heading: 'Newsreader', Georgia, serif;
    --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--navy);
    background: var(--gris-fondo);
    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; }

/* ── BANDERAS (flagcdn) ─────────────────── */
.bandera-img { display: inline-block; vertical-align: middle; border-radius: 2px; box-shadow: 0 0 0 1px var(--gris-borde); }

/* ── HEADER ────────────────────────────── */
.site-header {
    background: var(--gris-fondo);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gris-borde);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.3px;
    white-space: nowrap;
}
.logo span { color: var(--azul); }
.site-header nav { display: flex; gap: 2rem; align-items: center; }
.site-header nav a {
    color: var(--navy);
    opacity: 0.75;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0;
    border-radius: 0;
    transition: opacity 0.15s;
}
.site-header nav a:hover { opacity: 1; background: none; text-decoration: none; }
.btn-registro {
    background: var(--azul) !important;
    color: #fff !important;
    border-radius: var(--radio);
    padding: 0.65rem 1.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-registro:hover { background: var(--azul-dark) !important; text-decoration: none; }
.nav-cta-mobile { display: none; }

/* Botón hamburguesa (oculto en desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.nav-toggle.abierto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.abierto span:nth-child(2) { opacity: 0; }
.nav-toggle.abierto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
@media (max-width: 860px) {
    .site-header .container { flex-wrap: nowrap; gap: 1rem; }
    .site-header .btn-registro-bar { display: none; }
    .nav-toggle { display: flex; }
    .site-header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--gris-fondo);
        border-bottom: 1px solid var(--gris-borde);
        box-shadow: var(--sombra-md);
        padding: 0.5rem 0 1rem;
    }
    .site-header nav.abierto { display: flex; }
    .site-header nav a {
        opacity: 1;
        font-size: 1rem;
        padding: 0.85rem 1.5rem;
        border-bottom: 1px solid var(--gris-borde);
    }
    .site-header nav a:last-of-type { border-bottom: none; }
    .nav-cta-mobile {
        display: block;
        margin: 0.75rem 1.5rem 0;
        text-align: center;
        border-bottom: none !important;
    }
}

/* ── MAIN ───────────────────────────────── */
main.container { padding-top: 1rem; padding-bottom: 4rem; }
main.home-main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden;
}

/* ── 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-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    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-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; color: var(--navy); }
.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-family: var(--font-heading); font-size: 2rem; font-weight: 600; letter-spacing: -0.01em; color: var(--navy); 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(3, minmax(0, 1fr));
    gap: 1.25rem;
}
/* ── RESULTADOS ─────────────────────────── */
.resultados-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gris-borde);
}
.resultados-header h1 { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 600; color: var(--navy); }
.resultados-header .total { font-size: 0.85rem; color: var(--navy); opacity: 0.6; }
.descripcion-categoria { margin: 0.75rem 0 0; color: var(--navy); opacity: 0.65; line-height: 1.6; }

/* ── CONTENIDO SEO PAÍS×CATEGORÍA (mismas fuentes/colores que la ficha de empresa) ── */
.contenido-seo-intro { margin: 0.75rem 0 0; }
.contenido-seo-intro p { line-height: 1.8; color: #334155; font-size: 0.95rem; margin: 0 0 0.9rem; overflow-wrap: break-word; }
.contenido-seo-extra { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--gris-borde); }
.contenido-seo-extra h2 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gris-texto); margin: 0 0 1rem; }
.contenido-seo-extra h2:not(:first-child) { margin-top: 2rem; }
.lista-criterios { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.lista-criterios li { padding: 0.65rem 0; border-bottom: 1px solid var(--gris-borde); font-size: 0.9rem; color: var(--navy); line-height: 1.6; display: flex; align-items: flex-start; gap: 0.6rem; }
.lista-criterios li::before { content: '✓'; color: var(--azul); font-weight: 700; flex-shrink: 0; }
.lista-criterios li:last-child { border-bottom: none; }
.lista-faq { display: flex; flex-direction: column; gap: 1.25rem; }
.faq-pregunta { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin: 0 0 0.35rem; }
.faq-respuesta { line-height: 1.8; color: #334155; font-size: 0.95rem; margin: 0; overflow-wrap: break-word; }

.cat-paises-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 2.5rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--gris-borde);
    border-radius: 6px;
    flex-wrap: wrap;
}
.cat-paises-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--navy);
    opacity: 0.5;
    white-space: nowrap;
    flex-shrink: 0;
}
.cat-paises-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}
.cat-pais-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: var(--gris-fondo);
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--navy);
    opacity: 0.8;
    transition: opacity .15s, background .15s;
    text-decoration: none;
}
.cat-pais-btn:hover {
    opacity: 1;
    background: var(--azul-light);
    text-decoration: none;
}
.sin-resultados {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--navy);
    opacity: 0.65;
}
.sin-resultados p { font-size: 1.1rem; margin-bottom: 1rem; }

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

/* Hero */
.cp-hero {
    background:
        radial-gradient(circle, oklch(1 0 0 / 0.35) 1.4px, transparent 1.4px) 0 0 / 22px 22px,
        linear-gradient(135deg, var(--azul-dark), var(--verde));
    border-radius: var(--radio-lg);
    padding: 2rem 2.5rem;
    margin-top: 1.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 minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.cp-sidebar, .cp-main { min-width: 0; }

/* 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; }

/* Formulario contacto empresa */
.cp-contacto-form { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.25rem; }

.cp-contacto-campo input,
.cp-contacto-campo textarea {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 1.5px solid var(--gris-borde);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--navy);
    background: var(--gris-fondo);
    transition: border-color .15s, background .15s;
    resize: none;
}
.cp-contacto-campo input::placeholder,
.cp-contacto-campo textarea::placeholder { color: #94a3b8; }
.cp-contacto-campo input:focus,
.cp-contacto-campo textarea:focus {
    outline: none;
    border-color: var(--azul);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}

.cp-contacto-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--azul);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, transform .1s;
    margin-top: 0.25rem;
}
.cp-contacto-btn:hover { background: var(--azul-dark); transform: translateY(-1px); }
.cp-contacto-btn:active { transform: translateY(0); }

.cp-contacto-ok {
    display: flex; align-items: center; gap: 0.75rem;
    background: #f0fdf4; border: 1.5px solid #86efac;
    border-radius: 8px; padding: 0.875rem 1rem;
    font-size: 0.875rem; color: #166534; font-weight: 500;
}
.cp-contacto-ok span { font-size: 1.1rem; color: #16a34a; }

.cp-contacto-error {
    background: #fef2f2; border: 1.5px solid #fca5a5;
    border-radius: 8px; padding: 0.875rem 1rem;
    font-size: 0.875rem; color: #991b1b;
}

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

/* 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; overflow-wrap: break-word; }
.cp-carousel-slide { display: none; }
.cp-carousel-slide.activo { display: block; }
.cp-carousel-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.25rem; }
.cp-carousel-btn { background: none; border: 1px solid var(--gris-borde); border-radius: 50%; width: 36px; height: 36px; font-size: 1rem; cursor: pointer; color: var(--navy); display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.cp-carousel-btn:hover { background: var(--gris-fondo); }
.cp-carousel-dots { display: flex; gap: 6px; }
.cp-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gris-borde); cursor: pointer; transition: background 0.2s; }
.cp-carousel-dot.activo { background: var(--azul); }

/* 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: minmax(0, 1fr); }
    .cp-sidebar { order: 2; }
    .cp-main { order: 1; }
    .cp-hero { padding: 1.5rem 1.25rem; }
    .cp-hero-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .cp-logo-wrap { width: 68px; height: 68px; }
    .cp-nombre { font-size: 1.35rem; }
    .cp-btn-sitio { width: 100%; justify-content: center; }
    .cp-card { padding: 1.25rem; }
    .cp-carousel-btn { width: 44px; height: 44px; }
    .cp-carousel-dot { width: 10px; height: 10px; }
}

/* ── 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); }

/* ── REGISTRO DE EMPRESA ────────────────── */
.registro-wrap { max-width: 640px; margin: 0 auto; padding: 3rem 0 5rem; }
.registro-header { text-align: center; margin-bottom: 2.5rem; }
.registro-header h1 { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 600; color: var(--navy); margin-bottom: 0.75rem; }
.registro-header p { color: var(--navy); opacity: 0.65; line-height: 1.6; }

.alerta { padding: 0.85rem 1.1rem; border-radius: 8px; font-size: 0.88rem; margin-bottom: 1.5rem; }
.alerta p { margin: 0.15rem 0; }
.alerta-ok    { background: oklch(0.93 0.08 165); color: oklch(0.35 0.1 165); border: 1px solid oklch(0.85 0.1 165); }
.alerta-error { background: oklch(0.94 0.05 25); color: oklch(0.4 0.15 25); border: 1px solid oklch(0.85 0.1 25); }

.registro-form { background: #fff; border: 1px solid var(--gris-borde); border-radius: 16px; padding: 2rem; box-shadow: var(--sombra-hover); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.campo { display: flex; flex-direction: column; gap: 0.4rem; }
.campo-full { grid-column: 1 / -1; }
.campo label { font-size: 0.85rem; font-weight: 500; color: var(--navy); }
.campo label small { display: block; font-weight: 400; opacity: 0.55; font-size: 0.78rem; margin-top: 0.1rem; }
.campo input, .campo select, .campo textarea {
    border: 1px solid var(--gris-borde); border-radius: 8px;
    padding: 0.75rem 0.9rem; font-size: 0.92rem; font-family: inherit;
    color: var(--navy); background: var(--gris-fondo);
    outline: none; transition: border-color .15s;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--azul); background: #fff; }
.campo textarea { resize: vertical; }

.registro-footer { margin-top: 2rem; text-align: center; }
.registro-nota { font-size: 0.82rem; color: var(--navy); opacity: 0.6; margin-bottom: 1.25rem; line-height: 1.5; }
.btn-registro-submit {
    background: var(--azul); color: #fff; border: none;
    padding: 0.9rem 2.5rem; border-radius: 8px;
    font-size: 0.95rem; font-weight: 500; font-family: inherit;
    cursor: pointer; transition: background .2s;
}
.btn-registro-submit:hover { background: var(--azul-dark); }

@media (max-width: 640px) {
    .registro-wrap { padding: 2rem 1.25rem 3rem; }
    .registro-form { padding: 1.5rem; }
    .form-grid { grid-template-columns: 1fr; }
}

.registro-exito { text-align: center; padding: 5rem 1.5rem; }
.registro-exito-icono { font-size: 3rem; margin-bottom: 1rem; }
.registro-exito h1 { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 600; color: var(--navy); margin-bottom: 1rem; }
.registro-exito p { color: var(--navy); opacity: 0.65; line-height: 1.6; margin-bottom: 2rem; }

/* ── 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(--gris-fondo);
    color: var(--navy);
    padding: 4.5rem 0 2.5rem;
    margin-top: 2rem;
    font-size: 0.875rem;
    border-top: 1px solid var(--gris-borde);
}
.footer-inner { display: flex; flex-direction: column; gap: 2.5rem; align-items: stretch; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; width: 100%; }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; text-align: left; min-width: 0; }
.footer-col-brand { gap: 1rem; }
.footer-desc { font-size: 0.85rem; color: var(--navy); opacity: 0.6; line-height: 1.6; max-width: 260px; }
.footer-col-titulo { color: var(--navy); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.5; margin: 0 0 0.4rem; }
.footer-col-brand .footer-col-titulo { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; text-transform: none; letter-spacing: normal; opacity: 1; margin: 0; }
.footer-col a { color: var(--navy) !important; opacity: 0.75; font-size: 0.875rem; }
.footer-col a:hover { opacity: 1; text-decoration: none; }
.footer-paises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1rem; }
.footer-paises a { white-space: nowrap; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--gris-borde); padding-top: 1.5rem; font-size: 0.8rem; opacity: 0.5; }
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { color: inherit; }
.footer-legal a:hover { opacity: 0.8; text-decoration: underline; }
.footer-logo span { color: var(--azul); }

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .hero { padding: 2.5rem 1.5rem; }
    .hero h1 { font-size: 1.7rem; }
    .stats { gap: 1.5rem; }
    .grid-destacadas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-empresas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ficha-empresa { padding: 1.5rem; }
    .ficha-empresa-top { flex-direction: column; }
    .resultados-header { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
    .resultados-header h1 { font-size: 1.5rem; }
    .pais-page-header { padding: 1.5rem 0 1.25rem; gap: 0.9rem; margin-bottom: 1.75rem; }
    .pais-page-bandera { font-size: 2.2rem; }
    .pais-page-header h1 { font-size: 1.5rem; }
    section { margin-bottom: 2.5rem; }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
    .footer-col-paises { grid-column: 1 / -1; }
    .footer-paises { width: 100%; }
    .footer-paises a { white-space: normal; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .footer-legal { flex-wrap: wrap; gap: 0.5rem 1.25rem; }
    .site-footer { padding: 3rem 0 2rem; }
}
@media (max-width: 480px) {
    .grid-destacadas { grid-template-columns: 1fr; }
    .grid-empresas { grid-template-columns: 1fr; }
    .buscador { flex-wrap: wrap; }
    .buscador input, .buscador select { min-width: 100%; flex: none; width: 100%; }
    .buscador select { border-left: none; border-top: 1px solid #f3f4f6; }
    .buscador button { width: 100%; }
    .stats { flex-wrap: wrap; gap: 1rem; }
}

/* Grid empresas — compartida por home, país, búsqueda/categoría y ficha */
.card-empresa {
    display: flex; flex-direction: column; gap: 0.85rem;
    min-width: 0; overflow-wrap: break-word;
    background: #fff; border: 1px solid var(--gris-borde); border-radius: 6px;
    padding: 1.5rem; text-decoration: none; color: inherit;
    transition: box-shadow .15s, border-color .15s;
}
.card-empresa:hover { box-shadow: var(--sombra-hover); border-color: oklch(0.22 0.01 60 / 0.3); }
.card-empresa-header { display: flex; align-items: center; gap: 0.75rem; }
.card-empresa-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; background: var(--gris-fondo); flex-shrink: 0; }
.card-empresa-nombre { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.card-empresa-nombre:hover { color: var(--azul); text-decoration: none; }
.card-empresa-desc { font-size: 0.85rem; color: var(--navy); opacity: 0.65; line-height: 1.55; margin: 0; flex: 1; }
.card-empresa-pais { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--navy); opacity: 0.65; }
.card-empresa-rating { margin-left: auto; font-size: 0.8rem; color: var(--navy); opacity: 0.7; font-weight: 500; }
.card-empresa-reviews { opacity: 0.7; font-weight: 400; }
.card-empresa-cats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.card-empresa-tag { font-size: 0.75rem; font-weight: 400; padding: 0.3rem 0.75rem; border-radius: 20px; background: oklch(0.95 0.01 60); color: var(--navy); opacity: 0.75; border: none; letter-spacing: normal; }

/* 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-family: var(--font-heading); font-size: 2.2rem; font-weight: 600; color: var(--navy); 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-family: var(--font-heading); font-size: 2rem; font-weight: 600; color: var(--navy); 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-family: var(--font-heading); font-size: 2.2rem; font-weight: 600; line-height: 1.2; color: var(--navy); 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-family: var(--font-heading); font-size: 1.8rem; font-weight: 600; margin: 2rem 0 0.75rem; color: var(--navy); }
.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; }

/* ══════════════════════════════════════════════════════
   HOME v2
══════════════════════════════════════════════════════ */

/* HERO — full width porque home-main no tiene padding */
@keyframes lf-pulse-ring {
    0% { transform: scale(0.4); opacity: 0.7; }
    100% { transform: scale(2.6); opacity: 0; }
}
@keyframes lf-twinkle {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
    .lf-pulse, .lf-dot { animation: none !important; }
}
.h-hero {
    background: var(--gris-fondo);
    position: relative;
    overflow: hidden;
}
.h-hero-glow, .h-hero-dots { display: none; }
.h-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 2.5rem;
    gap: 2.5rem;
}
.h-hero-text { max-width: 540px; }
.h-badge {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.55;
    margin-bottom: 1.5rem;
    background: none; border: none; color: var(--navy); padding: 0; border-radius: 0;
    transform: translateY(-60px);
}
.h-hero-h1 {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--navy);
    margin-bottom: 1.5rem;
}
.h-hero-h1 span { color: var(--azul); font-style: normal; }
.h-hero-sub { font-size: 1.05rem; color: var(--navy); opacity: 0.7; line-height: 1.6; max-width: 460px; margin-bottom: 2rem; }
.h-hero-stats { display: flex; flex-direction: row; gap: 2.5rem; flex-shrink: 0; padding-right: 0; }
.h-stat strong { display: block; font-family: var(--font-heading); font-size: 2.2rem; font-weight: 500; color: var(--navy); line-height: 1; letter-spacing: -0.01em; }
.h-stat span { font-size: 0.72rem; color: var(--navy); opacity: 0.55; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* MAPA */
.h-hero-map { position: relative; width: 100%; aspect-ratio: 320/420; max-width: 360px; justify-self: end; margin-top: -3rem; }
.h-hero-map svg { width: 100%; height: 100%; display: block; }
.h-hero-map .lf-dot { fill: var(--azul); animation: lf-twinkle 3.2s ease-in-out infinite; }
.h-hero-map .lf-pulse { fill: none; stroke: var(--verde); stroke-width: 2; animation: lf-pulse-ring 2.4s ease-out infinite; }
.h-hero-map .lf-pin { fill: var(--verde); }

/* SEARCH */
.h-search-outer { position: relative; padding-bottom: 2rem; margin-top: -4rem; z-index: 2; }
.h-search {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: var(--radio-lg);
    box-shadow: 0 24px 48px -24px oklch(0.22 0.01 60 / 0.35);
    overflow: hidden;
    border: 1px solid var(--gris-borde);
}
.h-search-sep { width: 1px; background: var(--gris-borde); align-self: stretch; flex-shrink: 0; }
.h-search-select {
    border: none; outline: none;
    font-size: 15px; font-family: inherit;
    color: var(--navy); opacity: 0.75; padding: 22px 1.6rem;
    background: transparent; cursor: pointer; flex: 1;
}
.h-search-btn {
    background: var(--azul); color: #fff; border: none;
    padding: 22px 2.5rem; font-size: 15px; font-weight: 500;
    font-family: inherit; cursor: pointer; white-space: nowrap;
    transition: background .2s;
}
.h-search-btn:hover { background: var(--azul-dark); }

/* BODY */
.h-body { padding: 4rem 0 0; }

/* SECTIONS */
.h-section { margin-bottom: 4rem; }
.h-section:last-child { margin-bottom: 2rem; }
.h-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2rem; }
.h-section-title { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 500; color: var(--navy); letter-spacing: -0.01em; }
.h-section-link { font-size: 0.85rem; color: var(--navy); opacity: 0.6; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.h-section-link:hover { opacity: 1; text-decoration: none; }

/* CATEGORÍAS */
.h-cats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--gris-borde); border: 1px solid var(--gris-borde);
}
.h-cat {
    position: relative;
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem;
    padding: 1.75rem;
    background: var(--gris-fondo);
    border: none; border-radius: 0;
    min-height: 150px;
    text-decoration: none; color: inherit;
    overflow: hidden;
    transition: background .18s;
}
.h-cat:hover { background: #fff; text-decoration: none; }
.h-cat-icon {
    position: relative;
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 8px;
    background: var(--azul-light);
    color: var(--azul);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 6px;
}
.h-cat-icon::after {
    content: '';
    position: absolute; top: -4px; right: -4px;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--verde);
    border: 2px solid var(--gris-fondo);
}
.h-cat-icon svg { width: 20px; height: 20px; }
.h-cat-dot { display: none; }
.h-cat-body { flex: 1; min-width: 0; }
.h-cat-name { display: block; font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; line-height: 1.3; }
.h-cat-desc { font-size: 0.85rem; color: var(--navy); opacity: 0.6; margin: 0; line-height: 1.45; }
.h-cat-arrow { display: none; }

/* EMPRESAS */
.h-empresas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.h-empresa-card {
    background: #fff; border: 1px solid var(--gris-borde); border-radius: 6px;
    padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem;
    text-decoration: none; color: inherit; overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.h-empresa-card:hover { border-color: oklch(0.22 0.01 60 / 0.3); box-shadow: var(--sombra-hover); text-decoration: none; }
.h-empresa-top { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.h-empresa-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; flex-shrink: 0; background: var(--gris-fondo); }
.h-empresa-info { flex: 1; min-width: 0; }
.h-empresa-nombre { display: block; font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-empresa-pais { font-size: 0.78rem; color: var(--navy); opacity: 0.65; }
.h-empresa-rating { font-size: 0.8rem; color: var(--navy); opacity: 0.7; flex-shrink: 0; background: none; border: none; padding: 0; }
.h-empresa-desc { font-size: 0.85rem; color: var(--navy); opacity: 0.65; line-height: 1.55; flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.h-empresa-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; flex-shrink: 0; margin-top: auto; }
.h-tag { font-size: 0.75rem; background: oklch(0.95 0.01 60); border: none; color: var(--navy); opacity: 0.75; padding: 0.3rem 0.75rem; border-radius: 20px; }

/* BLOG */
.h-blog { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.h-blog-featured {
    background: #fff; border: 1px solid var(--gris-borde); border-radius: 6px; overflow: hidden;
    text-decoration: none; display: flex; flex-direction: column;
    transition: border-color .15s, box-shadow .15s;
}
.h-blog-featured:hover { border-color: oklch(0.22 0.01 60 / 0.3); box-shadow: var(--sombra-hover); text-decoration: none; }
.h-blog-img { width: 100%; height: 175px; object-fit: cover; display: block; }
.h-blog-img-ph { width: 100%; height: 175px; background: var(--gris-fondo); }
.h-blog-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.h-blog-label { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--verde); }
.h-blog-titulo { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: var(--navy); line-height: 1.35; }
.h-blog-extracto { font-size: 0.85rem; color: var(--navy); opacity: 0.65; line-height: 1.6; flex: 1; }
.h-blog-leer { font-size: 0.8rem; font-weight: 500; color: var(--azul); }
.h-blog-lista { display: flex; flex-direction: column; gap: 0.75rem; }
.h-blog-item {
    display: flex; gap: 0.9rem; align-items: center;
    background: #fff; border: 1px solid var(--gris-borde); border-radius: 6px;
    padding: 0.85rem; text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.h-blog-item:hover { border-color: oklch(0.22 0.01 60 / 0.3); box-shadow: var(--sombra-hover); text-decoration: none; }
.h-blog-item-img { width: 58px; height: 58px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.h-blog-item-titulo { display: block; font-size: 0.85rem; font-weight: 500; color: var(--navy); line-height: 1.4; margin-bottom: 0.25rem; }
.h-blog-item-leer { font-size: 0.73rem; color: var(--azul); font-weight: 500; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .h-hero-h1 { font-size: 2.6rem; }
    .h-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .h-empresas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .h-hero-inner { grid-template-columns: 1fr; padding-top: 2.5rem; padding-bottom: 2rem; gap: 1.5rem; }
    .h-badge { transform: none; margin-bottom: 1rem; }
    .h-hero-map { display: none; }
    .h-search-outer { margin-top: 1.5rem; }
}
@media (max-width: 768px) {
    .h-hero-stats { flex-wrap: wrap; gap: 1.5rem 2rem; }
    .h-hero-h1 { font-size: 2.1rem; }
    .h-search { flex-wrap: wrap; }
    .h-search-select { min-width: 100%; padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--gris-borde); }
    .h-search-sep { display: none; }
    .h-search-btn { width: 100%; padding: 0.9rem; }
    .h-cats { grid-template-columns: 1fr; }
    .h-empresas { grid-template-columns: 1fr; }
    .h-blog { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── FIX iOS: campos con fuente <16px provocan zoom automático al enfocar ── */
@media (max-width: 768px) {
    .buscador input,
    .buscador select,
    .h-search-select,
    .campo input,
    .campo select,
    .campo textarea,
    .contacto-campo input,
    .contacto-campo textarea,
    .cp-contacto-campo input,
    .cp-contacto-campo textarea {
        font-size: 16px;
    }
}
