:root {
    --mint: #7ec8b8;
    --mint-dark: #5aab9a;
    --mint-light: #e8f5f1;
    --mint-pale: #f4faf8;
    --mint-accent: #a8ddd0;
    --text: #2d3b36;
    --text-muted: #6b7f78;
    --white: #ffffff;
    --danger: #e07a7a;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(94, 171, 154, 0.12);
    --font: 'Outfit', sans-serif;
    --font-display: 'Cormorant Garamond', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: linear-gradient(160deg, var(--mint-pale) 0%, var(--mint-light) 50%, #dff0eb 100%);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

.sparkle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.page {
    position: relative;
    z-index: 10;
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-x: hidden;
}

/* Hero / Logo */
.hero {
    text-align: center;
    padding: 1.5rem 0 2rem;
}

.hero.has-logo {
    padding: 2rem 0 2.25rem;
}

.logo-wrap img {
    max-height: 160px;
    max-width: 320px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 3.8rem;
    font-weight: 600;
    color: var(--mint-dark);
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* Booking Card */
.booking-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem 1.5rem;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint-light);
    transition: all 0.3s;
}

.step-dot.active {
    background: var(--mint);
    width: 24px;
    border-radius: 4px;
}

.step-dot.done { background: var(--mint-dark); }

.step { display: none; min-width: 0; }
.step.active { display: block; animation: fadeIn 0.3s ease; }

.date-input-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
}

.date-display {
    width: 100%;
    margin: 0;
    cursor: pointer;
    user-select: none;
    color: var(--text-muted);
    pointer-events: none;
}

.date-display.has-value {
    color: var(--text);
}

.input-date-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-size: 16px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.step h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.step-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Booking summary */
.booking-summary {
    background: var(--mint-pale);
    border: 1.5px solid var(--mint-light);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
}

.booking-summary .summary-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mint-dark);
    margin-bottom: 0.75rem;
}

.booking-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.4rem 0;
    font-size: 0.88rem;
}

.booking-summary .summary-row + .summary-row {
    border-top: 1px solid var(--mint-light);
}

.booking-summary .summary-row span {
    color: var(--text-muted);
    flex-shrink: 0;
}

.booking-summary .summary-row strong {
    text-align: right;
    font-weight: 500;
    color: var(--text);
}

.success-summary {
    text-align: left;
    margin: 0 0 1.5rem;
}

/* Services */
.service-list { display: flex; flex-direction: column; gap: 0.75rem; }

.service-item {
    border: 2px solid var(--mint-light);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
}

.service-item:hover, .service-item.selected {
    border-color: var(--mint);
    background: var(--mint-pale);
}

.service-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.service-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.service-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* Slots */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.slot-btn {
    padding: 0.7rem 0.5rem;
    border: 2px solid var(--mint-light);
    border-radius: 10px;
    background: var(--white);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

.slot-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    line-height: 1.2;
}

.slot-time {
    font-weight: 500;
}

.slot-sub {
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.slot-btn:hover:not(:disabled) {
    border-color: var(--mint);
    background: var(--mint-pale);
}

.slot-btn.selected {
    border-color: var(--mint-dark);
    background: var(--mint);
    color: var(--white);
}

.slot-btn.busy {
    background: #f5f5f5;
    border-color: #e8e8e8;
    color: #9a9a9a;
    cursor: not-allowed;
}

.slot-btn.busy .slot-time {
    color: #b0b0b0;
}

.slot-btn.busy .slot-sub {
    color: #c8c8c8;
}

.slot-btn.past {
    background: #f8f8f8;
    border-color: #ececec;
    cursor: not-allowed;
}

.slot-btn.past .slot-time {
    color: #b8b8b8;
}

.slot-btn.past .slot-sub {
    color: #ccc;
    font-size: 0.65rem;
}

.slot-btn.blocked {
    background: #faf0f0;
    border-color: #f0d8d8;
    cursor: not-allowed;
}

.slot-btn.blocked .slot-time {
    color: #c99;
}

.slot-btn.blocked .slot-sub {
    color: #d4a8a8;
    font-size: 0.65rem;
}

/* Form */
.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.optional { font-weight: 300; }

.input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--mint-light);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s;
}

.input:focus {
    outline: none;
    border-color: var(--mint);
}

.textarea { resize: vertical; min-height: 80px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--mint);
    color: var(--white);
}

.btn-primary:hover { background: var(--mint-dark); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--mint);
    color: var(--mint-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 0.5rem;
}

.btn-block { width: 100%; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.step-nav { margin-top: 1rem; }

/* Success */
.success-box { text-align: center; padding: 2rem 0; }

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--white);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.success-box h2 { margin-bottom: 0.5rem; }
.success-box > p { color: var(--text-muted); margin-bottom: 1rem; }

/* Contact */
.contact-info {
    margin-top: 2rem;
    text-align: center;
}

.contact-info:has(.social-links:empty) .social-links {
    display: none;
}

.footer-legal {
    margin-top: 1.5rem;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    opacity: 0.85;
}

.dev-credit {
    margin-top: 0.45rem;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    opacity: 0.75;
}

.dev-credit a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dev-credit a:hover {
    color: var(--mint-dark);
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow);
    color: var(--mint-dark);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    background: var(--mint-light);
    color: var(--text);
}

.social-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.social-link--whatsapp:hover { color: #25d366; }
.social-link--instagram:hover { color: #e1306c; }
.social-link--maps:hover { color: #ea4335; }

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text);
    color: var(--white);
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.error { background: var(--danger); }

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

@media (max-width: 480px) {
    .booking-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 360px) {
    .slot-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-text { font-size: 3rem; }
    .logo-wrap img { max-height: 130px; max-width: 280px; }
}
