.thc-hero {
    position: relative;
    height: 45vh;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;

    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Imagen base */
.thc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/uploads/2022/12/guatemala-1427481_1920.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Patr贸n maya */
.thc-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/uploads/2022/12/fondo14.webp');
    background-size: cover;
    opacity: 0.15;
    z-index: 1;
}

/* Overlay institucional oscuro */
.thc-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0, 30, 60, 0.85),
        rgba(0, 20, 40, 0.95)
    );
    z-index: 2;
}

/* Contenido */
.thc-hero-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
    padding: 10px 20px;
}

/* EFECTO DE FOCO */
.thc-focus {
    animation: thcFocusPulse 1.2s ease;
}

@keyframes thcFocusPulse {
    0% {
        transform: scale(0.98);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.02);
        opacity: 1;
        box-shadow: 0 0 0 6px rgba(10, 37, 64, 0.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================
   BLOQUEO TOTAL DE SCROLL
========================= */

/* evita scroll global */
html.thc-modal-open,
body.thc-modal-open {
    overflow: hidden !important;
    height: 100% !important;
}

/* contenedor principal del modal */
.thc-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overscroll-behavior: none; /* 🔥 clave */
}

/* caja */
.thc-modal-box {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* contenido scrolleable */
#thc-modal-content {
    overflow-y: auto;
    max-height: 75vh;
    padding-right: 5px;

    overscroll-behavior: contain; /* 🔥 evita fuga */
    -webkit-overflow-scrolling: touch;
}

/* 🔥 ULTRA FIX (bloquea scroll chaining en todos los navegadores) */
.thc-modal-box,
#thc-modal-content {
    touch-action: none;
}

#thc-modal-content::-webkit-scrollbar {
    width: 6px;
}

#thc-modal-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

/* Logo */
.thc-logo {
    width: 90px;
    margin-bottom: 8px;
}

/* Texto */
.thc-subtitle {
    font-size: 16px;
    margin-bottom: 4px;
    color: #ffffff;
    opacity: 0.85;
}

.thc-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.thc-description {
    font-size: 15px;
    color: #ffffff;
    opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .thc-hero {
        height: 55vh;
    }

    .thc-logo {
        width: 70px;
    }

    .thc-title {
        font-size: 24px;
    }

    .thc-description {
        font-size: 14px;
    }
}

.thc-section {
    padding: 50px 20px;
    max-width: 1100px;
    margin: auto;
}

.thc-section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}

/* GRID */
.thc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

/* CARD */
.thc-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px 20px;
    border-radius: 14px;
    background: #f4f6f8;
    text-decoration: none !important;
    color: #1a1a1a;
    transition: 0.25s ease;
    text-align: center;
    min-height: 230px;
}

/* 馃敟 quitar subrayado global */
.thc-card,
.thc-card * {
    text-decoration: none !important;
}

/* Hover elegante */
.thc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* CARD PRINCIPAL */
.thc-card.primary {
    background: linear-gradient(135deg, #0a2540, #0b2f4a);
    color: #fff;
}

/* TEXTO EN CARD AZUL */
.thc-card.primary h3,
.thc-card.primary p {
    color: #ffffff;
}

/* ICONO */
.thc-card-icon {
    margin-bottom: 12px;
}

.thc-card-icon img {
    width: 42px;
    height: auto;
}

/* TITULO */
.thc-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* TEXTO */
.thc-card p {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.85;
}

/* HOVER COLOR SUTIL (celeste Guatemala) */
.thc-card:hover {
    border: 1px solid rgba(0, 170, 220, 0.3);
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .thc-card {
        padding: 20px;
    }

    .thc-card-icon img {
        width: 36px;
    }

    .thc-card h3 {
        font-size: 17px;
    }
}

.thc-submenu {
    text-align: center;
    margin-top: 40px;
}

.thc-options {
    display: grid;
    gap: 15px;
    max-width: 400px;
    margin: 20px auto;
}

.thc-option {
    padding: 15px;
    border-radius: 10px;
    border: none;
    background: #0a2540;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.thc-option:hover {
    background: #0d3b66;
}

.thc-resend { max-width: 520px; margin: 30px auto; text-align:center; }
.thc-resend-intro { opacity:.9; margin-bottom:15px; }
.thc-choice { display:flex; gap:10px; justify-content:center; margin-bottom:15px; }
.thc-choice .thc-option { padding:10px 14px; border-radius:8px; background:#0a2540; color:#fff; border:0; cursor:pointer; }
#thc-resend-form input { width:100%; padding:10px; margin:10px 0; border-radius:8px; border:1px solid #ddd; }
#thc-resend-form button { width:100%; padding:12px; border-radius:10px; background:#0a2540; color:#fff; border:0; }
.thc-note { font-size:12px; opacity:.7; margin-top:12px; }

.thc-card:hover,
.thc-card:focus,
.thc-card:active {
    color: inherit !important;
}

.thc-card.primary:hover {
    color: #fff !important;
}

/* CAJA MODAL */
.thc-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thc-modal.hidden {
    display: none;
}

.thc-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.thc-modal-box {
    position: relative;
    background: #fff;
    width: 92%;
    max-width: 580px; /* m谩s ancho pero elegante */
    border-radius: 16px;
    padding: 30px 25px;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: thcModalIn 0.25s ease;
}

/* HEADER */
.thc-modal-header {
    text-align: center;
    margin-bottom: 15px;
}

.thc-modal-icon {
    width: 60px;
    margin-bottom: 10px;
}

/* TITULO */
.thc-modal-box h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 10px;
}

/* TEXTO */
.thc-resend-intro {
    text-align: center;
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 15px;
}

/* PREGUNTA */
.thc-question {
    text-align: center;
    font-weight: 600;
    margin-bottom: 12px;
}

/* BOTONES OPCION */
.thc-choice {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

/* BOTONES */
.thc-option {
    background: #0a2540;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

/* 馃敟 FIX HOVER (IMPORTANTE) */
.thc-option:hover {
    background: #0d3b66;
    color: #fff;
}

/* INPUT */
#thc-resend-form input {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

/* BOTON SUBMIT */
#thc-resend-form button {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: #0a2540;
    color: white;
    border: none;
}

/* HOVER SUBMIT */
#thc-resend-form button:hover {
    background: #0d3b66;
    color: white;
}

/* NOTA */
.thc-note {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 10px;
    text-align: center;
}

.h-captcha {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.thc-success-box {
    text-align: center;
    padding: 20px;
}

.thc-success-icon {
    width: 70px !important;
    display: block !important;
    margin: 0 auto 10px auto !important;
    opacity: 1 !important;
}

.thc-success-box h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

/* CONTENEDOR FORM */
#thc-modify-form {
    max-width: 420px;
    margin: 20px auto;
    width: 100%;
}

/* FORM */
#thc-modify-form-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* INPUTS */
#thc-modify-form-inner input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* BOTÓN */
#thc-modify-form-inner button {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: #0a2540;
    color: #fff;
    border: none;
    font-weight: 500;
}

/* TEXTO AYUDA */
.thc-help-text {
    font-size: 13px;
    opacity: 0.7;
    text-align: center;
    margin-bottom: 10px;
}

/* MODAL SIEMPRE ENCIMA */
.thc-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647 !important; /* 🔥 máximo nivel */
    display: flex;
    align-items: center;
    justify-content: center;
}

.thc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

/* CAJA CON SCROLL */
.thc-modal-box {
    position: relative;
    z-index: 2;
    max-height: 85vh;
    overflow-y: auto;
}
/* EVITAR QUE EL BODY INTERFIERA */
body.thc-modal-open {
    overflow: hidden;
}

.thc-modal-box {
    margin: 20px;
}

.thc-loader {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    margin-right: 6px;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

body.thc-modal-open {
    overflow: hidden;
}

.thc-modal {
    position: fixed;
    inset: 0;
    z-index: 9999999; /* 🔥 más alto que todo */
}

.thc-modal-box {
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#thc-modal-content {
    overflow-y: auto;
    max-height: 75vh;
    padding-right: 5px;
}

/* evita que el scroll "se escape" */
#thc-modal-content {
    overscroll-behavior: contain;
}

/* FIX HOVER BOTONES */
.thc-option {
    background: #0a2540 !important;
    color: #ffffff !important;
    border: none !important;
}

.thc-option:hover,
.thc-option:focus,
.thc-option:active {
    background: #0d3b66 !important; /* azul más claro */
    color: #ffffff !important;
    border: none !important;
    text-decoration: none !important;
}

/* evita que el theme meta estilos raros */
.thc-option * {
    color: inherit !important;
}

.thc-item-box {
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.thc-item-box.active {
    border: 2px solid #0a2540;
    background: #f0f6fb;
}

.thc-item-box input {
    margin-right: 10px;
}

.thc-exchange-container{
    margin-top:15px;
}

.thc-main-btn{
    width:100%;
    padding:14px;
    border-radius:12px;
    background:#0a2540;
    color:#fff;
    border:none;
    font-size:15px;
    font-weight:600;
    margin-top:15px;
}

.thc-main-btn:hover{
    background:#0d3b66;
}

.thc-exchange-visual{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:15px;
    margin:20px 0;
}

.thc-exchange-side{
    text-align:center;
}

.thc-exchange-side img{
    width:60px;
    display:block;
    margin:auto;
}

.thc-exchange-side span{
    font-size:12px;
    opacity:.7;
}

.thc-exchange-arrow{
    font-size:20px;
    font-weight:bold;
}

#thc-help-float{
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    z-index: 9999;
    cursor: grab;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease;
}

#thc-help-float:hover{
    transform: scale(1.08);
}

#thc-help-float img{
    width: 28px;
    height: 28px;
    pointer-events: none;
}

#thc-help-float{
    opacity: 0.8;
}
#thc-help-float:hover{
    opacity: 1;
}