/* Botón flotante fijo en una esquina (ejemplo: abajo a la derecha) */
/* Estado base del botón flotante (oculto por defecto) */
#top{
    position:sticky !important;
    top:0;
    z-index: 1000;
}
.voc_floating_btn {
    position: fixed;
    bottom: 1.5rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #52246a;
    color: #ffffff;
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(82, 36, 106, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
}

/* Clase que activará JavaScript para mostrar el botón */
.voc_floating_btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.voc_floating_btn:hover {
    background-color: #3a1a50;
    transform: translateY(-2px); /* Mantienes el efecto hover cuando ya es visible */
}

/* Clase para ocultar el índice desplegable */
.voc_dropdown_hidden {
    display: none;
}

/* Si quieres que el índice desplegable actúe como un popup flotante en pantalla */
#voc_dropdown_index.voc_index {
    position: fixed;
    bottom: 1.5rem;
    right: 2rem;
    width: 300px; /* O el ancho que prefieras */
    max-height: 60vh;
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(82, 36, 106, 0.2);
}
.social-share-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.share-title {
  font-size: 15px;
  font-weight: 600;
  color: #52246a;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* Estilo específico para ajustar el SVG de X dentro del botón */
.social-icon .x-logo {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

/* Colores de marca y correo */
.social-icon.whatsapp { background-color: #25d366; }
.social-icon.telegram { background-color: #229ed9; }
.social-icon.x-twitter { background-color: #000000; }
.social-icon.linkedin { background-color: #0a66c2; }
.social-icon.facebook { background-color: #1877f2; }
.social-icon.email { background-color: #52246a; }

.main_content{
    width:100%;
    padding:2rem;
    margin: 0 auto;
    margin-bottom: 3rem;
}
.voc_display{
    width:100%;
    margin: 0 auto;
    margin-bottom: 10rem;
}
.level-selector-wrapper {
    display: flex;
    justify-content: center;
    font-family: "Varela Round", sans-serif;
    margin: 30px auto;
    max-width: 230px;
}
.main-selector {
    display: flex;
    width: 100%;
    background-color: #52246a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    margin-bottom:3rem;
}

/* Celdas individuales (A, B, C) */
.level-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.602rem;
    font-weight: 600;
    padding: 20px 0;
    text-align: center;
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: relative;
}

/* Líneas separadoras entre celdas */
.level-btn:not(:last-child):after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: #fff;
}

/* Efecto al pasar el ratón (hover) */
.level-btn:hover {
    color: #bb3925;
    background-color: #f3ad16;
    z-index: 2;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}
.level-btn.active {
    color: #bb3925;
    background-color: #f3ad16;
    z-index: 2;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}
/* Contenedor principal rectangular */
.voc_index {
    position: relative;
    margin: 2rem auto;
    width: 70%; /* O 100% si prefieres que ocupe todo el ancho absoluto */
    max-width: 1200px;
    background-color: #ffffff;
    border: 1px solid #52246a;
    border-radius: 20px;
    padding: 2rem;
    box-sizing: border-box;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    margin-bottom: 5rem;
    scrollbar-width: thin; 
    /* Color de la barra (thumb) y del carril (track) */
    scrollbar-color: #52246a #f1f1f1;
}


/* Cabecera del índice (Icono + Título) */
.voc_index_header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f3eaf5;
    padding-bottom: 1rem;
}

.voc_index_icon {
    font-size: 1.5rem;
    color: #52246a;
}

.voc_index_title {
    color: #52246a;
    font-size: 1.266rem;
    font-weight: 600;
    margin: 0;
    text-decoration: underline 1px solid #52246a;
    text-underline-offset: 4px;
    cursor: pointer;
    transition: all 0.3s;
}
.voc_index_title:hover{
    color:#bb3925;
    transform: translateY(-1px);
}
/* Rejilla inteligente con Flexbox para centrar elementos huérfanos en la última fila */
.voc_index_grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra automáticamente la última fila si faltan elementos */
    gap: 1rem;
}

/* Cada elemento clickable */
.voc_index_item {
    /* Forzamos que quepan exactamente 4 por fila restando los gaps (calc de 25%) */
    flex: 1 1 calc(25% - 0.75rem);
    max-width: calc(25% - 0.75rem);
    min-width: 200px; /* Evita que se compriman demasiado en pantallas pequeñas */
    box-sizing: border-box;
    padding: 1rem;
    text-align: center;
    background-color: #f3eaf5;
    color: #52246a;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

/* Efecto hover interactivo */
.voc_index_item:hover {
    background-color: #e2d1e7;
    border-color: #52246a;
    transform: translateY(-2px);
}
.voc_nav_btn {
    position: absolute;
    top: -2.5rem; 
    z-index: 10;
    width: 60px;
    height:60px;
    border-radius: 50%;
    background-color: #52246a;
    color: #fff;
    border: 1px solid #000;
    font-family: inherit;
    font-weight: 600;
    font-size: 1.266rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Posición derecha dentro del div */
.voc_nav_btn.is-right {
    right: 1.5rem; /* Distancia desde el borde derecho del div */
}

/* Posición izquierda dentro del div */
.voc_nav_btn.is-left {
    left: 1.5rem;  /* Distancia desde el borde izquierdo del div */
}

/* Efecto hover */
.voc_nav_btn:hover {
    transform: scale(1.1);
    background-color: #f3ad16;
    color:#bb3925;
}
.voc_title{
    margin-top:1rem;
    margin-bottom:1rem;
    font-size:1.602rem;
    background-color: #bb3925;
    color:#fff;
    padding:10px;
    width:fit-content;
}
/* 1. El contenedor mantiene un tamaño fijo y estricto */
.voc_container_fixed {
    position:relative;
    width: 50%;  /* Cambia esto al ancho fijo que necesites */
    height: 80vh; /* Cambia esto al alto fijo que necesites */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Oculta cualquier exceso por seguridad */
    margin: 0 auto;
    margin-bottom:5rem;
}

/* 2. El enlace se ajusta estrictamente al tamaño de la imagen, no a todo el div */
.voc_img_link {
    display: inline-flex;
    max-width: 100%;
    max-height: 100%;
}

/* 3. La imagen busca ampliarse para ocupar todo el espacio disponible y nunca más grande */
.voc_img_link img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Mantiene la proporción y se adapta al contenedor */
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center center;
}

.voc_img_link:hover img {
    animation: subtleTilt 5s ease-in-out infinite;
}

@keyframes subtleTilt {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(1deg);
    }
    50% {
        transform: rotate(-1deg);
    }
    75% {
        transform: rotate(1deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.icons_touch{
    position: absolute;
    top:2rem;
    right:-5rem;
    display: flex;
    align-items: top;
    gap:1px;
    width:200px;
}
.touch_icon{
    width:40px;
    height:auto;
    z-index:999;
}
@keyframes sutilBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px); /* Sube 6 píxeles (puedes ajustarlo) */
    }
}

/* 2. Activamos la animación al hacer hover en el contenedor */
.voc_container_fixed:hover .touch_icon {
    animation: sutilBounce 1s ease-in-out infinite;
}
.voc_content_list{
    width:100%;
    margin: 2rem auto;
}
.voc_subtitle{
    padding:10px;
    font-size:1.424rem;
    background-color: #bb3925;
    color:#fff;
    margin-bottom: 2rem;
}
.voc_items_list {
    margin: 0 auto;
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.voc_item {
    flex: 0 1 calc(33.333% - 1.5rem);
    /* Forzamos un ancho máximo idéntico al cálculo para que nunca se estiren */
    max-width: calc(33.333% - 1.5rem);
    box-sizing: border-box;
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background-color: #fff;
    color: #52246a;
    border-radius: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    border: 0.5px solid #52246a;
    cursor: pointer;
    font-family: "Varela Round", sans-serif;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.voc_btn_icon {
    width: 85px;
    height: 85px;
}
.voc_btn_text {
    font-size: 1.266rem;
    font-weight: 600;
    transition: all 0.2s;
}
.voc_item:hover, .city_item:hover {
    background-color: #f3ad16;
    transform: translateY(-2px);
    color:#bb3925;
}


/* --- Overlay General --- */
.voc_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vw; /* Nota: mantenido tal cual lo tenías, ideal 100vh */
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.voc_modal_overlay.active_popup_voc {
    opacity: 1;
    visibility: visible;
}

/* --- Contenedor Central de Información (Modal Individual) --- */
.voc_modal_content {
    position: absolute; /* Se superponen exactamente en el mismo sitio dentro del overlay */
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 1000px;
    height: 600px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Estados iniciales para la transición suave */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease;
    /* --- PARA FIREFOX --- */
    /* Opciones: auto, thin (delgada), none (oculta) */
    scrollbar-width: thin; 
    /* Color de la barra (thumb) y del carril (track) */
    scrollbar-color: #52246a #f1f1f1;
}

/* --- Estado Activo del Modal --- */
.voc_modal_overlay.active_popup_voc .voc_modal_content.active_popup_voc {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* --- Botón de cerrar --- */
.voc_modal_close {
    position: absolute;
    width:35px;
    height:35px;
    border-radius: 50%;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.626rem;
    cursor: pointer;
    color: #fff;
    background-color: #52246a;
    z-index: 10;
    transition: all 0.3s;
}
.voc_modal_close:hover{
    transform: scale(1.2);
}
/* --- Botones de navegación lateral (Flechas) --- */
.voc_nav_arrow {
    position: absolute;
    top: 51%;
    transform: translateY(-50%);
    background-color: #52246a;
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    padding-bottom:3px;
    transition: background-color 0.2s;
    margin: 0 auto;
    z-index: 10;
}

.voc_nav_arrow:hover {
    background-color: #f3ad16;
    color: #551a11;
}

.voc_nav_prev {
    left: -70px;
    padding-right:3px;
}

.voc_nav_next {
    right: -70px;
        padding-left:3px;
}

/* Clase para ocultar flechas si es el inicio o el final */
.voc_nav_arrow.is-hidden {
    display: none !important;
}

/* --- Título y separador inferior --- */
.voc_subtitle_i {
    margin: 0 0 10px 0;
    color: #52246a;
    font-size: 1.5rem;
}

.voc_separator {
    width: 100%;
    height: 2px;
    background-color: #e0d0ec;
    margin-bottom: 20px;
}

/* --- Contenedor de las 3 zonas en paralelo --- */
.voc_columns_container {
    display: flex;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

/* --- Cada columna individual --- */
.voc_column_box {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f9f7fb;
    border-radius: 8px;
    padding:20px;
    border: 1px solid #eee;
    min-width: 0; /* Vital para que las tablas no rompan el flexbox */
}

.voc_column_title {
    font-size: 1.1rem;
    color: #52246a;
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
    border-bottom: 1px dashed #d1b5e2;
    padding-bottom: 8px;
}

/* --- Contenedor de la tabla con Scroll Independiente --- */
.voc_table_wrapper {
    flex: 1;
    overflow-y: auto;
    max-height: 100%;
    scrollbar-width: thin;
    scrollbar-color: #52246a #f1f1f1;
}

/* --- Estética de las tablas --- */
.voc_vocab_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.voc_vocab_table th, 
.voc_vocab_table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.voc_vocab_table th {
    background-color: #52246a;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
}

.voc_vocab_table tr:nth-child(even) {
    background-color: #f2edf7;
}
.is-hidden {
  display: none !important;
}

