/* ============================
   PITIAS — Home / Landing Page
   Hero, secciones, animaciones,
   JCG floating logo
   ============================ */

/* ═══════════════════════════════
   HERO SECTION
   ═══════════════════════════════ */

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: var(--space-3xl) 0 var(--space-xl);
}

/* ── Estrellas flotantes en la Hero ── */
.hero-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-stars::before,
.hero-stars::after {
    content: '✦';
    position: absolute;
    font-size: 14px;
    color: rgba(91, 45, 160, 0.2);
    animation: float-star 8s ease-in-out infinite;
}

.hero-stars::before {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.hero-stars::after {
    top: 30%;
    right: 12%;
    animation-delay: 3s;
    font-size: 10px;
}

@keyframes float-star {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.7;
    }
}

/* ── Contenido del Hero ── */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Badge del hero */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: rgba(91, 45, 160, 0.08);
    border: 1px solid rgba(91, 45, 160, 0.15);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--color-violeta);
    font-weight: var(--font-weight-bold);
    letter-spacing: 1px;
    text-transform: uppercase;
    width: fit-content;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 rgba(91, 45, 160, 0);
    }

    50% {
        box-shadow: 0 0 20px rgba(91, 45, 160, 0.15);
    }
}

/* Título principal */
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 0;
    color: var(--color-negro-texto);
}

.hero-highlight {
    background: var(--gradiente-violeta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Descripción */
.hero-description {
    font-size: var(--font-size-lg);
    color: rgba(26, 26, 30, 0.75);
    line-height: var(--line-height-loose);
    max-width: 500px;
}

/* Botones hero */
.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-cta {
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.hero-cta:hover::before {
    left: 100%;
}

/* ── Imagen de la Pitia ── */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-glow {
    position: absolute;
    width: 85%;
    height: 85%;
    background: radial-gradient(ellipse, rgba(91, 45, 160, 0.15) 0%, rgba(176, 136, 208, 0.08) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: glow-breathe 5s ease-in-out infinite;
}

@keyframes glow-breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.hero-image {
    max-width: 420px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    filter: drop-shadow(0 20px 60px rgba(91, 45, 160, 0.2));
    animation: hero-float 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes hero-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ── Indicador de scroll ── */
.hero-scroll-hint {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xs);
    color: rgba(91, 45, 160, 0.5);
    font-size: var(--font-size-xs);
    letter-spacing: 1px;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ═══════════════════════════════
   SECCIONES GENERALES
   ═══════════════════════════════ */

.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-header {
    margin-bottom: var(--space-3xl);
}

.section-badge {
    display: inline-block;
    padding: var(--space-2xs) var(--space-md);
    background: rgba(91, 45, 160, 0.08);
    border: 1px solid rgba(91, 45, 160, 0.12);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    color: var(--color-violeta);
    font-weight: var(--font-weight-bold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(26, 26, 30, 0.65);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-base);
}

.section-cta {
    margin-top: var(--space-2xl);
}

/* ═══════════════════════════════
   SECCIÓN: LECTURA DEL TAROT
   ═══════════════════════════════ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.feature-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradiente-violeta);
    border-radius: var(--radius-lg);
    color: var(--color-blanco);
    margin-bottom: var(--space-sm);
    transition: transform var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-3deg);
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0;
}

.feature-text {
    color: rgba(26, 26, 30, 0.65);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-base);
    margin-bottom: 0;
}

/* ═══════════════════════════════
   SECCIÓN: TIENDA
   ═══════════════════════════════ */

.section-tienda {
    background: var(--gradiente-etereo);
    border-radius: var(--radius-xl);
    margin: 0 var(--space-lg);
}

.products-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.product-card {
    text-align: center;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-image-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradiente-estrellado);
    color: rgba(91, 45, 160, 0.25);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.product-info {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.product-name {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0;
}

.product-price {
    font-size: var(--font-size-sm);
    color: var(--color-violeta);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0;
}

/* ═══════════════════════════════
   SECCIÓN: CURSO
   ═══════════════════════════════ */

.curso-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.curso-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.curso-description {
    font-size: var(--font-size-md);
    color: rgba(26, 26, 30, 0.7);
    line-height: var(--line-height-loose);
}

.curso-features {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.curso-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-base);
    color: var(--color-negro-texto);
    margin-bottom: 0;
}

.curso-features li svg {
    color: var(--color-verde-oliva);
    flex-shrink: 0;
}

/* ── Visual del curso (stack de cards) ── */
.curso-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.curso-card-stack {
    position: relative;
    width: 280px;
    height: 360px;
}

.curso-stack-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.curso-stack-card:nth-child(1) {
    transform: rotate(-6deg) translateX(-10px);
    opacity: 0.5;
}

.curso-stack-card:nth-child(2) {
    transform: rotate(-3deg) translateX(-5px);
    opacity: 0.7;
}

.curso-stack-main {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--gradiente-violeta);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    color: var(--color-blanco);
    z-index: 2;
    transition: transform var(--transition-base);
}

.curso-stack-main:hover {
    transform: translateY(-8px);
}

.curso-stack-icon svg {
    opacity: 0.9;
}

.curso-stack-label {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    letter-spacing: 1px;
}

.curso-stack-sub {
    font-size: var(--font-size-sm);
    opacity: 0.7;
    letter-spacing: 0.5px;
}


/* ═══════════════════════════════
   ANIMACIONES DE SCROLL (fade-in)
   ═══════════════════════════════ */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Entrada inicial del hero */
.hero-text {
    animation: hero-enter-left 1s ease-out;
}

@keyframes hero-enter-left {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image-wrapper {
    animation: hero-enter-right 1s ease-out 0.3s both;
}

@keyframes hero-enter-right {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ═══════════════════════════════
   RESPONSIVE — HOME
   ═══════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }

    .hero-text {
        align-items: center;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        max-width: 320px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .curso-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .curso-text {
        align-items: center;
    }

    .curso-features {
        align-items: center;
    }

    .curso-card-stack {
        width: 230px;
        height: 300px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .hero {
        min-height: auto;
        padding: var(--space-2xl) 0 var(--space-xl);
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-image {
        max-width: 260px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-scroll-hint {
        display: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .products-preview {
        grid-template-columns: 1fr;
    }

    .section-tienda {
        margin: 0 var(--space-xs);
        border-radius: var(--radius-lg);
    }

    .curso-card-stack {
        width: 200px;
        height: 260px;
    }

    .jcg-floating {
        bottom: var(--space-md);
        left: var(--space-md);
    }

    .jcg-floating-img {
        height: 22px;
    }
}