/* ==========================================================================
   NAVBAR compartida — copia literal de los estilos de centro_control.html.
   La usan index.html y perfil_financiero.html. Si cambia la navbar del
   centro de control, se vuelve a copiar el bloque completo aquí.
   ========================================================================== */
    .solomovil{display: none;}
    .solopc{display:block}
    body {
      font-family: 'Poppins', sans-serif;
      background: #ebebeb;
      margin: 0;
      padding: 0;
    }

    .navbar {
      position: relative;
      background: #202020;
      color: #fffdf4;
      padding: 1.171vw;
      display: flex;
      align-items: center;
      border-radius: 1.464vw;
      height: 20vh;
    }

    .logo {           /* Tamaño del texto */
      margin-left: 1vw;
      display: flex;
      align-items: center;
      gap: 0.2vw;                 /* Espacio entre imagen y texto */
    }

    .logo img {
      height: 5.7vw;
      width: 5.7vw;
      max-width: 100%;
    }

    .logo span {
      font-size: 2.6vw;
      font-weight: 500;
      color: #fffdf4;
      font-family: 'Poppins', sans-serif;
      position: relative;

    }

    .nav-links {
      display: flex-start;
      margin-left: 9vw;
      gap: 2vw;
    }

    .nav-links a {
      margin: 0 1.171vw;
      color: white;
      text-decoration: none;
      font-weight: 200;
      font-size: 1.20vw;
      font-family: 'Poppins', sans-serif;
    }

    #mobileMenu {
      display: none; /* Oculta el menú móvil por defecto */
    }

    .nav-links a:hover {
      background-color: #8b8b8b;
      color: white;
      padding: 0.417vw;
      border-radius: 1.464vw;
      transform: scale(0.5); /* ligeramente más grande */
      transition: all 0.3s ease;
    }


    .buttons {
      position: absolute;
      top: 60%;
      right: 0.351vw;
      gap: 0.586vw;
      background: linear-gradient(90deg, #ff3131, #ff914d);
      padding: 1.171vw 1.757vw;
      display: flex;
      gap: 1.171vw;
      border-radius: 1.464vw;
      width: 24.012vw;
      height: 8.712vw;
      align-items: center;
      justify-content: space-evenly;
      box-shadow: 0 0.293vw 0.586vw rgba(0,0,0,0.2);
    }

    .buttons button {
      background: linear-gradient(90deg, #202020, #373737);
      color: white;
      border: none;
      padding: 0.234vw 1.171vw;
      border-radius: 0.366vw;
      cursor: pointer;
      font-weight: 300;
      font-size: 1.312vw;
      font-family: 'Poppins', sans-serif;
      border-radius: 1.464vw;
      width: 14.641vw;
      height: 2.562vw;
    }

    .buttons button:hover {
      background: linear-gradient(90deg, #353535, #4d4d4d); /* colores cálidos */
      transform: scale(1.05); /* ligeramente más grande */
      transition: all 0.3s ease; /* suavidad al cambio */
    }

    @media (max-width: 1080px) {
      .solomovil{display: block;}
      .solopc{display:none}
      .navbar { /* Navbar negra*/
        flex-direction: row;
        justify-content: space-between;
        padding: 1em;
        position: relative;
        height: 27.778vw;

      }

      .logo {           /* Tamaño del texto */
        margin-left: 0.019vw;
        display: flex;
        align-items: center;
        gap: 0.019vw;                 /* Espacio entre imagen y texto */
      }

      .logo img {
        height: 18.519vw;
        width: 18.519vw;
      }

      .logo span {
        font-size: 5.926vw;
        font-weight: 500;
        color: #fffdf4;
        font-family: 'Poppins', sans-serif;
        position: relative;

      }

      .menu-toggle {
        display: block;
        position: absolute;
        top: 8vw;
        right: 6vw;
        font-size: 5.926vw;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        z-index: 1001;
      }

      .nav-linksm { /* Enlaces de la navbar */
        position: fixed;
        display: flex;
        top: 10%;
        right: -100%;
        width: 30%;
        height: 100%;
        background-color: #202020;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 2.963vw 2.222vw;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        border-radius: 1.852vw;
      }

      .nav-linksm a {
        color: white;
        text-decoration: none;
        margin: 1.481vw 0;
        font-size: 3.704vw;
        top: 10%;
      }

      .nav-linksm.open {
        right: 0;
      }

      .buttons { /*Botones naranjas de la navbar*/
        display: flex;
        position: absolute;
        top: 70%;
        right: 0.444vw;
        gap: 0.741vw;
        background: linear-gradient(90deg, #ff3131, #ff914d);
        padding: 1.481vw 2.222vw;
        display: flex;
        gap: 1.481vw;
        border-radius: 5.926vw;
        width: 59.259vw;
        height: 22.222vw;
        align-items: center;
        justify-content: space-evenly;
        box-shadow: 0 0.37vw 0.741vw rgba(0,0,0,0.2);
      }

      .buttons button {
        background: linear-gradient(90deg, #202020, #373737);
        color: white;
        border: none;
        padding: 0.2em 1em;
        font-weight: 300;
        font-size: 2em;
        font-family: 'Poppins', sans-serif;
        border-radius: 4em;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 13em;
        height: 2.5em;
      }
    }
