@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Nunito:wght@400;600;700;800&family=Chewy&display=swap');

/* ─────────────────────────────────────────────────────────
   MARCYKIDS OFFICIAL BRANDING PALETTE
───────────────────────────────────────────────────────── */
:root {
    /* Primary brand colors */
    --orange:       #FB621F;
    --orange-deep:  #D84C1E;
    --turquoise:    #01B3DF;
    --blue-deep:    #0578A3;
    --lime:         #9BCD14;
    --green-deep:   #08B83B;
    --yellow:       #F5CD2B;
    --purple:       #94618D;
    --sky-pastel:   #B0E1EC;
    --warm-gray:    #EAE8E4;

    /* Semantic aliases */
    --primary:      var(--orange);
    --secondary:    var(--turquoise);
    --accent:       var(--yellow);
    --dark:         #050503;
    --white:        #FFFFFF;
    --youtube-red:  #FF0000;

    /* Gradient */
    --brand-gradient: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
    --soft-shadow:    0 10px 35px rgba(0,0,0,0.08);
    --transition:     all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: #FFFFFF;
    color: var(--dark);
    font-family: 'Nunito', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, .logo { font-family: 'Fredoka', sans-serif; }
h4 { font-family: 'Baloo 2', sans-serif; font-weight: 700; }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-text-wrapper {
    font-family: 'Chewy', cursive;
    font-size: 2.8rem;
    display: inline-block;
    padding-left: 5px;
    letter-spacing: 2px;
}

/* Base style for all logo letters: thick dark outline and shadow */
.logo-text-wrapper span[class^="c-"] {
    text-shadow: 
        -2px -2px 0 #1C3B4C,
         2px -2px 0 #1C3B4C,
        -2px  2px 0 #1C3B4C,
         2px  2px 0 #1C3B4C,
        -2px  0px 0 #1C3B4C,
         2px  0px 0 #1C3B4C,
         0px -2px 0 #1C3B4C,
         0px  2px 0 #1C3B4C,
         4px  4px 0 rgba(0,0,0,0.15);
    display: inline-block;
    paint-order: stroke fill;
}

.c-teal { color: #37A1B2 !important; }
.c-yellow { color: #FFD335 !important; }
.c-orange { color: #FF8C42 !important; }
.c-red { color: #F35E3E !important; }
.c-lblue { color: #7EC8D6 !important; }
/* ─── Floating Magic Elements ────────────────────────────── */
.hero::before, .hero::after {
    content: '✨';
    position: absolute;
    font-size: 2rem;
    animation: floatMagic 6s infinite ease-in-out;
    pointer-events: none;
    z-index: 3;
}

.hero::before { top: 20%; left: 10%; animation-delay: 0s; }
.hero::after { bottom: 20%; right: 10%; animation-delay: 3s; }

@keyframes floatMagic {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
    50% { transform: translateY(-40px) rotate(20deg); opacity: 1; }
}


/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--warm-gray); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 10px; }

/* ─── Navigation ────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 8px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
}

nav.scrolled {
    padding: 5px 50px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.14);
}

.nav-logo-video {
    height: 85px;
    width: auto;
    border-radius: 10px;
    transition: var(--transition);
}

nav.scrolled .nav-logo-video { height: 52px; }


.nav-links { display: flex; gap: 8px; list-style: none; align-items: center; }

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.02rem;
    padding: 9px 20px;
    border-radius: 50px;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    letter-spacing: 0.2px;
}

.nav-links li:nth-child(1) a { color: var(--orange); }
.nav-links li:nth-child(2) a { color: var(--blue-deep); }
.nav-links li:nth-child(3) a { color: var(--lime); }
.nav-links li:nth-child(4) a { color: var(--purple); }

.nav-links li:nth-child(1) a:hover { background: rgba(251,98,31,0.10); border-color: var(--orange); }
.nav-links li:nth-child(2) a:hover { background: rgba(5,120,163,0.10); border-color: var(--blue-deep); }
.nav-links li:nth-child(3) a:hover { background: rgba(155,205,20,0.12); border-color: var(--lime); }
.nav-links li:nth-child(4) a:hover { background: rgba(148,97,141,0.10); border-color: var(--purple); }

.nav-links a i { font-size: 0.85rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.hamburger span { width: 25px; height: 3px; background: var(--dark); border-radius: 5px; transition: var(--transition); }

/* ─── CTA Buttons ───────────────────────────────────────── */
.cta-button {
    background: var(--orange);
    color: white;
    padding: 13px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 5px 18px rgba(251,98,31,0.35);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.cta-button:hover {
    transform: scale(1.06) translateY(-3px);
    box-shadow: 0 10px 28px rgba(251,98,31,0.5);
    background: var(--orange-deep);
}

.cta-secondary {
    background: var(--turquoise) !important;
    box-shadow: 0 5px 18px rgba(1,179,223,0.35) !important;
}

.cta-secondary:hover {
    background: var(--blue-deep) !important;
    box-shadow: 0 10px 28px rgba(1,179,223,0.5) !important;
}

.cta-youtube {
    background: var(--youtube-red) !important;
    box-shadow: 0 5px 18px rgba(255,0,0,0.3) !important;
}

.cta-youtube:hover {
    background: #cc0000 !important;
    box-shadow: 0 10px 28px rgba(255,0,0,0.5) !important;
}

/* ─── HERO with Full-Width Carousel ────────────────────── */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Carousel slides fill the full hero */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 0;
    transition: opacity 1.4s ease-in-out;
    transform: scale(1.05);
}

.hero-slide.hero-rexito {
    background-position: 82% center !important;
    background-size: 150% !important;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
    animation: slowZoom 8s ease-in-out forwards;
}

@keyframes slowZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.0); }
}

/* Gradient overlay — stronger so all text pops over any image */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(5,5,3,0.50) 0%,
            rgba(5,5,3,0.20) 45%,
            rgba(5,5,3,0.78) 100%
        );
    z-index: 1;
}

/* Content sits on top */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    width: 100%;
    animation: fadeInUp 0.9s ease-out both;
}

.hero-logo-container {
    background: rgba(255,255,255,0.95);
    padding: 14px;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 40px rgba(251,98,31,0.3);
    border: 4px solid rgba(245,205,43,0.6);
}

.hero-logo-video { max-width: 145px; border-radius: 12px; }

/* ─── MarCy Kids brand name above h1 ───────────────────── */
.hero-brand-name {
    font-family: 'Chewy', cursive;
    font-size: 4rem;
    letter-spacing: 4px;
    margin-bottom: 8px;
    display: block;

    /* Solid white so it ALWAYS reads on any background */
    color: #FFFFFF;
    text-shadow:
        0 0 20px rgba(251,98,31,1),
        0 0 40px rgba(245,205,43,0.9),
        2px 2px 0 rgba(0,0,0,0.6),
       -2px -2px 0 rgba(0,0,0,0.6),
        2px -2px 0 rgba(0,0,0,0.6),
       -2px  2px 0 rgba(0,0,0,0.6);

    animation: brandPulse 3s ease-in-out infinite alternate;
}

@keyframes brandPulse {
    from { text-shadow: 0 0 18px rgba(251,98,31,0.9),  0 0 35px rgba(245,205,43,0.7),  2px 2px 0 rgba(0,0,0,0.6), -2px -2px 0 rgba(0,0,0,0.6); }
    to   { text-shadow: 0 0 30px rgba(251,98,31,1),    0 0 55px rgba(245,205,43,1),    2px 2px 0 rgba(0,0,0,0.6), -2px -2px 0 rgba(0,0,0,0.6); }
}

.hero-content h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 3.8rem;
    color: #FFFFFF;
    /* Hard black outline + soft glow for legibility on bright images */
    text-shadow:
        2px 2px 0 rgba(0,0,0,0.85),
       -2px -2px 0 rgba(0,0,0,0.85),
        2px -2px 0 rgba(0,0,0,0.85),
       -2px 2px 0 rgba(0,0,0,0.85),
        0 4px 20px rgba(0,0,0,0.7);
    margin-bottom: 18px;
    line-height: 1.1;
}

.hero-content h1 span {
    /* Solid bright yellow — no transparent fill so black outline never bleeds through */
    color: #F5CD2B;
    -webkit-text-fill-color: #F5CD2B;
    text-shadow:
        2px 2px 0 rgba(0,0,0,0.85),
       -2px -2px 0 rgba(0,0,0,0.85),
        2px -2px 0 rgba(0,0,0,0.85),
       -2px  2px 0 rgba(0,0,0,0.85),
        0 0 20px rgba(245,205,43,0.9),
        0 4px 20px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.2rem;
    color: #FFFFFF;
    margin-bottom: 35px;
    line-height: 1.7;
    /* Solid readable shadow on any background */
    text-shadow:
        1px 1px 0 rgba(0,0,0,0.9),
       -1px -1px 0 rgba(0,0,0,0.9),
        0 3px 12px rgba(0,0,0,0.8);
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 18px 40px;
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-flex;
}

.hero-stat { text-align: center; }

.hero-stat strong {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    color: var(--yellow);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-stat span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Carousel dots */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: var(--yellow);
    transform: scale(1.3);
}

/* ─── Sections ──────────────────────────────────────────── */
section { padding: 90px 10%; }

.section-title {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 55px;
    color: var(--orange);
    position: relative;
    font-family: 'Fredoka', sans-serif;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px; height: 5px;
    background: var(--brand-gradient);
    margin: 12px auto;
    border-radius: 5px;
}

/* ─── Scroll Reveal ─────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Characters ────────────────────────────────────────── */
#characters { background: #FAFAFA; }

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.character-card {
    background: white;
    padding: 28px 18px;
    border-radius: 22px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--soft-shadow);
    border: 2px solid transparent;
}

.character-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 22px 55px rgba(251,98,31,0.15);
    border-color: var(--yellow);
}

.character-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin-bottom: 16px;
    object-fit: cover;
    border: 6px solid var(--yellow);
    padding: 5px;
    background: white;
    box-shadow: 0 4px 20px rgba(245,205,43,0.3);
    transition: var(--transition);
}

.character-card:hover .character-img {
    transform: scale(1.08) rotate(4deg);
    box-shadow: 0 8px 30px rgba(245,205,43,0.5);
}

.character-card h3 {
    font-size: 1.4rem;
    color: var(--orange);
    margin-bottom: 8px;
}

.character-card p { font-size: 0.88rem; color: #666; line-height: 1.5; }

/* ─── Stories ───────────────────────────────────────────── */
.stories { background: var(--warm-gray); }

/* Search */
.search-wrap { display: flex; justify-content: center; margin-bottom: 28px; }

.search-input {
    width: 100%;
    max-width: 440px;
    padding: 13px 20px 13px 48px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23FB621F' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 15px center;
    transition: var(--transition);
    outline: none;
    color: var(--dark);
}

.search-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(251,98,31,0.12);
}

/* Filter bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 45px;
}

.filter-btn {
    padding: 10px 24px;
    border: 2.5px solid transparent;
    border-radius: 50px;
    background: white;
    color: var(--dark);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}

.filter-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
    box-shadow: 0 6px 18px rgba(251,98,31,0.35);
    transform: translateY(-2px);
}

/* Story grid */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
    gap: 30px;
}

.story-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 55px rgba(0,0,0,0.14);
}

.story-card.hidden { display: none; }

.story-banner-img {
    width: 100%;
    height: 195px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.play-overlay {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(251,98,31,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transform: scale(0.7);
    transition: var(--transition);
    border: 3px solid rgba(255,255,255,0.7);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.story-card:hover .play-overlay { opacity: 1; transform: scale(1); }
.story-card:hover .story-banner-img { filter: brightness(0.75); }

.story-info { padding: 20px; }
.story-info h3 { margin-bottom: 6px; color: var(--orange); font-size: 1.2rem; }
.story-info p  { font-size: 0.9rem; line-height: 1.5; color: #666; }

.story-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-top: 10px;
    background: rgba(251,98,31,0.10);
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Values / Mission ──────────────────────────────────── */
#values { background: linear-gradient(135deg, #FFF8F5 0%, #E8F7FC 100%); }

.values-inner { max-width: 960px; margin: 0 auto; text-align: center; }

.values-inner > p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 50px;
    font-weight: 600;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 22px;
}

.value-item {
    background: white;
    border-radius: 20px;
    padding: 32px 18px;
    box-shadow: var(--soft-shadow);
    transition: var(--transition);
    border-bottom: 4px solid var(--orange);
}

.value-item:nth-child(2) { border-color: var(--turquoise); }
.value-item:nth-child(3) { border-color: var(--lime); }
.value-item:nth-child(4) { border-color: var(--yellow); }
.value-item:nth-child(5) { border-color: var(--blue-deep); }
.value-item:nth-child(6) { border-color: var(--purple); }
.value-item:nth-child(7) { border-color: var(--green-deep); }
.value-item:nth-child(8) { border-color: var(--orange-deep); }

.value-item:hover { transform: translateY(-10px); box-shadow: 0 18px 45px rgba(0,0,0,0.1); }

.value-icon { font-size: 2.8rem; margin-bottom: 14px; display: block; }

.value-item h4 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 10px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
}

.value-item p {
    font-size: 0.92rem;
    color: #444;
    line-height: 1.6;
    font-weight: 600;
}

/* ─── Animations ────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(35px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Back to Top ───────────────────────────────────────── */
#back-to-top {
    position: fixed;
    bottom: 35px; right: 35px;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(251,98,31,0.4);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { transform: scale(1.1) translateY(-3px); background: var(--orange-deep); }

/* ─── Music Toggle ──────────────────────────────────────── */
.music-toggle {
    position: fixed;
    bottom: 35px; left: 35px;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--turquoise);
    color: white;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(1,179,223,0.4);
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.music-toggle:hover { transform: scale(1.1) translateY(-3px); background: var(--blue-deep); }


/* ─── Footer ────────────────────────────────────────────── */
footer {
    background: #050503;
    color: white;
    padding: 65px 10% 40px;
    text-align: center;
}

.footer-logo {
    font-family: 'Chewy', cursive;
    font-size: 2.4rem;
    margin-bottom: 15px;
    line-height: 1.1;
}

.footer-logo .logo-text-wrapper {
    font-size: 3.2rem;
    display: block;
    margin-bottom: 8px;
}

.footer-tagline { color: #aaa; font-size: 1rem; margin-bottom: 35px; }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 35px;
    list-style: none;
}

.footer-links a { color: #ccc; text-decoration: none; font-size: 0.95rem; font-weight: 700; transition: var(--transition); }
.footer-links a:hover { color: var(--yellow); }

.social-links { margin: 25px 0; display: flex; justify-content: center; gap: 16px; }

.social-links a {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover { transform: translateY(-4px); }
.social-links a.yt:hover  { background: #FF0000; }
.social-links a.ig:hover  { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-links a.fb:hover  { background: #1877F2; }
.social-links a.tt:hover  { background: #010101; }

.footer-copy { font-size: 0.85rem; color: #555; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 25px; margin-top: 15px; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MULTI-BREAKPOINT
   ═══════════════════════════════════════════════════════════ */

/* ── Tablet grande (≤ 900px) ── */
@media (max-width: 900px) {
    nav { padding: 8px 20px; }
    nav.scrolled { padding: 5px 20px; }
    .nav-links { display: none; flex-direction: column; gap: 15px; list-style: none; }
    .nav-links.open {
        display: flex;
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        background: white;
        padding: 20px 30px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .hamburger { display: flex; }
    .nav-logo-video { height: 62px; }
    .logo-text-wrapper { font-size: 2.2rem; }

    section { padding: 70px 5%; }
    footer { padding: 50px 6% 35px; }

    .hero-brand-name { font-size: 3.2rem; }
    .hero-content h1 { font-size: 3rem; }
    .hero-stats { gap: 25px; padding: 14px 25px; }
    .hero-stat strong { font-size: 1.6rem; }
}

/* ── Tablet (≤ 768px) ── */
@media (max-width: 768px) {
    .hero { min-height: 100svh; }
    .hero-content { padding: 30px 16px; }
    .hero-brand-name { font-size: 2.8rem; letter-spacing: 2px; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.05rem; }
    .hero-logo-container { width: 150px; height: 150px; }

    .section-title { font-size: 2.1rem; margin-bottom: 35px; }

    .character-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .character-img { width: 90px; height: 90px; }
    .character-card h3 { font-size: 1.1rem; }

    .story-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    .values-grid { grid-template-columns: repeat(2, 1fr); }

    .hero-buttons { gap: 12px; }
    .hero-stats { gap: 18px; padding: 12px 18px; }
    .footer-links { gap: 18px; }
    .footer-newsletter { max-width: 100%; padding: 0 10px; }
}

/* ── Movil (max 480px) ── */
@media (max-width: 480px) {
    nav { padding: 6px 14px; }
    nav.scrolled { padding: 4px 14px; }
    .nav-logo-video { height: 50px; }
    .logo-text-wrapper { font-size: 1.75rem; letter-spacing: 0.5px; }
    .cta-youtube { display: none; }

    .hero { min-height: 100svh; }
    .hero-content { padding: 20px 14px; }
    .hero-logo-container { width: 115px; height: 115px; padding: 10px; }
    .hero-logo-video { max-width: 88px; }
    .hero-brand-name { font-size: 2.1rem; letter-spacing: 1px; }
    .hero-content h1 { font-size: 1.9rem; line-height: 1.15; }
    .hero-content p { font-size: 0.95rem; max-width: 100%; margin-bottom: 22px; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 10px; }
    .hero-buttons .cta-button { width: 100%; max-width: 290px; justify-content: center; }
    .hero-stat strong { font-size: 1.4rem; }
    .hero-stat span { font-size: 0.72rem; }
    .hero-stats { gap: 14px; padding: 10px 14px; border-radius: 14px; }

    section { padding: 50px 5%; }
    .section-title { font-size: 1.8rem; margin-bottom: 28px; }
    .section-title::after { width: 70px; }

    .character-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .character-card { padding: 18px 12px; border-radius: 16px; }
    .character-img { width: 78px; height: 78px; border-width: 4px; }
    .character-card h3 { font-size: 1rem; }
    .character-card p { font-size: 0.8rem; }

    .story-grid { grid-template-columns: 1fr; gap: 16px; }
    .search-input { font-size: 0.88rem; padding: 10px 14px 10px 40px; }
    .filter-btn { padding: 7px 12px; font-size: 0.78rem; }

    .values-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .value-item { padding: 20px 10px; border-radius: 16px; }
    .value-icon { font-size: 2rem; }
    .value-item h4 { font-size: 1rem; }
    .value-item p { font-size: 0.82rem; }

    footer { padding: 40px 5% 30px; }
    .footer-newsletter { padding: 0; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { border-radius: 14px; width: 100%; }
    .newsletter-form button { border-radius: 14px; width: 100%; }
    .footer-links { flex-direction: column; gap: 10px; align-items: center; }
    .footer-links a { font-size: 0.9rem; }
    .social-links { gap: 10px; flex-wrap: wrap; justify-content: center; }
    .social-links a { width: 42px; height: 42px; font-size: 1.1rem; }
    .footer-copy { font-size: 0.78rem; }

    #back-to-top { width: 44px; height: 44px; font-size: 1.1rem; bottom: 15px; right: 15px; }
    .music-toggle { width: 44px; height: 44px; font-size: 1.1rem; bottom: 15px; left: 15px; }
}

/* ── Movil muy pequeno (max 360px) ── */
@media (max-width: 360px) {
    .logo-text-wrapper { font-size: 1.5rem; }
    .hero-brand-name { font-size: 1.8rem; }
    .hero-content h1 { font-size: 1.65rem; }
    .hero-logo-container { width: 100px; height: 100px; }
    .character-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .value-item { padding: 16px 8px; }
    .section-title { font-size: 1.6rem; }
}

