/*.img1{
    position: static;
    width: 120px;
}

.img2{
    position: relative;
    top: 20px;
    left: 40px;
    width: 120px;
}

.img3{
    position: absolute;
    top: 50px;
    right: 20px;
    width: 120px;
}

.img4{
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 100px;
}

.img5{
    position: sticky;
    top: 0;
    width: 120px;
}
*/

/* 
========================
Navbar 1
========================

body{
    margin: 0;
    font-family: Arial, sans-serif;
}

.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: gray;
    padding: 10px 20px;
}

.menu{
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

.menu a{
    text-decoration: none;
    color: white;
}

===============================
Navbar 2
===============================
*/

body{
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100dvh;                 /* asegura cubrir el alto de la ventana */
    background: linear-gradient(180deg, #ffffff 0%, #dff1ff 100%);
    background-attachment: fixed;       /* efecto suave al hacer scroll */
}

.container{
    max-width: 1100px;
    margin: 20px auto;
}

.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(143, 56, 30, 0.918);
    padding: 10px 20px;
    border-radius: 14px;
}

.logo{
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 2px solid #ffffff7e;
    /*border-radius: 4px;*/
    border-radius: 50%;
}

.menu{
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

.menu a{
    text-decoration: none;
    color: white;
}

.btn{
    background: green;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
}

.menu-hamburguesa{
    display: none;
    font-size: 3rem;
    cursor: pointer;
    color: white;
}

/* Área Responsive*/

@media(max-width: 780px){
    nav ul{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        /*right: -100%;*/
        height: 100vh;
        width: 100%;
        padding: 10px;
        color: black;
        background: gray;
    }

    nav ul.show{
        display: flex;
    }

    .menu-hamburguesa{
        display: block;
        float: right;
    }

    nav .logo{
        float: none;
        display: inline-block;
    }
}



/*
===============================
Navbar 3
===============================


body{
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: rgb(93, 91, 91);
    color: white;
}

.container{
    max-width: 900px;
    margin: 20px auto;
}

.navbar{
    background: rgb(76, 76, 76);
    padding: 10px 0;
    border-radius: 40px;
}

.menu{
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.menu a{
    text-decoration: none;
    color: aliceblue;
    font-weight: bold;
}

*/

:root{
  --header-height: 64px;
  --header-bg: rgba(255,255,255,0.9);
  --header-border: 1px solid rgba(10,42,67,0.08);
  --header-link: #0a2a43;
  --header-link-hover: #075a9e;
}

/* Normaliza y centra cualquier encabezado existente */
header, .header, .navbar, nav[role="navigation"]{
  position: sticky;            /* queda arriba al hacer scroll */
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: var(--header-border);
}

/* Contenedor interno centrado */
header .bar, .header .bar, .navbar .bar, nav .bar{
  max-width: 1200px;
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: center;     /* ¡centrado horizontal! */
  gap: 28px;
}

/* Título / logo del sitio */
header .brand, .header .brand, .navbar .brand, nav .brand{
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--header-link);
  margin: 0;
}

/* Navegación */
header nav ul, .header nav ul, .navbar nav ul, nav ul{
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}

header nav a, .header nav a, .navbar nav a, nav a{
  text-decoration: none;
  color: var(--header-link);
  font-weight: 600;
  line-height: 1;
}

header nav a:hover, .header nav a:hover, .navbar nav a:hover, nav a:hover{
  color: var(--header-link-hover);
  text-decoration: underline;
}

/* Si antes tu navbar usaba floats o "space-between", los neutralizamos */
header *, .header *, .navbar *{
  float: none !important;
}