@font-face {
    font-family: 'CA Mystery Girl';
    src: url('../fonts/CAMysteryGirl-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #bb0b2f;
    --text-color: #ffffff;
    --bg-color: #1a1a1a;
    --input-bg: #2a2a2a;
    --input-border: #444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    /* Fallback for body text */
    background-color: var(--bg-color);
    color: var(--text-color);
    background-image: url('../img/fuego_con_negro.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#app {
    flex: 1;
}

h1,
h2,
h3,
h4 {
    font-family: 'CA Mystery Girl', sans-serif;
    color: var(--primary-color);
    font-weight: normal;
    /* text-shadow removed as requested */
}

h3,
h4 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
    /* Increased from 30px */
    margin-top: 20px;
    /* Increased from 10px */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    padding: 20px 0;
    text-align: center;
}

.logo {
    max-width: 150px;
}

/* Steps Management */
.step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step 1: Landing */
#step-landing {
    min-height: 100vh;
    overflow: hidden;
}

#landing-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Landing Mode (Full Screen, No Scroll) */
body.landing-mode {
    overflow: hidden;
    height: 100vh;
}

body.landing-mode header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
}

/* Full Cover Background Implementation */
.hero-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-bg {
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: center;
    filter: blur(10px) brightness(0.6);
    position: absolute;
    top: -5%;
    left: -5%;
}

/* New Landing Layout */
.landing-centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.landing-card-container {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-card-center {
    width: 100%;
    max-width: 450px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
    transition: transform 0.4s ease;
    z-index: 1;
}

.hero-card-center:hover {
    transform: scale(1.03);
}

.btn-cta-center {
    margin-top: 40px;
    z-index: 2;
    padding: 20px 60px;
    font-size: 1.8rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(187, 11, 47, 0.5);
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
    opacity: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.landing-titles {
    margin-bottom: 30px;
}

.main-title-center {
    font-size: 4rem;
    line-height: 1.1;
    color: var(--primary-color);
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.sub-title-center {
    font-size: 2rem;
    color: white;
    font-weight: normal;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

/* Wizard Styles */
.hidden {
    display: none !important;
}

.wizard-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.wizard-form {
    width: 100%;
    max-width: 800px;
}

.wizard-step {
    display: none;
    /* Hidden by default */
    text-align: center;
    animation: fadeInStep 0.5s ease-out;
}

.wizard-step.active {
    display: block;
}

.wizard-title {
    font-size: 3.5rem;
    margin-bottom: 40px;
    color: white;
}

.wizard-input-group {
    margin-bottom: 40px;
}

.wizard-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid #666;
    border-radius: 0;
    font-size: 2.5rem;
    padding: 10px 0;
    color: white;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    transition: all 0.3s ease;
}

.wizard-input:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
    box-shadow: none;
    background: transparent;
}

.wizard-input::placeholder {
    color: #555;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
}

.wizard-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Amount Selection Cards */
.amount-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.amount-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'CA Mystery Girl', sans-serif;
    font-size: 2rem;
    font-weight: normal;
    color: white;
}

.amount-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: rgba(187, 11, 47, 0.5);
}

.amount-card.selected {
    background: rgba(187, 11, 47, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(187, 11, 47, 0.3);
}

.amount-value {
    pointer-events: none;
}

/* Custom Radio for Wizard */
.radio-group-centered {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option input {
    display: none;
}

.radio-option.selected {
    border-color: var(--primary-color);
    background: rgba(187, 11, 47, 0.1);
    color: var(--primary-color);
}

.radio-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .main-title-center {
        font-size: 2.5rem;
    }

    .wizard-title {
        font-size: 2rem;
    }

    .wizard-input {
        font-size: 1.5rem;
    }

    .hero-card-center {
        max-width: 80%;
    }
}

/* Buttons */

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    transition: transform 0.2s, background 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #900824 100%);
    box-shadow: 0 4px 15px rgba(187, 11, 47, 0.4);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d30e36 0%, #a00928 100%);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(187, 11, 47, 0.6);
}

.btn-secondary {
    background-color: #444;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #555;
    transform: translateY(-2px);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(187, 11, 47, 0.2);
    background-color: #333;
}

.radio-group label {
    display: inline-block;
    margin-right: 20px;
    font-weight: normal;
    cursor: pointer;
}

/* Stepper */
.stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #444;
    color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border: 2px solid #666;
}

.step-indicator.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.step-indicator.completed {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.line {
    width: 50px;
    height: 3px;
    background-color: #444;
    margin: 0 10px;
}

.line.active,
.line.completed {
    background-color: var(--primary-color);
    /* Or green if completed */
}

/* Design Selection */
.designs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.design-option {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.7;
    transition: all 0.2s;
}

.design-option.selected {
    border-color: var(--primary-color);
    opacity: 1;
    transform: scale(1.1);
}

/* Preview */
.preview-container {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.card-preview {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

#preview-image {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    text-shadow: 1px 1px 3px black;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

.card-amount {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: right;
    margin-bottom: 20px;
}

.card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    position: relative;
    z-index: 1;
}

.card-from,
.card-to {
    font-size: 1rem;
    margin-bottom: 5px;
}

.card-msg {
    font-style: italic;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-top: 10px;
    max-width: 45%;
    margin-right: 10px;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.card-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100px;
    height: auto;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.card-code {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.qr-code {
    width: 80px;
    height: 80px;
    background: white;
    padding: 2px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.coupon-code {
    font-family: 'Courier New', monospace;
    background: transparent;
    color: black;
    padding: 2px 5px;
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: none;
}

/* Payment */
.payment-summary {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.summary-item,
.summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-total {
    font-weight: bold;
    font-size: 1.2rem;
    border-top: 1px solid #555;
    padding-top: 10px;
    margin-top: 10px;
    color: var(--primary-color);
}

.payment-placeholder {
    border: 2px dashed #555;
    padding: 40px;
    text-align: center;
    color: #888;
    background: #222;
    margin-bottom: 20px;
}

/* Section specific */
#step-details p,
#step-personalize p {
    margin-bottom: 20px;
}

footer {
    text-align: center;
    padding: 4px 0;
    font-size: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    margin-top: 20px;
    border-top: none;
}

.ebiz-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s;
}

.ebiz-link:hover {
    opacity: 0.8;
}


/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button animation */
.landing-text .btn-lg {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1s forwards;
    /* Much faster delay */
}