/* ============================================
   KIDS THEME - Fresh Start
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #FF6B9D;
    --color-secondary: #4ECDC4;
    --color-accent: #FFE66D;
    --color-success: #95E1D3;
    --color-warning: #FFA07A;
    --color-info: #87CEEB;
    --color-purple: #C7CEEA;
    --text-dark: #2C3E50;
    --text-light: #FFFFFF;
    --bg-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --bg-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --bg-gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --bg-gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Comic Neue', 'Nunito', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rainbow {
    0% { color: #FF6B9D; }
    16% { color: #4ECDC4; }
    33% { color: #FFE66D; }
    50% { color: #95E1D3; }
    66% { color: #FFA07A; }
    83% { color: #87CEEB; }
    100% { color: #FF6B9D; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
    border-bottom: 4px solid var(--color-primary);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.1) rotate(5deg);
    animation: wiggle 0.5s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

.nav-menu a:hover {
    background: var(--bg-gradient-2);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
    animation: bounce 0.6s ease;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient-1);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: slideInUp 1s ease;
}

.hero-logo img {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(255, 107, 157, 0.5));
    animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
    margin-bottom: 30px;
}

.hero-subtitle {
    font-family: 'Comic Neue', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: 30px;
    display: inline-block;
    color: var(--text-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 4px solid var(--color-accent);
}

.hero-subtitle b {
    background: linear-gradient(45deg, var(--color-accent), var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 3s ease infinite;
}

.scroll-down {
    display: inline-block;
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    text-decoration: none;
}

/* Section Styles */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

.about-section {
    background: var(--bg-gradient-1);
}

.experience-section {
    background: var(--bg-gradient-2);
}

.apps-section {
    background: var(--bg-gradient-3);
}

.features-section {
    background: var(--bg-gradient-4);
}

.success-section {
    background: var(--bg-gradient-5);
}

.contact-section {
    background: var(--bg-gradient-2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.section-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 5px solid var(--color-primary);
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.section-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.section-content.visible::before {
    opacity: 1;
}

.section-content.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: zoomIn 0.8s ease;
}

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-shadow: 
        3px 3px 0px var(--color-primary),
        6px 6px 0px var(--color-secondary),
        9px 9px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: 1.5px;
}

.section-title b {
    background: linear-gradient(45deg, var(--color-accent), var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 3s ease infinite;
}

.section-text {
    font-family: 'Comic Neue', sans-serif;
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 400;
    margin-bottom: 30px;
}

/* Buttons */
.btn-primary {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 18px;
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--bg-gradient-2);
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.5);
    animation: pulse 0.6s ease;
}

/* Feature Box */
.feature-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid var(--color-accent);
    transition: all 0.5s ease;
    animation: float 3s ease-in-out infinite, zoomIn 0.8s ease;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

.feature-box:hover {
    transform: translateY(-15px) scale(1.1) rotate(2deg);
    box-shadow: 0 20px 50px rgba(255, 107, 157, 0.6);
    border-color: var(--color-primary);
    animation: shake 0.5s ease, float 3s ease-in-out infinite;
}

.feature-emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite, pulse 1.5s ease-in-out infinite;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.feature-box:hover .feature-emoji {
    transform: scale(1.3) rotate(360deg);
    animation: rotate 1s linear, bounce 2s ease-in-out infinite;
}

.feature-box h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.feature-box:hover h3 {
    color: var(--color-primary);
    transform: scale(1.1);
}

.feature-box p {
    font-family: 'Comic Neue', sans-serif;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Feature Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--color-secondary);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: slideInUp 0.8s ease backwards;
    position: relative;
    overflow: hidden;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.05) rotate(-2deg);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.5);
    border-color: var(--color-primary);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-card:hover .card-icon {
    transform: scale(1.3) rotate(360deg);
    animation: rotate 0.8s linear, float 3s ease-in-out infinite;
}

.feature-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--color-primary);
}

.feature-card p {
    font-family: 'Comic Neue', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

/* Image Carousel */
.image-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 4px solid var(--color-accent);
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-image {
    font-size: 8rem;
    animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--color-accent);
    transition: all 0.4s ease;
    animation: slideInUp 0.8s ease backwards;
    position: relative;
    overflow: hidden;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 230, 109, 0.2) 0%, transparent 70%);
    animation: rotate 8s linear infinite;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.5);
    border-color: var(--color-primary);
}

.stat-number {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

.stat-card:hover .stat-number {
    animation: bounce 0.6s ease, pulse 2s ease-in-out infinite;
    transform: scale(1.2);
}

.stat-label {
    font-family: 'Comic Neue', sans-serif;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row:has(textarea),
.form-row:has(input[type="email"]) {
    grid-template-columns: 1fr;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 3px solid var(--color-secondary);
    border-radius: 20px;
    font-family: 'Comic Neue', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.4);
    transform: scale(1.02);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-secondary);
    font-weight: 600;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    width: 100%;
    margin-top: 20px;
}

.mostrar {
    margin-top: 20px;
    padding: 15px 25px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid var(--color-success);
    font-family: 'Comic Neue', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.5s ease;
}

/* Footer */
.footer {
    background: var(--bg-gradient-2);
    color: white;
    padding: 60px 20px 20px;
    position: relative;
    z-index: 10;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    border-top: 5px solid var(--color-accent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

.footer-section p {
    font-family: 'Comic Neue', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: white;
    font-family: 'Comic Neue', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    position: relative;
}

.footer-section ul li a::before {
    content: '✨';
    margin-right: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover::before {
    opacity: 1;
}

.footer-section ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
    color: var(--color-accent);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-accent);
    transform: scale(1.05);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 3px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.footer-bottom p {
    font-family: 'Comic Neue', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Enhanced Animations for Section Titles */
.section-title {
    animation: slideInLeft 1s ease backwards;
}

.section-title.visible {
    animation: slideInLeft 1s ease;
}

.section-text {
    animation: fadeIn 1s ease 0.3s backwards;
}

.section-text.visible {
    animation: fadeIn 1s ease;
}

/* Button Animations */
.btn-primary {
    animation: slideInUp 1s ease 0.5s backwards;
}

.btn-primary.visible {
    animation: slideInUp 1s ease;
}

.btn-primary:hover {
    animation: pulse 0.6s ease, bounce 0.6s ease;
}

/* Navbar Animations */
.nav-menu li {
    animation: slideInDown 0.5s ease backwards;
}

.nav-menu li:nth-child(1) { animation-delay: 0.1s; }
.nav-menu li:nth-child(2) { animation-delay: 0.2s; }
.nav-menu li:nth-child(3) { animation-delay: 0.3s; }
.nav-menu li:nth-child(4) { animation-delay: 0.4s; }
.nav-menu li:nth-child(5) { animation-delay: 0.5s; }
.nav-menu li:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        border-bottom: 4px solid var(--color-primary);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .section-title {
        font-size: 2rem;
    }

    .section-content {
        padding: 40px 25px;
    }

    .split-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        padding: 12px 20px;
    }

    .hero-logo img {
        max-width: 200px;
    }

    .features-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card,
    .stat-card {
        padding: 25px 15px;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .image-carousel {
        height: 200px;
    }

    .carousel-image {
        font-size: 5rem;
    }

    .split-content {
        grid-template-columns: 1fr;
    }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

