@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
    outline: none;
    user-select: none;
    -webkit-user-drag: none;
}

:root {
    --primary-color: #fd824a; /* Amarillo */
    --text-dark: #333;
    --text-light: #666;
    --background-light: #fff;
    --border-light: #eee;
    --primary-color-card: #fff;
    --background-gradient: linear-gradient(290deg, #128edc, #1aa6f1, #0e81c8);
}

body {
    position: relative;
}

.header-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background-gradient);
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.header-fruit-overlay {
    position: absolute;
    width: 350px;
    z-index: 10;
    opacity: 0.3;
}

.header-fruit-overlay:nth-child(1) {
    top: 50px;
    left: -130px;
}

.header-fruit-overlay:nth-child(2) {
    right: -50px;
    bottom: -50px;
}

.bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bubbles span {
    position: absolute;
    bottom: -50px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    animation: rise 12s infinite ease-in;
    backdrop-filter: blur(2px);
    box-shadow: inset -2px -4px 6px rgba(255, 255, 255, 0.3);
}

/* tamaños y posiciones */
.bubbles span:nth-child(1) {
    left: 10%;
    width: 15px;
    height: 15px;
    animation-duration: 10s;
}
.bubbles span:nth-child(2) {
    left: 25%;
    width: 26px;
    height: 26px;
    animation-duration: 14s;
}
.bubbles span:nth-child(3) {
    left: 50%;
    width: 18px;
    height: 18px;
    animation-duration: 9s;
}
.bubbles span:nth-child(4) {
    left: 70%;
    width: 24px;
    height: 24px;
    animation-duration: 13s;
}
.bubbles span:nth-child(5) {
    left: 85%;
    width: 22px;
    height: 22px;
    animation-duration: 11s;
}

/* --- Estilos del Header --- */
header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;

    background-color: var(--primary-color-card);
    border-radius: 10px;
    z-index: 1000;
}

.logo {
    width: 150px;
    display: flex;
    justify-content: center;
    align-content: center;
}

.logo img {
    width: 100%;
}

nav {
    display: flex;
    gap: 40px;
}

.header-link {
    text-decoration: none;
    color: #474747;
    font-size: 20px;
    font-weight: bolder;
    position: relative;
}

.header-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 3px;
    background: currentColor;
    transition: width 0.3s ease;
}

.header-link:hover::after {
    width: 100%;
}

.header-main {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 90px;
    position: relative;
    gap: 50px;
}

.header-right {
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-content: center;
    gap: 30px;
    flex-direction: column;
}

.subtitle {
    display: block;
    font-size: 25px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.75);
}

.title {
    font-size: 55px;
    line-height: 1.2;
    color: var(--primary-color-card);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.155);
}

.descript {
    font-size: 17px;
    line-height: 1.6;
    color: #ffffffa4;
}

.header-left {
    max-width: 300px;
    perspective: 800px;

    display: flex;
    justify-content: center;
    align-content: center;
}

.header-left img {
    width: 100%;
    transform-style: preserve-3d;
    will-change: transform;
    filter: drop-shadow(0 10px 5px rgba(0, 0, 0, 0.048));
}

.scroll-arrow {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 35px;
    color: var(--primary-color-card);
    opacity: 0.8;
    pointer-events: none;
}

/* ESTILOS DEL SECTION MENU */

.container-menu {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 20px;
    background-color: var(--background-light);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: start;
    min-height: 100vh;
}

.wrapper-menu {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    padding: 20px;
}

.menu-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.our-menu {
    display: block;
    color: var(--primary-color);
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 5px;
}

.menu-header h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0;
}

.categories {
    margin-bottom: 40px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.categories li {
    display: inline-block;
    flex-shrink: 0;
}

.categories a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 10px 20px;
    border: 1px solid var(--border-light);
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    background-color: var(--primary-color-card);
}

.categories a i {
    color: var(--primary-color);
}

.categories li.active a,
.categories a:hover {
    background-color: var(--primary-color);
    color: var(--primary-color-card);
    border-color: var(--primary-color);
}

.categories li.active a i,
.categories a:hover i {
    color: var(--primary-color-card);
}

/* Cuadrícula de elementos del menú */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* ESTILO ÚNICO PARA TODOS LOS ITEMS DEL MENÚ */
.menu-item {
    background-color: var(--primary-color-card); /* Siempre amarillo */
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.111);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    gap: 15px;
}

.menu-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    width: 200px;
    height: 150px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.menu-item h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #282828;
}

.menu-item .price {
    font-size: 1.4em;
    font-weight: 700;
    color: #888888;
    margin-top: auto;
    margin-bottom: 0;
}

/* ESTILOS DEL SECTION DRINK */

.container-drink {
    display: flex;
    justify-content: space-between;
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 800px;
    box-sizing: border-box;

    padding: 50px 30px;
}

.drink-left {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    position: relative;
}

.circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(90px);

    background: radial-gradient(
        circle,
        var(--circle-color-1, rgb(41, 91, 241)) 0%,
        var(--circle-color-2, rgb(143, 152, 255)) 100%
    );

    transition: background 0.6s ease;
}

.circle--1 {
    top: 30px;
    left: 60px;
}

.circle--2 {
    bottom: 50px;
}

.circle--3 {
    top: 50px;
    right: 60px;
}

.container {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    grid-auto-flow: row;
    grid-template-areas:
        "area-3 area-3 area-1"
        "area-3 area-3 area-1"
        "area-4 area-4 area-1"
        "area-4 area-4 area-2"
        "area-5 area-5 area-2"
        "area-5 area-5 area-2";
}

.area {
    border-radius: 10px;
}

.area-1 {
    grid-area: area-1;
    background: url(../assets/bg_1.webp) center / cover no-repeat;
}

.area-2 {
    grid-area: area-2;
    background: url(../assets/bg_4.webp) center / cover no-repeat;
}

.area-3 {
    grid-area: area-3;
    background: url(../assets/bg_6.webp) center / cover no-repeat;
}

.area-4 {
    grid-area: area-4;
    background: url(../assets/bg_2.webp) center / cover no-repeat;
}

.area-5 {
    grid-area: area-5;
    background: url(../assets/bg_5.webp) center / cover no-repeat;
}

.fruit {
    max-width: 80px;
    max-height: 80px;
    z-index: 100;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.15));
    transition: opacity 0.3s ease;

}

.fruit-wrapper {
    animation: fadeUp 1s ease forwards;
}

.fruit-1 {
    top: 60px;
    left: 80px;
}

.fruit-2 {
    bottom: 40px;
    left: 120px;
}

.fruit-3 {
    top: 150px;
    right: 40px;
}

.drink-wrapper {
    animation: zoomIn 1s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.drink {
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.211));
    will-change: transform;

    transform: translate(var(--moveX), var(--moveY));
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;

    width: 300px;
}

.drink.changing {
    opacity: 0;
    transform: translate(var(--moveX), var(--moveY)) scale(0.8);
}

.fruit.changing {
    opacity: 0;
}

.drink.show {
    opacity: 1;
    transform: translate(var(--moveX), var(--moveY)) scale(1);
}

.fruit.show {
    opacity: 1;
    transform: scale(1);
}

.flavor-wrapper {
    animation: drinkUp 1s ease-in-out forwards;
}

.flavor-wrapper:nth-of-type(1) {
    animation-delay: 0;
}

.flavor-wrapper:nth-of-type(2) {
    animation-delay: 0.2s;
}

.flavor-wrapper:nth-of-type(3) {
    animation-delay: 0.4s;
}

.fruit.fly-out {
    animation: flyOut 0.5s ease forwards;
}

.fruit.fly-in {
    animation: flyIn 0.6s ease forwards;
}

.flavors {
    position: absolute;
    right: 20px;
    bottom: -125px;
    display: flex;
    gap: 10px;
}

.flavor {
    width: 60px;
    cursor: pointer;
    border-radius: 10px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

    user-select: none;
    -webkit-user-drag: none;

    touch-action: manipulation;
}

.flavor:hover {
    transform: translateY(-10px);
}

.flavor.active {
    transform: translateY(-20px) scale(1.2);
}

.fruit-wrapper {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    will-change: transform;
    transition: transform 0.3s ease-out;
    z-index: 100;
}

.fruit-float {
    animation: floatFruit 5s ease-in-out infinite;
}

canvas {
    display: block;
} /* ---- particles.js container ---- */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
}

/* APARTADO DEL FOOTER */

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    min-height: 40vh;
    color: var(--primary-color-card);
    padding: 20px;
    background: var(--background-gradient);
}

.enlaces_social {
    z-index: 100;
    display: flex;
    gap: 30px;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 16px;
}

.enlaces_social i {
    font-size: 50px;
    color: var(--primary-color-card);
    transition: all 0.2s ease;
}

.enlaces_social i:hover {
    transform: scale(1.09);
}

.footer-descript {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatFruit {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes drinkUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100px);
    }
}

@keyframes flyOut {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--flyX), var(--flyY)) scale(0.5) rotate(180deg);
    }
}

@keyframes flyIn {
    0% {
        opacity: 0;
        transform: translate(var(--flyX), var(--flyY)) scale(0.5)
            rotate(-180deg);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
}

@media screen and (max-width: 900px) {
    .header-main {
        padding: 70px 30px;
    }

    .container-drink {
        padding: 10px;
    }

    .container {
        gap: 10px;
        grid-template-columns: 1fr;
    }

    .area-1,
    .area-2 {
        display: none;
    }

    .drink {
        width: 250px;
    }

    .fruit-1 {
        top: 60px;
        left: 0px;
    }

    .fruit-2 {
        bottom: 40px;
        left: 30px;
    }

    .fruit-3 {
        top: 150px;
        right: 0px;
    }
}

/* Media Queries para responsividad */
@media (max-width: 768px) {
    .header-fruit-overlay:nth-child(1) {
        width: 250px;
    }

    .header-fruit-overlay:nth-child(2) {
        width: 220px;
        bottom: -10px;
    }

    .header-left {
        display: none;
    }

    .menu-header h1 {
        font-size: 2em;
    }

    .categories ul {
        justify-content: flex-start;
        padding: 0 15px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .menu-item {
        padding: 15px;
    }

    .menu-item img {
        width: 150px;
        height: 120px;
    }

    .menu-item h3 {
        font-size: 1.1em;
    }

    .menu-item .price {
        font-size: 1.2em;
    }
}

@media screen and (max-width: 690px) {
    .header-main {
        padding: 20px 40px;
    }

    .container-drink {
        padding: 10px;
    }
}

@media screen and (max-width: 600px) {
    header {
        padding: 20px;
    }

    .logo {
        width: 120px;
    }

    nav {
        gap: 20px;
    }

    .header-link {
        font-size: 15px;
    }

    .container-drink {
        justify-content: center;
        align-items: center;
    }

    .container {
        display: none;
    }

    .drink-left {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        flex: none;
    }

    .circle--1 {
        top: -30px;
        left: -90px;
    }

    .circle--2 {
        bottom: -80px;
    }

    .circle--3 {
        top: -60px;
        right: -90px;
    }

    .drink {
        width: 320px;
    }

    .fruit-1 {
        top: -20px;
        left: 20px;
    }

    .fruit-2 {
        bottom: 10px;
        left: -50px;
    }

    .fruit-3 {
        top: 90px;
        right: -60px;
    }

    footer {
        gap: 15px;
    }

    .enlaces_social i {
        font-size: 40px;
    }

    .footer-descript {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container-menu {
        padding: 10px;
    }

    .menu-header h1 {
        font-size: 1.8em;
    }

    .categories a {
        padding: 8px 15px;
        font-size: 0.8em;
    }
}

@media screen and (max-width: 450px) {
    .header-main {
        padding: 20px 20px;
    }

    nav {
        gap: 15px;
    }

    .logo {
        width: 100px;
    }

    .header-right {
        gap: 40px;
    }

    .subtitle {
        font-size: 20px;
    }

    .title {
        font-size: 50px;
    }
}
