* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --rosa-principal: #e84b8a;
    --rosa-claro: #fce7f0;
    --rosa-muy-claro: #fff5f9;
    --rosa-oscuro: #7c1748;
    --rosa-hover: #d93676;
    --crema: #fffaf7;
    --blanco: #ffffff;
    --texto: #321b2b;
    --texto-secundario: #756570;
    --borde: #f0dce5;
    --sombra: 0 8px 25px rgba(180, 75, 120, 0.10);
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: var(--crema);
    color: var(--texto);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}

.navbar {
    width: 100%;
    min-height: 88px;
    background: linear-gradient(90deg, #fde9f1, #fff7fa);
    display: flex;
    align-items: center;
    padding: 0 5%;
    gap: 35px;
    border-bottom: 1px solid #f4dce6;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 205px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    border: 3px solid var(--rosa-principal);
    border-radius: 15px 15px 18px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rosa-principal);
    font-size: 24px;
}

.logo-text h1 {
    font-size: 28px;
    line-height: 1;
    color: var(--rosa-principal);
    font-weight: 800;
}

.logo-text span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--rosa-oscuro);
    font-weight: 600;
}

.menu {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
}

.menu a {
    color: var(--rosa-oscuro);
    font-size: 15px;
    font-weight: 600;
    padding: 10px 4px;
    transition: 0.25s;
}

.menu a:hover {
    color: var(--rosa-principal);
}

.menu a.activo {
    background-color: var(--rosa-principal);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.buscador {
    width: 290px;
    height: 44px;
    background-color: white;
    border: 1px solid var(--borde);
    border-radius: 25px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 3px 12px rgba(100, 50, 80, 0.05);
}

.buscador i {
    color: var(--rosa-principal);
    margin-right: 10px;
}

.buscador input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: var(--texto);
}

.buscador input::placeholder {
    color: #aaa;
}

.login {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--rosa-oscuro);
    font-weight: 600;
    white-space: nowrap;
    transition: 0.25s;
}

.login i {
    font-size: 21px;
}

.login:hover {
    color: var(--rosa-principal);
}

.carrito {
    position: relative;
    color: var(--rosa-principal);
    font-size: 22px;
}

.contador-carrito {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--rosa-principal);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.hero {
    min-height: 410px;
    padding: 55px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;

    background:
        radial-gradient(circle at 70% 30%, #ffdce9 0%, transparent 35%),
        linear-gradient(110deg, #fff9fb, #fde8f0);
}

.hero-contenido {
    max-width: 590px;
    z-index: 2;
}

.hero-subtitulo {
    color: var(--rosa-principal);
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 14px;
    margin-bottom: 15px;
}

.hero h2 {
    font-size: clamp(40px, 5vw, 66px);
    line-height: 1.05;
    color: #3a1830;
    margin-bottom: 22px;
    font-weight: 800;
}

.hero h2 span {
    display: block;
    color: var(--rosa-principal);
    font-family: Georgia, serif;
    font-style: italic;
}

.hero p {
    color: var(--texto-secundario);
    font-size: 17px;
    max-width: 480px;
    margin-bottom: 28px;
}

.boton-principal {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--rosa-principal);
    color: white;
    padding: 14px 24px;
    border-radius: 28px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(232, 75, 138, 0.25);
    transition: 0.25s;
}

.boton-principal:hover {
    background-color: var(--rosa-hover);
    transform: translateY(-2px);
}

.hero-imagen {
    width: 48%;
    height: 330px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.beneficios {
    background-color: white;
    padding: 22px 6%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-bottom: 1px solid #f3e1e8;
}

.beneficio {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-right: 1px solid #f0e1e7;
}

.beneficio:last-child {
    border-right: none;
}

.beneficio-icono {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--rosa-muy-claro);
    color: var(--rosa-principal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.beneficio h3 {
    font-size: 15px;
    color: var(--rosa-oscuro);
    margin-bottom: 3px;
}

.beneficio p {
    font-size: 12px;
    color: var(--texto-secundario);
}

.seccion {
    padding: 55px 6% 20px;
}

.seccion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.seccion-header h2 {
    font-size: 28px;
    color: #461c39;
}

.adorno {
    color: var(--rosa-principal);
    font-size: 20px;
}

.seccion-header > a {
    color: var(--rosa-principal);
    font-size: 14px;
    font-weight: 600;
}

.seccion-header > a i {
    margin-left: 6px;
}

.categorias {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.categoria {
    min-height: 130px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.25s;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.categoria:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra);
}

.categoria-imagen {
    font-size: 48px;
}

.categoria h3 {
    font-size: 14px;
    color: #421c36;
}

.categoria-rosa {
    background-color: #ffe3ed;
}

.categoria-morada {
    background-color: #f0e2fa;
}

.categoria-dulce {
    background-color: #ffe8e2;
}

.categoria-verde {
    background-color: #e5f5e9;
}

.categoria-azul {
    background-color: #e1f1f8;
}

.categoria-amarilla {
    background-color: #fff1d6;
}

.productos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.producto {
    background-color: white;
    border: 1px solid var(--borde);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: 0.25s;
}

.producto:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra);
}

.favorito {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: white;
    color: #ef77a7;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.producto-imagen {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
}

.producto-azul {
    background-color: #e9f3ff;
}

.producto-rojo {
    background-color: #fff0f0;
}

.producto-cafe {
    background-color: #fff1e7;
}

.producto-morado {
    background-color: #f2eafa;
}

.producto-bebida {
    background-color: #fce9e9;
}

.producto-oreo {
    background-color: #eaf1f5;
}

.producto-info {
    padding: 13px;
}

.producto-info h3 {
    font-size: 14px;
    color: #351b2c;
    margin-bottom: 4px;
}

.producto-descripcion {
    font-size: 12px;
    color: #8b7c85;
}

.producto-pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-top: 12px;
}

.producto-pie strong {
    font-size: 16px;
    color: #301725;
}

.boton-agregar {
    border: none;
    background-color: var(--rosa-principal);
    color: white;
    border-radius: 15px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.boton-agregar:hover {
    background-color: var(--rosa-hover);
}

.footer {
    margin-top: 60px;
    background: linear-gradient(135deg, #fce3ed, #fff1f6);
    border-top: 1px solid #f2d9e3;
}

.footer-contenido {
    padding: 45px 7%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer-columna h2 {
    color: var(--rosa-principal);
    margin-bottom: 10px;
}

.footer-columna h3 {
    color: var(--rosa-oscuro);
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-columna p {
    color: var(--texto-secundario);
    font-size: 14px;
    max-width: 280px;
}

.footer-columna > a {
    display: block;
    color: var(--texto-secundario);
    font-size: 14px;
    margin-bottom: 8px;
    transition: 0.2s;
}

.footer-columna > a:hover {
    color: var(--rosa-principal);
}

.redes {
    display: flex;
    gap: 10px;
}

.redes a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: white;
    color: var(--rosa-principal);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.redes a:hover {
    background-color: var(--rosa-principal);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    border-top: 1px solid #f0d5e1;
    color: #916d7f;
    font-size: 12px;
}

@media (max-width: 1200px) {

    .navbar {
        padding: 0 3%;
        gap: 20px;
    }

    .menu {
        gap: 15px;
    }

    .buscador {
        width: 210px;
    }

    .categorias {
        grid-template-columns: repeat(3, 1fr);
    }

    .productos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {

    .navbar {
        flex-wrap: wrap;
        padding: 15px 5%;
    }

    .logo {
        width: 100%;
    }

    .menu {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .navbar-right {
        margin-left: auto;
    }

    .buscador {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 45px 6%;
    }

    .hero-contenido {
        max-width: 100%;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-imagen {
        width: 100%;
        margin-top: 20px;
    }

    .hero-imagen-vacia {
        display: none;
    }

    .beneficios {
        grid-template-columns: 1fr 1fr;
    }

    .beneficio {
        border-right: none;
    }

    .categorias {
        grid-template-columns: repeat(2, 1fr);
    }

    .productos {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-contenido {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {

    .login span {
        display: none;
    }

    .hero h2 {
        font-size: 38px;
    }

    .beneficios {
        grid-template-columns: 1fr;
    }

    .categorias {
        grid-template-columns: 1fr 1fr;
    }

    .productos {
        grid-template-columns: 1fr;
    }

    .footer-contenido {
        grid-template-columns: 1fr;
    }
}

button.login { border: 0; background: transparent; cursor: pointer; font-size: 16px; padding: 6px 0; }
.acceso-abierto { overflow: hidden; }
.acceso { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 32px; border: 1px solid var(--borde); border-radius: 24px; background: var(--blanco); color: var(--texto); box-shadow: 0 24px 80px #321b2b30; overflow-y: auto; }
.acceso::backdrop { background: #321b2b80; backdrop-filter: blur(3px); }
.acceso-cerrar { position: absolute; top: 10px; right: 14px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--texto-secundario); font-size: 28px; cursor: pointer; border-radius: 50%; }
.acceso-marca { text-align: center; color: var(--rosa-principal); font-size: 29px; font-weight: 800; margin: 6px 0 16px; }
.acceso-marca span { font-size: 24px; }
.acceso h2 { text-align: center; font-size: 25px; line-height: 1.25; }
.acceso > p:first-of-type { text-align: center; color: var(--texto-secundario); font-size: 13px; margin: 8px 0 22px; }
.acceso-tabs { display: flex; border-bottom: 1px solid var(--borde); margin-bottom: 22px; }
.acceso-tabs button { flex: 1; border: 0; border-bottom: 2px solid transparent; padding: 12px 4px; background: transparent; color: var(--texto-secundario); font-size: 14px; cursor: pointer; }
.acceso-tabs button[aria-selected="true"] { border-bottom-color: var(--rosa-principal); color: var(--rosa-oscuro); font-weight: 700; }
.acceso-separador { display: flex; gap: 12px; align-items: center; margin: 20px 0; color: var(--texto-secundario); font-size: 12px; }
.acceso-separador::before, .acceso-separador::after { content: ''; flex: 1; height: 1px; background: var(--borde); }
.acceso label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
.acceso input { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--borde); background: var(--crema); border-radius: 10px; color: var(--texto); font-size: 16px; }
.acceso input::placeholder { color: #8b7c85; font-size: 14px; }
.acceso-clave { position: relative; }
.acceso-clave input { padding-right: 50px; }
.ver-clave { position: absolute; right: 3px; top: 3px; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; color: var(--texto-secundario); }
.acceso-recuperar { display: block; margin: 14px 0 18px auto; border: 0; background: transparent; color: var(--rosa-oscuro); font-size: 12px; text-decoration: underline; cursor: pointer; }
.acceso-enviar { display: block; width: 100%; min-height: 46px; border: 0; border-radius: 12px; background: var(--rosa-principal); color: white; font-size: 15px; font-weight: 700; cursor: pointer; }
#panel-registro .acceso-enviar { margin-top: 22px; }
.acceso-enviar:hover { background: var(--rosa-hover); }
.acceso :focus-visible, button.login:focus-visible { outline: 3px solid var(--rosa-oscuro); outline-offset: 3px; }
.acceso-aviso { margin-top: 18px; color: var(--texto-secundario); text-align: center; font-size: 12px; line-height: 1.5; }
.acceso [hidden] { display: none !important; }
@media (max-width: 500px) {
    .acceso { padding: 26px 22px; border-radius: 20px; }
    .acceso h2 { font-size: 23px; }
    .login span { display: inline; font-size: 14px; }
}

.recuperacion-icono { margin: 0 auto 18px; width: 78px; height: 78px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--rosa-muy-claro); color: var(--rosa-principal); font-size: 30px; }
.acceso-volver { display: block; margin: 18px auto 2px; border: 0; background: transparent; color: var(--rosa-oscuro); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 5px; }
.recuperacion-nota { text-align: center; color: var(--texto-secundario); font-size: 12px; margin: 14px 0 22px; }
#panel-recuperar .acceso-enviar { margin-top: 22px; }
#panel-enviado .acceso-enviar { margin-top: 32px; }
.acceso button:disabled { opacity: .65; cursor: wait; }
.acceso input:disabled { opacity: .6; }
.acceso-aviso:empty { display: none; }
.salir-sesion { padding: 6px 12px; border: 1px solid var(--borde); border-radius: 12px; background: white; color: var(--rosa-oscuro); cursor: pointer; }
