/*
Theme Name:   ConsuladosEnPeru
Theme URI:    https://consuladosenperu.com
Description:  Tema hijo de ASAP para consuladosenperu.com — Directorio consular en Perú
Author:       SEOFune
Author URI:   https://seofune.es
Template:     asap
Version:      1.1.5
Text Domain:  consuladosenperu
*/

/* =====================================================
   VARIABLES — Paleta Perú
===================================================== */
:root {
    --pe-red:       #D91023;
    --pe-red-dark:  #A30D1B;
    --pe-red-soft:  #E94656;
    --pe-gold:      #C9A227;
    --pe-gold-lt:   #e2c060;
    --pe-cream:     #FFF8EC;
    --pe-white:     #ffffff;
    --pe-offwhite:  #faf7f5;
    --pe-text:      #1a0c0e;
    --pe-muted:     #5a4a4d;
    --pe-border:    #ebe0e1;
    --pe-radius:    6px;
    --pe-shadow:    0 2px 16px rgba(217,16,35,.10);
    --pe-shadow-lg: 0 8px 40px rgba(217,16,35,.16);
    --pe-font-head: "DM Serif Display", Georgia, serif;
    --pe-font-body: "Source Sans 3", system-ui, sans-serif;

    /* Aliases para compatibilidad con clases .tc- */
    --tc-navy:      var(--pe-red);
    --tc-navy-mid:  var(--pe-red-dark);
    --tc-navy-soft: var(--pe-red-soft);
    --tc-gold:      var(--pe-gold);
    --tc-gold-lt:   var(--pe-gold-lt);
    --tc-white:     var(--pe-white);
    --tc-offwhite:  var(--pe-offwhite);
    --tc-text:      var(--pe-text);
    --tc-muted:     var(--pe-muted);
    --tc-border:    var(--pe-border);
    --tc-radius:    var(--pe-radius);
    --tc-shadow:    var(--pe-shadow);
    --tc-shadow-lg: var(--pe-shadow-lg);
    --tc-font-head: var(--pe-font-head);
    --tc-font-body: var(--pe-font-body);
}

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

body {
    font-family: var(--pe-font-body);
    color: var(--pe-text);
    background: var(--pe-white);
    line-height: 1.65;
    margin: 0; padding: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pe-red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--pe-red-dark); }

h1, h2, h3, h4 {
    font-family: var(--pe-font-head);
    color: var(--pe-text);
    line-height: 1.2;
    margin: 0 0 .6em;
    font-weight: 400;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }

.pe-container, .tc-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* TOPBAR */
.pe-topbar {
    background: #1a0c0e;
    color: rgba(255,255,255,.85);
    font-size: .82rem;
    border-bottom: 2px solid var(--pe-red);
}
.pe-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    gap: 16px;
}
.pe-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pe-topbar-cc {
    background: var(--pe-red);
    color: var(--pe-white);
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: .72rem;
    letter-spacing: .04em;
}
.pe-topbar-text {
    color: rgba(255,255,255,.85);
}
.pe-topbar-right {
    display: flex;
    gap: 18px;
    align-items: center;
}
.pe-topbar-right a {
    color: var(--pe-gold-lt);
    text-decoration: none;
    font-weight: 600;
    transition: color .15s;
}
.pe-topbar-right a:hover {
    color: var(--pe-white);
    text-decoration: underline;
}
@media (max-width: 720px) {
    .pe-topbar-inner { flex-direction: column; padding: 8px 0; gap: 6px; text-align: center; }
    .pe-topbar-text { font-size: .78rem; }
}

/* HEADER */
.pe-site-header {
    background: var(--pe-white);
    border-bottom: 1px solid var(--pe-border);
    position: sticky; top: 0; z-index: 100;
}
.pe-site-header::before {
    content: ""; display: block; height: 4px;
    background: linear-gradient(90deg, var(--pe-red) 0%, var(--pe-gold) 50%, var(--pe-red) 100%);
}
.pe-nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; gap: 24px;
}

/* LOGO INSTITUCIONAL */
.pe-logo {
    display: flex; align-items: center; gap: 12px;
    color: var(--pe-text); text-decoration: none;
    flex-shrink: 0;
}
.pe-logo:hover { color: var(--pe-text); }
.pe-logo-icon {
    width: 44px; height: 44px;
    flex-shrink: 0;
    display: block;
}
.pe-logo-icon svg { width: 100%; height: 100%; display: block; }
.pe-logo-text {
    display: flex; flex-direction: column; line-height: 1.1;
}
.pe-logo-title {
    font-family: var(--pe-font-head);
    font-size: 1.4rem;
    color: var(--pe-text);
    font-weight: 400;
}
.pe-logo-accent { color: var(--pe-gold); }
.pe-logo-sub {
    font-family: var(--pe-font-body);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pe-muted);
    font-weight: 700;
    margin-top: 2px;
}

/* MENÚ */
.pe-nav { flex: 1; display: flex; justify-content: center; }
.pe-nav-menu {
    display: flex; list-style: none; margin: 0; padding: 0;
    gap: 28px; align-items: center;
}
.pe-nav-menu a {
    color: var(--pe-text); font-weight: 600; font-size: .95rem;
    padding: 8px 0; position: relative;
}
.pe-nav-menu a:hover { color: var(--pe-red); }
.pe-nav-menu a.current,
.pe-nav-menu .current-menu-item a { color: var(--pe-red); }

/* CTA HEADER */
.pe-header-cta {
    background: var(--pe-red);
    color: var(--pe-white);
    padding: 11px 22px;
    border-radius: var(--pe-radius);
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
    transition: background .2s, transform .15s, box-shadow .2s;
    flex-shrink: 0;
    white-space: nowrap;
}
.pe-header-cta:hover {
    background: var(--pe-red-dark);
    color: var(--pe-white);
    transform: translateY(-1px);
    box-shadow: var(--pe-shadow);
}

.pe-nav-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    padding: 8px; color: var(--pe-text);
}
.pe-nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 980px) {
    /* En móvil, el <nav> sigue presente pero no ocupa espacio en el flujo */
    .pe-nav {
        order: 3;
        position: static;
    }
    .pe-nav-toggle { display: block; }
    .pe-header-cta { padding: 9px 16px; font-size: .85rem; }

    /* El menú aparece como dropdown desde el header */
    .pe-nav .pe-nav-menu,
    .pe-nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--pe-red);
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
        margin: 0;
        list-style: none;
        display: none;
        box-shadow: 0 8px 16px rgba(0,0,0,.15);
        z-index: 999;
    }
    .pe-nav-menu.is-open { display: flex !important; }
    .pe-nav-menu li { width: 100%; list-style: none; }
    .pe-nav-menu a {
        color: var(--pe-white);
        padding: 14px 24px;
        width: 100%;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,.1);
        text-decoration: none;
    }
    .pe-nav-menu a:hover { color: var(--pe-gold-lt); background: var(--pe-red-dark); }
    .pe-nav-menu .pe-mobile-cta {
        background: var(--pe-gold);
        color: var(--pe-text) !important;
        font-weight: 700;
        text-align: center;
        margin-top: 4px;
        border-bottom: 0;
    }
    .pe-nav-menu .pe-mobile-cta:hover {
        background: var(--pe-gold-lt);
        color: var(--pe-text) !important;
    }
}
@media (max-width: 540px) {
    .pe-logo-sub { display: none; }
    .pe-logo-title { font-size: 1.15rem; }
    .pe-logo-icon { width: 38px; height: 38px; }
    .pe-header-cta { display: none; }
}

/* BOTONES */
.pe-btn, .tc-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--pe-radius);
    font-weight: 700; font-size: .95rem; cursor: pointer; border: 0;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    text-decoration: none; line-height: 1;
}
.pe-btn-primary, .tc-btn-primary { background: var(--pe-red); color: var(--pe-white); }
.pe-btn-primary:hover, .tc-btn-primary:hover {
    background: var(--pe-red-dark); color: var(--pe-white);
    transform: translateY(-1px); box-shadow: var(--pe-shadow);
}
.pe-btn-gold, .tc-btn-gold { background: var(--pe-gold); color: var(--pe-text); }
.pe-btn-gold:hover, .tc-btn-gold:hover {
    background: var(--pe-gold-lt); color: var(--pe-text); transform: translateY(-1px);
}
.pe-btn-ghost, .tc-btn-ghost {
    background: transparent; color: var(--pe-red); border: 2px solid var(--pe-red);
}
.pe-btn-ghost:hover, .tc-btn-ghost:hover { background: var(--pe-red); color: var(--pe-white); }
.pe-btn-hero, .tc-btn-hero { padding: 16px 32px; font-size: 1.05rem; }

/* HERO */
.pe-hero {
    background: linear-gradient(135deg, var(--pe-red) 0%, var(--pe-red-dark) 100%);
    color: var(--pe-white); padding: 72px 0 80px;
    position: relative; overflow: hidden;
}
.pe-hero::after {
    content: ""; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.08), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(201,162,39,.15), transparent 50%);
    pointer-events: none;
}
.pe-hero-inner { position: relative; z-index: 1; text-align: center; }
.pe-hero h1 { color: var(--pe-white); margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,.15); }
.pe-hero p.pe-hero-sub {
    color: rgba(255,255,255,.92); font-size: 1.15rem;
    max-width: 640px; margin: 0 auto 32px;
}
.pe-search-form {
    max-width: 520px; margin: 0 auto 24px; display: flex;
    background: var(--pe-white); border-radius: var(--pe-radius);
    overflow: hidden; box-shadow: var(--pe-shadow-lg);
}
.pe-search-form input {
    flex: 1; padding: 14px 18px; border: 0;
    font-family: inherit; font-size: 1rem; color: var(--pe-text); outline: none;
}
.pe-search-form button {
    background: var(--pe-gold); color: var(--pe-text); border: 0;
    padding: 0 28px; font-weight: 700; cursor: pointer;
    font-family: inherit; transition: background .2s;
}
.pe-search-form button:hover { background: var(--pe-gold-lt); }

/* SECCIONES */
.pe-section, .tc-section { padding: 64px 0; }
.pe-section-alt, .tc-section-alt { background: var(--pe-offwhite); }
.pe-section-head, .tc-section-head { text-align: center; margin-bottom: 40px; }
.pe-section-label, .tc-section-label {
    display: inline-block; color: var(--pe-gold);
    font-size: .85rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px;
}
.pe-section-head h2, .tc-section-head h2 { margin-bottom: 12px; }
.pe-section-head p, .tc-section-head p {
    color: var(--pe-muted); max-width: 640px; margin: 0 auto;
}

/* GRIDS */
.pe-paises-grid, .tc-paises-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px;
}
.pe-pais-card, .tc-pais-card {
    background: var(--pe-white); border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius); padding: 20px 16px; text-align: center;
    transition: transform .15s, box-shadow .2s, border-color .2s;
    color: var(--pe-text);
}
.pe-pais-card:hover, .tc-pais-card:hover {
    transform: translateY(-3px); border-color: var(--pe-gold);
    box-shadow: var(--pe-shadow); color: var(--pe-text);
}
.pe-pais-flag, .tc-pais-flag { font-size: 2.2rem; margin-bottom: 8px; line-height: 1; }
.pe-pais-name, .tc-pais-name { font-weight: 600; font-size: .95rem; }

.pe-tramites-grid, .tc-tramites-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.pe-tramite-card, .tc-tramite-card {
    background: var(--pe-white); border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius); padding: 24px;
    transition: transform .15s, box-shadow .2s, border-color .2s;
    display: flex; flex-direction: column;
    color: var(--pe-text); text-decoration: none;
}
.pe-tramite-card:hover, .tc-tramite-card:hover {
    transform: translateY(-3px); border-color: var(--pe-gold);
    box-shadow: var(--pe-shadow); color: var(--pe-text);
}
.pe-tramite-icon, .tc-tramite-icon { font-size: 2rem; margin-bottom: 10px; }
.pe-tramite-card h3, .tc-tramite-card h3 { font-size: 1.2rem; margin: 0 0 8px; }
.pe-tramite-card p, .tc-tramite-card p {
    color: var(--pe-muted); font-size: .92rem; margin: 0 0 10px;
}
.pe-card-link, .tc-card-link {
    color: var(--pe-red); font-weight: 700; font-size: .9rem;
}

.pe-chip, .tc-chip {
    display: inline-block; background: var(--pe-cream); color: var(--pe-red-dark);
    border-radius: 999px; padding: 4px 12px;
    font-size: .78rem; font-weight: 600; border: 1px solid var(--pe-gold-lt);
}

/* GUÍAS PRÁCTICAS DESTACADAS */
.pe-section-guias {
    background: linear-gradient(180deg, #fffaf0 0%, var(--pe-white) 100%);
    border-top: 3px solid var(--pe-gold);
    padding: 60px 0;
}
.pe-section-guias .pe-section-label {
    background: var(--pe-gold);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.pe-guias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
    margin-top: 16px;
}
.pe-guia-card {
    background: var(--pe-white);
    border: 2px solid var(--pe-gold-lt);
    border-radius: var(--pe-radius);
    padding: 28px;
    transition: transform .15s, box-shadow .2s, border-color .2s;
    display: flex;
    flex-direction: column;
    color: var(--pe-text);
    text-decoration: none;
    position: relative;
}
.pe-guia-card:hover {
    transform: translateY(-4px);
    border-color: var(--pe-gold);
    box-shadow: 0 8px 28px rgba(201, 162, 39, 0.18);
    color: var(--pe-text);
}
.pe-guia-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    line-height: 1;
}
.pe-guia-card h3 {
    font-size: 1.18rem;
    margin: 0 0 10px;
    line-height: 1.35;
    color: var(--pe-red-dark);
}
.pe-guia-card p {
    color: var(--pe-muted);
    font-size: .92rem;
    margin: 0 0 14px;
    line-height: 1.55;
    flex-grow: 1;
}
.pe-guia-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fdf6e3;
    border: 1px solid var(--pe-gold-lt);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: .82rem;
    color: var(--pe-text);
}
.pe-guia-meta span {
    display: flex;
    gap: 6px;
    align-items: center;
}
.pe-guia-meta strong {
    font-size: .9rem;
}

/* FILTRO ALFABÉTICO */
.pe-az, .tc-az {
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 32px;
}
.pe-az button, .pe-az a, .tc-az button, .tc-az a {
    background: var(--pe-white); border: 1px solid var(--pe-border);
    color: var(--pe-text); width: 38px; height: 38px;
    border-radius: var(--pe-radius); font-weight: 700; cursor: pointer;
    font-family: inherit; transition: all .15s;
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.pe-az button:hover, .pe-az a:hover, .pe-az button.active, .pe-az a.active,
.tc-az button:hover, .tc-az a:hover, .tc-az button.active, .tc-az a.active {
    background: var(--pe-red); border-color: var(--pe-red); color: var(--pe-white);
}

/* FICHA */
.pe-ficha-hero {
    background: linear-gradient(135deg, var(--pe-red) 0%, var(--pe-red-dark) 100%);
    color: var(--pe-white); padding: 56px 0 48px;
}
.pe-ficha-flag-large { font-size: 4rem; margin-bottom: 12px; line-height: 1; }
.pe-ficha-tipo {
    display: inline-block; background: var(--pe-gold); color: var(--pe-text);
    padding: 4px 12px; border-radius: 999px;
    font-size: .82rem; font-weight: 700; margin-bottom: 12px;
}
.pe-ficha-hero h1 { color: var(--pe-white); margin: 0 0 8px; }
.pe-ficha-hero .pe-ciudad { color: var(--pe-gold-lt); font-size: 1.05rem; font-weight: 600; }

/* Hero compacto en móvil */
@media (max-width: 700px) {
    .pe-ficha-hero { padding: 28px 0 26px; }
    .pe-ficha-flag-large { font-size: 2.4rem; margin-bottom: 8px; }
    .pe-ficha-tipo { font-size: .72rem; padding: 3px 10px; margin-bottom: 8px; }
    .pe-ficha-hero h1 { font-size: 1.45rem; line-height: 1.25; margin: 0 0 6px; }
    .pe-ficha-hero .pe-ciudad { font-size: .9rem; }
}

.pe-ficha-body {
    display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin: 48px 0;
}
@media (max-width: 860px) { .pe-ficha-body { grid-template-columns: 1fr; } }

.pe-ficha-side .pe-card {
    background: var(--pe-white); border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius); padding: 22px; margin-bottom: 18px;
    box-shadow: var(--pe-shadow);
}
.pe-card h3 {
    font-family: var(--pe-font-body); font-size: 1rem;
    color: var(--pe-red); text-transform: uppercase;
    letter-spacing: .05em; font-weight: 700;
    margin: 0 0 10px; padding-bottom: 8px;
    border-bottom: 2px solid var(--pe-gold);
}
.pe-data-row {
    display: flex; gap: 10px; padding: 8px 0; font-size: .94rem;
    border-bottom: 1px dashed var(--pe-border);
}
.pe-data-row:last-child { border-bottom: 0; }
.pe-data-row strong { color: var(--pe-text); flex-shrink: 0; min-width: 90px; }
.pe-data-row span { color: var(--pe-muted); }
.pe-data-row a { color: var(--pe-red); word-break: break-word; }

/* MAPA EMBED */
.pe-map-wrap {
    margin: 24px 0;
    border-radius: var(--pe-radius);
    overflow: hidden;
    box-shadow: var(--pe-shadow);
    border: 1px solid var(--pe-border);
}
.pe-map-wrap iframe {
    display: block; width: 100%; height: 380px; border: 0;
}
.pe-map-caption {
    background: var(--pe-cream);
    padding: 12px 16px;
    font-size: .92rem;
    color: var(--pe-text);
    border-top: 1px solid var(--pe-gold-lt);
}
.pe-map-caption strong { color: var(--pe-red-dark); }

/* ─── PÁGINAS GENÉRICAS (hubs y demás) ─── */
.pe-page-hero {
    background: linear-gradient(135deg, var(--pe-red) 0%, var(--pe-red-dark) 100%);
    color: var(--pe-white);
    padding: 48px 0 40px;
    margin-bottom: 0;
}
.pe-page-hero h1 {
    color: var(--pe-white);
    margin: 0 0 8px;
    font-size: 2.3rem;
    line-height: 1.15;
}
.pe-page-subtitle {
    color: var(--pe-gold-lt);
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 760px;
}
.pe-page-content {
    max-width: 880px;
    margin: 40px auto 64px;
    color: var(--pe-text);
    line-height: 1.7;
    font-size: 1.02rem;
}
.pe-page-content > h2 {
    color: var(--pe-red-dark);
    margin: 36px 0 14px;
    font-size: 1.55rem;
    line-height: 1.25;
}
.pe-page-content > h3 {
    color: var(--pe-red-dark);
    margin: 28px 0 12px;
    font-size: 1.2rem;
}
.pe-page-content > p {
    margin: 0 0 16px;
}
.pe-page-content ul, .pe-page-content ol {
    margin: 0 0 18px 24px;
    padding: 0;
}
.pe-page-content li {
    margin-bottom: 6px;
}
.pe-page-content a {
    color: var(--pe-red-dark);
    text-decoration: underline;
}
.pe-page-content a:hover {
    color: var(--pe-red);
}

/* En móvil, hero más compacto */
@media (max-width: 700px) {
    .pe-page-hero { padding: 28px 0 24px; }
    .pe-page-hero h1 { font-size: 1.6rem; }
    .pe-page-subtitle { font-size: .92rem; }
    .pe-page-content { margin: 28px auto 40px; font-size: .98rem; }
    .pe-page-content > h2 { font-size: 1.35rem; }
}

/* MAPA EN SIDEBAR — variante compacta */
.pe-card-map { padding: 0 !important; overflow: hidden; }
.pe-card-map h3 {
    margin: 0; padding: 18px 22px 10px;
    border-bottom: 2px solid var(--pe-gold);
}
.pe-card-map .pe-map-wrap {
    margin: 0; border-radius: 0; box-shadow: none; border: 0;
    border-top: 1px solid var(--pe-border);
}
.pe-card-map .pe-map-wrap iframe {
    height: 240px;
}
.pe-card-map .pe-map-caption {
    font-size: .82rem;
    line-height: 1.45;
    padding: 10px 14px;
}

/* AVISO SUSPENDIDA */
.pe-ficha-hero.is-suspended {
    background: linear-gradient(135deg, #6a4a4d 0%, #3d2729 100%);
}
.pe-aviso-suspendida {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff8e6;
    border: 2px solid #f5b800;
    border-left: 6px solid #c9920a;
    border-radius: var(--pe-radius);
    padding: 18px 22px;
    margin: 32px 0 0;
    box-shadow: 0 2px 8px rgba(201,146,10,.12);
}
.pe-aviso-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}
.pe-aviso-texto strong {
    color: #7a5800;
    display: block;
    margin-bottom: 4px;
    font-size: 1.05rem;
}
.pe-aviso-texto p {
    margin: 0;
    color: #4a3500;
    font-size: .95rem;
    line-height: 1.55;
}

/* PASOS Y FAQ */
.pe-pasos { margin: 32px 0; counter-reset: pe-step; }
.pe-paso {
    display: flex; gap: 20px; margin-bottom: 24px; padding: 20px;
    background: var(--pe-white); border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius); border-left: 4px solid var(--pe-red);
}
.pe-paso::before {
    counter-increment: pe-step; content: counter(pe-step);
    background: var(--pe-red); color: var(--pe-white);
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-family: var(--pe-font-head);
    font-size: 1.1rem; flex-shrink: 0;
}
.pe-paso h3 {
    margin: 0 0 6px; font-size: 1.1rem;
    font-family: var(--pe-font-body); font-weight: 700;
}
.pe-paso p { margin: 0; color: var(--pe-muted); }

.pe-faq { margin: 32px 0; }
.pe-faq-item {
    background: var(--pe-white); border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius); margin-bottom: 12px; overflow: hidden;
}
.pe-faq-item summary {
    padding: 16px 20px; font-weight: 700; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    list-style: none; color: var(--pe-text);
}
.pe-faq-item summary::-webkit-details-marker { display: none; }
.pe-faq-item summary::after {
    content: "+"; color: var(--pe-red); font-size: 1.4rem;
    font-weight: 400; transition: transform .2s;
}
.pe-faq-item[open] summary::after { content: "−"; }
.pe-faq-item .pe-faq-answer { padding: 0 20px 18px; color: var(--pe-muted); }

/* ADSENSE */
.pe-ads-block { margin: 32px 0; }
.pe-ads-block + h2,
.pe-ads-block + h3 { margin-top: 50px; }

/* CTA BANNER */
.pe-cta-banner, .tc-cta-banner {
    background: linear-gradient(135deg, var(--pe-red) 0%, var(--pe-red-dark) 100%);
    color: var(--pe-white); padding: 64px 0;
    text-align: center; position: relative; overflow: hidden;
}
.pe-cta-banner::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(201,162,39,.18), transparent 60%);
}
.pe-cta-banner > * { position: relative; z-index: 1; }
.pe-cta-banner h2 { color: var(--pe-white); margin-bottom: 12px; }
.pe-cta-banner p { color: rgba(255,255,255,.92); margin-bottom: 24px; }

/* NOTICE CARDS */
.pe-notice-card {
    background: var(--pe-cream); border: 1px solid var(--pe-gold-lt);
    border-left: 4px solid var(--pe-gold); padding: 16px 20px;
    border-radius: var(--pe-radius); margin: 18px 0; font-size: .94rem;
}
.pe-notice-card p { margin: 0; color: var(--pe-text); }

/* FOOTER */
.pe-site-footer {
    background: #1a0c0e; color: #ffffff;
    padding: 56px 0 0; margin-top: 64px;
    border-top: 4px solid var(--pe-gold);
}
.pe-footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 40px; padding-bottom: 40px;
}
@media (max-width: 760px) { .pe-footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.pe-footer-brand .pe-logo { color: var(--pe-white); margin-bottom: 12px; }
.pe-footer-brand .pe-logo .pe-logo-title { color: #ffffff !important; }
.pe-footer-brand .pe-logo .pe-logo-sub   { color: rgba(255,255,255,.85) !important; }
.pe-footer-brand p { color: rgba(255,255,255,.85); font-size: .92rem; line-height: 1.6; }
.pe-footer-col h4 {
    color: var(--pe-gold); font-family: var(--pe-font-body);
    font-size: .85rem; text-transform: uppercase;
    letter-spacing: .1em; font-weight: 700; margin: 0 0 14px;
}
.pe-footer-col ul { list-style: none; margin: 0; padding: 0; }
.pe-footer-col li { margin-bottom: 8px; }
.pe-footer-col a {
    color: #ffffff; font-size: .94rem; transition: color .15s;
}
.pe-footer-col a:hover { color: var(--pe-gold-lt); }
.pe-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 22px 0; text-align: center;
    font-size: .88rem;
    color: #ffffff !important;
}
.pe-footer-bottom p {
    color: #ffffff !important;
    margin: 0;
}

/* CF7 */
.pe-cf7-wrap .wpcf7-form p { margin-bottom: 14px; }
.pe-cf7-wrap label {
    display: block; font-weight: 600; margin-bottom: 6px;
    color: var(--pe-text); font-size: .94rem;
}
.pe-cf7-wrap input[type=text],
.pe-cf7-wrap input[type=email],
.pe-cf7-wrap input[type=tel],
.pe-cf7-wrap textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius); font-family: inherit; font-size: 1rem;
    color: var(--pe-text); background: var(--pe-white);
    transition: border-color .15s, box-shadow .2s;
}
.pe-cf7-wrap input:focus, .pe-cf7-wrap textarea:focus {
    outline: none; border-color: var(--pe-red);
    box-shadow: 0 0 0 3px rgba(217,16,35,.12);
}
.pe-cf7-wrap textarea { min-height: 140px; resize: vertical; }
.pe-cf7-wrap .wpcf7-submit {
    background: var(--pe-red); color: var(--pe-white); border: 0;
    padding: 14px 28px; border-radius: var(--pe-radius);
    font-weight: 700; font-size: 1rem; cursor: pointer;
    transition: background .2s, transform .15s;
}
.pe-cf7-wrap .wpcf7-submit:hover {
    background: var(--pe-red-dark); transform: translateY(-1px);
}

/* LEGALES */
.pe-legal-content { max-width: 820px; margin: 56px auto; }
.pe-legal-content h2 { color: var(--pe-red); margin-top: 1.6em; }
.pe-legal-content h3 { color: var(--pe-text); margin-top: 1.4em; }
.pe-legal-content ul { padding-left: 1.4em; }
.pe-legal-content li { margin-bottom: .4em; }

/* =====================================================
   CATÁLOGO — Buscador + filtros + grid de cards (archive-pais)
===================================================== */
.pe-cat-search {
    max-width: 720px;
    margin: 0 auto 20px;
}
.pe-cat-search input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--pe-text);
    background: var(--pe-white);
    border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: border-color .15s, box-shadow .2s;
}
.pe-cat-search input:focus {
    outline: none;
    border-color: var(--pe-red);
    box-shadow: 0 0 0 3px rgba(217,16,35,.12);
}
.pe-cat-search input::placeholder { color: var(--pe-muted); }

.pe-cat-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0 auto 32px;
    max-width: 720px;
}
.pe-cat-chip {
    background: var(--pe-white);
    border: 1px solid var(--pe-border);
    color: var(--pe-text);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .88rem;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.pe-cat-chip:hover {
    border-color: var(--pe-red);
    color: var(--pe-red);
}
.pe-cat-chip.is-active {
    background: var(--pe-text);
    border-color: var(--pe-text);
    color: var(--pe-white);
}

.pe-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}
.pe-cat-card {
    background: var(--pe-white);
    border: 1px solid var(--pe-border);
    border-radius: var(--pe-radius);
    padding: 22px 14px 18px;
    text-align: center;
    text-decoration: none;
    color: var(--pe-text);
    transition: transform .15s, box-shadow .2s, border-color .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.pe-cat-card:hover {
    transform: translateY(-3px);
    border-color: var(--pe-gold);
    box-shadow: var(--pe-shadow);
    color: var(--pe-text);
}
.pe-cat-iso {
    font-family: var(--pe-font-head);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--pe-red);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: .02em;
}
.pe-cat-name {
    font-weight: 700;
    font-size: .95rem;
    color: var(--pe-text);
    line-height: 1.2;
}
.pe-cat-meta {
    font-size: .78rem;
    color: var(--pe-muted);
    margin-top: 6px;
}

/* UTILIDADES */
.pe-text-center { text-align: center; }
.pe-mt-32 { margin-top: 32px; }
.pe-mb-32 { margin-bottom: 32px; }

/* =====================================================
   BLOQUES RELACIONADOS (internal linking)
===================================================== */
.pe-related-block {
    margin: 48px 0 0;
    padding: 28px;
    background: #fff8ec;
    border: 1px solid var(--pe-gold-lt);
    border-radius: 12px;
}
.pe-related-block h2 {
    margin: 0 0 8px;
    color: var(--pe-red-dark);
    font-size: 1.35rem;
}
.pe-related-intro {
    margin: 0 0 16px;
    color: #4a4a4a;
    font-size: .95rem;
}
.pe-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    margin: 0;
}
.pe-related-grid-flags,
.pe-related-grid-fichas {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.pe-related-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--pe-white);
    border: 1px solid var(--pe-gold-lt);
    border-radius: 8px;
    text-decoration: none;
    color: var(--pe-text);
    transition: transform .12s, border-color .15s, box-shadow .15s;
}
.pe-related-card:hover {
    transform: translateY(-2px);
    border-color: var(--pe-gold);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.15);
    color: var(--pe-text);
}
.pe-related-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.pe-related-icon-large { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.pe-related-title {
    flex: 1;
    font-weight: 600;
    font-size: .92rem;
    line-height: 1.3;
}
.pe-related-arrow {
    color: var(--pe-gold);
    font-weight: 700;
    flex-shrink: 0;
}
.pe-related-tipo {
    display: block;
    font-size: .78rem;
    color: #707070;
    font-weight: 500;
    margin-top: 2px;
}
.pe-related-card.pe-related-flag,
.pe-related-card.pe-related-ficha {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.pe-related-card.pe-related-flag .pe-related-title,
.pe-related-card.pe-related-ficha .pe-related-title {
    font-size: .88rem;
}
@media (max-width: 600px) {
    .pe-related-block { padding: 20px 16px; }
    .pe-related-grid { grid-template-columns: 1fr; }
    .pe-related-grid-flags,
    .pe-related-grid-fichas { grid-template-columns: 1fr 1fr; }
}

/* =====================================================
   HUBS REGIONALES (countries y fichas dentro del hub)
===================================================== */
.pe-hub-paises, .pe-hub-fichas {
    margin: 56px 0;
}
.pe-hub-paises h2, .pe-hub-fichas h2 {
    font-size: 1.7rem;
    color: var(--pe-red-dark);
    margin: 0 0 8px;
}
.pe-hub-intro {
    color: #4a4a4a;
    margin: 0 0 24px;
    font-size: 1rem;
    line-height: 1.6;
}
.pe-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.pe-hub-pais-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 14px;
    background: var(--pe-white);
    border: 1.5px solid var(--pe-gold-lt);
    border-radius: 10px;
    text-decoration: none;
    color: var(--pe-text);
    transition: transform .15s, border-color .15s, box-shadow .15s;
    text-align: center;
}
.pe-hub-pais-card:hover {
    transform: translateY(-3px);
    border-color: var(--pe-gold);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.18);
    color: var(--pe-text);
}
.pe-hub-flag {
    font-size: 2.4rem;
    line-height: 1;
}
.pe-hub-flag-large {
    font-size: 2.2rem;
    line-height: 1;
    flex-shrink: 0;
}
.pe-hub-pais-nombre {
    font-weight: 700;
    font-size: .95rem;
    margin-top: 2px;
}
.pe-hub-iso {
    font-size: .72rem;
    color: #707070;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.pe-hub-sedes {
    font-size: .75rem;
    color: var(--pe-red-dark);
    font-weight: 600;
    background: #fff8ec;
    padding: 2px 8px;
    border-radius: 999px;
}
.pe-hub-fichas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}
.pe-hub-ficha-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--pe-white);
    border: 1px solid var(--pe-gold-lt);
    border-radius: 8px;
    text-decoration: none;
    color: var(--pe-text);
    transition: transform .12s, border-color .15s;
}
.pe-hub-ficha-card:hover {
    transform: translateY(-2px);
    border-color: var(--pe-gold);
    color: var(--pe-text);
}
.pe-hub-ficha-card.is-suspended {
    background: #f5f5f5;
    opacity: .7;
}
.pe-hub-ficha-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.pe-hub-ficha-titulo {
    font-weight: 700;
    font-size: .92rem;
    line-height: 1.3;
}
.pe-hub-ficha-meta {
    font-size: .78rem;
    color: #707070;
}
.pe-hub-suspendida-badge {
    display: inline-block;
    background: #c8a02a;
    color: var(--pe-white);
    padding: 1px 8px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    margin-top: 4px;
    align-self: flex-start;
}

/* FAQ con details/summary nativo */
.pe-faq-list {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pe-faq-item {
    background: var(--pe-white);
    border: 1px solid var(--pe-gold-lt);
    border-radius: 8px;
    overflow: hidden;
}
.pe-faq-item summary {
    padding: 14px 18px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 40px;
    color: var(--pe-text);
    line-height: 1.4;
}
.pe-faq-item summary::-webkit-details-marker { display: none; }
.pe-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--pe-red-dark);
    font-weight: 400;
    line-height: 1;
}
.pe-faq-item[open] summary::after { content: '−'; }
.pe-faq-item[open] summary { border-bottom: 1px solid var(--pe-gold-lt); }
.pe-faq-answer {
    padding: 14px 18px;
    color: #4a4a4a;
    line-height: 1.6;
}

/* =====================================================
   "EXPLORAR POR REGIÓN" — Home grid de hubs
===================================================== */
.pe-hubs-grid-section {
    margin: 64px 0;
}
.pe-hubs-grid-section h2 {
    font-size: 2rem;
    color: var(--pe-red-dark);
    margin: 0 0 8px;
    text-align: center;
}
.pe-hubs-intro {
    color: #4a4a4a;
    margin: 0 auto 32px;
    text-align: center;
    max-width: 720px;
    line-height: 1.6;
}
.pe-hubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.pe-hub-region-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 20px;
    background: linear-gradient(135deg, var(--pe-white) 0%, #fff8ec 100%);
    border: 2px solid var(--pe-gold-lt);
    border-radius: 12px;
    text-decoration: none;
    color: var(--pe-text);
    transition: transform .15s, border-color .15s, box-shadow .2s;
}
.pe-hub-region-card:hover {
    transform: translateY(-4px);
    border-color: var(--pe-gold);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.2);
    color: var(--pe-text);
}
.pe-hub-region-icon {
    font-size: 2.6rem;
    line-height: 1;
}
.pe-hub-region-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pe-red-dark);
}
.pe-hub-region-desc {
    font-size: .88rem;
    color: #4a4a4a;
    line-height: 1.45;
    flex: 1;
}
.pe-hub-region-arrow {
    font-size: .85rem;
    color: var(--pe-gold);
    font-weight: 700;
    margin-top: 6px;
}

/* Mini grid de regiones (en fichas/trámites) */
.pe-related-regiones {
    background: #f8f0d9 !important;
}
.pe-regiones-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}
.pe-region-mini-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--pe-white);
    border: 1px solid var(--pe-gold-lt);
    border-radius: 6px;
    text-decoration: none;
    color: var(--pe-text);
    font-size: .9rem;
    font-weight: 600;
    transition: border-color .12s, transform .12s;
}
.pe-region-mini-card:hover {
    border-color: var(--pe-gold);
    transform: translateY(-1px);
    color: var(--pe-text);
}
.pe-region-mini-icon {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

/* SUBMENÚ "REGIONES" EN HEADER */
.pe-nav-menu .menu-item-has-children {
    position: relative;
}
.pe-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--pe-white);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s, visibility .18s, transform .18s;
    z-index: 100;
}
.pe-nav-menu .menu-item-has-children:hover > .sub-menu,
.pe-nav-menu .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.pe-nav-menu .sub-menu li {
    list-style: none;
    margin: 0;
}
.pe-nav-menu .sub-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--pe-text);
    font-size: .92rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 0;
    text-decoration: none;
}
.pe-nav-menu .sub-menu a:hover {
    background: #fff8ec;
    color: var(--pe-red-dark);
}

@media (max-width: 980px) {
    .pe-nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0,0,0,.15);
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        min-width: auto;
    }
    .pe-nav-menu .sub-menu a {
        color: var(--pe-white);
        padding: 12px 36px;
        font-size: .88rem;
    }
    .pe-nav-menu .sub-menu a:hover {
        background: rgba(0,0,0,.25);
        color: var(--pe-white);
    }
}

@media (max-width: 600px) {
    .pe-hubs-grid { grid-template-columns: 1fr; }
    .pe-regiones-mini-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   ENLACE BUSCAR CONSULADO EN EL MENÚ
===================================================== */
.pe-nav-menu .pe-nav-search {
    color: var(--pe-red-dark) !important;
    font-weight: 700;
}
.pe-nav-menu .pe-nav-search:hover {
    color: var(--pe-red) !important;
}
@media (max-width: 980px) {
    .pe-nav-menu .pe-nav-search {
        background: var(--pe-gold);
        color: var(--pe-text) !important;
        font-weight: 700;
        text-align: center;
        margin-top: 4px;
        border-bottom: 0;
    }
    .pe-nav-menu .pe-nav-search:hover {
        background: var(--pe-gold-lt);
        color: var(--pe-text) !important;
    }
}
