/* ======== Header general ======== */
header {
    width: 100%;
    height: 550px;
    background-image: url('../Images/Fondo1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    font-family: 'Segoe UI', sans-serif;
    color: black;
}

/* ======== Logo (esquina superior izquierda) ======== */
header .logo {
    position: absolute;
    top: 30px;
    left: 40px;
}

header .logo img {
    width: 10em;
    height: 10em;
    border-radius: 50%;
    object-fit: cover;
}

/* ======== Menú (esquina superior derecha) ======== */
header nav {
    position: absolute;
    top: 25px;
    right: 25px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

header nav ul li a {
    color: black;
    text-decoration: none;
    font-size: 1.3em;
}

/* ======== Texto centrado en header ======== */
header .texto-central {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 20px 40px;
    border-radius: 10px;
}

header .texto-central h1 {
    font-size: 3.5em;
    font-weight: 300;
    letter-spacing: 2px;
    color: white;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    color: white;
    text-shadow:
      -1px -1px 0 #000,
       1px -1px 0 #000,
      -1px  1px 0 #000,
       1px  1px 0 #000;
}

header .texto-central p {
    color: white;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 1.5em;
    color: white;
    text-shadow:
      -1px -1px 0 #000,
       1px -1px 0 #000,
      -1px  1px 0 #000,
       1px  1px 0 #000;
}
/* Menú hamburguesa base */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 1001;
  }
  
  .menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: black;
    border-radius: 2px;
  }
  
  /* Navbar mobile oculta por defecto */
  .navbar {
    transition: all 0.3s ease;
  }

/* ======== Responsive ======== */
@media (max-width: 768px) {
    header {
        height: auto;
        padding-bottom: 40px;
    }

    header .logo {
        position: static;
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
    header .logo img {
        width: 15%;
        height:auto;
        border-radius: 50%;
        object-fit: cover;
    }
    

    header nav {
        position: static;
        display: flex;
        justify-content: center;
        padding: 10px;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    header .texto-central {
        position: static;
        transform: none;
        padding: 20px;
        margin-top: -20px; /* Puedes ajustar este valor */
        
    }
    

    header .texto-central h1,
    header .texto-central p {
        text-align: center;
    }
    .menu-toggle {
        display: flex;
      }
    
      .navbar {
        display: none;
        position: absolute;
        top: 90px;
        right: 20px;
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      }
    
      .navbar.active {
        display: flex;
        flex-direction: column;
        gap: 10px;
      }
    
      .navbar ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }
    
      .navbar li a {
        font-size: 1.2em;
        color: black;
      }
}


