/* ================================================
   POTATA - Landing Page Styles
   Diseño infantil, colorido y lleno de aventuras
   ================================================ */

:root {
    /* Paleta de colores principal */
    --yellow-primary: #FFD93D;      /* Amarillo patito */
    --yellow-dark: #FFC107;
    --pink-cheeks: #FF6B9D;         /* Rosa cachetes */
    --pink-light: #FFB6D4;
    --blue-sky: #4EC5F4;            /* Azul cielo */
    --blue-dark: #2E8BC0;
    --green-grass: #7ED957;         /* Verde pasto */
    --green-dark: #5CB85C;
    --orange: #FF8C42;              /* Naranja */
    --orange-dark: #FF6B35;
    --white: #FFFFFF;
    --paper: #FFF9E6;               /* Blanco papel */
    --paper-dark: #F5F0E6;
    
    /* Tipografías */
    --font-display: 'Fredoka One', cursive;
    --font-body: 'Nunito', sans-serif;
    --font-comic: 'Comic Neue', cursive;
    
    /* Sombras */
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.15);
    --shadow-heavy: 0 15px 50px rgba(0,0,0,0.2);
    
    /* Bordes redondeados */
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 50px;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==================== LOADING CLOUD ==================== */
.loading-cloud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blue-sky), var(--blue-dark));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 1s ease 2s forwards;
}

.cloud-shape {
    background: var(--white);
    padding: 40px 60px;
    border-radius: 100px;
    box-shadow: var(--shadow-heavy);
    animation: float 2s ease-in-out infinite;
}

.loading-text {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--blue-sky);
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ==================== LANG TOGGLE ==================== */
.lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--white);
    border: 3px solid var(--yellow-primary);
    border-radius: 50px;
    padding: 10px 20px;
    font-family: var(--font-display);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-toggle:hover {
    transform: scale(1.1);
    background: var(--yellow-primary);
    color: var(--white);
}

.lang-icon {
    font-size: 1.5rem;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, var(--blue-sky) 0%, var(--blue-dark) 100%);
    overflow: hidden;
    padding: 100px 20px 60px;
}

.paper-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.crumpled-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
    opacity: 0.3;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floater {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.floater.sun {
    top: 10%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--yellow-primary), var(--orange));
    border-radius: 50%;
    box-shadow: 0 0 40px var(--yellow-primary);
}

.floater.cloud-1 {
    top: 20%;
    left: 10%;
    width: 120px;
    height: 60px;
    background: var(--white);
    border-radius: 50px;
    opacity: 0.9;
}

.floater.cloud-2 {
    top: 40%;
    right: 20%;
    width: 100px;
    height: 50px;
    background: var(--white);
    border-radius: 50px;
    opacity: 0.7;
}

.floater.flower-1,
.floater.flower-2 {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--pink-cheeks) 30%, var(--yellow-primary) 70%);
    border-radius: 50%;
}

.floater.flower-1 {
    bottom: 20%;
    left: 15%;
}

.floater.flower-2 {
    bottom: 30%;
    right: 25%;
}

.floater.star {
    top: 15%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: var(--yellow-primary);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--white);
    text-shadow: 3px 3px 0 var(--orange);
    margin-bottom: 20px;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

.title-line.highlight {
    color: var(--yellow-primary);
    text-shadow: 3px 3px 0 var(--orange-dark);
    animation-delay: 0.5s !important;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: var(--font-comic);
    font-size: 1.5rem;
    color: var(--white);
    background: rgba(0,0,0,0.2);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    display: inline-block;
    opacity: 0;
    animation: fadeIn 0.8s ease 1s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-cta {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    opacity: 0;
    animation: fadeIn 0.8s ease 1.5s forwards;
}

.btn-adventure,
.btn-play {
    font-family: var(--font-display);
    font-size: 1.1rem;
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-adventure {
    background: var(--yellow-primary);
    color: var(--white);
    box-shadow: 0 6px 0 var(--orange-dark);
}

.btn-adventure:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 var(--orange-dark);
    color: var(--white);
}

.btn-play {
    background: var(--white);
    color: var(--blue-sky);
    box-shadow: 0 6px 0 #ccc;
}

.btn-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #ccc;
    color: var(--blue-sky);
}

.btn-icon {
    font-size: 1.3rem;
}

/* POTATA Hero Character */
.potata-hero-container {
    position: relative;
    text-align: center;
}

.potata-character {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle, var(--yellow-primary), var(--yellow-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-heavy);
    animation: bounce 2s ease-in-out infinite;
    border: 8px solid var(--white);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.potata-main-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.character-bubble {
    position: absolute;
    top: -30px;
    right: 20px;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 30px;
    box-shadow: var(--shadow-medium);
    font-family: var(--font-comic);
    font-size: 1.2rem;
    color: var(--blue-sky);
    animation: popIn 0.5s ease 2s forwards;
    transform: scale(0);
}

@keyframes popIn {
    to {
        transform: scale(1);
    }
}

.character-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 20px;
    height: 20px;
    background: var(--white);
    transform: rotate(45deg);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    font-family: var(--font-comic);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 3px solid var(--white);
    border-radius: 15px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    width: 6px;
    height: 10px;
    background: var(--white);
    border-radius: 3px;
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* ==================== CREATOR SECTION ==================== */
.creator-section {
    padding: 100px 20px;
    background: var(--paper);
    position: relative;
}

.creator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, var(--blue-sky), var(--paper));
}

.creator-frame {
    padding: 20px;
}

.polaroid {
    background: var(--white);
    padding: 15px 15px 40px;
    box-shadow: var(--shadow-medium);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
}

.polaroid-img {
    border: 3px dashed var(--yellow-primary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.polaroid-img img {
    width: 100%;
    height: auto;
    display: block;
}

.polaroid-caption {
    font-family: var(--font-comic);
    font-size: 1.2rem;
    color: #333;
    text-align: center;
    margin-top: 15px;
}

.creator-text {
    padding: 30px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--orange);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.decoration {
    animation: wiggle 1s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.creator-content p {
    font-family: var(--font-comic);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.creator-content strong {
    color: var(--blue-sky);
}

.signature {
    margin-top: 30px;
    text-align: right;
}

.signature-img {
    height: 80px;
    width: auto;
}

/* ==================== ADVENTURES SECTION ==================== */
.adventures-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--paper) 0%, #FFF3D0 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .section-title {
    justify-content: center;
    font-size: 3rem;
}

.section-header p {
    font-family: var(--font-comic);
    font-size: 1.3rem;
    color: #666;
}

/* Adventure Tabs */
.adventure-tabs {
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.adventure-tabs .nav-link {
    font-family: var(--font-display);
    font-size: 1.1rem;
    padding: 12px 25px;
    margin: 5px;
    border-radius: 50px;
    background: var(--white);
    color: #666;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.adventure-tabs .nav-link:hover,
.adventure-tabs .nav-link.active {
    background: var(--yellow-primary);
    color: var(--white);
    border-color: var(--orange);
    transform: scale(1.05);
}

/* Adventures Grid */
.adventures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.adventure-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 4px dashed transparent;
}

.adventure-card:hover {
    transform: translateY(-10px);
    border-color: var(--yellow-primary);
    box-shadow: var(--shadow-heavy);
}

.adventure-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.adventure-card-body {
    padding: 20px;
}

.adventure-card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--blue-sky);
    margin-bottom: 10px;
}

.adventure-card-desc {
    font-family: var(--font-comic);
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Mini Game */
.mini-game-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 50px;
    box-shadow: var(--shadow-medium);
    border: 4px dashed var(--blue-sky);
}

.mini-game-container h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--orange);
    text-align: center;
    margin-bottom: 10px;
}

.mini-game-container p {
    font-family: var(--font-comic);
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.game-scene {
    position: relative;
    height: 400px;
    background: linear-gradient(180deg, var(--blue-sky) 0%, var(--green-grass) 100%);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: crosshair;
}

.game-character {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    transition: all 0.3s ease;
}

.game-character img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.game-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--yellow-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    animation: pulse 1s ease-in-out infinite;
    transition: transform 0.2s ease;
}

.game-element:hover {
    transform: scale(1.2);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.game-score {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--orange);
    margin-top: 20px;
    padding: 15px;
    background: var(--yellow-primary);
    border-radius: 50px;
    display: inline-block;
    min-width: 150px;
}

#scoreValue {
    color: var(--white);
    font-size: 2rem;
    margin-left: 10px;
}

/* ==================== COMING SOON SECTION ==================== */
.coming-soon-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--pink-cheeks) 100%);
}

.coming-soon-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow-heavy);
    position: relative;
}

.card-decoration {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    background: var(--white);
    padding: 0 15px;
}

.coming-soon-card h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--pink-cheeks);
    margin-bottom: 20px;
}

.coming-soon-card p {
    font-family: var(--font-comic);
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.countdown-item {
    background: var(--blue-sky);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    min-width: 80px;
}

.countdown-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--white);
}

.countdown-label {
    font-family: var(--font-comic);
    font-size: 0.8rem;
    color: var(--white);
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--blue-sky);
}

.btn-notify {
    font-family: var(--font-display);
    font-size: 1.2rem;
    padding: 15px 40px;
    background: var(--pink-cheeks);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 0 #E65A8A;
}

.btn-notify:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #E65A8A;
    color: var(--white);
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: var(--blue-dark);
    padding: 50px 20px 30px;
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-brand img {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.footer-brand p {
    font-family: var(--font-comic);
    font-size: 1.1rem;
}

.footer-links h4,
.footer-credits h4 {
    font-family: var(--font-display);
    margin-bottom: 15px;
    color: var(--yellow-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-comic);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--yellow-primary);
}

.footer-credits p {
    font-family: var(--font-comic);
    margin-bottom: 8px;
    opacity: 0.9;
}

/* ==================== MODAL ==================== */
.intro-modal {
    background: transparent;
    border: none;
}

.intro-modal .modal-content {
    background: transparent;
    border: none;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: var(--white);
    border-radius: 50%;
}

.intro-animation {
    background: linear-gradient(135deg, var(--blue-sky), var(--blue-dark));
    border-radius: var(--radius-lg);
    padding: 60px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .potata-character {
        width: 250px;
        height: 250px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .adventures-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


/* Happylabs Credit */
.happylabs-credit {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

.happylabs-credit a {
    color: var(--yellow-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.happylabs-credit a:hover {
    color: var(--white);
    text-decoration: underline;
}