/* =========================================================================
   SaaS WIZARD STYLES (Crear Invitación)
   ========================================================================= */

:root {
    --wz-primary: #ec4899;
    --wz-primary-dark: #be123c;
    --wz-bg: #f8fafc;
    --wz-card: #ffffff;
    --wz-text: #0f172a;
    --wz-text-light: #64748b;
    --wz-border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--wz-bg);
    color: var(--wz-text);
    line-height: 1.5;
}

.container-wz {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Navbar */
.wizard-header {
    background: var(--wz-card);
    border-bottom: 1px solid var(--wz-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.wizard-header .container-wz {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    height: 54px;
}

.btn-cancel {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wz-text-light);
    text-decoration: none;
}

.btn-cancel:hover {
    color: var(--wz-text);
}

/* Steps Indicator */
/* Progress Indicator Enhancements */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wz-bg);
    border: 2px solid var(--wz-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--wz-text-light);
    transition: all 0.3s;
}

.step-label {
    font-size: 0.70rem;
    font-weight: 600;
    color: var(--wz-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: absolute;
    top: 40px;
    white-space: nowrap;
}

.step-item.active .step-dot {
    background: var(--wz-primary);
    border-color: var(--wz-primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.2);
}

.step-item.active .step-label {
    color: var(--wz-primary);
    font-weight: 700;
}

.step-item.completed .step-dot {
    background: #fdf2f8;
    border-color: var(--wz-primary);
    color: var(--wz-primary);
}

.step-line {
    width: 12px;
    height: 2px;
    background: var(--wz-border);
}

/* Main Area */
.wizard-main {
    padding: 3rem 0;
    min-height: calc(100vh - 70px);
}

.wizard-step {
    display: none;
    animation: slideIn 0.4s ease-out;
}

.wizard-step.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-header {
    margin-bottom: 2rem;
}

.step-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.step-header p {
    color: var(--wz-text-light);
    font-size: 0.95rem;
}

.text-center {
    text-align: center;
}

/* Templated Selection */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .templates-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.template-option {
    cursor: pointer;
    display: block;
}

.template-option input {
    display: none;
}

.template-card {
    background: var(--wz-card);
    border-radius: var(--radius-md);
    border: 2px solid var(--wz-border);
    overflow: hidden;
    transition: all 0.2s;
    position: relative;
}

.template-option input:checked+.template-card {
    border-color: var(--wz-primary);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.15);
    transform: translateY(-3px);
}

.template-img {
    height: 180px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-capibara {
    background: #FDF5E6;
}

.bg-brainrot {
    background: #EAE6FE;
}

.bg-labubu {
    background: #F8F6FF;
}

.bg-base {
    background: #F1F5F9;
}

.template-info {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
}

.check-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--wz-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: transparent;
    font-size: 0.7rem;
}

.template-option input:checked+.template-card .check-circle {
    background: var(--wz-primary);
    border-color: var(--wz-primary);
    color: #fff;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    background: var(--wz-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--wz-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.full-width {
    grid-column: 1 / -1;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wz-text);
}

.input-group small {
    font-size: 0.7rem;
    color: var(--wz-text-light);
}

input[type="text"],
input[type="number"],
input[type="datetime-local"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--wz-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--wz-primary);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* Footer Buttons */
.wizard-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--wz-border);
    margin-top: 2rem;
}

.wizard-footer.space-between {
    justify-content: space-between;
}

.wizard-footer.justify-end {
    justify-content: flex-end;
}

.btn-primary,
.btn-secondary,
.btn-success,
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--wz-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
    background: #db2777;
    /* Deeper fuchsia on hover */
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: scale(0.96);
}

.btn-secondary {
    background: var(--wz-bg);
    color: var(--wz-text);
    border: 1px solid var(--wz-border);
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-success {
    background: var(--wz-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-pulse {
    animation: pulseHeart 2s infinite;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Preview Iframe */
.preview-container {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 320px;
    height: 650px;
    border-radius: 40px;
    border: 12px solid #0f172a;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.notch {
    width: 120px;
    height: 25px;
    background: #0f172a;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.phone-frame iframe {
    width: 100%;
    height: 100%;
    background: #fff;
}

/* Success Card */
.success-card {
    background: var(--wz-card);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid var(--wz-border);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s infinite alternate;
}

.link-box {
    margin: 2rem 0;
    text-align: left;
}

.link-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wz-text-light);
    margin-bottom: 0.5rem;
    display: block;
}

.link-url-container {
    display: flex;
    align-items: center;
    border: 1px solid var(--wz-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--wz-bg);
}

.link-url-container input {
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    width: 100%;
    color: var(--wz-text);
}

.btn-copy {
    background: var(--wz-text);
    color: #fff;
    border: none;
    padding: 0 1.25rem;
    height: 100%;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-copy:hover {
    background: #000;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-full {
    width: 100%;
    font-size: 1rem;
    padding: 1rem;
    text-decoration: none;
}

.premium-success-alert {
    margin-top: 2rem;
    padding: 1.25rem;
    background: linear-gradient(145deg, #ffffff, #fdfdfd);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.premium-success-alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(to bottom, #10b981, #34d399);
}

.premium-success-alert .alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #ecfdf5;
    border-radius: 50%;
    color: #10b981;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.premium-success-alert .alert-text {
    display: flex;
    flex-direction: column;
}

.premium-success-alert .alert-text strong {
    color: #064e3b;
    font-size: 1rem;
    font-weight: 700;
}

.premium-success-alert .alert-text p {
    color: #047857;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

/* Animations */
@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

@keyframes pulseHeart {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Custom File Upload & Previews */
.file-upload-wrapper {
    width: 100%;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--wz-text-light);
}

.file-upload-label i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--wz-primary);
}

.file-upload-label span {
    font-size: 0.9rem;
    font-weight: 500;
}

.file-upload-label:hover {
    background: #f1f5f9;
    border-color: var(--wz-primary);
}

.photo-previews-container {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Color palettes */
.color-palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.color-card {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.color-card:hover {
    border-color: var(--wz-primary);
}

.color-card.active {
    border-color: var(--wz-primary);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
    transform: translateY(-2px);
}

.color-swatches {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 8px;
}

.color-swatches span {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.color-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.photo-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--wz-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Map preview container */
.map-preview-container {
    margin-top: 0.75rem;
    animation: slideIn 0.3s ease-out;
}

/* Custom Message Grid Styling */
.msg-ideas-container {
    background: #fff8f1;
    border: 1px solid #fbd38d;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.msg-ideas-header {
    font-size: 0.95rem;
    font-weight: 600;
    color: #c05621;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.msg-ideas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .msg-ideas-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.msg-card {
    background: #fff;
    border: 1px solid #fbd38d;
    border-radius: var(--radius-sm);
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    transition: all 0.2s;
    margin: 0;
}

.msg-card:hover {
    box-shadow: 0 4px 6px rgba(237, 137, 54, 0.1);
}

.msg-card input[type="radio"] {
    display: none;
}

.msg-card .mc-check {
    color: #fbd38d;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: -0.1rem;
    flex-shrink: 0;
}

.msg-card input[type="radio"]:checked+.mc-check {
    color: #ed8936;
}

.msg-card input[type="radio"]:checked~.mc-text {
    font-weight: 600;
    color: #9c4221;
}

.msg-card.active {
    border-color: #ed8936;
    box-shadow: 0 4px 6px rgba(237, 137, 54, 0.15);
}

.msg-card .mc-text {
    font-size: 0.85rem;
    color: var(--wz-text);
    line-height: 1.4;
    font-weight: 400;
}