/* ================================================================
   Academia 24h — Style System
   Pure CSS (replaces TailwindCSS + Framer Motion)
   ================================================================ */

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

:root {
    /* Colors */
    --black:       #09090b;
    --zinc-950:    #09090b;
    --zinc-900:    #18181b;
    --zinc-800:    #27272a;
    --zinc-700:    #3f3f46;
    --zinc-600:    #52525b;
    --zinc-500:    #71717a;
    --zinc-400:    #a1a1aa;
    --zinc-300:    #d4d4d8;
    --zinc-100:    #f4f4f5;
    --yellow-400:  #facc15;
    --yellow-300:  #fde047;

    /* Spacing */
    --container-max: 1280px;
    --container-sm:  896px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, sans-serif;
    background-color: var(--zinc-950);
    color: var(--zinc-100);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--yellow-400);
    color: var(--black);
}

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

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

ul {
    list-style: none;
}

/* ----------------------------------------------------------------
   UTILITIES
   ---------------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

.container-sm {
    max-width: var(--container-sm);
    margin: 0 auto;
    padding: 0 1rem;
}

.text-yellow   { color: var(--yellow-400); }
.text-zinc-400 { color: var(--zinc-400); }
.text-zinc-500 { color: var(--zinc-500); }
.text-zinc-600 { color: var(--zinc-600); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: inherit;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--yellow-400);
    color: var(--black);
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.2);
}
.btn-primary:hover {
    background: var(--yellow-300);
}

.btn-dark {
    background: var(--black);
    color: white;
}
.btn-dark:hover {
    transform: scale(1.05);
}

.btn-sm {
    padding: 0.625rem 1.5rem;
}

.btn-lg {
    padding: 1.5rem 3rem;
    font-size: 0.875rem;
}

.btn-hero {
    padding: 1.5rem 3rem;
    font-size: 0.875rem;
    box-shadow: 0 0 40px rgba(250, 204, 21, 0.3);
}
.btn-hero:hover {
    transform: scale(1.05);
}

/* ----------------------------------------------------------------
   HEADER
   ---------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--zinc-900);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 640px) {
    .header-inner { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
    .header-inner { padding: 0 2rem; }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    background: var(--yellow-400);
    padding: 0.25rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    font-style: italic;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-phone {
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: var(--yellow-400);
    font-weight: 700;
    font-size: 0.875rem;
    transition: color 0.3s var(--ease);
}
.header-phone:hover { color: var(--yellow-300); }

@media (min-width: 640px) {
    .header-phone { display: flex; }
}

/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img,
.hero-bg picture {
    width: 100%;
    height: 100%;
}

.hero-bg picture img,
.hero-bg > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(9, 9, 11, 0.4),
        rgba(9, 9, 11, 0.7),
        var(--zinc-950)
    );
}

/* Ken Burns Effect (out) — cinematic zoom-out on hero image */
.hero-ken-burns {
    animation: kenBurnsOut 30s linear forwards;
    will-change: transform;
}

@keyframes kenBurnsOut {
    0% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1.0);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border: 1px solid var(--yellow-400);
    color: var(--yellow-400);
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
    border-radius: 9999px;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    line-height: 0.9;
    margin-bottom: 2rem;
}

.hero-title .highlight {
    color: var(--yellow-400);
    font-style: italic;
}

@media (min-width: 768px) {
    .hero-title { font-size: 4.5rem; }
}

.hero-subtitle {
    color: var(--zinc-400);
    font-size: 1.125rem;
    max-width: 48rem;
    margin: 0 auto 3rem auto;
    font-weight: 500;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .hero-subtitle { font-size: 1.25rem; }
}

/* ----------------------------------------------------------------
   SECTIONS
   ---------------------------------------------------------------- */
.section {
    padding: 8rem 0;
}

.section-dark {
    background: var(--zinc-950);
    border-top: 1px solid var(--zinc-900);
    border-bottom: 1px solid var(--zinc-900);
}

.section-muted {
    background: rgba(24, 24, 27, 0.3);
}

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

.section-title {
    font-size: 1.875rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title { font-size: 3rem; }
}

.section-divider {
    width: 6rem;
    height: 0.25rem;
    background: var(--yellow-400);
    margin: 0 auto;
}

.section-label {
    color: var(--yellow-400);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    display: block;
}

/* ----------------------------------------------------------------
   FEATURE CARDS (What's Included)
   ---------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .features-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
    background: rgba(24, 24, 27, 0.5);
    border: 1px solid var(--zinc-800);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s var(--ease);
}

.feature-card:hover {
    border-color: rgba(250, 204, 21, 0.5);
}

.feature-icon {
    color: var(--yellow-400);
    margin-bottom: 1.5rem;
    transition: transform 0.3s var(--ease);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--zinc-500);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* ----------------------------------------------------------------
   DEMO SECTION
   ---------------------------------------------------------------- */
.demo-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 8rem;
}

@media (min-width: 768px) {
    .demo-block { grid-template-columns: 1fr 1fr; }
}

.demo-block:last-child { margin-bottom: 0; }

.demo-block.reverse .demo-image { order: -1; }

@media (min-width: 768px) {
    .demo-block.reverse .demo-image { order: 0; }
    .demo-block.reverse .demo-text  { order: 1; }
    .demo-block.reverse .demo-image { order: -1; }
}

.demo-heading {
    font-size: 2.25rem;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 4px solid var(--yellow-400);
}

.demo-image-wrapper {
    position: relative;
}

.demo-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -1rem;
    border: 2px solid rgba(250, 204, 21, 0.2);
    border-radius: 8px;
    pointer-events: none;
}

.demo-image-wrapper img {
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    filter: grayscale(100%);
    transition: filter 0.5s var(--ease);
}

.demo-image-wrapper:hover img {
    filter: grayscale(0);
}

/* Modalities grid */
.modalities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.modality-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--zinc-900);
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--zinc-800);
}

.modality-item svg { color: var(--yellow-400); flex-shrink: 0; }

.modality-item span {
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
}

/* Schedule */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--zinc-900);
    border-radius: 4px;
    border-bottom: 2px solid var(--yellow-400);
}

.schedule-day {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
}

.schedule-time {
    color: var(--yellow-400);
    font-weight: 700;
}

/* Plans */
.plans-title {
    font-size: 2.25rem;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    text-align: center;
    margin-bottom: 3rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .plans-grid { grid-template-columns: repeat(3, 1fr); }
}

.plan-card {
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--zinc-800);
    background: var(--zinc-950);
    text-align: center;
}

.plan-card.highlight {
    border-color: var(--yellow-400);
    background: var(--zinc-900);
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.plan-price {
    margin-bottom: 2rem;
}

.plan-price .currency {
    color: var(--zinc-500);
    font-size: 0.875rem;
}

.plan-price .value {
    font-size: 3rem;
    font-weight: 900;
}

.plan-price .period {
    color: var(--zinc-500);
    font-size: 0.875rem;
}

.plan-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    font-family: inherit;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    border: 1px solid var(--zinc-700);
    background: transparent;
    color: var(--zinc-100);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    text-decoration: none;
    text-align: center;
}

.plan-btn:hover {
    border-color: var(--yellow-400);
}

.plan-card.highlight .plan-btn {
    background: var(--yellow-400);
    color: var(--black);
    border-color: var(--yellow-400);
}

/* ----------------------------------------------------------------
   BLOG SECTION
   ---------------------------------------------------------------- */
.blog-header {
    margin-bottom: 4rem;
}

.blog-header h2 {
    font-size: 1.875rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .blog-header h2 { font-size: 3rem; }
}

.blog-header p {
    color: var(--zinc-400);
    max-width: 42rem;
    font-size: 1.125rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
    background: var(--zinc-900);
    border: 1px solid var(--zinc-800);
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s var(--ease);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--yellow-400);
    margin-bottom: 1rem;
}

.blog-card-label span {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.blog-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card p {
    color: var(--zinc-500);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--yellow-400);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s var(--ease);
}

.blog-card-link:hover { color: var(--yellow-300); }

/* ----------------------------------------------------------------
   BLOG POST (single article page)
   ---------------------------------------------------------------- */
.post-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--zinc-900);
}

.post-header-inner {
    max-width: var(--container-sm);
    margin: 0 auto;
    padding: 0 1rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.post-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--yellow-400);
    font-weight: 700;
    transition: color 0.3s var(--ease);
}
.post-back:hover { color: var(--yellow-300); }

.post-content {
    padding-top: 8rem;
    padding-bottom: 5rem;
    max-width: var(--container-sm);
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.post-label {
    color: var(--yellow-400);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    display: block;
}

.post-title {
    font-size: 2.25rem;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .post-title { font-size: 3.75rem; }
}

/* Prose styling for article body */
.prose {
    color: var(--zinc-300);
    font-size: 1rem;
    line-height: 1.8;
}

.prose h2 {
    font-size: 1.875rem;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    color: var(--yellow-400);
    margin-bottom: 1rem;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--zinc-100);
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose ul li {
    color: var(--zinc-400);
    margin-bottom: 0.5rem;
}

.prose ul li strong {
    color: var(--zinc-100);
}

.prose strong {
    font-weight: 700;
    color: var(--zinc-100);
}

.prose a {
    color: var(--yellow-400);
    text-decoration: underline;
    font-weight: 700;
}
.prose a:hover {
    color: var(--yellow-300);
}

.prose .callout {
    background: var(--zinc-900);
    padding: 1.5rem;
    border-left: 4px solid var(--yellow-400);
    margin: 1.5rem 0;
}

.prose .callout p {
    font-style: italic;
    color: var(--zinc-300);
    margin-bottom: 0;
}

/* Post CTA */
.post-cta {
    margin-top: 4rem;
    padding: 2.5rem;
    background: var(--yellow-400);
    border-radius: 8px;
    color: var(--black);
}

.post-cta h3 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.post-cta p {
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Post footer */
.post-footer {
    background: var(--zinc-950);
    padding: 3rem 0;
    border-top: 1px solid var(--zinc-900);
    text-align: center;
}

.post-footer p {
    color: var(--zinc-600);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
.site-footer {
    background: var(--zinc-950);
    padding-top: 8rem;
    padding-bottom: 3rem;
    border-top: 1px solid var(--zinc-900);
}

.footer-cta {
    background: var(--yellow-400);
    padding: 3rem;
    border-radius: 8px;
    color: var(--black);
    text-align: center;
    margin-bottom: 5rem;
}

.footer-cta-title {
    font-size: 1.875rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .footer-cta-title { font-size: 3rem; }
}

.footer-cta-text {
    color: rgba(0, 0, 0, 0.8);
    font-weight: 700;
    margin-bottom: 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid var(--zinc-900);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copy {
    color: var(--zinc-600);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-copy { text-align: right; }
}

/* ----------------------------------------------------------------
   WHATSAPP FLOATING BUTTON
   ---------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    background: var(--yellow-400);
    color: var(--black);
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(250, 204, 21, 0.4);
    transition: transform 0.3s var(--ease);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float svg {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
}

.icon-whatsapp {
    width: 1.25rem;
    height: 1.25rem;
    fill: var(--yellow-400);
}

.btn-dark .icon-whatsapp {
    fill: var(--yellow-400);
}

/* ----------------------------------------------------------------
   ANIMATIONS (scroll-reveal)
   ---------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grids */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Hero animation */
.hero-content {
    animation: fadeInUp 0.8s var(--ease) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for WhatsApp */
.whatsapp-float {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%   { box-shadow: 0 10px 40px rgba(250, 204, 21, 0.4); }
    50%  { box-shadow: 0 10px 60px rgba(250, 204, 21, 0.6); }
    100% { box-shadow: 0 10px 40px rgba(250, 204, 21, 0.4); }
}
