/*
Theme Name:   TramiteConsular
Theme URI:    https://tramiteconsular.es
Description:  Tema hijo de ASAP para tramiteconsular.es
Author:       SeoFune
Author URI:   https://seofune.es
Template:     asap by SeoFune
Version:      1.0.0
Text Domain:  tramiteconsular
*/

/* =====================================================
   RESET & BASE
===================================================== */
.tc-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   TOPBAR
===================================================== */
.tc-topbar {
    background: var(--tc-navy);
    color: rgba(255,255,255,.72);
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.tc-topbar .tc-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.tc-topbar a { color: rgba(255,255,255,.72); }
.tc-topbar a:hover { color: var(--tc-gold-lt); }
.tc-topbar-left { display: flex; gap: 20px; align-items: center; }
.tc-topbar-right { display: flex; gap: 16px; align-items: center; }
.tc-topbar-flag { font-size: 15px; }

/* =====================================================
   HEADER / NAV
===================================================== */
.tc-header {
    background: var(--tc-white);
    border-bottom: 1px solid var(--tc-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 8px rgba(13,31,60,.08);
}
.tc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 32px;
}

/* Logo */
.tc-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.tc-logo-icon {
    width: 38px;
    height: 38px;
    background: var(--tc-navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}
.tc-logo-text { line-height: 1; }
.tc-logo-text strong {
    display: block;
    font-family: var(--tc-font-head);
    font-size: 18px;
    color: var(--tc-navy);
    font-weight: normal;
    letter-spacing: -.3px;
}
.tc-logo-text span {
    display: block;
    font-size: 11px;
    color: var(--tc-muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-top: 1px;
}

/* Nav principal */
.tc-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.tc-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2px;
}
.tc-nav ul li { position: relative; }
.tc-nav ul li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--tc-text);
    border-radius: var(--tc-radius);
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.tc-nav ul li > a:hover,
.tc-nav ul li.current-menu-item > a {
    background: var(--tc-offwhite);
    color: var(--tc-navy);
}
/* Chevron indicator */
.tc-nav ul li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: .55;
    transition: transform .2s;
}
.tc-nav ul li.menu-item-has-children:hover > a::after {
    transform: rotate(-135deg) translateY(-2px);
}

/* Mega dropdown */
.tc-nav ul li .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--tc-white);
    border: 1px solid var(--tc-border);
    border-radius: 10px;
    box-shadow: var(--tc-shadow-lg);
    padding: 12px;
    min-width: 220px;
    flex-direction: column;
    gap: 2px;
    z-index: 200;
}
.tc-nav ul li:hover > .sub-menu { display: flex; }
.tc-nav ul li .sub-menu li a {
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 400;
    border-radius: 6px;
    color: var(--tc-text);
    white-space: nowrap;
    transition: background .12s, color .12s;
}
.tc-nav ul li .sub-menu li a:hover {
    background: var(--tc-offwhite);
    color: var(--tc-navy);
}

/* CTA en nav */
.tc-nav-cta {
    margin-left: auto;
    flex-shrink: 0;
}
.tc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: var(--tc-radius);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--tc-font-body);
    cursor: pointer;
    transition: background .15s, transform .1s;
    text-decoration: none;
    border: none;
    line-height: 1;
}
.tc-btn-primary {
    background: var(--tc-gold);
    color: var(--tc-navy);
}
.tc-btn-primary:hover {
    background: var(--tc-gold-lt);
    color: var(--tc-navy);
    transform: translateY(-1px);
}
.tc-btn-outline {
    background: transparent;
    color: var(--tc-navy);
    border: 1.5px solid var(--tc-border);
}
.tc-btn-outline:hover {
    border-color: var(--tc-navy);
    background: var(--tc-offwhite);
}

/* Hamburger mobile */
.tc-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.tc-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--tc-navy);
    border-radius: 2px;
    transition: all .2s;
}

/* =====================================================
   HERO HOME
===================================================== */
.tc-hero {
    background: var(--tc-navy);
    padding: 80px 0 72px;
    position: relative;
    overflow: hidden;
}
.tc-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -80px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,.12) 0%, transparent 70%);
    pointer-events: none;
}
.tc-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,58,110,.5) 0%, transparent 70%);
    pointer-events: none;
}
.tc-hero .tc-container { position: relative; z-index: 1; }
.tc-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,168,76,.15);
    border: 1px solid rgba(201,168,76,.3);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--tc-gold-lt);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 22px;
}
.tc-hero h1 {
    font-family: var(--tc-font-head);
    font-size: clamp(32px, 5vw, 54px);
    color: var(--tc-white);
    line-height: 1.15;
    margin: 0 0 20px;
    font-weight: normal;
    max-width: 680px;
}
.tc-hero h1 em {
    font-style: italic;
    color: var(--tc-gold-lt);
}
.tc-hero-sub {
    font-size: 17px;
    color: rgba(255,255,255,.72);
    max-width: 560px;
    line-height: 1.7;
    margin: 0 0 36px;
}
.tc-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.tc-btn-hero {
    padding: 13px 28px;
    font-size: 15px;
}
.tc-hero-trust {
    margin-top: 48px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.tc-hero-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.6);
}
.tc-hero-trust-item strong {
    color: var(--tc-white);
    font-weight: 700;
}
.tc-hero-trust-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
}

/* =====================================================
   BUSCADOR HOME
===================================================== */
.tc-search-bar {
    background: var(--tc-white);
    border-radius: 10px;
    box-shadow: var(--tc-shadow-lg);
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    max-width: 620px;
    border: 1.5px solid var(--tc-border);
}
.tc-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 18px;
    font-size: 15px;
    font-family: var(--tc-font-body);
    color: var(--tc-text);
    background: transparent;
}
.tc-search-bar input::placeholder { color: var(--tc-muted); }
.tc-search-bar button {
    background: var(--tc-navy);
    color: var(--tc-white);
    border: none;
    padding: 0 22px;
    height: 100%;
    min-height: 50px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--tc-font-body);
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.tc-search-bar button:hover { background: var(--tc-navy-soft); }

/* =====================================================
   SECCIÓN PAÍSES
===================================================== */
.tc-section { padding: 72px 0; }
.tc-section-alt { background: var(--tc-offwhite); }
.tc-section-head {
    margin-bottom: 40px;
}
.tc-section-label {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tc-gold);
    margin-bottom: 10px;
}
.tc-section-head h2 {
    font-family: var(--tc-font-head);
    font-size: clamp(26px, 4vw, 38px);
    color: var(--tc-navy);
    margin: 0 0 10px;
    font-weight: normal;
    line-height: 1.2;
}
.tc-section-head p {
    font-size: 16px;
    color: var(--tc-muted);
    margin: 0;
    max-width: 560px;
    line-height: 1.65;
}

/* Grid países */
.tc-paises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}
.tc-pais-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px 14px;
    background: var(--tc-white);
    border: 1.5px solid var(--tc-border);
    border-radius: 10px;
    text-align: center;
    transition: border-color .15s, box-shadow .15s, transform .15s;
    cursor: pointer;
}
.tc-pais-card:hover {
    border-color: var(--tc-navy);
    box-shadow: var(--tc-shadow);
    transform: translateY(-2px);
    color: var(--tc-navy);
}
.tc-flag { font-size: 28px; line-height: 1; }
.tc-pais-name { font-size: 13px; font-weight: 700; color: var(--tc-navy); }

/* =====================================================
   GRID TRÁMITES
===================================================== */
.tc-tramites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.tc-tramite-card {
    background: var(--tc-white);
    border: 1.5px solid var(--tc-border);
    border-radius: 10px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .15s, box-shadow .15s;
}
.tc-tramite-card:hover {
    border-color: var(--tc-navy);
    box-shadow: var(--tc-shadow);
}
.tc-tramite-icon {
    width: 42px;
    height: 42px;
    background: rgba(13,31,60,.07);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.tc-tramite-card h3 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--tc-navy);
    margin: 0;
    line-height: 1.3;
}
.tc-tramite-card p {
    font-size: 13.5px;
    color: var(--tc-muted);
    margin: 0;
    line-height: 1.55;
}
.tc-tramite-card .tc-card-link {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--tc-gold);
    display: flex;
    align-items: center;
    gap: 4px;
}
.tc-tramite-card .tc-card-link::after {
    content: '→';
    transition: transform .15s;
}
.tc-tramite-card:hover .tc-card-link::after { transform: translateX(3px); }

/* =====================================================
   SECCIÓN CÓMO FUNCIONA
===================================================== */
.tc-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 32px;
    counter-reset: tc-step;
}
.tc-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    counter-increment: tc-step;
    position: relative;
}
.tc-step::before {
    content: counter(tc-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tc-navy);
    color: var(--tc-white);
    font-family: var(--tc-font-head);
    font-size: 18px;
    flex-shrink: 0;
}
.tc-step h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--tc-navy);
    margin: 0;
}
.tc-step p {
    font-size: 14px;
    color: var(--tc-muted);
    margin: 0;
    line-height: 1.6;
}

/* =====================================================
   BANNER CTA
===================================================== */
.tc-cta-banner {
    background: var(--tc-navy);
    padding: 64px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tc-cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(255,255,255,.02) 40px,
        rgba(255,255,255,.02) 41px
    );
}
.tc-cta-banner .tc-container { position: relative; }
.tc-cta-banner h2 {
    font-family: var(--tc-font-head);
    font-size: clamp(26px, 4vw, 40px);
    color: var(--tc-white);
    margin: 0 0 12px;
    font-weight: normal;
}
.tc-cta-banner p {
    color: rgba(255,255,255,.7);
    font-size: 16px;
    margin: 0 auto 32px;
    max-width: 500px;
    line-height: 1.65;
}
.tc-cta-banner .tc-btn-primary { font-size: 15px; padding: 14px 32px; }

/* =====================================================
   FOOTER
===================================================== */
.tc-footer {
    background: #070f1e;
    color: rgba(255,255,255,.65);
    padding: 64px 0 0;
    font-size: 14px;
}
.tc-footer-grid {
    display: grid;
    grid-template-columns: 260px repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.tc-footer-brand {}
.tc-footer-brand .tc-logo-text strong { color: var(--tc-white); }
.tc-footer-brand .tc-logo-text span { color: rgba(255,255,255,.4); }
.tc-footer-brand p {
    margin: 16px 0 0;
    font-size: 13.5px;
    color: rgba(255,255,255,.5);
    line-height: 1.65;
}
.tc-footer-col h4 {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tc-gold);
    margin: 0 0 16px;
}
.tc-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.tc-footer-col ul li a {
    color: rgba(255,255,255,.6);
    font-size: 13.5px;
    transition: color .12s;
}
.tc-footer-col ul li a:hover { color: var(--tc-white); }
.tc-footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: rgba(255,255,255,.35);
}
.tc-footer-bottom a { color: rgba(255,255,255,.45); }
.tc-footer-bottom a:hover { color: var(--tc-white); }
.tc-footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* =====================================================
   HUB DE PAÍS
===================================================== */
.tc-hero-pais { padding: 64px 0 60px; }
.tc-hero-pais-inner {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}
.tc-hero-pais-flag {
    font-size: 72px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,.25));
}

/* Grid fichas de consulado */
.tc-fichas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.tc-ficha-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px;
    background: var(--tc-white);
    border: 1.5px solid var(--tc-border);
    border-radius: 10px;
    transition: border-color .15s, box-shadow .15s, transform .15s;
    cursor: pointer;
}
.tc-ficha-card:hover {
    border-color: var(--tc-navy);
    box-shadow: var(--tc-shadow);
    transform: translateY(-2px);
}
.tc-ficha-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.tc-ficha-tipo {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--tc-gold);
    background: rgba(201,168,76,.1);
    padding: 3px 8px;
    border-radius: 4px;
}
.tc-ficha-ciudad {
    font-size: 12px;
    color: var(--tc-muted);
}
.tc-ficha-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--tc-navy);
    margin: 0;
    line-height: 1.35;
}
.tc-ficha-dir,
.tc-ficha-tel {
    font-size: 13px;
    color: var(--tc-muted);
    margin: 0;
    line-height: 1.45;
}

/* Layout editorial (contenido + sidebar) */
.tc-prose-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}
.tc-prose {
    font-size: 16px;
    line-height: 1.75;
    color: var(--tc-text);
}
.tc-prose h2 {
    font-family: var(--tc-font-head);
    font-size: 24px;
    color: var(--tc-navy);
    margin: 40px 0 12px;
    font-weight: normal;
}
.tc-prose h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--tc-navy);
    margin: 32px 0 10px;
}
.tc-prose p { margin: 0 0 18px; }
.tc-prose ul { padding-left: 20px; margin: 0 0 18px; }
.tc-prose li { margin-bottom: 6px; }
.tc-prose a { color: var(--tc-navy); text-decoration: underline; text-underline-offset: 3px; }
.tc-prose a:hover { color: var(--tc-gold); }

/* Sidebar */
.tc-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.tc-sidebar-box {
    background: var(--tc-offwhite);
    border: 1.5px solid var(--tc-border);
    border-radius: 10px;
    padding: 20px;
}
.tc-sidebar-box h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--tc-gold);
    margin: 0 0 16px;
}
.tc-sidebar-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    border-bottom: 1px solid var(--tc-border);
}
.tc-sidebar-stat:last-child { border-bottom: none; padding-bottom: 0; }
.tc-sidebar-stat-label { font-size: 12px; color: var(--tc-muted); }
.tc-sidebar-stat strong { font-size: 14px; color: var(--tc-navy); }
.tc-sidebar-aviso {
    background: rgba(201,168,76,.08);
    border-color: rgba(201,168,76,.3);
}
.tc-sidebar-aviso p {
    font-size: 13px;
    color: var(--tc-text);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 900px) {
    .tc-prose-grid { grid-template-columns: 1fr; }
    .tc-sidebar { position: static; }
}
@media (max-width: 600px) {
    .tc-hero-pais-flag { font-size: 48px; }
    .tc-hero-pais-inner { flex-direction: column; gap: 16px; }
    .tc-fichas-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   BREADCRUMB
===================================================== */
.tc-breadcrumb {
    background: var(--tc-offwhite);
    border-bottom: 1px solid var(--tc-border);
    padding: 10px 0;
    font-size: 13px;
    color: var(--tc-muted);
}
.tc-breadcrumb a { color: var(--tc-muted); }
.tc-breadcrumb a:hover { color: var(--tc-navy); }
.tc-bc-sep { opacity: .5; margin: 0 4px; }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 960px) {
    .tc-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .tc-nav ul { display: none; }
    .tc-hamburger { display: flex; }
    .tc-nav-cta { display: none; }
    .tc-hero { padding: 56px 0 52px; }
    .tc-section { padding: 52px 0; }
    .tc-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .tc-paises-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }

    /* Mobile nav toggle */
    .tc-nav.is-open ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--tc-white);
        padding: 24px;
        overflow-y: auto;
        z-index: 999;
        gap: 4px;
    }
    .tc-nav.is-open ul li > a { padding: 12px 16px; font-size: 16px; }
    .tc-nav.is-open ul .sub-menu {
        display: flex;
        position: static;
        box-shadow: none;
        border: none;
        padding: 4px 0 4px 16px;
        border-left: 2px solid var(--tc-border);
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .tc-footer-grid { grid-template-columns: 1fr; }
    .tc-hero-trust { flex-direction: column; align-items: flex-start; }
    .tc-tramites-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   PLANTILLA TRÁMITE
===================================================== */
.tc-hero-tramite { padding: 60px 0 56px; }
.tc-hero-tramite-inner {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}
.tc-tramite-hero-icon {
    font-size: 64px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,.2));
}
.tc-hero-tramite-content { flex: 1; }

/* Métricas hero */
.tc-tramite-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.tc-tramite-meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.tc-tramite-meta-label { font-size: 12px; color: rgba(255,255,255,.55); }
.tc-tramite-meta-item strong { font-size: 15px; color: var(--tc-white); font-weight: 700; }

/* Documentación */
.tc-docs-box {
    background: rgba(13,31,60,.04);
    border: 1.5px solid var(--tc-border);
    border-left: 4px solid var(--tc-navy);
    border-radius: 0 10px 10px 0;
    padding: 24px 28px;
    margin-bottom: 8px;
}
.tc-docs-box h2 {
    font-family: var(--tc-font-head);
    font-size: 22px;
    color: var(--tc-navy);
    font-weight: normal;
    margin: 0 0 16px;
}
.tc-docs-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tc-docs-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14.5px;
    color: var(--tc-text);
    line-height: 1.5;
}
.tc-docs-list li::before {
    content: '✓';
    color: var(--tc-navy);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.tc-docs-nota {
    font-size: 13px;
    color: var(--tc-muted);
    margin: 0;
    line-height: 1.5;
    padding-top: 12px;
    border-top: 1px solid var(--tc-border);
}

/* Pasos */
.tc-pasos {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.tc-pasos::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: var(--tc-border);
}
.tc-paso {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 0 0 28px;
    position: relative;
}
.tc-paso:last-child { padding-bottom: 0; }
.tc-paso-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tc-navy);
    color: var(--tc-white);
    font-family: var(--tc-font-head);
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--tc-white);
}
.tc-paso-content { flex: 1; padding-top: 8px; }
.tc-paso-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--tc-navy);
    margin: 0 0 6px;
}
.tc-paso-content p {
    font-size: 14.5px;
    color: var(--tc-muted);
    margin: 0;
    line-height: 1.6;
}

/* FAQ */
.tc-faq { display: flex; flex-direction: column; gap: 8px; }
.tc-faq-item {
    border: 1.5px solid var(--tc-border);
    border-radius: 8px;
    overflow: hidden;
}
.tc-faq-q {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--tc-navy);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
    transition: background .15s;
}
.tc-faq-q:hover { background: var(--tc-offwhite); }
.tc-faq-q::-webkit-details-marker { display: none; }
.tc-faq-q::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--tc-muted);
    flex-shrink: 0;
    transition: transform .2s;
}
details[open] .tc-faq-q::after { transform: rotate(45deg); }
.tc-faq-a {
    padding: 0 20px 16px;
    font-size: 14.5px;
    color: var(--tc-muted);
    line-height: 1.65;
}

/* Archive trámites */
.tc-archive-tramites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

@media (max-width: 600px) {
    .tc-hero-tramite-inner { flex-direction: column; gap: 16px; }
    .tc-tramite-hero-icon { font-size: 48px; }
    .tc-tramite-meta { gap: 16px; }
}

/* =====================================================
   PLANTILLA FICHA CONSULADO
===================================================== */
.tc-hero-ficha { padding: 56px 0 52px; }
.tc-hero-ficha-inner {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}
.tc-ficha-hero-flag {
    font-size: 64px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,.25));
}

/* Layout ficha (2 columnas) */
.tc-ficha-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}
.tc-ficha-section-title {
    font-family: var(--tc-font-head);
    font-size: 22px;
    color: var(--tc-navy);
    font-weight: normal;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--tc-border);
}

/* Lista de contacto */
.tc-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.tc-contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--tc-border);
}
.tc-contact-item:last-child { border-bottom: none; }
.tc-contact-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.tc-contact-item div { display: flex; flex-direction: column; gap: 3px; }
.tc-contact-label { font-size: 12px; color: var(--tc-muted); text-transform: uppercase; letter-spacing: .5px; }
.tc-contact-item strong { font-size: 15px; color: var(--tc-navy); font-weight: 700; line-height: 1.4; }
.tc-contact-item strong a { color: var(--tc-navy); text-decoration: underline; text-underline-offset: 3px; }
.tc-contact-item strong a:hover { color: var(--tc-gold); }
.tc-contact-link { font-size: 13px; color: var(--tc-gold); margin-top: 2px; }

/* Servicios */
.tc-servicios-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.tc-servicios-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--tc-text);
    line-height: 1.4;
}
.tc-servicios-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tc-gold);
    flex-shrink: 0;
}

/* Box cita previa */
.tc-cita-box {
    background: rgba(13,31,60,.04);
    border: 1.5px solid rgba(13,31,60,.12);
    border-radius: 10px;
    padding: 24px;
    margin-top: 28px;
}
.tc-cita-box h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--tc-navy);
    margin: 0 0 10px;
}
.tc-cita-box p {
    font-size: 14.5px;
    color: var(--tc-muted);
    margin: 0;
    line-height: 1.6;
}

/* Mapa */
.tc-mapa {
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid var(--tc-border);
}
.tc-mapa-link {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--tc-navy);
    padding: 10px;
    background: var(--tc-offwhite);
    border-top: 1px solid var(--tc-border);
}
.tc-mapa-link:hover { color: var(--tc-gold); background: var(--tc-white); }

@media (max-width: 900px) {
    .tc-ficha-grid { grid-template-columns: 1fr; }
    .tc-ficha-aside { order: -1; }
}
@media (max-width: 600px) {
    .tc-hero-ficha-inner { flex-direction: column; gap: 16px; }
    .tc-ficha-hero-flag { font-size: 48px; }
    .tc-servicios-list { grid-template-columns: 1fr; }
}

/* =====================================================
   PÁGINAS LEGALES
===================================================== */
.tc-legal-hero {
    background: var(--tc-navy);
    padding: 48px 0 44px;
}
.tc-legal-hero .tc-section-label { display: block; margin-bottom: 8px; }
.tc-legal-hero h1 {
    font-family: var(--tc-font-head);
    font-size: clamp(28px, 4vw, 40px);
    color: var(--tc-white);
    font-weight: normal;
    margin: 0 0 8px;
}
.tc-legal-hero p { color: rgba(255,255,255,.55); font-size: 14px; margin: 0; }
.tc-legal-hero-aviso { background: #5a1a1a; }

/* Layout legal (índice + contenido) */
.tc-legal-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 56px;
    align-items: start;
}

/* Índice lateral */
.tc-legal-index {
    position: sticky;
    top: 88px;
    background: var(--tc-offwhite);
    border: 1.5px solid var(--tc-border);
    border-radius: 10px;
    padding: 20px;
}
.tc-legal-index h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--tc-gold);
    margin: 0 0 14px;
}
.tc-legal-index ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tc-legal-index ul li a {
    display: block;
    padding: 7px 10px;
    font-size: 13px;
    color: var(--tc-muted);
    border-radius: 6px;
    line-height: 1.4;
    transition: background .12s, color .12s;
}
.tc-legal-index ul li a:hover {
    background: var(--tc-white);
    color: var(--tc-navy);
}

/* Contenido legal */
.tc-legal-content { max-width: 720px; }
.tc-legal-content h2 {
    font-family: var(--tc-font-head);
    font-size: 22px;
    color: var(--tc-navy);
    font-weight: normal;
    margin: 40px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--tc-border);
}
.tc-legal-content h2:first-child { margin-top: 0; }
.tc-legal-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--tc-navy);
    margin: 28px 0 10px;
}
.tc-legal-content p {
    font-size: 15px;
    color: var(--tc-text);
    line-height: 1.75;
    margin: 0 0 16px;
}
.tc-legal-content ul {
    padding-left: 20px;
    margin: 0 0 18px;
}
.tc-legal-content ul li {
    font-size: 15px;
    color: var(--tc-text);
    line-height: 1.65;
    margin-bottom: 7px;
}
.tc-legal-content a {
    color: var(--tc-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.tc-legal-content a:hover { color: var(--tc-gold); }
.tc-legal-content code {
    font-size: 13px;
    background: var(--tc-offwhite);
    border: 1px solid var(--tc-border);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: var(--tc-font-mono, monospace);
}

/* Box informativo */
.tc-legal-box {
    background: var(--tc-offwhite);
    border: 1.5px solid var(--tc-border);
    border-left: 4px solid var(--tc-navy);
    border-radius: 0 8px 8px 0;
    padding: 18px 22px;
    margin: 0 0 20px;
}
.tc-legal-box p {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.6;
}
.tc-legal-box p:last-child { margin: 0; }
.tc-legal-box-highlight {
    border-left-color: var(--tc-gold);
    background: rgba(201,168,76,.06);
}
.tc-legal-box-highlight ul {
    padding-left: 0;
    list-style: none;
    margin: 0 0 8px;
}
.tc-legal-box-highlight ul li { margin-bottom: 8px; font-size: 14.5px; }

/* Banner de aviso */
.tc-legal-aviso-banner {
    background: #fff8e1;
    border: 1.5px solid #f9c74f;
    border-left: 4px solid #f9c74f;
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
    margin-bottom: 36px;
}
.tc-legal-aviso-banner strong {
    display: block;
    font-size: 15px;
    color: #7a5c00;
    margin-bottom: 8px;
}
.tc-legal-aviso-banner p {
    margin: 0;
    font-size: 14px;
    color: #5a4200;
    line-height: 1.6;
}
.tc-legal-aviso-banner-lg { padding: 24px 28px; }
.tc-legal-aviso-banner-lg strong { font-size: 17px; margin-bottom: 12px; }

/* Tabla de cookies */
.tc-cookies-table-wrap {
    overflow-x: auto;
    margin: 0 0 24px;
    border-radius: 10px;
    border: 1.5px solid var(--tc-border);
}
.tc-cookies-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 560px;
}
.tc-cookies-table thead {
    background: var(--tc-navy);
    color: var(--tc-white);
}
.tc-cookies-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}
.tc-cookies-table tbody tr { border-bottom: 1px solid var(--tc-border); }
.tc-cookies-table tbody tr:last-child { border-bottom: none; }
.tc-cookies-table tbody tr:nth-child(even) { background: var(--tc-offwhite); }
.tc-cookies-table tbody td {
    padding: 11px 16px;
    color: var(--tc-text);
    line-height: 1.45;
    vertical-align: top;
}

@media (max-width: 860px) {
    .tc-legal-layout { grid-template-columns: 1fr; gap: 32px; }
    .tc-legal-index { position: static; }
}

/* =====================================================
   PÁGINA DE CONTACTO
===================================================== */
.tc-contacto-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}
.tc-contacto-aside { position: sticky; top: 88px; }

/* Estilos para Contact Form 7 u otros plugins de formulario */
.tc-contacto-form-wrap .wpcf7-form label,
.tc-contacto-form-wrap label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--tc-navy);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.tc-contacto-form-wrap .wpcf7-form input[type="text"],
.tc-contacto-form-wrap .wpcf7-form input[type="email"],
.tc-contacto-form-wrap .wpcf7-form textarea,
.tc-contacto-form-wrap input[type="text"],
.tc-contacto-form-wrap input[type="email"],
.tc-contacto-form-wrap textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--tc-font-body);
    color: var(--tc-text);
    background: var(--tc-white);
    border: 1.5px solid var(--tc-border);
    border-radius: var(--tc-radius);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.tc-contacto-form-wrap .wpcf7-form input:focus,
.tc-contacto-form-wrap .wpcf7-form textarea:focus,
.tc-contacto-form-wrap input:focus,
.tc-contacto-form-wrap textarea:focus {
    border-color: var(--tc-navy);
    box-shadow: 0 0 0 3px rgba(13,31,60,.08);
}
.tc-contacto-form-wrap .wpcf7-form textarea,
.tc-contacto-form-wrap textarea {
    min-height: 160px;
    resize: vertical;
}
.tc-contacto-form-wrap .wpcf7-form p,
.tc-contacto-form-wrap .form-group {
    margin-bottom: 20px;
}
.tc-contacto-form-wrap .wpcf7-form input[type="submit"],
.tc-contacto-form-wrap input[type="submit"],
.tc-contacto-form-wrap button[type="submit"] {
    background: var(--tc-navy);
    color: var(--tc-white);
    border: none;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--tc-font-body);
    border-radius: var(--tc-radius);
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.tc-contacto-form-wrap .wpcf7-form input[type="submit"]:hover,
.tc-contacto-form-wrap input[type="submit"]:hover {
    background: var(--tc-navy-soft);
    transform: translateY(-1px);
}
.tc-contacto-form-wrap .wpcf7-response-output {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}
.tc-contacto-form-wrap .wpcf7-mail-sent-ok {
    background: #eafbee;
    border: 1.5px solid #22863a;
    color: #22863a;
}
.tc-contacto-form-wrap .wpcf7-mail-sent-ng,
.tc-contacto-form-wrap .wpcf7-validation-errors {
    background: #fdedec;
    border: 1.5px solid #a93226;
    color: #a93226;
}

@media (max-width: 860px) {
    .tc-contacto-grid { grid-template-columns: 1fr; }
    .tc-contacto-aside { position: static; }
}