:root {
    --primary: #D45BA8;
    --primary-dark: #b04085;
    --secondary: #1870B2;
    --dark: #171717;
    --light: #FFF6FA;
    --white: #ffffff;
    --success: #22DB22;
    --danger: #FF4747;
    --gray: #828282;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.5;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; }
@media (max-width: 600px) {
    .container { padding: 0 16px; }
}

/* Topbar */
.topbar {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { font-size: 1.6rem; font-weight: 800; color: var(--primary); white-space: nowrap; }
.topbar nav { display: flex; gap: 24px; }
.topbar nav a { color: var(--dark); font-weight: 600; }
.topbar nav a:hover { color: var(--primary); }
.btn-whatsapp {
    background: #25D366; color: #fff; padding: 10px 18px; border-radius: 8px;
    font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
    white-space: nowrap;
}
@media (max-width: 700px) {
    .topbar nav { display: none; }
    .brand { font-size: 1.3rem; }
    .btn-whatsapp span { display: none; }
    .btn-whatsapp { padding: 10px 12px; }
}

/* Hero */
.hero { padding: 60px 0; background: linear-gradient(135deg, #fff 0%, #ffe8f4 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-grid { text-align: center; } }
.hero-text h1 { font-size: 2.6rem; margin: 12px 0; }
.hero-text p { font-size: 1.1rem; color: var(--gray); margin-bottom: 24px; }
@media (max-width: 600px) {
    .hero { padding: 40px 0; }
    .hero-text h1 { font-size: 1.8rem; }
    .hero-text p { font-size: 1rem; }
    .price { font-size: 1.9rem; }
    .countdown { font-size: 1.3rem; }
    .btn-lg { font-size: 1rem; padding: 14px 24px; width: 100%; }
}
.badge {
    display: inline-block; background: var(--primary); color: #fff;
    padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700;
}
.price-box { margin: 20px 0; }
.price { font-size: 2.4rem; font-weight: 800; color: var(--primary); }
.price-box del { font-size: 1.4rem; color: var(--gray); margin-left: 10px; }
.countdown { font-size: 1.6rem; font-weight: 800; color: var(--danger); margin-bottom: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 8px; border: none; font-size: 1rem; font-weight: 700; cursor: pointer; transition: 0.2s; gap: 8px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background: #e5e5e5; color: var(--dark); }
.btn-secondary:hover { background: #d5d5d5; }
.btn-lg { font-size: 1.2rem; padding: 18px 32px; }
.btn-block { width: 100%; }

.hero-img { text-align: center; }
.hero-img img { max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Benefits */
.benefits { padding: 60px 0; text-align: center; }
.benefits h2 { margin-bottom: 32px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.steps div { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.steps i { font-size: 1.6rem; color: var(--primary); margin-bottom: 12px; display: block; }

/* Testimonials */
.testimonials { padding: 60px 0; background: var(--white); }
.testimonials h2 { text-align: center; margin-bottom: 32px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .reviews-grid { grid-template-columns: 1fr; } }
.review { background: var(--light); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* CTA */
.cta { padding: 60px 0; text-align: center; }

/* Footer */
footer { background: var(--dark); color: #fff; padding: 30px 0; text-align: center; }

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed; bottom: 20px; right: 20px; z-index: 1000;
    background: #25D366; color: #fff; width: 56px; height: 56px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Wizard */
.wizard { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10000; display: flex; }
.wizard.hidden { display: none; }
.wizard-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.wizard-content {
    position: relative; margin: auto; width: 95%; max-width: 1200px; height: 90vh;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    display: flex; flex-direction: column; overflow: hidden;
}
.wizard-header {
    padding: 16px 24px; background: var(--primary); color: #fff;
    display: flex; justify-content: space-between; align-items: center;
}
.wizard-header h2 { font-size: 1.3rem; }
.close-wizard { background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }
.wizard-body { padding: 24px; overflow-y: auto; flex: 1; }
@media (max-width: 600px) {
    .wizard-content { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
    .wizard-header { padding: 14px 16px; }
    .wizard-header h2 { font-size: 1.1rem; }
    .wizard-body { padding: 16px; }
}

.step { display: none; }
.step.active { display: block; }

.templates { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 24px 0; }
@media (max-width: 900px) { .templates { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .templates { grid-template-columns: 1fr; } }
.template-card {
    background: var(--light); border: 2px solid transparent; border-radius: var(--radius);
    padding: 20px; text-align: center; cursor: pointer; transition: 0.2s;
}
@media (max-width: 480px) {
    .template-card { padding: 16px; display: flex; flex-direction: column; align-items: center; }
    .template-card .unavailable-badge { position: static; display: inline-block; margin-top: 8px; }
}
.template-card:hover, .template-card.selected { border-color: var(--primary); background: #fff0f7; }
.template-card i { font-size: 2rem; color: var(--primary); margin-bottom: 10px; display: block; }

.template-card.disabled {
    position: relative;
    cursor: not-allowed;
    opacity: 0.5;
    filter: grayscale(1);
}
.template-card.disabled:hover { border-color: transparent; background: var(--light); }
.template-card.disabled .unavailable-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gray);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

#photoUploads { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 20px 0; }
.upload-box { border: 2px dashed #ddd; padding: 20px; border-radius: var(--radius); text-align: center; }
.upload-box input { display: none; }
.upload-label { cursor: pointer; color: var(--secondary); font-weight: 700; }
.upload-preview { max-width: 100%; max-height: 120px; margin-top: 10px; border-radius: 4px; display: none; }

.step-hint { color: var(--gray); margin-bottom: 16px; }

#photoAdjustList { display: flex; flex-direction: column; gap: 24px; margin: 16px 0; }
.photo-adjust-item { background: var(--light); border-radius: var(--radius); padding: 20px; }
.photo-adjust-item h4 { margin-bottom: 12px; }
.adjust-mode-toggle { display: flex; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.adjust-mode-toggle label { display: flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }

.crop-editor { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.crop-canvas {
    background: #fff; border: 1px solid #ddd; border-radius: 8px;
    cursor: grab; touch-action: none; max-width: 100%;
}
.crop-canvas:active { cursor: grabbing; }
.crop-controls { display: flex; flex-direction: column; gap: 12px; min-width: 200px; flex: 1; }
.crop-controls label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; font-weight: 600; color: var(--dark); }
.crop-controls label.crop-checkbox { flex-direction: row; align-items: center; gap: 8px; }
.crop-controls input[type="range"] { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; align-self: flex-start; }

@media (max-width: 600px) {
    .crop-editor { flex-direction: column; align-items: center; }
    .crop-controls { width: 100%; }
}

.preview-grid { display: grid; grid-template-columns: 420px 1fr; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .preview-grid { grid-template-columns: 1fr; } }
.canvas-box, .mug-box { background: var(--light); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
#artCanvas { width: 100%; max-width: 420px; height: auto; border: 1px solid #ddd; border-radius: 8px; background: #fff; }
#renderCanvas { width: 100%; height: 400px; border-radius: 8px; }
@media (max-width: 600px) {
    .canvas-box, .mug-box { padding: 14px; }
    #renderCanvas { height: 280px; }
}

.color-options { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.color-swatch.active { border-color: var(--dark); }

.color-recompose-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.color-recompose-row .color-field { flex: 1; min-width: 160px; }
.color-recompose-row .btn { white-space: nowrap; }
@media (max-width: 480px) {
    .color-recompose-row { flex-wrap: nowrap; align-items: center; }
    .color-recompose-row .color-field { min-width: 0; }
    .color-recompose-row .btn { padding: 10px 14px; font-size: 0.85rem; }
}

.wizard-nav { display: flex; justify-content: space-between; margin-top: 24px; gap: 12px; }
.wizard-nav .btn { min-width: 120px; }
@media (max-width: 480px) {
    .wizard-nav { flex-direction: column-reverse; }
    .wizard-nav .btn { width: 100%; min-width: 0; }
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); outline: none; }
.price-big { font-size: 2rem; font-weight: 800; color: var(--primary); margin: 16px 0; }
.price-big del { font-size: 1.2rem; color: var(--gray); font-weight: 400; }

@media (max-width: 600px) {
    .whatsapp-fab { width: 48px; height: 48px; font-size: 1.3rem; bottom: 16px; right: 16px; }
}
