/* contenedor general del archivo global*/

.head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed; /* ancla el elemento a su ubicación */
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    color: rgb(0, 0, 0);
    padding: 10px 20px;
    box-sizing: border-box;
    z-index: 1000; /* jerarquia de posición sobre otros elementos */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-theme .head {
    background: rgba(30, 30, 30, 0.98);
    color: rgb(212, 212, 212);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.left-section {
    display: flex;
    align-items: center;
}

body {
    margin: 0;
    padding: 0;
    padding-top: 70px; /* Espacio para el header fijo */
    height: 100%;
    overflow-x: hidden;
    background-color: rgb(255, 255, 255);
    scroll-padding-top: 80px;  /* Espacio para navegación interna con cabecera fija */
}

/* contenedor del logo y menu*/

.logo img {
    height: 50px;
    margin-right: 20px;
}

.menu {
    display: flex;
    align-items: center;
}

.menu-icon {
    font-size: 28px;
    cursor: pointer;
    color: rgb(0, 0, 0);
    margin-left: 0px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    -webkit-appearance: none;
    appearance: none;
}

body.dark-theme .menu-icon {
    color: rgb(212, 212, 212);
}

.menu-icon:hover {
    background-color: rgba(0, 255, 255, 0.1);
    transform: scale(1.1);
}

.menu-icon:focus-visible {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}

/* contenedor del menu*/

.menu-content {
    display: none; /* Oculto por defecto */
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 240, 240, 0.95) 100%);
    backdrop-filter: blur(10px);
    top: 60px;
    left: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    min-width: 280px;
    animation: slideDown 0.3s ease-out;
    transition: background 0.3s ease, border-color 0.3s ease;
}

body.dark-theme .menu-content {
    background: linear-gradient(135deg, rgba(37, 37, 38, 0.95) 0%, rgba(30, 30, 30, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Mostrar el menú cuando el contenedor tiene la clase is-open */
.menu.is-open .menu-content {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* contenido del menu*/

.menu-content a {
    font-family: 'Roboto', sans-serif;
    color: #333333;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    text-align: left;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

body.dark-theme .menu-content a {
    color: #d4d4d4;
}

body.dark-theme .menu-content a:hover {
    color: #ffffff;
}

.menu-content a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.1), transparent);
    transition: width 0.3s ease;
}

.menu-content a:hover::before {
    width: 100%;
}

.menu-content a:hover {
    color: rgb(0, 0, 0);
    font-weight: 500;
    background-color: rgba(0, 255, 255, 0.08);
    transform: translateX(5px);
}
/* Activo/actual */
.menu-content a.active,
.menu-content a[aria-current="page"] {
    color: rgb(0, 0, 0);
    font-weight: 600;
    background-color: rgba(0, 255, 255, 0.12);
}

/* Language Switcher */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
}

.theme-btn {
    background: transparent;
    border: none;
    color: #444444;
    font-size: 18px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-theme .theme-btn {
    color: #d4d4d4;
}

.theme-btn:hover {
    color: rgb(0, 0, 0);
    background-color: rgba(0, 255, 255, 0.1);
    transform: scale(1.1);
}

body.dark-theme .theme-btn:hover {
    color: #ffffff;
}

.theme-btn:focus-visible {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #444444;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    -webkit-appearance: none;
    appearance: none;
}

body.dark-theme .lang-btn {
    color: #d4d4d4;
}

.lang-btn:hover {
    color: rgb(0, 0, 0);
    background-color: rgba(0, 255, 255, 0.1);
}

body.dark-theme .lang-btn:hover {
    color: #ffffff;
}

.lang-btn.active {
    color: rgb(0, 0, 0);
    font-weight: 700;
    background-color: rgba(0, 255, 255, 0.15);
}

body.dark-theme .lang-btn.active {
    color: #ffffff;
}

.lang-separator {
    color: rgb(200, 200, 200);
    font-size: 14px;
}

body.dark-theme .lang-separator {
    color: rgb(100, 100, 100);
}

/*
.content-section {
    padding: 20px;
    margin-top: 60px;
    background-color: rgb(255, 12, 12);
    border: 1px solid #ff0095;
}
*/

/* contenedor esfera*/

.background-frame {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh; /* fallback */
    height: 100svh; /* small viewport height for mobile UI */
    height: 100dvh; /* dynamic viewport on modern browsers */
    border: none;
    z-index: 0;
    pointer-events: auto;
    display: block;
}

@media (max-width: 768px) {
    .menu-content {
        width: 100%;  /* Ajusta el ancho para dispositivos móviles */
        
    }
    .content-section {
        padding: 15px;
        margin-top: 60px;
    }
}

/* contenedor general de html complementarios*/

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh; /* Utiliza la altura completa de la ventana del navegador */
    text-align: center;
}

.container h1 {
    font-family: 'Roboto', sans-serif; /* Cambia la fuente a Arial como ejemplo */
   
}

.container p {
    font-family: 'Roboto', sans-serif; /* Cambia la fuente a Arial como ejemplo */
    font-size: 1rem; /* Ajusta el tamaño de la fuente del párrafo */
    margin-right: 2rem;
    padding: 20px;
}

.container ul {
    padding: 20px;
    font-family: 'Arial', sans-serif;
    font-size: 1em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    list-style: none;
}

.container li {   
    font-family: 'Arial', sans-serif;
    font-size: 2em;
}

.btn {
    position: absolute;
    transform:  translate(-50%, -50%);
    left: 50%;
    font-family: 'Arial', sans-serif;
    margin-top:0%;
    padding: 5px 30px;
    border-radius: 10px;
    border: 2px solid #ffffff;
    color: rgb(0, 0, 0);
    text-decoration: none;
    background: rgb(241,241,241);  
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
}

.btn:hover{
    background:#00ffff
}

/* contenedor del pie de p*/

.footer {
    font-family: 'Roboto', sans-serif;
    color: rgb(200, 200, 200);
    width: 100%;
    text-align: center;
    padding: 0px;
    position: static;
    left: 0;
    bottom: 0;
    background-color: transparent; /* Fondo transparente */
}

.social-icon{
    font-size: 1.75rem;
    color: rgb(200, 200, 200);
    transition: color 0.2s;
}

.bi:hover{
    color: #00ffff;
}

/* Estados de enfoque visibles para accesibilidad */
.menu-content a:focus-visible,
.lang-btn:focus-visible,
.menu-icon:focus-visible,
a.social-icon:focus-visible {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}

/* Footer fijo solo en home */
.home .footer {
    position: fixed;
    left: 0;
    bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Overlay para menú móvil */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 900;
}

body.menu-open .menu-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Off-canvas en móvil */
@media (max-width: 768px) {
    .menu-content {
        position: fixed;
        top: 70px; /* altura del header */
        left: 0;
        bottom: 0;
        width: 80vw;
        max-width: 320px;
        min-width: 0;
        box-shadow: 0 8px 32px rgba(0,0,0,0.2);
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1001; /* por encima del overlay */
    }
    .menu.is-open .menu-content {
        transform: translateX(0);
    }
}

/* Página de inicio con hero de fondo */
body.home {
    padding-top: 0; /* Header fijo pero fondo a pantalla completa */
}

/* Evitar scroll cuando el menú móvil está abierto */
body.no-scroll {
    overflow: hidden;
}
