/* ============================================================
   CUÉNTAME MÁS — Global Styles
   Colors: #111 (bg-dark), #7B5CF5 (purple), #F0407E (pink/coral),
           #FFFFFF (white)
   ============================================================ */

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

:root {
    --purple: #7B5CF5;
    --purple-light: #9B7FF8;
    --pink: #F0407E;
    --pink-light: #FF6B9D;
    --dark: #0D0D0D;
    --dark-2: #161616;
    --dark-3: #1E1E1E;
    --white: #FFFFFF;
    --gray: #A0A0A0;
    --gray-light: #2A2A2A;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(123, 92, 245, 0.4);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(123, 92, 245, 0.6);
}

.btn--pink {
    background: var(--pink);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(240, 64, 126, 0.35);
}
.btn--pink:hover {
    background: var(--pink-light);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}
.btn--outline:hover {
    border-color: var(--purple);
    color: var(--purple-light);
    transform: translateY(-2px);
}

.btn--nav {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: var(--white);
    padding: 10px 22px;
    font-size: 14px;
}
.btn--nav:hover { transform: translateY(-1px); }

.btn--lg { padding: 18px 40px; font-size: 17px; }

/* ---- LIGHT MODE ---- */
body.light {
    --dark: #F0EEF9;
    --dark-2: #E6E2F5;
    --dark-3: #D9D3EF;
    --white: #1A0A3D;
    --gray: #5A4E78;
    --gray-light: #C8C0E0;
    background: var(--dark);
    color: var(--white);
}
body.light .nav {
    background: rgba(220,216,240,0.97);
    border-bottom-color: rgba(123,92,245,0.15);
}
body.light .nav__divider { background: rgba(123,92,245,0.15); }
body.light .nav__links a { color: rgba(26,10,61,0.8); }
body.light .nav__links a:not(.btn):hover { color: var(--purple); }
body.light .nav__burger span { background: #1A0A3D; }
body.light .nav__mobile {
    background: #E6E2F5;
    border-top-color: rgba(123,92,245,0.12);
}
body.light .nav__mobile a { color: #1A0A3D; }
body.light .hero__bg {
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(123,92,245,0.18) 0%, transparent 70%),
                radial-gradient(ellipse 60% 50% at 80% 80%, rgba(240,64,126,0.12) 0%, transparent 60%),
                var(--dark);
}
body.light .section--dark { background: var(--dark-2); }
body.light .episode-card,
body.light .host-card,
body.light .platform-card {
    background: rgba(255,255,255,0.7);
    border-color: rgba(123,92,245,0.15);
}
body.light .episode-card:hover,
body.light .host-card:hover { border-color: rgba(123,92,245,0.35); }
body.light .patreon-banner { background: linear-gradient(135deg, #6B4CE0 0%, #4A2CB0 50%, #D03570 100%); }
body.light .footer { background: #D9D3EF; border-top-color: rgba(123,92,245,0.15); }
body.light .footer__bottom { border-top-color: rgba(123,92,245,0.12); color: var(--gray); }
body.light .footer__links a { color: rgba(26,10,61,0.7); }
body.light .footer__links a:hover { color: var(--purple); }
body.light .footer__brand p { color: var(--gray); }

/* textos con rgba blanco hardcodeado */
body.light .hero__subtitle { color: rgba(26,10,61,0.65); }
body.light .hero__stats .stat__divider { background: rgba(26,10,61,0.15); }
body.light .about-text { color: rgba(26,10,61,0.75); }
body.light .section__sub { color: var(--gray); }
body.light .host-card h3 { color: #1A0A3D; }

/* bordes blancos en cards */
body.light .episode-card { border-color: rgba(123,92,245,0.12); }
body.light .host-card { border-color: rgba(123,92,245,0.12); }
body.light .platform-card { border-color: rgba(123,92,245,0.12); color: #1A0A3D; }
body.light .platform-card:hover { border-color: rgba(123,92,245,0.4); }

/* btn outline */
body.light .btn--outline {
    border-color: rgba(26,10,61,0.25);
    color: #1A0A3D;
}
body.light .btn--outline:hover {
    border-color: var(--purple);
    color: var(--purple);
}

/* footer links hardcoded */
body.light .footer__links h4 { color: var(--gray); }

/* ---- THEME TOGGLE ---- */
.theme-toggle {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
    padding: 0;
}
.theme-toggle:hover { background: rgba(123,92,245,0.12); }
body.light .theme-toggle:hover { background: rgba(123,92,245,0.12); }

.theme-toggle svg { display: block; transition: transform 0.3s ease; }
.theme-toggle:hover svg { transform: rotate(20deg); }

/* dark mode: moon visible / sun hidden */
.theme-toggle__icon--sun { display: none; }
.theme-toggle__icon--moon { display: block; }
body.light .theme-toggle__icon--sun { display: block; }
body.light .theme-toggle__icon--moon { display: none; }

/* ---- NAV ---- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(6,6,6,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s;
}

.nav__logo-row {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 24px 14px;
}

.nav__logo {
    position: relative;
    display: inline-block;
    line-height: 0;
}
.nav__logo img { display: block; }

/* Estrellas superpuestas sobre el logo */
.logo-star {
    position: absolute;
    font-size: 10px;
    pointer-events: none;
    animation: twinkle 2.5s ease-in-out infinite;
}
/* Estrella sobre la é de cuéntame */
.logo-star--1 {
    color: #F0407E;
    top: 4px;
    left: 28%;
    animation-delay: 0s;
    animation-duration: 2.2s;
}
/* Estrella en la á de más (burbuja) */
.logo-star--2 {
    color: #9B7FF8;
    bottom: 10px;
    left: 67%;
    animation-delay: 1.1s;
    animation-duration: 3s;
}

.nav__divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 0 24px;
    transition: background 0.3s;
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.nav__links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.nav__links a:not(.btn):hover { color: var(--purple-light); }

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav__mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--dark-2);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.nav__mobile a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
}
.nav__mobile.open { display: flex; }

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 200px 24px 80px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(123,92,245,0.18) 0%, transparent 70%),
                radial-gradient(ellipse 60% 50% at 80% 80%, rgba(240,64,126,0.12) 0%, transparent 60%),
                var(--dark);
}

.hero__content {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(123,92,245,0.15);
    border: 1px solid rgba(123,92,245,0.3);
    color: var(--purple-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 28px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--purple-light), var(--pink-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255,255,255,0.7);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat { text-align: center; }

.stat__num {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--purple-light), var(--pink-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat__label {
    display: block;
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stat__divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

/* Decorative elements */
.hero__decoration { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.deco-flower {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0.12;
}
.deco-flower--purple {
    background: var(--purple);
    top: 15%;
    left: -60px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: rotate(45deg);
    width: 180px;
    height: 180px;
}
.deco-flower--pink {
    background: var(--pink);
    bottom: 20%;
    right: -60px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: rotate(15deg);
    width: 160px;
    height: 160px;
}

.sparkle-star {
    position: absolute;
    font-size: 24px;
    opacity: 0.4;
    animation: twinkle 3s ease-in-out infinite;
}
.s1  { top: 20%;  right: 10%;  color: var(--purple-light); animation-delay: 0s;    font-size: 24px; }
.s2  { top: 60%;  left: 8%;   color: var(--pink-light);   animation-delay: 1s;    font-size: 18px; }
.s3  { bottom: 25%; right: 15%; color: var(--white);      animation-delay: 2s;    font-size: 14px; }
.s4  { top: 35%;  left: 18%;  color: var(--purple-light); animation-delay: 0.5s;  font-size: 12px; animation-duration: 2.5s; }
.s5  { top: 10%;  left: 40%;  color: var(--pink-light);   animation-delay: 1.8s;  font-size: 20px; animation-duration: 4s;   }
.s6  { top: 75%;  right: 22%; color: var(--purple-light); animation-delay: 0.3s;  font-size: 10px; animation-duration: 2.2s; }
.s7  { top: 45%;  right: 5%;  color: var(--pink-light);   animation-delay: 2.5s;  font-size: 16px; animation-duration: 3.5s; }
.s8  { bottom: 15%; left: 25%; color: var(--white);       animation-delay: 1.2s;  font-size: 22px; animation-duration: 2.8s; }
.s9  { top: 55%;  right: 35%; color: var(--purple-light); animation-delay: 0.8s;  font-size: 11px; animation-duration: 4.2s; }
.s10 { top: 82%;  left: 55%;  color: var(--pink-light);   animation-delay: 2.1s;  font-size: 14px; animation-duration: 3.2s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.sparkle { color: var(--pink); }

/* ---- PATREON BANNER ---- */
.patreon-banner {
    background: linear-gradient(135deg, var(--purple) 0%, #5B3CC4 50%, var(--pink) 100%);
    padding: 60px 0;
}

.patreon-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.patreon-banner__tag {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 12px;
    opacity: 0.8;
}

.patreon-banner__text h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 12px;
}

.patreon-banner__text p {
    font-size: 15px;
    opacity: 0.9;
    max-width: 560px;
    line-height: 1.7;
}

.patreon-banner .btn--pink {
    background: rgba(0,0,0,0.25);
    border: 2px solid rgba(255,255,255,0.5);
    flex-shrink: 0;
}
.patreon-banner .btn--pink:hover {
    background: rgba(0,0,0,0.4);
    border-color: white;
}

/* ---- SECTIONS ---- */
.section { padding: 100px 0; }
.section--dark { background: var(--dark-2); }

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    color: var(--purple-light);
    margin-bottom: 12px;
}

.section__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section__sub {
    color: var(--gray);
    font-size: 16px;
}

.section__cta { text-align: center; margin-top: 48px; }

/* ---- LATEST VIDEO ---- */
.latest-video {
    background: var(--dark-3);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.latest-video__frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.latest-video__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.latest-video__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.latest-video__tag {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--purple-light), var(--pink-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light .latest-video { background: rgba(255,255,255,0.7); border-color: rgba(123,92,245,0.12); }

/* ---- YOUTUBE CHANNEL CARD ---- */
.yt-channel-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--dark-3);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 48px 40px;
    transition: border-color 0.3s;
}
.yt-channel-card:hover { border-color: rgba(123,92,245,0.3); }

.yt-channel-card__logo {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.yt-channel-card__logo img { width: 100%; display: block; }

.yt-channel-card__info { flex: 1; }

.yt-channel-card__name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 8px;
}
.yt-channel-card__handle {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 16px;
    font-weight: 500;
}
.yt-channel-card__desc {
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 560px;
}

body.light .yt-channel-card { background: rgba(255,255,255,0.7); border-color: rgba(123,92,245,0.12); }
body.light .yt-channel-card:hover { border-color: rgba(123,92,245,0.35); }
body.light .yt-channel-card__desc { color: rgba(26,10,61,0.65); }

@media (max-width: 640px) {
    .yt-channel-card { flex-direction: column; text-align: center; padding: 32px 24px; gap: 24px; }
    .yt-channel-card__desc { margin-left: auto; margin-right: auto; }
}

/* ---- HOSTS ---- */
.hosts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.host-card {
    background: var(--dark-3);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s, border-color 0.3s;
}
.host-card:hover {
    transform: translateY(-4px);
    border-color: rgba(123,92,245,0.4);
}

.host-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    margin: 0 auto 16px;
}
.host-card__avatar--1 { background: linear-gradient(135deg, var(--purple), #5B3CC4); }
.host-card__avatar--2 { background: linear-gradient(135deg, var(--pink), #C0305E); }
.host-card__avatar--3 { background: linear-gradient(135deg, var(--purple), var(--pink)); }
.host-card__avatar--4 { background: linear-gradient(135deg, #5B3CC4, var(--pink)); }

.host-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
}

.about-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
}
.about-text strong { color: var(--purple-light); }

/* ---- PLATFORMS ---- */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 20px;
    background: var(--dark-3);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
}
.platform-card svg { width: 40px; height: 40px; }
.platform-card:hover { transform: translateY(-4px); }

.platform-card:not([class*="--"]):hover { border-color: #FF0000; color: #FF0000; }
.platform-card--patreon:hover { border-color: #FF424D; color: #FF424D; }
.platform-card--spotify:hover { border-color: #1DB954; color: #1DB954; }
.platform-card--apple:hover { border-color: #B150E2; color: #B150E2; }

/* ---- INSTAGRAM ---- */
.instagram-section { text-align: center; }
.instagram-cta { display: flex; justify-content: center; margin-top: 8px; }

/* ---- FOOTER ---- */
.footer {
    background: #080808;
    padding: 60px 0 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__brand img { margin-bottom: 16px; display: block; }
.footer__brand p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
}
.footer__location { margin-top: 8px; font-size: 14px; }

.footer__links h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 16px;
}
.footer__links a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.footer__links a:hover { color: var(--purple-light); }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    text-align: center;
    color: var(--gray);
    font-size: 13px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__burger { display: flex; }
    /* móvil: nav__inner con burger izquierda + toggle derecha */
    .nav__logo-row { padding: 14px 16px 12px; }
    .nav__inner { padding: 0 16px; justify-content: space-between; }

    .hero { padding-top: 200px; }

    .patreon-banner__inner { flex-direction: column; text-align: center; }
    .patreon-banner__inner .btn { width: 100%; max-width: 300px; justify-content: center; }

    .footer__inner { grid-template-columns: 1fr; gap: 32px; }

    .stat__divider { display: none; }
    .hero__stats { gap: 24px; }
}

@media (max-width: 480px) {
    .hero__cta { flex-direction: column; align-items: center; }
    .btn--lg { width: 100%; max-width: 300px; justify-content: center; }
}
