body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #5EBBF2;
}
#cabecera {
    width: 100%;
    height: 8em;
    display: flex;
    align-items: center;
    padding: 0 2em;
    background: #5EBBF2;
    box-sizing: border-box;
}
#cabecera img {
    height: 6em;
    margin-right: 1em;
    vertical-align: middle;
}
#cabecera h1 {
    margin: 0;
    font-size: 2em;
    font-weight: bold;
    color: #333;
    vertical-align: middle;
}
.cabecera-links {
    display: flex;
    align-items: center;
    margin-left: 2em;
}
.cabecera-links a {
    margin-left: 1em;
    text-decoration: none;
    color: #007bff;
    font-size: 1em;
}
.cabecera-buttons {
    margin-left: auto;
    display: flex;
    align-items: center;
}
.lateral-buttons {
    margin-left: auto;
    align-items: center;
}
.cabecera-buttons button {
    margin-left: 1em;
    padding: 0.5em 1.2em;
    font-size: 1em;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
}
.lateral-buttons button {
    margin-top: 1em;
    padding: 0.5em 1.2em;
    font-size: 1em;
    border: none;
    border-radius: 4px;
    background: #074d9d;
    color: #fff;
    cursor: pointer;
}
.main-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
}
#seccion1 {
    width: 28%;
    background: linear-gradient(135deg, #5EBBF2 0%, #358fc0 100%);
    padding: 2em 1em;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#buscar1 {
    width: 80%;
    padding: 0.7em;
    font-size: 1em;
    margin-bottom: 2em;
    margin-top: 0;
    border-radius: 4px;
    border: 1px solid #ccc;
    display: block;
}
#seccion1 h1 {
    text-align: center;
    font-size: 1.2em;
    color: #333;
    margin-top: 1em;
}
.right-sections {
    width: 72%;
    display: flex;
    flex-direction: column;
}
#seccion2 {
    width: 100%;
    background: linear-gradient(135deg, #5EBBF2 0%, #3cabe6 100%);
    margin-bottom: 0;
    padding: 2em 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#seccion2 h1 {
    text-align: center;
    margin-bottom: 0;
    color: #333;
}
#seccion2 h3 {
    text-align: center;
    margin-bottom: 1.5em;
    color: #666;
}
.seccion2-buttons {
    display: flex;
    justify-content: center;
    gap: 1em;
}
.seccion2-buttons button {
    padding: 0.7em 1.5em;
    font-size: 1em;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
}
#seccion3 {
    width: 100%;
    background: #5EBBF2;
    padding: 1em 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#seccion3 h1 {
    text-align: center;
    margin-bottom: 1em;
    color: #333;
}
#ofertas {
    width: 98%;
    background: #fff;
    min-height: 10em;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1em;
}
#slider-seccion1 {
    width: 95%;
    margin: auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 20em;
    overflow: hidden; /* Evita que la imagen desborde */
}
#slider-seccion1 img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    max-width: 100%;
    max-height: 100%;
}
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
    }
    #seccion1, .right-sections {
        width: 100%;
    }
}
/* Estilos parta Popup emergente de inicio de sesion*/

#login-section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1565c0;
    border-radius: 1em;
    box-shadow: 0 0 1em #0006;
    padding: 2em;
    z-index: 1000;
    display: none;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#login-form h2 {
    color: #fff;
    margin-bottom: 1em;
    text-align: center;
}

#login-form input {
    padding: 0.7em;
    border-radius: 0.5em;
    border: none;
    font-size: 1em;
    box-shadow: 0 0 0.2em #0002;
}

#login-form input::placeholder {
    color: #888;
}

#login-form button {
    padding: 0.7em;
    border-radius: 0.5em;
    border: none;
    background: #0d47a1;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 0 0.2em #0002;
    transition: background 0.2s;
}

#login-form button:hover {
    background: #4d6379;
}
/* Estilos para el popup emergente de registro*/
#registro-section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1565c0;
    border-radius: 1em;
    box-shadow: 0 0 1em #0006;
    padding: 2em;
    z-index: 1000;
    display: none;
}

#registro-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#registro-form h2 {
    color: #fff;
    margin-bottom: 1em;
    text-align: center;
}

#registro-form input,
#registro-form select,
#registro-form textarea {
    padding: 0.7em;
    border-radius: 0.5em;
    border: none;
    font-size: 1em;
    box-shadow: 0 0 0.2em #0002;
}

#registro-form input::placeholder,
#registro-form textarea::placeholder {
    color: #888;
}

#registro-form textarea {
    resize: vertical;
    min-height: 3em;
    max-height: 10em;
}

#registro-form button {
    padding: 0.7em;
    border-radius: 0.5em;
    border: none;
    background: #0d47a1;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 0 0.2em #0002;
    transition: background 0.2s;
}

#registro-form button:hover {
    background: #4d6379;
}