/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul-principal: #003C53;
    --azul-oscuro: #002A36;
    --gris-fondo: #f2f2f2;
    --blanco: #ffffff;
    --texto: #333;
    --verde: #4CAF50; 
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--gris-fondo);
    color: var(--texto);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--azul-principal);
    color: var(--blanco);
    padding: 20px 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo img {
    width: 120px;
    height: auto;
    border-radius: 8px;
}

/* Título */
.title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.title h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.title p {
    font-size: 18px;
    opacity: 0.9;
}

/* Navegación */
.nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav li {
    position: relative;
}

.nav a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* Hover con fondo */
.nav a:hover {
    background: var(--blanco);
    color: var(--azul-principal);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Línea animada debajo */
.nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--blanco);
    transition: width 0.3s ease-in-out;
    border-radius: 2px;
}

.nav a:hover::after {
    width: 100%;
}

/* Bienvenida */
.welcome {
    background: var(--blanco);
    margin: 20px auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 1000px;
    box-shadow: 0px 12px 6px rgba(0, 0, 0, 0.1);
    animation: fadeSlide 2s ease-in-out;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.instructions {
    background: #E3F2FD;
    border-left: 4px solid var(--azul-principal);
    padding: 15px;
    margin-top: 15px;
}

.instructions h3 {
    margin-bottom: 10px;
    color: var(--azul-oscuro);
}

/* Contenedor App */
.app-container {
    width: 95%;
    max-width: 12000px;
    margin: 20px auto;
    background: #fff;
    padding: 7px;
    border-radius: 8px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
}

iframe {
    border-radius: 8px;
}

/* Footer */
footer {
    background: var(--azul-principal);
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
}

/* Estilos adicionales */
h2, h3 {
    color: var(--azul-oscuro);
}

h2 {
    margin-bottom: 15px;
}

h3 {
    margin-top: 20px;
}

p {
    line-height: 1.6;
}

/* Fondo de la página */
body {
    background: url("IMG/fondo.png") no-repeat center center fixed;
    background-size: cover; 
}
/* Estilos del menú */
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
  }
  
  /* Lista normal */
  .nav .menu {
    list-style: none;
    display: flex;
    gap: 20px;
  }
  
  .nav .menu li a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
  }
  
  /* Hover */
  .nav .menu li a:hover {
    background: var(--blanco);
    color: var(--azul-principal);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  }
  
  /* Botón hamburguesa */
  .menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--blanco);
  }
  
  /* 📱 Responsive */
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }
  
    .nav .menu {
      display: none;
      flex-direction: column;
      background: var(--azul-principal);
      position: absolute;
      top: 60px;
      right: 0;
      width: 200px;
      padding: 10px;
      border-radius: 8px;
      box-shadow: 0px 6px 12px rgba(0,0,0,0.2);
    }
  
    .nav .menu.active {
      display: flex;
    }
  
    .nav .menu li {
      margin: 10px 0;
    }
  }
  