/* ============================================================
   NUMEROLOGY — Vazquez Software
   styles.css  |  Versión 2.0
   ============================================================ */

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

/* ---- DESIGN TOKENS ---- */
:root {
    --bg-dark:      #06040f;
    --bg-mid:       #100b22;
    --bg-card:      rgba(255, 255, 255, 0.05);
    --glass-border: rgba(224, 170, 255, 0.15);
    --text-light:   #f0eaff;
    --text-muted:   #9b90b8;
    --neon-purple:  #c71585;
    --neon-violet:  #c77dff;
    --neon-lavender:#e0aaff;
    --radius:       18px;
}

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

/* ============================================================
   BACKGROUND — canvas injected by stars.js
   ============================================================ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-light);
    background: #06040f;          /* fallback until canvas renders */
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.65;
    position: relative;
}

/* ---- LAYOUT ---- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: 48px 0 32px;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.hero-text {
    flex: 1;
    text-align: center;
}

/* Brand / Logo row */
.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;              /* wider so pyramid spin never clips the text */
    margin-bottom: 20px;
}

.brand span {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

/* H1 */
h1 {
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 800;
    background: linear-gradient(135deg, #e0aaff 0%, #c77dff 50%, #ff87d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
    line-height: 1.15;
}

.subtitle {
    font-size: 1.05rem;
    color: #e2dbff;
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Download buttons */
.download-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    min-height: 56px;
}

.download-buttons a {
    display: inline-block;
    border-radius: 6px;
    line-height: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.download-buttons img {
    height: 48px;
    width: auto;
    cursor: pointer;
    display: block;
    transition: filter 0.25s ease;
}

#link-android img {
    border-radius: 0; /* Google Play SVG contains native transparent padding and curves */
}

#link-ios img {
    border-radius: 6px; /* App Store SVG has sharp 90deg edges, clip it to match Apple guidelines */
}

.download-buttons a:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 6px 20px rgba(199, 125, 255, 0.4);
}

.download-buttons a:hover img {
    filter: brightness(1.12);
}

/* Mockup */
.hero-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.main-phone-mockup {
    width: 100%;
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8))
            drop-shadow(0 0 35px rgba(255, 204, 0, 0.35))
            drop-shadow(0 0 70px rgba(230, 184, 0, 0.15));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.main-phone-mockup:hover {
    transform: translateY(-6px) scale(1.02);
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.75))
            drop-shadow(0 0 45px rgba(255, 215, 0, 0.5))
            drop-shadow(0 0 80px rgba(255, 204, 0, 0.25));
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
    padding: 48px 0;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #e6b51c; /* mustard gold */
    margin-bottom: 32px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.feature-card {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(199, 21, 133, 0.28) 0%, transparent 65%),
        radial-gradient(ellipse at 50% 100%, rgba(148, 0, 211, 0.22) 0%, transparent 60%),
        rgba(30, 12, 55, 0.82);
    padding: 28px 22px;
    border-radius: var(--radius);
    border: 1px solid rgba(199, 21, 133, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        inset 0 0 30px rgba(199, 21, 133, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(199, 21, 133, 0.75);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(199, 21, 133, 0.38) 0%, transparent 70%),
        radial-gradient(ellipse at 50% 100%, rgba(148, 0, 211, 0.28) 0%, transparent 65%),
        rgba(36, 15, 66, 0.88);
    box-shadow:
        inset 0 0 45px rgba(199, 21, 133, 0.25),
        0 0 30px rgba(199, 21, 133, 0.3),
        0 12px 40px rgba(199, 21, 133, 0.25);
}

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

.feature-card h3 {
    color: var(--neon-lavender);
    margin-bottom: 8px;
    font-size: 1.15rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.93rem;
}

/* ============================================================
   SCREENSHOTS GALLERY
   ============================================================ */
.screenshots {
    padding: 32px 0 64px;
}

/* Wrapper holds arrows + scrollable strip */
.gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(8px);
    color: var(--neon-lavender);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    z-index: 3;
    user-select: none;
}

.gallery-btn:hover {
    background: rgba(199,21,133,0.25);
    border-color: rgba(199,21,133,0.5);
    transform: scale(1.1);
}

.gallery-btn:disabled {
    opacity: 0.25;
    cursor: default;
    transform: none;
}

.screenshots-gallery {
    flex: 1;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 16px 20px 24px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-purple) transparent;
}

.screenshots-gallery::-webkit-scrollbar { height: 4px; }
.screenshots-gallery::-webkit-scrollbar-track { background: transparent; }
.screenshots-gallery::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 4px;
}

.screenshots-gallery img {
    height: 340px;
    width: auto;
    flex-shrink: 0;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border: 1px solid var(--glass-border);
    scroll-snap-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}

.screenshots-gallery img:first-child {
    margin-left: 24px;
}

.screenshots-gallery img:last-child {
    margin-right: 24px;
}

.screenshots-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 40px rgba(199,21,133,0.3);
}

/* ============================================================
   LIGHTBOX MODAL
   ============================================================ */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 4, 18, 0.94);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 20px;
    box-shadow: 
        0 0 50px rgba(199, 21, 133, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(199, 21, 133, 0.4);
    object-fit: contain;
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--neon-lavender);
    font-size: 2.2rem;
    width: 54px;
    height: 54px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 1010;
    padding-bottom: 4px;
}

.lightbox-close:hover {
    background: rgba(199, 21, 133, 0.3);
    border-color: var(--neon-purple);
    color: #fff;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(199, 21, 133, 0.5);
}

/* Nav Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--neon-lavender);
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 1005;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(199, 21, 133, 0.25);
    border-color: rgba(199, 21, 133, 0.5);
    color: #fff;
    box-shadow: 0 0 15px rgba(199, 21, 133, 0.4);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

/* Hide navigation on small mobile screens to prevent overlaps, let user swipe/click close */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 46px;
        height: 46px;
        font-size: 1.5rem;
    }
    .lightbox-prev {
        left: 15px;
    }
    .lightbox-next {
        right: 15px;
    }
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 46px;
        height: 46px;
        font-size: 1.8rem;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    padding: 28px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    font-size: 0.88rem;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

footer a {
    color: var(--neon-violet);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, text-decoration 0.2s;
}

footer a:hover {
    color: var(--neon-lavender);
    text-decoration: underline;
}

/* ============================================================
   PYRAMID 3D
   ============================================================ */
.pyramid-scene {
    width: 80px;
    height: 80px;
    perspective: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pyramid-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: spin-pyramid 7s linear infinite;
}

.pyramid-face {
    position: absolute;
    width: 80px;
    height: 80px;
    transform-origin: 50% 100%;
}

.pyramid-face svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 8px rgba(199, 21, 133, 0.9));
}

.face-front  { transform: translateZ(40px)  rotateX(30deg); }
.face-right  { transform: translateX(40px)  rotateY(90deg)  rotateX(30deg); }
.face-back   { transform: translateZ(-40px) rotateY(180deg) rotateX(30deg); }
.face-left   { transform: translateX(-40px) rotateY(-90deg) rotateX(30deg); }

@keyframes spin-pyramid {
    0%   { transform: rotateX(-15deg) rotateY(0deg); }
    100% { transform: rotateX(-15deg) rotateY(360deg); }
}

/* ============================================================
   LEGAL PAGES (privacidad.html / terminos.html)
   ============================================================ */
.legal-page-wrap {
    max-width: 860px;
    margin: 48px auto;
    padding: 0 24px 64px;
    position: relative;
    z-index: 2;
}

.legal-page-header {
    text-align: center;
    margin-bottom: 36px;
}

.legal-page-header h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    margin-bottom: 10px;
}

.legal-page-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 40px 44px;
    text-align: left;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.legal-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--neon-lavender);
    margin-top: 36px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.legal-card h2:first-child { margin-top: 0; }

.legal-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--neon-violet);
    margin-top: 22px;
    margin-bottom: 8px;
}

.legal-card p,
.legal-card li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.75;
}

.legal-card ul,
.legal-card ol {
    padding-left: 22px;
    margin-bottom: 14px;
}

.legal-card li { margin-bottom: 6px; }

.legal-card strong {
    color: var(--text-light);
    font-weight: 600;
}

.legal-card a {
    color: var(--neon-violet);
    text-decoration: underline;
    transition: color 0.2s;
}

.legal-card a:hover { color: var(--neon-lavender); }

.legal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--neon-violet);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 28px;
    transition: gap 0.2s, color 0.2s;
}

.legal-back-link:hover {
    gap: 10px;
    color: var(--neon-lavender);
}

/* ============================================================
   RESPONSIVE — Tablet / Desktop
   ============================================================ */
@media (min-width: 680px) {
    .hero { padding: 56px 0 36px; }
    .features { padding: 56px 0; }
    .screenshots { padding: 40px 0 72px; }
    .screenshots-gallery img { height: 380px; }
}

@media (min-width: 900px) {
    .hero-grid {
        flex-direction: row;
        text-align: left;
        gap: 60px;
        align-items: center;
    }

    .hero-text { text-align: left; }

    .brand {
        flex-direction: row;
        align-items: center;
        gap: 20px;          /* wider gap on desktop too */
    }

    .subtitle { margin-left: 0; }

    .download-buttons { justify-content: flex-start; }

    .main-phone-mockup { max-width: 340px; }

    .screenshots .container {
        max-width: 1200px;
    }

    .screenshots-gallery {
        justify-content: flex-start;
    }

    .screenshots-gallery img { height: 420px; }

    .legal-card { padding: 48px 56px; }
}

@media (min-width: 1200px) {
    .screenshots-gallery {
        justify-content: center;
    }
}

/* ============================================================
   ACCESSIBILITY — Focus visible
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--neon-violet);
    outline-offset: 4px;
    border-radius: 4px;
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--neon-violet); }