:root {
    --bg-dark: #050505;
    --bg-gradient: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
    --text-white: #fefdfb;
    --gold-metallic: #c5a059;
    --gold-bright: #e8d092;
    --gold-glow: rgba(197, 160, 89, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition-speed: 0.8s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    width: 100%;
}

.full-viewport {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.scrollable {
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    display: block;
}

.hidden {
    display: none !important;
    opacity: 0;
}

/* FASE 1: INTRO */
#intro-screen {
    background: transparent;
    z-index: 100;
}

.intro-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.intro-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    display: block;
}

/* FASE 2: CONTENT */
#main-content {
    background: radial-gradient(circle at center, #111111 0%, #050505 100%);
    z-index: 10;
    opacity: 1;
    display: flex;
    flex-direction: column;
    transition: opacity 0.8s ease;
}

.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.text-container-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.2rem 1.5rem;
    border-radius: 2px;
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 340px;
    animation: fadeInDown 1.5s ease-out forwards;
}

.hero-title {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-white);
    line-height: 1.6;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.gif-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1.5rem 0;
    animation: fadeIn 2s ease-out forwards;
}

.main-gif {
    width: 85%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(0, 0, 0, 0.9));
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    position: relative;
    z-index: 20;
    touch-action: none;
}

.main-gif:active {
    cursor: grabbing;
}

.glass-button {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--gold-metallic);
    color: var(--gold-metallic);
    padding: 1rem 3rem;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: auto;
    min-width: 200px;
}

/* FASE 3: DETAILS SCREEN */
#details-screen {
    background: #050505;
    z-index: 50;
    padding: 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

#details-screen.visible {
    opacity: 1;
    transform: translateY(0);
}

.details-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

.details-header {
    text-align: center;
    margin-bottom: 6rem;
}

.gold-gradient-text {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.5em;
    background: linear-gradient(to right, #c5a059, #f9f2d1, #c5a059);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.header-line {
    width: 60px;
    height: 1px;
    background: var(--gold-metallic);
    margin: 0 auto;
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.details-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.chapter-title {
    color: var(--gold-metallic);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.highlight-p {
    font-size: 1.6rem !important;
    color: var(--text-white) !important;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem !important;
}

.main-desc {
    margin-top: 3rem;
    font-size: 1.2rem !important;
    color: var(--text-white) !important;
    border-left: 1px solid var(--gold-metallic);
    padding-left: 2rem;
}

.chapter-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border), transparent);
    margin: 2rem 0;
}

.editorial-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.editorial-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
    border-radius: 4px;
}

.quote {
    font-style: italic;
    font-size: 1.4rem !important;
    color: var(--gold-bright) !important;
    margin: 4rem 0 !important;
    text-align: center;
}

.spec-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    margin-bottom: 3rem;
    border-radius: 4px;
}

.spec-card p {
    color: var(--text-white) !important;
    font-size: 1.2rem !important;
}

.spec-card strong {
    color: var(--gold-bright);
    font-weight: 400;
}

.private-list {
    list-style: none;
    margin-bottom: 3rem;
}

.private-list li {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.private-list li::before {
    content: '';
    width: 8px;
    height: 1px;
    background: var(--gold-metallic);
}

.gold-cta-button {
    background: transparent;
    border: 1px solid var(--gold-metallic);
    color: var(--gold-metallic);
    padding: 1.2rem 3rem;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    cursor: pointer;
    transition: all 0.5s ease;
    width: 100%;
    max-width: 400px;
}

.gold-cta-button:hover {
    background: var(--gold-metallic);
    color: #000;
    box-shadow: 0 0 30px var(--gold-glow);
}

.gold-cta-button.large {
    margin: 4rem auto;
    display: block;
}

/* Certificado */
.certificate-section {
    padding: 4rem 0;
}

.certificate-border {
    border: 1px solid var(--gold-metallic);
    padding: 4rem;
    position: relative;
}

.cert-title {
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-metallic);
    margin-bottom: 4rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.cert-item {
    font-size: 0.9rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.cert-item span {
    color: var(--gold-metallic);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 0.5rem;
}

.cert-signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
}

.signature {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sig-name {
    font-style: italic;
    color: #fff;
}

.sig-role {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold-metallic);
}

.gold-seal {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    letter-spacing: 0.5em;
    color: var(--gold-metallic);
    opacity: 0.5;
}

/* MECANISMO PROFESIONAL DEL DIAL */
.gold-gradient-text.small {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.ritual-container {
    text-align: center;
    padding: 6rem 1rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(197, 160, 89, 0.1);
}

.ritual-intro {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-white);
    letter-spacing: 0.1em;
}

.ritual-instruction {
    font-size: 0.8rem;
    color: var(--gold-metallic);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 4rem;
}

.vault-mechanism-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
}

/* Vault Display (Slots) */
.vault-display {
    display: flex;
    gap: 1.5rem;
}

.combination-slot {
    width: 60px;
    height: 80px;
    background: #111;
    border: 1px solid var(--gold-metallic);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--gold-bright);
    box-shadow: inset 0 0 20px #000;
    position: relative;
    transition: all 0.3s ease;
}

.combination-slot.active {
    box-shadow: 0 0 15px var(--gold-glow);
    border-color: var(--gold-bright);
}

/* Professional Dial Styling */
.vault-dial-outer {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vault-dial-inner {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            #1a1a1a, #333 15deg, #1a1a1a 30deg,
            #333 45deg, #1a1a1a 60deg, #333 75deg,
            #1a1a1a 90deg, #333 105deg, #1a1a1a 120deg,
            #333 135deg, #1a1a1a 150deg, #333 165deg,
            #1a1a1a 180deg, #333 195deg, #1a1a1a 210deg,
            #333 225deg, #1a1a1a 240deg, #333 255deg,
            #1a1a1a 270deg, #333 285deg, #1a1a1a 300deg,
            #333 315deg, #1a1a1a 330deg, #333 345deg, #1a1a1a);
    border: 8px solid #0a0a0a;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.8),
        inset 0 0 10px rgba(255, 255, 255, 0.1),
        inset 0 0 50px rgba(0, 0, 0, 1);
    cursor: grab;
    touch-action: none;
    z-index: 2;
}

.vault-dial-inner:active {
    cursor: grabbing;
}

.dial-markings {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.dial-markings span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

/* Position numbers around the dial */
.dial-markings span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(0deg) translateY(-100px);
}

.dial-markings span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(36deg) translateY(-100px) rotate(-36deg);
}

.dial-markings span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(72deg) translateY(-100px) rotate(-72deg);
}

.dial-markings span:nth-child(4) {
    transform: translate(-50%, -50%) rotate(108deg) translateY(-100px) rotate(-108deg);
}

.dial-markings span:nth-child(5) {
    transform: translate(-50%, -50%) rotate(144deg) translateY(-100px) rotate(-144deg);
}

.dial-markings span:nth-child(6) {
    transform: translate(-50%, -50%) rotate(180deg) translateY(-100px) rotate(-180deg);
}

.dial-markings span:nth-child(7) {
    transform: translate(-50%, -50%) rotate(216deg) translateY(-100px) rotate(-216deg);
}

.dial-markings span:nth-child(8) {
    transform: translate(-50%, -50%) rotate(252deg) translateY(-100px) rotate(-252deg);
}

.dial-markings span:nth-child(9) {
    transform: translate(-50%, -50%) rotate(288deg) translateY(-100px) rotate(-288deg);
}

.dial-markings span:nth-child(10) {
    transform: translate(-50%, -50%) rotate(324deg) translateY(-100px) rotate(-324deg);
}

.dial-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(145deg, #c5a059, #8a6d3b);
    border-radius: 50%;
    box-shadow:
        0 8px 15px rgba(0, 0, 0, 0.5),
        inset 0 4px 10px rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.dial-grip {
    width: 40%;
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.dial-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 30px;
    background: var(--gold-bright);
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 0 10px var(--gold-glow);
}

.small-gold {
    max-width: 280px !important;
    font-size: 0.8rem;
    margin-top: 2rem;
}

/* Success/Error */
.feedback-text {
    height: 24px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 1rem;
}

.feedback-text.error {
    color: #f44;
}

.feedback-text.success {
    color: #4f4;
}

.access-success {
    font-size: 2.5rem;
    color: var(--gold-bright);
    text-align: center;
    margin-top: 4rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.access-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 5rem;
    letter-spacing: 0.1em;
}

.reveal-anim {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-anim.active {
    animation: slideUp 1s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .vault-dial-outer {
        width: 280px;
        height: 280px;
    }

    .vault-dial-inner {
        width: 200px;
        height: 200px;
    }

    .gold-gradient-text {
        font-size: 2rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}