/* ==========================================================================
   CSS Variables for distinct commercial & playful palette (Nature/Travel theme)
   ========================================================================== */
:root {
    --primary: #0ea5e9; /* Sky Blue */
    --primary-hover: #0284c7; /* Darker Sky Blue */
    --secondary: #22c55e; /* Vibrant Leaf Green */
    --accent: #f59e0b; /* Amber/Yellow for kids theme */
    --dark: #0f172a; /* Slate 900 for text */
    --light: #f8fafc; /* Slate 50 */
    --gray: #64748b;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

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

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.8rem 5%;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 2px solid rgba(14, 165, 233, 0.1); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.nav-logo img:hover {
    transform: rotate(-5deg) scale(1.05); 
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-menu a {
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 50px; 
    transition: var(--transition);
    color: var(--gray);
}

.nav-menu a:hover:not(.btn-primary) {
    color: var(--primary);
    background-color: rgba(14, 165, 233, 0.1); 
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3); 
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4); 
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section 
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 5% 5rem;
    background: linear-gradient(rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.3)), url('../img/globo.jpg') center/cover no-repeat;
    color: white;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6); 
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    color: white;
}

.hero h1 span.text-gradient {
    color: white;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    text-shadow: inherit; 
}

.hero p {
    font-size: 1.25rem;
    color: #f8fafc;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
    font-weight: 600;
}

/* ==========================================================================
   Common Section Styles
   ========================================================================== */
section {
    padding: 6rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   About Section & Image & Counters
   ========================================================================== */
.about-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.about-top {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 4px solid white;
    position: relative;
    aspect-ratio: 1 / 1; 
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(var(--accent) 20%, transparent 20%);
    background-size: 20px 20px;
    z-index: -1;
    border-radius: 50%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--gray);
    font-size: 1.05rem;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem;
}

.counter-card {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
    border: 2px solid transparent; 
    transition: var(--transition);
}

.counter-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.counter-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   Featured Projects (TV Show & Foundation Blocks)
   ========================================================================== */
.featured-projects {
    background-color: white;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto 6rem auto;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-box-image {
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    border: 4px solid var(--light);
}

.feature-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.feature-box-image:hover img {
    transform: scale(1.05);
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-content p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ==========================================================================
   Services Section 
   ========================================================================== */
.services-section {
    /* Filtro oscuro para que las letras blancas resalten perfectamente */
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.8)), url('../img/show.jpg') center/cover fixed;
}

/* Texto completamente blanco para el header de esta sección */
.services-section .section-header h2 {
    color: #ffffff;
}

.services-section .section-header p {
    color: #e2e8f0; /* Un blanco ligeramente suave para el párrafo */
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px; 
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg); 
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.btn-text {
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-text:hover {
    gap: 0.8rem;
    color: var(--primary-hover);
}

/* ==========================================================================
   Store Section & Digital Streaming
   ========================================================================== */
.streaming-banner {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
}

.streaming-banner h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.streaming-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-streaming {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    color: white !important;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-streaming.spotify {
    background-color: #1DB954;
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
}

.btn-streaming.spotify:hover {
    background-color: #1ed760;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
}

.btn-streaming.apple {
    background-color: #000000; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-streaming.apple:hover {
    background-color: #333333;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.store-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.product-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    opacity: 0.2;
    transition: var(--transition);
}

.product-card:hover .product-icon {
    opacity: 0.8;
    transform: translateY(-5px);
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    min-height: 3rem;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary); 
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    background-color: var(--light);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    overflow: hidden;
}

.contact-info {
    background: linear-gradient(135deg, var(--dark), #1e293b);
    color: white;
    padding: 3rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-info p {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.contact-form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0; 
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--dark);
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-col p {
    color: #94a3b8;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--primary);
    transform: translateY(-3px) scale(1.1); 
}

.share-btn.spotify:hover { background: #1DB954; }
.share-btn.apple:hover { background: #fa243c; }

.foundation-notice {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary); 
    max-width: 400px;
}

.foundation-notice a {
    color: var(--secondary);
    font-weight: bold;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 3rem auto 2rem;
    max-width: 1200px;
}

.footer-credits {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .about-top {
        grid-template-columns: 1fr;
    }
    
    .counters-grid {
        grid-template-columns: repeat(2, 1fr); 
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    
    .feature-box-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-logo .logo-text {
        font-size: 1.2rem;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .counters-grid {
        grid-template-columns: 1fr; 
    }
}