:root {
    --naranja: #D85918;
    --azul: #1E3461;
    --blanco: #ffffff;
    --blancogris: #f8f8f8f4;
    --grisClaro: #cacacae2;
    --color-primario: #1a1a2e;
    --color-secundario: #16213e;
    --color-acento: #0f3460;
    --color-azul: #0257A0;
    --color-verde:rgb(10, 150, 22);
    --color-azul-oscuro: #010e67;
}

* {
    box-sizing: border-box;
}

h1{
    z-index: -1;
    position:fixed;
    color: transparent;
}

body {
    font-family: Arial, Helvetica, sans-serif;  
    margin: 0;
    padding: 0;
    background-color: var(--blancogris);
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

header {
    background-color: #ffffff;
    padding: 1em;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 6px var(--color-azul);
    z-index: 999;
}

nav {
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.5em 2em;
    gap: 2em;
    margin: 0;
    padding-top: 0%;
    border: none;
}

.logomenu {
    width: 8.1em;          /* Mantiene dimensiones fijas */
    transition: transform 0.3s ease; /* Animación suave */
}

.logomenu:hover {
    transform: scale(1.2); /* Zoom al pasar el mouse */
}


.end {
    text-align: center;   /* Centra el contenido dentro del contenedor */
    padding: 0.1em 0;
}

.end img {
    display: inline-block; /* Permite que se centre con text-align */
    max-width: 200px;      /* Ajusta el ancho máximo de la imagen */
    height: auto;          /* Mantiene la proporción */
}


.logo {
    background-color: transparent;
    height: 5em;
    width: 8em;
    object-fit: cover;
    justify-content: center;
    align-items: center;
}

.login a{
    background-color: white;
    justify-content: center;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5em;
    margin-left: 2em;
    margin: 0;
    padding-top: 0%;
    border: none;
    text-decoration: none;
    color: #0f3460!important;
    font-weight: bold;
    padding: 0.5em 1em;
    transition: all 0.18s ease;
    position: relative;
}
.login a:hover {
    background-color: #0257A0;
    color: white!important;
    font-size: 1.2em;
    border-radius: 15px;
    margin-top: 2%;
    position: end;
}

.nav-links {
    background-color: white;
    justify-content: center;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5em;
    margin-left: 2em;
    margin: 0;
    padding-top: 0%;
    border: none;
    
}
.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    padding: 0.5em 1em;
    transition: all 0.18s ease;
    position: relative;
}
.nav-links a:hover {
    background-color: var(--color-azul);
    color: white;
    font-size: 1.1em;
    border-radius: 15px;
    position: end;
    
}
.dropdown {
    position: relative;
    top: 5px;
    margin-top: -1%;
    padding-top: -10px;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 140%;
    left: 0;
    background-color: white;
    min-width: 300px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 999;
    border-end-end-radius: 15px;
    border-end-start-radius: 15px;
}

.dropdown-content a {
    display: block;
    padding: 0.75em 1em;
    text-decoration: none;
    color: black;
    transition: all 0.2s;
}
.dropdown-content a:hover {
    background-color: #0257A0;
    color: white;
    border-radius: 15px;
}
.dropdown:hover .dropdown-content {
    display: block;
}
/* Contenedor del submenú */
.dropdown-submenu {
    position: relative;
}
/* Oculto por defecto */
.dropdown-subcontent {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 15px;
    z-index: 999;
}
/* Mostrar submenú al hacer hover en el padre */
.dropdown-submenu:hover .dropdown-subcontent {
    display: block;
}
/* Ocultar botón en pantallas grandes */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    color: var(--color-azul);
    cursor: pointer;
}

/* Mostrar menú como columna en móviles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    nav, .top-bar {
        align-items: flex-start;
    }

    .nav-links {
        display: none;              /* oculto por defecto */
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: white;
        text-align: center;
        padding: 1em 0;
        gap: 1em;
    }

    .nav-links.show {
        display: flex;
    }

    .login {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1em;
        display: flex;
    }

    .login a {
        width: 100%;
        padding: 1em;
        text-align: center;
        border-bottom: 1px solid var(--grisClaro);
    }

    .login a:hover {
        background-color: var(--color-azul);
        color: white;
        font-size: 1em;
        border-radius: 0;
    }

    /* Oculta completamente los submenús en móviles */
    .dropdown-content,
    .dropdown-subcontent,
    .dropdown-submenu {
        display: none !important;
        visibility: hidden;
        height: 0;
        overflow: hidden;
        padding: 0;
        margin: 0;
    }

    /* Si quieres mostrar solo el primer nivel de menú (Plataformas) */
    .nav-menu > .dropdown > a {
        display: block;
    }

    .top-bar {
        flex-direction: column;
        align-items: center;
    }

    .social-login-container {
        flex-direction: column;
        align-items: center;
    }
}

.logo-final {
    text-align: center;
    padding: 0.1em 0;
}

.logo-final img {
    height: 320px;
    width: 410px;
}
.social-icons {
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    gap: 1em;
}

.social-icons a {
    text-decoration: none;
    color: var(--blanco);
    font-size: 1.8em;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.15);
}


#btn-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--color-acento);
    color: var(--blanco);
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 1.4em;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

#btn-top:hover {
    background: var(--color-verde);
    transform: translateY(-5px) scale(1.1); 
}

.footer {
    position: relative;
    background: var(--color-azul);
    color: var(--blanco);
    padding: 1em 1em 2em 1em;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('multimedia/world_map.png') no-repeat center center;
    background-size: cover;
    opacity: 0.07;
    z-index: 0;
}

.footer * {
    position: relative;
    z-index: 1;
}


.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2em;
    max-width: 1200px;
    margin: auto;
}

.footer-section {
    flex: 1 1 220px;
    text-align: left; /* alineado a la izquierda */
}

.footer-section h3 {
    font-size: 1.2em;
    margin-bottom: 1em;
    color: var(--blanco);
}

.footer-section ul {
    list-style: none;   /* elimina los puntos de índice */
    padding: 0;
    margin: 0;
    text-align: left;   /* asegura que los enlaces queden a la izquierda */
}

.footer-section ul li {
    margin-bottom: 0.8em;
}

/* Estilo para los enlaces */
.footer-section ul li a {
    text-decoration: none;
    color: var(--grisClaro);
    font-size: 0.95em;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    transform-origin: left center; /* el crecimiento empieza desde la izquierda */
}

/* Animación al pasar el mouse */
.footer-section ul li a:hover {
    color: var(--blanco); 
    transform: scaleX(1.3);
}

/* Subrayado animado */
.footer-section ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background-color: var(--blanco);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover::after {
    width: 100%;
}


.footer .social-icons {
    margin-top: 1em;
    justify-content: left;
    display: flex;
    gap: 1em;
}


.footer .social-icons a {
    text-decoration: none;
    color: var(--blanco);
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.footer .social-icons a:hover {
    transform: scale(1.15);
}

.footer-bottom {
    border-top: 1px solid var(--grisClaro);
    margin-top: 2em;
    padding-top: 1em;
    display: flex;
    justify-content: center;   /* centra horizontalmente */
    align-items: center;
    flex-wrap: wrap;
    column-gap: 35em;           /* separación horizontal */
    row-gap: 0.5em;            /* separación vertical más pequeña */
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9em;
    color: var(--grisClaro);
}

.bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 1em;
    row-gap: 1em;
}

.bottom-links a {
    color: var(--grisClaro);
    text-decoration: none;
    font-size: 0.9em;
}

.bottom-links a:hover {
    color: var(--blanco);
}

.bottom-links a:not(:last-child) {
    border-right: 1px solid var(--grisClaro);
    padding-right: 1em;
}


/* Responsive: en móviles reducimos aún más la separación */
@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        row-gap: 0.8em;   /* separación vertical controlada */
        column-gap: 0;    /* sin separación horizontal porque ya están en columna */
    }
}


.newsletter-form {
    max-width: 500px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 1.5em;
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

.newsletter-label {
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 1em;
    color: var(--blanco);
}

.newsletter-input-group {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
}

.newsletter-input-group input {
    flex: 1;
    padding: 0.8em;
    border: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    font-size: 1em;
}

.newsletter-input-group input:focus {
    box-shadow: 0 0 8px var(--color-verde);
}

.newsletter-btn {
    background: var(--color-acento);
    border: none;
    padding: 0.8em 1.2em;
    border-radius: 0 8px 8px 0;
    color: var(--blanco);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.newsletter-btn:hover {
    background: var(--color-verde);
    transform: scale(1.05);
    }

.newsletter-hint {
    display: block;
    margin-top: 0.8em;
    font-size: 0.85em;
    color: var(--grisClaro);
}


a {
    text-decoration: none;
    color: inherit;
}

/* Redes sociales */
.social-sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: rgba(30, 52, 97, 0.9);
    padding: 0.6rem;
    border-radius: 12px 0 0 12px;
    z-index: 1000;
}

.social-sidebar a {
    display: block;
    margin: 0.5rem 0;
    color: white;
    font-size: 1.4rem;
    text-align: center;
    transition: transform 0.3s;
}

.social-sidebar a:hover {
    transform: scale(1.2);
}

.btn-logout {
background-color: white;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 1.5em;
margin-left: 2em;
margin: 0;
padding-top: 0%;
border: none;
text-decoration: none;
color: black;
font-weight: bold;
padding: 0.5em 1em;
transition: all 0.18s ease;
position: relative;
}

.usuario-logueado {
    display: flex;
    align-items: center;
    gap: 0.8em;
}

.usuario-nombre {
    font-weight: bold;
    color: #000000;
    font-size: 1em;
    text-transform: capitalize;
}
.btn-logout {
    background-color: white;
    color: #0257A0;
    font-weight: bold;
    padding: 0.4em 0.9em;
    border: 2px solid #0257A0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}
.btn-logout:hover {
    background-color: #0257A0;
    color: white;
}
.btn-logout {
    background-color: white;
    color: #0257A0;
    font-weight: bold;
    padding: 0.4em 0.9em;
    border: 2px solid #0257A0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease; /* importante para animar suavemente */
    font-size: 0.9em;
}

/* Al pasar el mouse */
.btn-logout:hover {
    background-color: #0257A0;
    color: white;
    transform: scale(1.1); /* agranda un 10% */
} 



.container {
display: flex;
flex-wrap: wrap;
max-width: 1200px;
margin: 3em auto;
background: white;
border-radius: 10px;
box-shadow: 0 6px 20px var(--color-secundario);
overflow: hidden;
gap: 2em;
text-align: justify;
}

.right-column{
    margin: 1.5em;
}

/* Estilo básico del acordeón */
.acordeon {
    width: 100%;
    max-width: 800px;
    margin: 2em auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Botón/título del acordeón */
.acordeon-header {
    width: 100%;
    background-color: #16213e; /* tu --color-secundario si usas variables */
    color: white;
    cursor: pointer;
    padding: 1em;
    text-align: left;
    border: none;
    outline: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.acordeon-header:hover {
    background-color: #0f3460; /* un poco más oscuro */
}

/* Contenido oculto por defecto */
.acordeon-content {
    max-height: 0;
    overflow: hidden;
    background-color: #f7f7f7;
    transition: max-height 0.4s ease;
    padding: 0 1em;
}

/* Cuando se abre, se añade esta clase */
.acordeon-content.active {
    padding: 1em;
}

.imagenes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.imagenes img {
    max-width: 200px;
    height: auto;
}


/* ===== FORMULARIO DE CONTACTO ===== */
.formulario-contacto {
    max-width: 600px;
    margin: 2em auto;
    padding: 2em;
    background: var(--blancogris);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    font-family: Arial, Helvetica, sans-serif;
}

.formulario-contacto h3 {
    text-align: center;
    margin-bottom: 1em;
    color: var(--color-azul);
    font-size: 1.5em;
    font-weight: bold;
}

.formulario-contacto label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
    color: var(--color-secundario);
}

.formulario-contacto input,
.formulario-contacto textarea {
    width: 100%;
    padding: 0.8em;
    margin-bottom: 1.2em;
    border: 1px solid var(--grisClaro);
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
    border-color: var(--color-azul);
    box-shadow: 0 0 8px rgba(2,87,160,0.3);
    outline: none;
}

/* Botones */
.formulario-contacto button {
    background: var(--color-acento);
    color: var(--blanco);
    border: none;
    padding: 0.8em 1.5em;
    margin-right: 1em;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.formulario-contacto button:hover {
    background: var(--color-verde);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 600px) {
    .formulario-contacto {
        padding: 1.2em;
    }

    .formulario-contacto button {
        width: 100%;
        margin-bottom: 1em;
    }
}

.btn-container {
    text-align: center;
    margin-top: 1.5em;
}

.btn-innocommerce {
    display: inline-block;
    background: var(--color-azul);
    color: var(--blanco);
    font-weight: bold;
    padding: 0.9em 1.8em;
    border-radius: 12px;
    font-size: 1.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-innocommerce:hover {
    background: var(--color-verde);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
