body{
    margin: 0;
    padding: 0;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    background: linear-gradient(175deg, #0B9BF4, #097FC8, #054770 );
    height: 100vh;
}

.formulario{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: white;
    border-radius: 10px;
}

.formulario h1{
    text-align: center;
    padding: 0 0 20px 0;
    border-bottom: 1px solid silver;
}

.formulario form{
    padding: 0 40px;
    box-sizing: border-box;
}

form .username{
    position: relative;
    border-bottom: 2px solid silver;
    margin: 30px 0 ;
}

.username input{
    width: 100%;
    padding: 0px;
    height: 40px;
    font-size: 16px;
    border: none;
    background: none;
    outline: none;
}

.username label{
    position: absolute;
    top: 50%;
    left: 5px;
    color: lightgray;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}

.username span::before{
    content: '';
    position:absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: black;
    transition: .5s;
}

.username input:focus ~ label,
.username input:not(:placeholder-shown) ~ label {
    top: 5px;
    color: black;
}


.username input:focus ~ span::before,
.username input:not(:placeholder-shown) ~ span::before {
    width: 100%;
}


form .contrasena{
    position: relative;
    border-bottom: 2px solid silver;
    margin: 30px 0 ;
}

.contrasena input{
    width: 100%;
    padding: 0px;
    height: 40px;
    font-size: 16px;
    border: none;
    background: none;
    outline: none;
}

.contrasena label{
    position: absolute;
    top: 50%;
    left: 5px;
    color: lightgray;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}

.contrasena span::before{
    content: '';
    position:absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: black;
    transition: .5s;
}

.contrasena input:focus ~ label,
.contrasena input:not(:placeholder-shown) ~ label {
    top: 5px;
    color: black;
}


.contrasena input:focus ~ span::before,
.contrasena input:not(:placeholder-shown) ~ span::before {
    width: 100%;
}

.recordar{
    margin: -5px 0 20px 5px;
    color: #097FC8;
    cursor:pointer;
}

.recordar :hover{
    text-decoration: underline;
}

input[type="submit"]{
    width: 100% ;
    height: 50px;
    border: 1px solid;
    background: #054770;
    border-radius: 25px;
    font-size: 18px;
    color: white;
    cursor: pointer;
    outline: none;
}

input [type="submit"]:hover{
    border-color: #0B9BF4;
    transition: .5s;
}

.registrarse{
    margin: 30px 0 ;
    text-align: center;
    font-size: 16px;
    color: black;
}

.registrarse a{
    color: #054770;
    text-decoration: none;
}

.registrarse a:hover{
    text-decoration: underline;
}

.group {
    position: relative;
    margin-bottom: 20px;
}

.group input {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #ccc;
    background: none;
    outline: none;
    transition: 0.3s;
}

.group input:focus,
.group input:not(:placeholder-shown) {
    border-bottom-color:#054770;
}

.group label {
    position: absolute;
    left: 0;
    top: 12px;
    font-size: 16px;
    color: #777;
    pointer-events: none;
    transition: 0.3s ease;
}

.group input:focus ~ label,
.group input:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 14px;
    color:#054770;
}

/* Enlace */
.login-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #555;
}

.login-link a {
    color:#054770;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: white;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    height: 40px;
}

.search-bar {
    display: flex;
    align-items: center;
    width: 350px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
}

.search-btn {
    background: #0077cc;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #005b9c;
}

.user-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.login-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.cart-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #ff4d4d;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navegación de categorías */
.nav-categories {
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.nav-categories ul {
    display: flex;
    list-style: none;
    padding: 15px 30px;
    gap: 40px;
}

.nav-categories a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.nav-categories a:hover {
    color: #0077cc;
}

/* Contenido principal */
.main-content {
    padding: 40px 30px;
    text-align: center;
}

.main-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.main-content p {
    font-size: 1.1rem;
    color: #666;
}