/* ============================================
   LAYOUT - Header, Nav, Footer, Secciones
   Kedwyn la Bruja
   ============================================ */

/* === Header / Nav === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 6, 18, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-base);
}

.header.scrolled {
    background: rgba(10, 6, 18, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-accent);
    text-decoration: none;
    transition: transform var(--transition-base);
}

.nav__logo:hover {
    transform: scale(1.05);
    color: var(--color-accent);
}

.nav__logo-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 12px var(--color-glow);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-base);
    border-radius: 2px;
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.nav__link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    letter-spacing: 0.5px;
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-text-bright);
    background: rgba(179, 136, 255, 0.1);
}

.nav__link--cta {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-text-bright);
    font-weight: 600;
}

.nav__link--cta:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    box-shadow: var(--shadow-glow);
    color: var(--color-text-bright);
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--color-bg-deep), transparent);
    pointer-events: none;
    z-index: 1;
}

.hero__layout {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__content {
    text-align: left;
}

.hero__badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--color-accent);
    background: rgba(255, 213, 79, 0.1);
    border: 1px solid rgba(255, 213, 79, 0.25);
    padding: 8px 24px;
    border-radius: var(--radius-xl);
    margin-bottom: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero__title {
    font-family: var(--font-display);
    margin-bottom: 24px;
}

.hero__title-line {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-text-bright);
    line-height: 1.1;
}

.hero__title-line--accent {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(179, 136, 255, 0.3));
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--color-text-muted);
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__witch-image {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), var(--shadow-glow);
    position: relative;
    z-index: 1;
}

.hero__app-badge {
    position: absolute;
    bottom: -20px;
    right: -10px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    box-shadow: var(--shadow-glow-strong);
    z-index: 2;
    object-fit: cover;
}

.hero__floating-cards {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero__float-card {
    position: absolute;
    width: 70px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-glow);
    border: 1px solid var(--color-border);
    opacity: 0.5;
}

.hero__float-card--1 {
    top: 5%;
    left: -10%;
}

.hero__float-card--2 {
    bottom: 10%;
    right: -15%;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.hero__scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(45deg);
}

/* === Oracle Section === */
.oracle {
    padding: 120px 0;
    position: relative;
}

.oracle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.oracle__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* === How It Works === */
.how-it-works {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--color-bg-deep), var(--color-bg), var(--color-bg-deep));
}

.steps {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.step {
    display: flex;
    gap: 32px;
}

.step__number {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step__number span {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-text-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(124, 77, 255, 0.4);
}

.step__line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    margin-top: 8px;
}

.step__content {
    padding-bottom: 48px;
}

.step__icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.step__content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-text-bright);
    margin-bottom: 10px;
}

.step__content p {
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* === Tarot Cards Section === */
.tarot-cards {
    padding: 120px 0;
    position: relative;
}

.cards-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

/* === App Preview Section === */
.app-preview {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.app-preview__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-preview__content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-text-bright);
    margin-bottom: 20px;
    line-height: 1.3;
}

.app-preview__content p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.app-preview__features {
    list-style: none;
    margin: 24px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app-preview__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text);
    font-size: 0.95rem;
}

.app-preview__features li::before {
    content: '\2726';
    color: var(--color-accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.app-preview__phone {
    display: flex;
    justify-content: center;
}

.app-preview__phone-img {
    max-width: 320px;
    width: 100%;
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

/* === Testimonials === */
.testimonials {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--color-bg-deep), var(--color-bg));
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* === CTA Section === */
.cta {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta__content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta__orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.2) 0%, rgba(255, 128, 171, 0.05) 50%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-text-bright);
    margin-bottom: 20px;
}

.cta__description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.cta__cards-preview {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    position: relative;
}

.cta__preview-card {
    width: 100px;
    height: 155px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-border);
    box-shadow: var(--shadow-glow);
    object-fit: cover;
    transition: transform var(--transition-base);
}

.cta__preview-card--1 {
    transform: rotate(-15deg) translateX(25px);
    z-index: 1;
}

.cta__preview-card--2 {
    transform: translateY(-10px);
    z-index: 2;
}

.cta__preview-card--3 {
    transform: rotate(15deg) translateX(-25px);
    z-index: 1;
}

.cta__cards-preview:hover .cta__preview-card--1 {
    transform: rotate(-20deg) translateX(15px) translateY(-5px);
}

.cta__cards-preview:hover .cta__preview-card--2 {
    transform: translateY(-20px);
}

.cta__cards-preview:hover .cta__preview-card--3 {
    transform: rotate(20deg) translateX(-15px) translateY(-5px);
}

.cta__note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 20px;
    font-family: var(--font-heading);
}

/* === FAQ Section === */
.faq {
    padding: 120px 0;
    background: var(--color-bg);
}

.faq__list {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* === SEO Content === */
.seo-content {
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
}

.seo-article {
    max-width: 800px;
    margin: 0 auto;
}

.seo-article h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text-bright);
    margin-bottom: 24px;
    line-height: 1.4;
}

.seo-article h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-primary-light);
    margin: 32px 0 12px;
}

.seo-article p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
    line-height: 1.9;
}

/* === Footer === */
.footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 64px 0 32px;
}

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

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.footer__logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.footer__tagline {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer__nav h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-text-bright);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.footer__nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__nav a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-base);
}

.footer__nav a:hover {
    color: var(--color-primary-light);
}

.footer__social h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-text-bright);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.footer__social-links {
    display: flex;
    gap: 12px;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    transition: all var(--transition-base);
}

.footer__social-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.footer__bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    text-align: center;
}

.footer__bottom p {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}