/*
Theme Name: Carta de Renuncia USA
Theme URI: https://cartaderenuncia.us
Author: MiniMax Dev Team
Author URI: https://minimax.local
Description: Tema personalizado para el sitio Carta de Renuncia USA. Clon del sitio HTML estático original con todas sus páginas y estilos preservados. Diseño, colores y estructura visual idénticos al original.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carta-renuncia-usa
*/

/* ============================================
   COLOR PALETTE - Extraído del sitio original
   ============================================ */
:root {
    --color-primary: #002868;
    --color-secondary: #0f3753;
    --color-accent: #0079d6;
    --color-accent-light: #0183e4;
    --color-accent-hover: #0183e499;
    --color-text: #0a0a0a;
    --color-text-muted: #585858;
    --color-bg: #ffffff;
    --color-bg-light: #f8f8f8;
    --color-white: #ffffff;
    --color-border: #0f3753;
    --color-footer-bg: #002868;
    --color-header-bg: #002868;
    --color-overlay: #0028681A;
    --font-primary: 'Poppins', sans-serif;
    --font-headings: 'Rubik', sans-serif;
    --max-width-content: 1100px;
    --max-width-header: 1280px;
    --max-width-single: 980px;
}

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
    font-weight: 300;
    line-height: 1.6;
    font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-accent);
}

h1 { font-size: 38px; }
h2 { font-size: 32px; }
h3 { font-size: 28px; }
h4 { font-size: 23px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

a {
    color: var(--color-accent-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent-hover);
}

p, .the-content ul li, .the-content ol li {
    color: var(--color-text);
    font-size: 18px;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--color-header-bg);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 3px solid #00aaff;
}

.site-header-content {
    max-width: var(--max-width-header);
    width: 100%;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-logo a {
    display: inline-block;
}

.site-logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

/* ============================================
   HAMBURGER MENU — Checkbox Hack
   ============================================ */

/* Hidden checkbox (the toggle) */
.cru-hamburger-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Hamburger button */
.cru-hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1002;
    background: transparent;
    border: 2px solid #002868;
    border-radius: 4px;
    padding: 0;
    flex-shrink: 0;
}

.cru-hamburger-btn:hover {
    background: rgba(0,40,104,0.1);
    border-color: #002868;
}

/* Hamburger icon — 3 lines using pseudo elements */
.cru-hamburger-icon {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    background: #002868;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.cru-hamburger-icon::before,
.cru-hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #002868;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.cru-hamburger-icon::before { top: -6px; }
.cru-hamburger-icon::after { top: 6px; }

/* Mobile overlay */
.cru-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Mobile menu panel */
.cru-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    max-width: 80vw;
    height: 100vh;
    background-color: var(--color-header-bg, #002868);
    padding: 20px 15px;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -2px 0 12px rgba(0,0,0,0.3);
    z-index: 1001;
    flex-direction: column;
}

/* Show hamburger and mobile menu on small screens */
@media (max-width: 1049px) {
    .cru-hamburger-btn {
        display: flex;
    }

    .cru-mobile-menu {
        display: flex;
    }

    /* When checkbox is checked — open the menu */
    .cru-hamburger-input:checked ~ .cru-mobile-overlay {
        display: block;
        opacity: 1;
    }

    .cru-hamburger-input:checked ~ .cru-mobile-menu {
        right: 0;
    }

    /* Hamburger → X animation */
    .cru-hamburger-input:checked ~ .cru-hamburger-btn .cru-hamburger-icon {
        background: transparent;
    }

    .cru-hamburger-input:checked ~ .cru-hamburger-btn .cru-hamburger-icon::before {
        top: 0;
        transform: rotate(45deg);
        background: #002868;
    }

    .cru-hamburger-input:checked ~ .cru-hamburger-btn .cru-hamburger-icon::after {
        top: 0;
        transform: rotate(-45deg);
        background: #002868;
    }
}

/* ============================================
   SEARCH FORMS
   ============================================ */

/* Mobile search (inside hamburger panel) */
.cru-mobile-menu .search-responsive {
    display: block;
    width: 100%;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cru-mobile-menu .search-responsive form {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cru-mobile-menu .search-responsive input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
}

.cru-mobile-menu .search-responsive input::placeholder {
    color: rgba(255,255,255,0.6);
}

.cru-mobile-menu .search-responsive input:focus {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    outline: none;
}

.cru-mobile-menu .search-responsive .s-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.cru-mobile-menu .search-responsive .s-btn:hover {
    color: #fff;
}

.cru-mobile-menu .search-responsive .s-btn svg {
    width: 16px;
    height: 16px;
}

/* Desktop search — visible only on large screens */
.search-responsive-desktop {
    display: none;
}

@media (min-width: 1050px) {
    .search-responsive-desktop {
        display: flex;
        align-items: center;
    }

    .search-responsive-desktop form {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .search-responsive-desktop input {
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.25);
        color: #fff;
        padding: 6px 10px;
        border-radius: 4px;
        font-size: 13px;
        width: 180px;
        transition: background 0.2s, border-color 0.2s;
    }

    .search-responsive-desktop input::placeholder {
        color: rgba(255,255,255,0.6);
    }

    .search-responsive-desktop input:focus {
        background: rgba(255,255,255,0.2);
        border-color: rgba(255,255,255,0.5);
        outline: none;
    }

    .search-responsive-desktop .s-btn {
        background: none;
        border: none;
        padding: 4px 6px;
        cursor: pointer;
        color: rgba(255,255,255,0.7);
        display: flex;
        align-items: center;
        transition: color 0.2s;
    }

    .search-responsive-desktop .s-btn:hover {
        color: #fff;
    }

    .search-responsive-desktop .s-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   MENU — DESKTOP styling
   ============================================ */
.header-menu, .header-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-menu {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0;
    align-items: center;
    width: max-content;
    max-width: 100%;
}
/* Mostrar el menú como flex solo en desktop */
@media (min-width: 1050px) {
    .header-menu {
        display: flex;
    }
}

.header-menu > li {
    position: relative;
    flex: 0 0 auto;
}

.header-menu > li > a {
    color: #fff;
    padding: 10px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.header-menu > li > a > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-menu > li > a:hover,
.header-menu > li.current-menu-item > a {
    background: rgba(255,255,255,0.15);
}

/* Home dashicon */
.header-menu > li > a .dashicons-admin-home {
    font-size: 16px;
    line-height: 1;
    width: 16px;
    height: 16px;
}

.header-menu > li > a ._mi._before {
    margin-right: 4px;
}

/* Chevron icon */
.chevron-icon {
    font-size: 10px;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.header-menu > li:hover > a > span > .chevron-icon,
.header-menu > li:focus-within > a > span > .chevron-icon {
    transform: rotate(180deg);
}

.header-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
}

.header-menu li:hover > .sub-menu,
.header-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-menu .sub-menu li {
    width: 100%;
    float: none;
}

.header-menu .sub-menu a {
    color: var(--color-header-bg);
    padding: 12px 18px;
    display: block;
    font-size: 14px;
    font-weight: 400;
    border-bottom: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.header-menu .sub-menu a:hover {
    background: #f3f7fb;
    color: #0079d6;
}

.header-menu .sub-menu li:last-child a {
    border-bottom: none;
}

/* Search inside menu (mobile) */
.search-responsive {
    display: none;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--color-footer-bg);
    color: #fff;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.content-footer {
    max-width: calc(var(--max-width-header) - 32px);
    margin: 0 auto;
}

.widget-content-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-footer img {
    max-height: 60px;
}

.widget-area p,
.content-footer p {
    color: #fff;
    font-size: 14px;
    margin: 5px 0;
    text-align: center;
}

#menu-pie-de-pagina {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

#menu-pie-de-pagina a {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

#menu-pie-de-pagina a:hover {
    text-decoration: underline;
}

/* Cookie banner */
#cookiesbox {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-header-bg);
    color: #fff;
    padding: 15px 20px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

#cookiesbox p { margin: 0; color: #fff; font-size: 14px; }
#cookiesbox a { color: #fff; text-decoration: underline; }
#cookiesbox button {
    background: #fff;
    color: var(--color-primary);
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

/* ============================================
   CONTENT WRAPPER
   ============================================ */

/* site-main is full-bleed by default.
   Inner content (.content-loop, .content-page, etc.) gets constrained. */
.site-main {
    margin: 0;
    padding: 0;
}

.content-page,
.content-single {
    max-width: var(--max-width-content);
    margin: 30px auto;
    padding: 0 20px;
}

.content-loop {
    max-width: var(--max-width-content);
    margin: 30px auto;
    padding: 0 20px;
}

/* Full-bleed sections (escape site-main constraint) */
.site-main .t-container,
.site-main > .t-container,
.t-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.site-main > .t-process-container,
.t-process-container {
    max-width: 100%;
    margin: 0;
    padding: 50px 0;
    overflow: hidden;
}

/* Inside t-process-container, content is centered (1140px) */
.t-container-c {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-single {
    max-width: var(--max-width-single);
}

/* Breadcrumb */
.footer-breadcrumb {
    max-width: var(--max-width-content);
    margin: 20px auto;
    padding: 0 20px;
}

.breadcrumb-trail .breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    font-size: 13px;
    color: var(--color-text-muted);
}

.breadcrumb-trail .breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
}

.breadcrumb a {
    color: var(--color-text-muted);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

/* Go top */
.go-top {
    position: fixed;
    bottom: 100px;
    left: 25px;
    background: var(--color-secondary);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
}

.go-top.visible {
    display: flex;
}

/* ============================================
   POSTS LOOP
   ============================================ */
.entry-content, .the-content {
    font-size: 18px;
    line-height: 1.7;
}

.entry-content p,
.entry-content ul li,
.entry-content ol li,
.the-content p,
.the-content ul li,
.the-content ol li {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 18px;
}

.entry-content h2, .entry-content h3, .entry-content h4 {
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}

.entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.entry-title {
    font-size: 38px;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.entry-meta {
    color: var(--color-text-muted);
    font-size: 14px;
}

/* Article loop cards */
.article-loop {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-loop:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.article-loop a {
    color: var(--color-text);
}

.article-loop a:hover {
    color: var(--color-accent);
}

.article-loop .entry-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.article-loop p {
    font-size: 16px;
    margin-bottom: 0;
}

/* Articles grid: 4-column compact card layout */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 10px 0 30px;
}

.article-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.article-card-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: #2c2c2c;
    text-decoration: none;
    line-height: 1.3;
}

.article-card-link:hover {
    color: var(--color-accent);
}

.article-card-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f3f3;
    color: #555;
}

.article-card-icon svg {
    display: block;
}

.article-card-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.35;
}

/* ============================================
   DOWNLOAD BUTTONS (post content)
   ============================================ */
.cru-download-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.cru-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    line-height: 1.3;
}

.cru-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    color: #fff;
}

.cru-btn i {
    font-size: 16px;
}

.cru-btn-word {
    background: #1d4f91;
    color: #fff;
}

.cru-btn-word:hover {
    background: #163c70;
    color: #fff;
}

.cru-btn-pdf {
    background: #b8252a;
    color: #fff;
}

.cru-btn-pdf:hover {
    background: #8e1c20;
    color: #fff;
}

.cru-btn-submit {
    background: #002868;
    color: #fff;
    border: none;
    padding: 10px 22px;
}

.cru-btn-submit:hover {
    background: #001f4d;
    color: #fff;
}

/* ============================================
   COMMENT FORM (native WP)
   ============================================ */
.comment-respond {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 24px;
    margin: 30px auto;
    max-width: 720px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.comment-respond .comment-reply-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0 0 16px;
}

.comment-respond .cru-form-note {
    font-size: 13px;
    color: #666;
    margin: 0 0 16px;
}

.cru-req {
    color: #b8252a;
}

.cru-form-row {
    margin-bottom: 14px;
}

.cru-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.cru-form-row input[type="text"],
.cru-form-row input[type="email"],
.cru-form-row input[type="url"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.cru-form-row input[type="text"]:focus,
.cru-form-row input[type="email"]:focus,
.cru-form-row input[type="url"]:focus {
    border-color: #0079d6;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 121, 214, 0.15);
}

.cru-form-row-wide textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    min-height: 130px;
    resize: vertical;
}

.cru-form-row-wide textarea:focus {
    border-color: #0079d6;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 121, 214, 0.15);
}

.cru-form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
}

.cru-form-check input[type="checkbox"] {
    margin: 0;
    flex: 0 0 auto;
}

.cru-form-check label {
    font-weight: 400;
    margin: 0;
}

.cru-form-submit {
    margin-top: 14px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    max-width: 720px;
}

.comment-list .comment-body {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

/* ============================================
   PAGINATION
   ============================================ */
.content-loop .pagination,
.pagination {
    margin: 30px 0 10px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    line-height: 1;
}

.pagination .page-numbers:hover {
    background: #f3f3f3;
    border-color: #b8b8b8;
    color: #002868;
}

.pagination .page-numbers.current {
    background: #002868;
    border-color: #002868;
    color: #fff;
    cursor: default;
}

.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
    color: #888;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-weight: 600;
}

/* Post navigation (prev/next single) */
.post-navigation {
    margin: 30px auto;
    max-width: 900px;
    padding: 0 20px;
}

.post-navigation .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1 1 45%;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 14px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    color: #002868;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.post-navigation .nav-previous .meta-nav,
.post-navigation .nav-next .meta-nav {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0079d6;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.post-navigation .nav-previous .nav-title,
.post-navigation .nav-next .nav-title {
    display: block;
    font-size: 14px;
    color: #002868;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1.4;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-next .meta-nav {
    display: block;
    text-align: right;
}

.post-navigation a {
    background: transparent;
    border: none;
    padding: 0;
}

/* ============================================
   LANDING PAGE COMPONENTS (home)
   ============================================ */
.t-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: #fff;
    overflow: hidden;
    height: 100vh;
}

.t-slider {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    min-height: 100vh;
    overflow: hidden;
    will-change: transform;
    position: relative;
    height: 100vh;
}

.t-seccion {
    width: 50%;
    overflow: hidden;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 40px;
}

.section-one {
    background: #fff;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
}

.section-one .t-center {
    padding-left: 80px;
    padding-right: 80px;
    text-align: left;
    width: 100%;
    margin: 0;
}

.section-one h1,
.section-one h2 {
    font-size: 57px;
    margin-top: 0px;
    margin-bottom: 0px;
    text-align: left !important;
}

.section-one p,
.section-one .p-icon,
.section-one .t-flex,
.section-one .t-btn-e {
    text-align: left;
}

.section-two {
    background: var(--color-primary);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.section-two img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}
    padding: 0;
}

.section-two video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 100vh;
}

.t-center {
    max-width: 500px;
}

.background-primary {
    background: var(--color-primary);
    color: #fff;
}

.background-primary h2,
.background-primary p,
.background-primary h3,
.background-primary h6 {
    color: #fff;
}

.color-white {
    color: #fff !important;
}

.t-btn-e {
    background: #002868;
    border: 3px solid #002868;
    color: #fff;
    max-width: 400px;
    padding: 15px 10px;
    display: block;
    text-align: center;
    border-radius: 11px;
    text-decoration: none !important;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 20px;
    margin-bottom: 10px;
    transition-duration: .4s;
    transition-timing-function: ease-in-out;
    cursor: pointer;
}

.t-btn-e:hover {
    background: transparent !important;
    color: #002868 !important;
    border-color: #002868 !important;
}

.t-btn-e:focus-visible {
    outline: 2px solid #0079d6;
    outline-offset: 2px;
}

.t-btn-e:active {
    transform: translateY(1px);
}

/* ============================================
   SEARCH BUTTON (header)
   ============================================ */
.s-btn {
    background: transparent;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.s-btn:hover,
.s-btn:focus {
    color: var(--color-accent);
    outline: none;
}

.s-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================
   CONTACT FORM (page-contacto)
   ============================================ */
.cru-contact-form {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 24px;
    margin: 30px auto;
    max-width: 720px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cru-contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.cru-contact-form .form-control-wrap {
    display: block;
    margin-top: 6px;
}

.cru-contact-form .form-control,
.cru-contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    font-family: inherit;
}

.cru-contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.cru-contact-form .form-control:focus,
.cru-contact-form textarea:focus {
    border-color: #0079d6;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 121, 214, 0.15);
}

.cru-contact-form .form-submit {
    background: #002868;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cru-contact-form .form-submit:hover {
    background: #001f4d;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Hero profile avatars */
.t-flex {
    display: flex;
    margin-top: 20px;
}

.t-nt {
    width: 20%;
    font-size: 14px;
}

.t-profile {
    display: flex;
    width: 140px;
    padding-left: 20px;
}

.t-profile div {
    position: relative;
    width: 35px;
    height: 35px;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-right: -15px;
}

.t-profile img {
    width: 100%;
}

/* Arrow icon (→) for bullet lists */
.p-icon {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin: 8px 0;
}

.p-icon span {
    height: 20px;
    margin-right: 8px;
}

.p-icon polyline,
.p-icon line {
    stroke: #002868;
}

/* White logo at top of hero */
.section-one .t-center img[alt*="marketing"] {
    width: 200px;
    margin-bottom: 10px;
}

/* Hero right side image (woman with laptop) */
.hero-image-section {
    background: #f0d9d9;  /* Soft pink fallback */
    padding: 0;
    overflow: hidden;
}

.hero-image-woman {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-audio-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: #fff 0px 0px 4rem 0px;
    z-index: 5;
}

.hero-audio-overlay:hover {
    background: #002868;
}

.hero-audio-overlay svg {
    opacity: 0.95;
}

/* WordPress required classes */
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.sticky { }
.gallery-caption { }
.bypostauthor { }

/* ============================================
   ICON FIXES - Prevent Font Awesome SVG icons
   from rendering at huge default 1024px size
   ============================================ */
.the-content svg,
.entry-content svg {
    width: auto;
    height: 1em;
    max-width: 100%;
    vertical-align: middle;
}

.the-content .fa,
.the-content .fas,
.the-content .far,
.the-content .fab,
.entry-content .fa,
.entry-content .fas,
.entry-content .far,
.entry-content .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 900;
    display: inline-block;
    width: auto;
    height: auto;
}

.the-content .fab,
.entry-content .fab {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

.the-content i.fa,
.the-content i.fas,
.the-content i.far,
.the-content i.fab,
.entry-content i.fa,
.entry-content i.fas,
.entry-content i.far,
.entry-content i.fab {
    font-style: normal;
    line-height: inherit;
}

/* Button-like link styling for post share links */
.the-content a,
.entry-content a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.the-content a:hover,
.entry-content a:hover {
    opacity: 0.8;
}

/* Letter template section */
.the-content h2,
.the-content h3 {
    color: var(--color-accent);
    font-family: var(--font-headings);
    margin-top: 1.4em;
    margin-bottom: 0.6em;
}

/* Letter template container */
.the-content .letter-template,
.entry-content .letter-template {
    background: #f8f8f8;
    border-left: 4px solid var(--color-accent);
    padding: 25px 30px;
    margin: 20px 0;
    border-radius: 6px;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.8;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   Replicating original site's breakpoints:
   - 1050px: tablet large / small desktop
   - 800px: tablet
   - 768px: small tablet / large mobile
   - 750px: small tablet
   - 480px: mobile
   ============================================ */

/* TABLET - Max width 1050px */
@media (max-width: 1050px) {
    .content-footer .logo-footer { margin: 0 0 1rem 0 !important; }
    .content-footer .widget-area { margin-top: 2rem !important; }

    /* Articles grid: 2 columns on tablet */
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .site-header { position: relative; }
}

/* DESKTOP+ - Min width 1050px (override mobile styles) */
@media (min-width: 1050px) {
    .site-header { position: sticky; }
    .content-footer { padding: 30px 0; }
    .content-footer .logo-footer {
        margin: 0 1rem 0 0 !important;
        padding-right: 2rem !important;
    }
    #menu > ul { font-size: calc(18px - 2px); }
    .header-menu > li.menu-item-has-children > a::after {
        content: '\f078';
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 10px;
        margin-left: 6px;
        opacity: 0.85;
        transition: transform 0.2s ease;
    }
    .header-menu > li.menu-item-has-children:hover > a::after {
        transform: rotate(180deg);
    }
}

/* TABLET - Max width 800px */
@media (max-width: 800px) {
    .t-container {
        height: auto;
    }
    .section-one h1 {
        font-size: 38px;
        margin-top: 0px;
        margin-bottom: 0px;
        text-align: left !important;
    }
    .t-slider {
        flex-direction: column-reverse;
        height: auto;
        min-height: 0;
    }
    .t-seccion {
        width: 100%;
        min-height: 0;
        height: auto;
    }
    .t-slider h3 { font-size: 40px; }
    .t-center {
        padding-top: 40px;
        padding-bottom: 40px;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .section-two video { width: 100%; }
    .section-two img { height: auto; width: 100%; }
    .t-seccion { top: 0; }

    .t-btn-e {
        background: #002868;
        border-color: #002868;
        color: #fff;
        max-width: 400px;
        padding: 15px 10px;
        display: block;
        text-align: center;
        border-radius: 11px;
        font-size: 18px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }

    .Step .t-ul-top { flex-direction: column; }
    .t-ul-buttom { padding: 0 15px; }
    .t-ul-buttom li { flex-direction: column; align-items: center; }
    .t-sept-content { width: 100%; text-align: center; }
    .t-sept-content div { width: 100%; }

    /* Stats section responsive */
    .t-count-container { flex-direction: column; }
    .t-count-container .count { width: 100%; margin-bottom: 30px; }

    /* Hero buttons + text */
    h1, .archive .content-loop h1 { font-size: calc(38px - 8px); }
    h2 { font-size: calc(32px - 4px); }
    h3 { font-size: calc(28px - 4px); }
    h4 { font-size: calc(23px - 3px); }

    .entry-title { font-size: 32px; }
}

/* SMALL TABLET - Max width 750px */
@media (max-width: 750px) {
    .t-container-client { flex-direction: column; }
    .t-container-client .t-col-client {
        width: 100%;
        margin-bottom: 20px;
    }
    .container-complete {
        max-width: 100% !important;
        padding: 0px 25px;
    }
    .t-process-container h3 { font-size: 32px; }
}

/* MOBILE - Max width 768px (services cards layout) */
@media (max-width: 768px) {
    .container_services {
        grid-template-columns: 1fr !important;
        padding: 0 1rem;
    }
    .section_services { padding: 2rem 0; }

    .site-header-content { padding: 10px 15px; }
    .site-logo img { max-height: 50px; }
}

    .t-process-container { padding: 30px 0; }
    .t-container-c { padding: 0 15px; }

    .recent-posts-grid_landing {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .entry-title { font-size: 28px; }

    .content-page, .content-single {
        margin: 15px auto;
        padding: 0 15px;
    }
}

/* MOBILE - Max width 480px */
@media (max-width: 480px) {
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 22px; }
    h4 { font-size: 20px; }
    .entry-title { font-size: 26px; }

    /* Articles grid: 1 column on mobile */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .site-logo img { max-height: 45px; }

    .t-center {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }
    .section-one h1 { font-size: 30px; }
    .t-btn-e {
        font-size: 14px;
        padding: 12px 10px;
        letter-spacing: 1px;
    }
    .t-profile { width: 110px; }
    .t-profile div { width: 28px; height: 28px; }
}