@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;
}

/* Dark scrollbar styling */
* {
    scrollbar-width: thin;
    scrollbar-color: #555 #2a2a2a;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #777;
}

* {
    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;
}

h3,
h4 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
}

.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%;
}

.hero-bg {
    width: 102%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(4px);
    transform: scale(1.05);
}

.hero-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* 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;
    font-weight: normal;
}

.sub-title-center {
    font-size: 2rem;
    color: white;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

/* =========================================
   NEW FLOW STYLES (Overlay/Blur & Boxes)
   ========================================= */

/* Blur Overlay Background */
.blur-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 5;
}

/* Container for the flow steps to center content over the blur */
.flow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: none;
    /* Toggled by JS */
    overflow-y: auto;
    padding: 20px;
}

.flow-container.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The Main Card Box */
.flow-card {
    background: rgba(20, 20, 20, 0.98);
    /* Darker background */
    border: 1px solid #333;
    border-radius: 15px;
    /* Slightly sharper */
    padding: 25px;
    /* Reduced padding to fit screen */
    width: 100%;
    max-width: 900px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 11;
    color: #fff;
    max-height: 95vh;
    /* Ensure it fits in viewport */
    overflow-y: auto;
    /* Scroll if needed inside card */
}

.flow-card.wide-card {
    max-width: 1100px;
}

.flow-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'CA Mystery Girl', sans-serif;
    color: var(--primary-color);
    letter-spacing: 1px;
    font-weight: normal;
}

/* Grid Layout for Details Step */
.flow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.flow-amount {
    justify-content: flex-start;
}

.flow-amount .amount-grid {
    flex: 1;
    align-content: center;
}

.flow-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Reduced gap */
}

.flow-col h3 {
    margin-bottom: 15px;
    margin-top: 0;
}

/* Input Boxes */
.box-input label {
    display: block;
    margin-bottom: 25px;
    /* Same margin as others */
    text-align: left;
}

.flow-input {
    width: 100%;
    padding: 10px 5px;
    border: none;
    border-bottom: 2px solid #555;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.flow-input:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

/* Amount Grid */
.amount-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    flex: 1;
}

.amount-box {
    background: #333;
    border: 1px solid #444;
    padding: 15px 10px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'CA Mystery Girl', sans-serif;
    font-size: 1.1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.amount-box:hover {
    background: #444;
}

.amount-box.selected {
    border-color: var(--primary-color);
    background: #222;
    color: var(--primary-color);
}

/* Notification Row */
.flow-row.flow-notification {
    grid-column: 1 / -1;
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Unify Titles */
.flow-col h3,
.box-input label,
.flow-row h3 {
    display: block;
    margin-bottom: 15px;
    font-family: 'CA Mystery Girl', sans-serif;
    color: var(--primary-color);
    font-size: 2.5rem;
    text-transform: uppercase;
    text-align: left;
    line-height: 1;
    font-weight: normal;
}

/* Specific overrides if needed */
.box-input label {
    margin-bottom: 10px;
}

.notification-methods {
    display: flex;
    gap: 20px;
}

.notify-option {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    background: transparent;
    padding: 5px 0;
    border-radius: 0;
    border: none;
    transition: color 0.2s;
}

.notify-option .icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.notify-option:hover {
    color: var(--primary-color);
}

/* Style for selected state via JS or checked input sibling selector if possible, 
   but currently reliance is on radio input being visible. 
   User asked to remove "redondo de fondo", likely means make it boxy.
   So border-radius reduced. */

.notify-option input {
    margin: 0;
    accent-color: var(--primary-color);
}

.contact-input-wrapper {
    width: 100%;
    margin-top: 10px;
}

/* Actions */
.flow-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 10px 30px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    background-color: #555;
    color: #fff;
}

.btn:hover {
    opacity: 0.9;
}

/* Personalize Step Styles */
.personalize-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 20px;
}

.design-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.design-thumb {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.2s;
}

.design-thumb:hover {
    transform: scale(1.02);
}

.design-thumb.selected {
    border-color: var(--primary-color);
}

.col-message textarea {
    width: 100%;
    height: 150px;
    background: #2a2a2a;
    border: 1px solid #555;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    resize: none;
}

.card-preview-box {
    position: relative;
    width: 100%;
}

.card-preview-box img {
    width: 100%;
    border-radius: 15px;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

.preview-text {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: bold;
}

.preview-text.amount {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: auto;
    /* Push to top */
    align-self: flex-end;
}

.preview-text.to {
    font-size: 1.1rem;
}

.preview-text.from {
    font-size: 1rem;
}

.preview-text.msg {
    margin-top: 10px;
    font-style: italic;
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 5px;
}

.hidden {
    display: none;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .flow-grid {
        grid-template-columns: 1fr;
    }

    .personalize-grid {
        grid-template-columns: 1fr;
    }

    .design-list {
        flex-direction: row;
        overflow-x: auto;
    }

    .design-thumb {
        width: 100px;
    }
}

/* 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;
    color: white;
    font-weight: normal;
}

.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 */
}