:root {
    --primary-blue: #0A3268;
    --bright-yellow: #F6A816;
    --white: #FFFFFF;
    --nav-text: #1C3F71;
}

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

body, html {
    font-family: 'Fredoka One', cursive, sans-serif;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    background-color: #83D9F2;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(assets/img/hero-bg.png);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 15px 5%;
    border-radius: 0 0 40px 40px;
    margin: 0 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.logo-container {
    position: relative;
    width: 250px;
}

.main-logo {
    position: absolute;
    top: -40px;
    left: -20px;
    width: 320px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.25));
    z-index: 101;
    transform: rotate(-2deg);
}

.nav-links {
    display: flex;
    gap: 3rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.nav-links a {
    text-decoration: none;
    color: var(--nav-text);
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
    text-transform: uppercase;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-blue);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    width: 80%;
    height: 4px;
    background-color: var(--bright-yellow);
    border-radius: 2px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
}

.fb { background-color: #1877F2; }
.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.yt { background-color: #FF0000; }

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 70px;
    z-index: 10;
    position: relative;
}

.hero-title {
    text-align: center;
    margin-bottom: 40px;
}

.title-top {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: -15px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px rgba(255,255,255,0.8);
}

.title-bottom-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.title-bottom {
    font-size: 6rem;
    color: var(--bright-yellow);
    -webkit-text-stroke: 3px white;
    text-shadow: 0px 4px 0px rgba(0,0,0,0.1);
    letter-spacing: 2px;
}

.splash {
    font-size: 3rem;
    color: var(--bright-yellow);
    -webkit-text-stroke: 2px white;
}

/* Cards (Guitar Picks) */
.cards-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 10px;
}

.card.pick-shape {
    width: 270px;
    height: 330px;
    border: 10px solid var(--white);
    border-radius: 40px 40px 150px 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    box-shadow: 0 15px 25px rgba(0,0,0,0.15), inset 0 -10px 20px rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative; /* Para el badge */
}

.card.pick-shape:hover {
    transform: translateY(-20px) scale(1.05);
}

.card-kids { background-color: var(--bright-yellow); }
.card-music { background-color: #E33842; /* Red from logo ZIHUA text/lifesaver */ }
.card-juvenil { background-color: var(--primary-blue); }

.card h3 {
    color: var(--white);
    font-size: 2.3rem;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

/* Ocean Wave Page Transition */
.page-fade-in::before {
    content: "";
    position: fixed;
    top: -20vh;
    left: 0;
    width: 100vw;
    height: 120vh;
    background-color: #00B4D8;
    z-index: 99999;
    animation: waveSlideDown 0.7s cubic-bezier(0.64, 0.04, 0.35, 1) forwards;
    pointer-events: none;
}

.page-fade-in::after {
    content: "";
    position: fixed;
    top: 100vh;
    left: 0;
    width: 100vw;
    height: 15vh;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%2300B4D8' d='M0,192L48,197.3C96,203,192,213,288,213.3C384,213,480,203,576,192C672,181,768,171,864,181.3C960,192,1056,224,1152,229.3C1248,235,1344,213,1392,202.7L1440,192L1440,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 100% 100%;
    z-index: 99999;
    animation: waveSlideDown 0.7s cubic-bezier(0.64, 0.04, 0.35, 1) forwards;
    pointer-events: none;
}

@keyframes waveSlideDown {
    0% { transform: translateY(0); opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(150vh); opacity: 0; visibility: hidden; }
}

.page-fade-in .navbar,
.page-fade-in .hero-section {
    animation: contentBounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes contentBounce {
    0% { opacity: 0; transform: scale(0.9) translateY(40px); }
    30% { opacity: 0; transform: scale(0.9) translateY(40px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Verano Kids Page Layout */
.kids-page-layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 20px 5%;
    gap: 40px;
    align-items: center;
}

.kids-sidebar-right {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    order: 2; /* Keep on the right */
}

.kids-sidebar-right .card {
    pointer-events: none;
    transform: none !important;
}

/* Mini Card */
.mini-card {
    width: 200px !important;
    height: 250px !important;
    padding-top: 30px !important;
    border-width: 6px !important;
    border-radius: 30px 30px 100px 100px !important;
}

.mini-card h3 {
    font-size: 1.6rem !important;
    margin-bottom: 15px !important;
}

.mini-icon {
    width: 80px !important;
    height: 80px !important;
}

.btn-back {
    background-color: var(--white);
    color: var(--primary-blue);
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 30px;
    border: 4px solid var(--primary-blue);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.btn-back:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-5px);
}

.circle-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    justify-content: center;
    order: 1; /* Keep on the left */
}

.circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s;
}

.circle-item:hover {
    transform: scale(1.05) translateY(-10px);
}

.circle-icon-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 6px solid var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.bg-yellow { background-color: var(--bright-yellow); }
.bg-red { background-color: #E33842; }
.bg-lightblue { background-color: #00B4D8; }
.bg-navy { background-color: var(--primary-blue); }

.circle-icon {
    font-size: 4.5rem;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.2));
}

.circle-title {
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 10px 20px;
    border-radius: 20px;
    text-align: center;
    font-size: 1.1rem;
    font-family: 'Fredoka One', cursive;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 250px;
    line-height: 1.2;
}

.card-icon {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0px 10px 10px rgba(0,0,0,0.25));
}

.badge-soon {
    position: absolute;
    top: -10px;
    right: -20px;
    background-color: var(--white);
    color: var(--primary-blue);
    font-size: 1rem;
    font-family: 'Fredoka One', cursive;
    padding: 8px 18px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    transform: rotate(12deg);
    z-index: 10;
    border: 4px solid var(--bright-yellow);
    letter-spacing: 1px;
}

/* Popup / Toast Notification */
.toast-popup {
    position: fixed;
    bottom: -150px; /* Start hidden for animation */
    right: 20px;
    background-color: var(--white);
    border: 5px solid var(--bright-yellow);
    border-radius: 25px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 380px;
}

.toast-popup.show {
    bottom: 30px;
    opacity: 1;
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 15px 35px rgba(246, 168, 22, 0.2); transform: scale(1); }
    100% { box-shadow: 0 15px 45px rgba(246, 168, 22, 0.6), 0 0 20px rgba(246, 168, 22, 0.4); transform: scale(1.02); }
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toast-icon {
    font-size: 3rem;
}

.toast-content p {
    color: var(--nav-text);
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 600;
}

.toast-content strong {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-family: 'Fredoka One', cursive;
    letter-spacing: 0.5px;
}

.close-toast {
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #a0a0a0;
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
    align-self: flex-start;
    margin-top: -10px;
}

.close-toast:hover {
    color: var(--bright-yellow);
    transform: scale(1.2);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 200;
}

.bar {
    width: 30px;
    height: 4px;
    background-color: var(--primary-blue);
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
}

/* Responsive */
@media (max-width: 1024px) {
    .navbar { padding-top: 20px; }
    .main-logo { top: -10px; width: 220px; left: 10px; transform: none; }
    .nav-links { gap: 1.5rem; }
    .cards-container { flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .navbar { padding: 15px 20px; align-items: center; border-radius: 0 0 20px 20px; justify-content: flex-start; }
    .logo-container { width: auto; }
    .main-logo {
        width: 172px;
        top: 0px;
        position: relative;
        left: 74px;
        filter: none;
    }
    .social-icons { display: none; }
    
    .menu-toggle { display: flex; position: absolute; right: 20px; top: 15px; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        z-index: 150;
    }

    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.8rem; margin: 10px 0; }
    
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(10px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

    .hero-section { padding-top: 30px; }
    .title-top { font-size: 1.8rem; letter-spacing: 1px; margin-bottom: 0; }
    .title-bottom { font-size: 3rem; -webkit-text-stroke: 1.5px white; }
    .splash { font-size: 1.5rem; }
    
    .cards-container { flex-direction: column; align-items: center; gap: 20px; padding-bottom: 50px;}
    .card.pick-shape { width: 220px; height: 260px; padding-top: 25px; border-width: 6px; }
    .card h3 { font-size: 1.6rem; margin-bottom: 15px; }
    .card-icon { width: 80px; height: 80px; }
    
    .toast-popup {
        left: 5%;
        width: 90%;
        max-width: none;
    }

    .kids-page-layout {
        flex-direction: column;
    }

    .kids-sidebar-right {
        order: 1; /* Move to top on mobile */
        margin-bottom: 20px;
    }
    
    .circle-grid {
        order: 2;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .circle-icon-container {
        width: 100px;
        height: 100px;
        border-width: 4px;
    }

    .circle-icon {
        font-size: 3rem;
    }

    .circle-title {
        font-size: 0.9rem;
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .background-container {
        background-image: url('assets/img/mobile-bg.png');
    }
}
