:root {
    --bg-color: #f5f2ec;
    --nav-h: 88px;
    --text-primary: #AC966A;
    --text-secondary: #7d756a;
    --accent-light: #eae6de;
    --accent-hover: #8F7A54;
    --accent-green: #AC966A;
    --accent-green-hover: #8F7A54;
    --accent-highlight: #9B8760;
    --border-color: #d6d2ca;
    --font-family: 'Outfit', sans-serif;
    --font-serif: 'DM Serif Display', 'Cormorant Garamond', Georgia, serif;
    --font-body-serif: 'DM Serif Display', 'Cormorant Garamond', Georgia, serif;
    --border-radius-lg: 0;
    --border-radius-md: 0;
    --border-radius-sm: 0;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    background-color: var(--bg-color);
    color: #1a1610;
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    padding-top: var(--nav-h);
}

body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    touch-action: none !important;
    -webkit-overflow-scrolling: touch !important;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
    touch-action: none;
}

@media (max-width: 992px) {
    :root { --nav-h: 70px; }
}

@media (max-width: 768px) {
    :root { --nav-h: 64px; }
}

@media (max-width: 480px) {
    :root { --nav-h: 56px; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf9f7;
}

::-webkit-scrollbar-thumb {
    background: #2f2415;
    border-radius: 999px;
    border: 2px solid #faf9f7;
}

::-webkit-scrollbar-thumb:hover {
    background: #43311d;
}

@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(47, 36, 21, 0.2);
        border: none;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.mt-2 {
    margin-top: 8px;
}

/* Visibility Utilities */
.hide-mobile {
    display: inline-flex !important;
}

.hide-desktop {
    display: none !important;
}

@media (max-width: 992px) {
    .hide-mobile {
        display: none !important;
    }

    .hide-desktop {
        display: inline-flex !important;
    }
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.tiny-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

.hidden {
    display: none !important;
}

.invisible {
    opacity: 0;
    pointer-events: none;
}

/* Animation Utilities */
@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUpOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-12px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wizardStaggerIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wizardStaggerOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes stepContentIn {
    from {
        opacity: 0;
        /* Removed translateY to prevent footer jump */
    }

    to {
        opacity: 1;
    }
}

.animate-fade-up-in {
    animation: fadeUpIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-up-out {
    animation: fadeUpOut 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Validation Styles */
.input-error {
    border-color: #d9534f !important;
    background-color: #fffafb !important;
}

@keyframes inputShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-4px);
    }

    40%,
    80% {
        transform: translateX(4px);
    }
}

.animate-shake {
    animation: inputShake 0.4s ease;
}

/* Navbar */
.nav-container {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
}

/* New navbar structure for proper centering */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 40px;
    background: var(--bg-color);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow 0.4s cubic-bezier(.16, 1, .3, 1);
}

.navbar > .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 0 1 auto;
    justify-content: center;
    list-style: none;
    letter-spacing: 0.02em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.nav-links li {
    pointer-events: auto;
}

/* Sticky state — only adds shadow after hero */
.navbar--scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.05);
}

.nav-btn {
    position: relative;
    z-index: 1002; /* Ensure clickable over nav links overlay */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 1.1rem;
    flex: 0 0 auto;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.navbar .logo-icon-img,
.mobile-menu .logo-icon-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: height 0.35s cubic-bezier(.16, 1, .3, 1);
    cursor: pointer;
}

.navbar .logo-text-img,
.mobile-menu .logo-text-img {
    height: 34px;
    width: auto;
    object-fit: contain;
    transition: height 0.35s cubic-bezier(.16, 1, .3, 1);
    cursor: pointer;
}

.nav-links a {
    font-weight: 400;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-highlight);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-highlight);
}

.nav-links a:hover::after {
    width: 100%;
}

.w-submit-btn {
    background-color: #2f2415;
    color: white;
    padding: 12px 28px;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 400;
    border: 1px solid #2f2415;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--font-family);
}

.nav-btn {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    padding: 12px 28px;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.25s, border-color 0.25s, color 0.25s;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--font-family);
    flex: 0 0 auto;
    box-shadow: none;
}

.nav-btn:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
    box-shadow: none;
}

.nav-btn:focus {
    outline: none;
    box-shadow: none;
}

.nav-btn,
.nav-btn:hover,
.nav-btn:focus,
.nav-btn:active,
.nav-btn--floating,
.nav-btn--floating:hover {
    box-shadow: none !important;
}

.w-submit-btn:hover {
    background-color: #43311d;
    border-color: #43311d;
    color: white;
}

.w-submit-btn:disabled {
    background-color: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
    cursor: not-allowed;
}

/* Main header button visibility */
.nav-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Floating Quote Button for Desktop */
@media (min-width: 768px) {
    .nav-btn--floating {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1000;
        background-color: transparent;
        color: var(--text-primary);
        border-color: var(--text-primary);
        padding: 10px 20px;
        border-radius: var(--border-radius-md);
        font-size: 0.9rem;
        font-weight: 500;
        box-shadow: 0 4px 16px rgba(47, 36, 21, 0.1);
        transition: opacity 0.35s ease, transform 0.35s ease, background 0.25s, border-color 0.25s, color 0.25s;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
    }

    .nav-btn--floating.visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-btn--floating:hover {
        background-color: var(--accent-hover);
        border-color: var(--accent-hover);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(47, 36, 21, 0.2);
    }
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger:hover {
    background: transparent;
}

.hamburger:active {
    transform: scale(0.95);
}

.hamburger-icon {
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.active .hamburger-icon {
    color: var(--text-primary);
}

.hamburger-icon .line-top,
.hamburger-icon .line-middle,
.hamburger-icon .line-bottom {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger.active .hamburger-icon .line-top {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.active .hamburger-icon .line-middle {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-icon .line-bottom {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 22, 16, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000; /* High enough to be above everything else */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-color);
    transform: translateX(100%);
    z-index: 2001; /* Above overlay */
    display: flex;
    flex-direction: column;
    box-shadow: none;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    transform: translateX(0);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.mobile-logo-img {
    height: 40px;
    width: auto;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: transparent;
    color: var(--accent-hover);
}

.mobile-menu-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 32px;
    overflow-y: auto;
}

.mobile-menu-link {
    display: block;
    padding: 16px 0;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    text-align: left;
    border-bottom: 1px solid rgba(172, 150, 106, 0.1);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active .mobile-menu-link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu-link:nth-child(5) { transition-delay: 0.3s; }

.mobile-menu-link:hover {
    background: rgba(172, 150, 106, 0.1);
    color: var(--accent-hover);
}

.mobile-menu-link:active {
    background: rgba(172, 150, 106, 0.15);
}

.mobile-menu-footer {
    padding: 24px;
    border-top: none;
}

.mobile-menu-cta {
    width: 100%;
    margin: 32px 0 0;
    padding: 12px 28px;
    background-color: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--text-primary);
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(20px);
    text-align: center;
    text-decoration: none;
    display: block;
    font-family: var(--font-family);
    box-shadow: none !important;
}

.mobile-menu.active .mobile-menu-cta {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.35s;
}

.mobile-menu-cta:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
    box-shadow: none !important;
    transform: translateX(0);
}

.mobile-menu-cta:focus {
    outline: none;
    box-shadow: none !important;
}

/* Responsive Navbar */
@media (max-width: 1200px) {
    .navbar {
        padding: 15px 32px;
    }
}

@media (max-width: 992px) {
    .navbar {
        padding: 15px 24px;
    }

    .hamburger {
        display: flex;
    }

    /* Hide nav links and any header buttons (including floating clone) on mobile */
    .navbar > .nav-links,
    .navbar > .nav-btn,
    .nav-btn--floating {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }

    .navbar .logo-icon-img,
    .mobile-menu .logo-icon-img {
        height: 50px;
    }

    .navbar .logo-text-img,
    .mobile-menu .logo-text-img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 16px;
    }

    .navbar .logo-icon-img,
    .mobile-menu .logo-icon-img {
        height: 46px;
    }

    .navbar .logo-text-img,
    .mobile-menu .logo-text-img {
        height: 36px;
    }

    .hamburger {
        width: 28px;
        height: 20px;
    }

    .hamburger span {
        height: 2px;
    }
}

@media (max-width: 360px) {
    .navbar {
        padding: 8px 12px;
    }

    .logo {
        gap: 6px;
    }

    .navbar .logo-icon-img,
    .mobile-menu .logo-icon-img {
        height: 42px;
    }

    .navbar .logo-text-img,
    .mobile-menu .logo-text-img {
        height: 32px;
    }
}

/* Button Utilities */
.btn {
    padding: 16px 44px;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 400;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: none;
    position: relative;
}

.btn-primary {
    background-color: #2f2415;
    color: white;
    border: 1.5px solid #2f2415;
    box-shadow: none;
}

.btn-primary:hover:not(:disabled) {
    background-color: #43311d;
    border-color: #43311d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 27, 14, 0.16);
}

.btn-primary:disabled {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-editorial {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 32px;
    background: #2f2415;
    color: white;
    border: 1px solid #2f2415;
    font-family: var(--font-family);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 2px;
}

.btn-editorial:hover {
    background: #43311d;
    border-color: #43311d;
}

.btn-editorial svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-editorial:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0;
}

.btn-secondary:hover:not(:disabled) {
    background-color: transparent;
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: none;
}

/* Typography styles */
h1 {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

h2 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 16px;
}

h4 {
    font-family: var(--font-serif);
    font-weight: 400;
}

p {
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
}

.section-tag,
.section-center-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-highlight);
    margin-bottom: 14px;
    display: block;
    font-weight: 500;
}

.section-center-tag {
    text-align: center;
    margin-bottom: 16px;
}

.text-center {
    text-align: center;
}

.subtitle {
    max-width: 540px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .subtitle {
        max-width: 75%;
    }
}

.link-arrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 28px;
    border-bottom: 1px solid var(--accent-highlight);
    padding-bottom: 4px;
    color: var(--accent-highlight);
    transition: var(--transition);
}

.link-arrow:hover {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

/* Sections */
section,
header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 48px;
}

/* == HERO == */
.hero-section {
    padding-top: 20px;
    position: relative;
    margin-bottom: 40px;
}

.hero-image-wrapper {
    width: 100%;
    height: auto;
    min-height: 440px;
    padding: 40px 60px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .hero-image-wrapper {
        min-height: 320px;
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .hero-image-wrapper {
        min-height: 85vh; /* Near full viewport on mobile */
        padding: 60px 20px 100px;
    }
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.22);
    z-index: 1;
}

.hero-content {
    position: relative;
    color: white;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    z-index: 1; /* Keep text readable but allow link interaction */
    pointer-events: none;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Ensure Links are always above all layers */
.hero-contact-links {
    position: relative;
    z-index: 50;
    pointer-events: auto;
}

@media (max-width: 1100px) {
    .hero-content {
        max-width: 75%;
    }
}

html {
    scrollbar-gutter: stable;
}

/* Applied synchronously when wizard opens — kills page scrollbar/gutter before any paint */
html.wizard-open,
body.wizard-open {
    overflow: hidden;
    scrollbar-gutter: auto;
}

/* On mobile: fix body to viewport so the page behind cannot scroll and show under the wizard */
@media (max-width: 768px) {

    html.wizard-open,
    body.wizard-open {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        height: 100dvh;
        -webkit-overflow-scrolling: auto;
        overscroll-behavior: none;
    }
}

.hero-content .hero-title {
    font-family: var(--font-serif);
    color: white;
    font-size: 4.4rem;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.25; /* Increased for better tablet wrapping */
    letter-spacing: -0.01em;
}

.hero-content .hero-title .hero-title-line {
    display: block;
    white-space: normal;
}

/* Quote Widget (Hero Mini Step) */
.quote-widget-wrapper {
    position: relative;
    z-index: 2;
    margin-top: 32px;
    max-width: none;
    transform: translateY(80%);
}

.about-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-copy-more {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.4s ease;
}

.about-copy-more:not([hidden]),
.about-copy-more.is-visible {
    max-height: 2000px !important; /* Large enough for any text expansion */
    opacity: 1 !important;
    display: block !important;
}

.about-copy-more p {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.about-copy-more:not([hidden]) p,
.about-copy-more.is-visible p {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


.about-read-more-btn {
    align-self: flex-start;
    margin-top: 4px;
    padding: 10px 0 8px;
    border: 0;
    background: transparent;
    color: var(--accent-highlight);
    font-family: var(--font-family);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    transition: color 0.3s ease, transform 0.25s ease;
}

.about-read-more-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform-origin: left center;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.about-read-more-text {
    display: inline-block;
}

.about-read-more-icon {
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
    transform: translateX(0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-read-more-btn:hover {
    color: var(--text-primary);
    transform: translateX(3px);
}

.about-read-more-btn:hover::after {
    transform: scaleX(1.08);
}

.about-read-more-btn:hover .about-read-more-icon {
    transform: translateX(4px);
}

.about-read-more-btn:active {
    transform: translateX(1px) scale(0.985);
}

.about-read-more-btn[aria-expanded="true"] .about-read-more-icon {
    transform: translateX(2px) rotate(90deg);
}

.about-read-more-btn[aria-expanded="true"]::after {
    opacity: 0.7;
    transform: scaleX(0.92);
}

/* Highlight pulse when user clicks header CTA */
.quote-widget.quote-widget--bar {
    position: relative;
}

.quote-widget--bar::before,
.quote-widget--bar::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.5);
    pointer-events: none;
    opacity: 0;
}

@keyframes rippleOut {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.08, 1.5);
        opacity: 0;
    }
}

.quote-widget--highlight::before {
    animation: rippleOut 0.9s cubic-bezier(0, 0.5, 0.3, 1) 0s forwards;
}

.quote-widget--highlight::after {
    animation: rippleOut 0.9s cubic-bezier(0, 0.5, 0.3, 1) 0.25s forwards;
}

.quote-widget {
    background: white;
    border-radius: 0;
    padding: 24px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ── Hero architectural plate variant ── */
.quote-widget.quote-widget--bar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0;
    box-shadow: 0 16px 48px rgba(37, 27, 14, 0.12);
    border-radius: 4px;
    /* overflow: hidden; removed to allow autocomplete dropdown to be visible */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.quote-widget.quote-widget--bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(37, 27, 14, 0.16);
}

.bar-row {
    display: flex;
    align-items: center;
}

/* Each field */
.bar-field {
    flex: 1;
    min-width: 0;
    padding: 14px 24px;
}

.bar-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: 2px;
    line-height: 1;
    opacity: 0.8;
}

.bar-field input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 2px 0;
    font-family: var(--font-family);
    font-size: 1rem;
    color: #1a1610;
    outline: none;
    font-weight: 500;
}

.bar-field input::placeholder {
    color: #a09a90;
}

/* Arrow between fields */
.bar-arrow {
    color: rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    flex-shrink: 0;
    user-select: none;
    padding: 0 4px;
}

/* CTA button — solid dark, matching brand */
.bar-cta {
    align-self: stretch;
    padding: 0 40px;
    background: #2f2415;
    color: #fff;
    border: none;
    font-family: var(--font-family);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 0 4px 4px 0; /* Match parent's right corners explicitly */
}

.bar-cta:hover {
    background: #43311d;
}

.widget-header {
    margin-bottom: 16px;
}

.widget-header h2 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.widget-header p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
}

.widget-step1 {
    display: flex;
    gap: 0;
    align-items: center;
}

.widget-step1 .input-group input,
.widget-step1 .property-dropdown-trigger,
.widget-step1 .w-submit-btn {
    height: 44px;
}

.widget-step1 .input-group input {
    padding-top: 0;
    padding-bottom: 0;
}

.widget-step1 .property-dropdown-trigger {
    padding-top: 0;
    padding-bottom: 0;
}

.widget-step1 .w-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    white-space: nowrap;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-group label .label-hint {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.input-group-row {
    display: flex;
    gap: 16px;
}

.input-group-row .input-group {
    flex: 1;
}

/* Toggle button group (elevator yes/no) */
.toggle-group {
    display: flex;
    gap: 0;
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    padding: 0;
    border: 1px solid var(--border-color);
}

.toggle-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 0;
    background: transparent;
    font-family: var(--font-family);
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.toggle-btn+.toggle-btn {
    border-left: 1px solid var(--border-color);
}

.toggle-btn.active {
    background: var(--text-primary);
    color: white;
    box-shadow: none;
}

.toggle-btn:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05);
}

/* Special objects textarea */
.special-textarea {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    font-family: var(--font-family);
    font-size: 0.92rem;
    background: transparent;
    outline: none;
    resize: vertical;
    min-height: 70px;
    transition: border-color 0.2s;
    margin-top: 8px;
}

.special-textarea:focus {
    border-color: var(--text-primary);
    background: transparent;
}

.input-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    accent-color: var(--accent-green);
}

/* Time Slot Selection */
.time-slot-section {
    margin-top: 28px;
    animation: fadeUpIn 0.3s ease;
}

.time-slot-label {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 14px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.time-slots {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.time-slot {
    padding: 14px 28px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    background: transparent;
    font-family: var(--font-body-serif);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    box-shadow: none;
}

.time-slot:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: none;
    box-shadow: none;
}

.time-slot.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: white;
    box-shadow: none;
    transform: none;
}

.input-group input,
.input-group select {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    background: #faf9f6;
    width: 100%;
    outline: none;
    transition: var(--transition);
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--text-primary);
}

/* Autocomplete Dropdown */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    margin-top: 4px;
}

.autocomplete-item {
    padding: 10px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: var(--accent-light);
}

.widget-action-centered {
    display: flex;
    align-items: flex-end;
}

/* Property Type Dropdown with Icon Cards */
.property-dropdown-wrapper {
    position: relative;
    z-index: 30;
}

.property-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 400;
    background: #faf9f6;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
}

.property-dropdown-trigger:hover {
    border-color: var(--text-secondary);
}

.property-dropdown-trigger:focus {
    outline: none;
    border-color: var(--text-primary);
}

.prop-trigger-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--accent-light);
    color: var(--text-primary);
    flex-shrink: 0;
}

.property-dropdown-wrapper.open .prop-trigger-icon {
    background: var(--text-primary);
    color: white;
}

#prop-trigger-label {
    flex: 1;
}

.prop-trigger-arrow {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-dropdown-wrapper.open .prop-trigger-arrow {
    transform: rotate(180deg);
}

.property-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    min-width: 100%;
    max-width: 560px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    padding: 12px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.25s;
}

.property-dropdown-wrapper.open .property-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.property-dropdown-panel .property-cards {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.prop-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: #faf9f6;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    min-width: 68px;
    opacity: 0;
    transform: translateY(8px) scale(0.95);
}

.property-dropdown-wrapper.open .prop-card {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--card-delay, 0ms);
}

.prop-card:nth-child(1) {
    --card-delay: 50ms;
}

.prop-card:nth-child(2) {
    --card-delay: 130ms;
}

.prop-card:nth-child(3) {
    --card-delay: 210ms;
}

.prop-card:nth-child(4) {
    --card-delay: 290ms;
}

.prop-card:nth-child(5) {
    --card-delay: 370ms;
}

.prop-card:nth-child(6) {
    --card-delay: 450ms;
}

.prop-card .prop-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--accent-light);
    color: var(--text-secondary);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.prop-card .prop-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    white-space: nowrap;
}

.prop-card:hover {
    border-color: var(--text-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.prop-card:hover .prop-icon {
    color: var(--text-primary);
}

.prop-card.active {
    border-color: var(--text-primary);
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.prop-card.active .prop-icon {
    background: var(--text-primary);
    color: white;
}

.prop-card.active .prop-label {
    color: var(--text-primary);
    font-weight: 600;
}

/* Sections (About, Services, Blog) */
.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.4fr 0.95fr;
    gap: 32px;
    align-items: start;
}

.about-img-1 {
    height: 400px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.about-img-2 {
    height: 500px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.about-img-1 img,
.about-img-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    padding: 0 16px;
    max-width: 700px;
}

.about-content p {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-content p:last-of-type {
    margin-bottom: 0;
}



/* --- Services Accordion Layout --- */
.services-accordion-layout {
    display: grid;
    grid-template-columns: 0.45fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 0;
}

.services-accordion-left h2 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.15;
    color: #1a1610;
    margin-top: 12px;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.services-accordion-intro {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.services-accordion-left {
    text-align: left;
}

.services-accordion-left .section-center-tag {
    text-align: left;
}

.services-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--text-primary);
    color: white;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.services-cta-btn:hover {
    background: var(--accent-hover);
}

.services-cta-btn span {
    transition: transform 0.3s ease;
    display: inline-block;
}

.services-cta-btn:hover span {
    transform: translateX(4px);
}

/* Accordion Items */
.srv-accordion {
    border-top: 1px solid var(--border-color);
}

.srv-accordion-item {
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
}

.srv-accordion-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.srv-accordion-item.active::after {
    width: 100%;
}

.srv-acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    gap: 16px;
}

.srv-acc-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.srv-acc-num {
    font-family: var(--font-serif);
    font-size: 0.82rem;
    color: var(--border-color);
    letter-spacing: 0.05em;
    min-width: 24px;
    transition: color 0.3s ease;
}

.srv-accordion-item.active .srv-acc-num {
    color: var(--text-primary);
}

.srv-acc-header h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: #1a1610;
    line-height: 1.3;
    margin: 0;
    transition: color 0.3s ease;
}

.srv-accordion-item:hover .srv-acc-header h3 {
    color: var(--text-primary);
}

.srv-accordion-item.active .srv-acc-header h3 {
    color: var(--text-primary);
}

.srv-acc-icon-wrap {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.srv-accordion-item.active .srv-acc-icon-wrap {
    transform: rotate(45deg);
    color: var(--text-primary);
}

/* Accordion Body */
.srv-acc-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.srv-accordion-item.active .srv-acc-body {
    grid-template-rows: 1fr;
}

.srv-acc-body>.srv-acc-body-inner {
    overflow: hidden;
}

.srv-acc-body-inner {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 0 0 0 44px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.35s ease, transform 0.35s ease, padding 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.srv-accordion-item.active .srv-acc-body-inner {
    padding: 0 0 28px 44px;
    opacity: 1;
    transform: translateY(0);
}

.srv-acc-content {
    flex: 1;
}

.srv-acc-content p {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

.srv-acc-features {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.srv-acc-features li {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 5px 14px;
    background: var(--accent-light);
    letter-spacing: 0.01em;
}

.srv-acc-visual {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--text-primary);
    flex-shrink: 0;
}

/* ── How We Work ── */


.hww-header {
    margin-bottom: 24px;
}

.hww-header h2 {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 400;
    color: #1a1610;
    margin-top: 8px;
}

.hww-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hww-step {
    display: flex;
    gap: 48px;
    align-items: stretch;
}

.hww-number-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 100px;
}

.hww-number {
    font-family: var(--font-serif);
    font-size: 5.5rem;
    font-weight: 400;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text-primary);
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

.hww-line {
    width: 1px;
    flex: 1;
    background: var(--border-color);
    margin-top: 16px;
    margin-bottom: 0;
}

.hww-text-col {
    padding: 16px 0 56px 0;
    max-width: 520px;
}

.hww-text-col h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: #1a1610;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hww-text-col p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin: 0;
}

.why-choose-us {
    padding: 50px 48px;
    background-color: var(--text-primary);
    color: white;
}

.why-choose-us h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 24px;
}

.reasons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.reason {
    position: relative;
}

.reason h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.reason .icon {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

/* Services */
.services-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 24px;
    margin-top: 40px;
    align-items: center;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-item {
    padding: 16px 24px;
    background-color: var(--accent-light);
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.service-item.active {
    background-color: var(--text-primary);
    color: white;
}

.services-image {
    height: 500px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-desc h3 {
    font-size: 1.6rem;
    margin-top: 8px;
}

.feature-box {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding: 16px;
    background-color: var(--accent-light);
    border-radius: var(--border-radius-sm);
    align-items: center;
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    font-size: 0.85rem;
    font-weight: 500;
}


/* (End of deleted duplicate block) */

/* Footer */
footer {
    padding: 32px 48px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-contact p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 2;
}
/* Legacy Styles (to be cleaned up later) */
.legacy-wizard-remnant {
    padding: 32px 48px 40px 48px;
    background: #fdfcfa;
    border-left: 1px solid rgba(0, 0, 0, 0.04);
    min-height: 0;
    align-self: flex-start;
    height: fit-content;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        min-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s ease;
}

/* Single-column layout: calendar (4) and plan selection (5) */
.wizard-body.single-column .wizard-map-shell {
    opacity: 0;
    min-width: 0;
    max-width: 0;
    padding-left: 0;
    padding-right: 0;
    border-left-color: transparent;
    pointer-events: none;
    overflow: hidden;
}

/* Center and constrain content width for the single-column layout */
.wizard-body.single-column .wizard-main {
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

/* Calendar specifically: keep it comfortably readable, not stretched */
.wizard-body.single-column #step-4 .calendar-wrapper {
    max-width: 560px;
    margin: 0 auto;
}

/* Step 4 (fecha preferida): calendar fits in viewport without scroll — mobile, tablet, desktop */
.wizard-container[data-step="4"] .wizard-body {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.wizard-container[data-step="4"] .wizard-main {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.wizard-container[data-step="4"] #step-4.step-content.active {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wizard-container[data-step="4"] #step-4 .calendar-wrapper {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wizard-container[data-step="4"] #step-4 .cal-header,
.wizard-container[data-step="4"] #step-4 .cal-weekdays {
    flex-shrink: 0;
    min-width: 0;
}

.wizard-container[data-step="4"] #step-4 .cal-header h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-container[data-step="4"] #step-4 .cal-grid {
    flex: 1;
    min-height: 0;
    grid-template-rows: repeat(6, minmax(0, 1fr));
    align-content: stretch;
}

.wizard-container[data-step="4"] #step-4 .cal-day {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
}

.wizard-container[data-step="4"] #step-4 .cal-info-text {
    flex-shrink: 0;
    margin-top: 12px;
    min-width: 0;
    overflow-wrap: break-word;
}

/* Step 5 (planes): desktop — fit in viewport; mobile — allow scroll */
.wizard-container[data-step="5"] .wizard-body {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.wizard-container[data-step="5"] .wizard-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.wizard-container[data-step="5"] #step-5.step-content.active {
    display: flex;
    flex-direction: column;
    padding: 16px 40px 24px;
    overflow: visible;
}

.wizard-container[data-step="5"] #step-5 {
    overflow: visible;
}

.wizard-container[data-step="5"] .plan-step-intro {
    flex-shrink: 0;
    margin-bottom: 14px;
}

/* Desktop: step-5 con altura natural; todo el contenido de las tarjetas visible sin scroll dentro de ellas. */
@media (min-width: 768px) {
    .wizard-container[data-step="5"] .wizard-body.single-column .wizard-main {
        max-width: 1800px;
    }

    /* Paso 5: contenedor más ancho para que las tarjetas no queden estrechas */
    .wizard-container[data-step="5"] .wizard-main .step-content.active {
        max-width: 1280px;
    }

    .wizard-container[data-step="5"] .wizard-main {
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        min-height: 0;
        padding-top: 28px;
        padding-bottom: calc(var(--wizard-footer-space) + 48px);
    }

    .wizard-container[data-step="5"] #step-5.step-content.active {
        flex: 0 1 auto;
        min-height: 0;
        overflow: visible;
        display: flex;
        flex-direction: column;
        padding: 24px 40px 20px;
    }

    .wizard-container[data-step="5"] .plan-cards-container {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
        overflow: visible;
        align-content: start;
        padding-top: 20px;
        margin-top: -20px;
        margin-bottom: 48px;
        width: 100%;
        max-width: none;
    }

    .wizard-container[data-step="5"] .plan-card {
        min-height: auto;
        flex: none;
        min-width: 0;
        display: flex;
        flex-direction: column;
        padding: 28px 24px;
    }

    .wizard-container[data-step="5"] .plan-card-inner {
        min-height: auto;
        display: flex;
        flex-direction: column;
    }

    /* Badge "El más elegido": centrado y medio salido por arriba */
    .wizard-container[data-step="5"] .plan-card--hero .plan-badge {
        left: 50%;
        right: auto;
        top: 0;
        transform: translate(-50%, -50%);
    }

    .wizard-container[data-step="5"] .plan-card .plan-head,
    .wizard-container[data-step="5"] .plan-card .plan-badge {
        flex-shrink: 0;
    }
}

/* PC con altura suficiente: subir las tarjetas (solo cuando caben sin que el footer las tape) */
@media (min-width: 1121px) and (min-height: 761px) {
    .wizard-container[data-step="5"] .wizard-main {
        padding-top: 16px;
    }

    .wizard-container[data-step="5"] #step-5.step-content.active {
        padding-top: 18px;
    }

    .wizard-container[data-step="5"] .plan-cards-container {
        margin-top: -20px;
        padding-top: 20px;
    }
}

/* Scrollbar del wizard step 5: marrón oscuro translúcido, fondo invisible */
.wizard-container[data-step="5"] .wizard-main {
    scrollbar-width: thin;
    scrollbar-color: rgba(61, 48, 31, 0.45) transparent;
}

.wizard-container[data-step="5"] .wizard-main::-webkit-scrollbar {
    width: 6px;
}

.wizard-container[data-step="5"] .wizard-main::-webkit-scrollbar-track {
    background: transparent;
}

.wizard-container[data-step="5"] .wizard-main::-webkit-scrollbar-thumb {
    background: rgba(61, 48, 31, 0.45);
    border-radius: 999px;
    border: none;
}

.wizard-container[data-step="5"] .wizard-main::-webkit-scrollbar-thumb:hover {
    background: rgba(61, 48, 31, 0.6);
}

/* Map Focus Mode (Onboarding) — keeps top bar visible */
.map-focus-mode {
    padding-bottom: 0 !important;
    /* Remove footer space */
}

.map-focus-mode .wizard-main {
    display: none;
}

.map-focus-mode .wizard-map-shell {
    flex: 1;
    max-width: none;
    min-width: 0;
    padding: 0;
    border-left: none;
    align-self: stretch;
    height: 100%;
}

.map-focus-mode .map-wrapper {
    width: 100%;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0;
    border-bottom: none;
    position: relative;
}

.map-focus-mode #map {
    height: 100% !important;
    background: #f4f1ea !important;
}

/* Vignette removed */

.leaflet-tile {
    /* Ultimate precise mapping V3 config applied */
    filter: grayscale(1) sepia(0.6) saturate(10) hue-rotate(58deg) invert(0) contrast(3) brightness(2) url(#surgical-gold-filter) !important;
}

.leaflet-container {
    background: #ffffff !important;
}

/* Marker Precision Fix */
.custom-map-marker {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    /* Do NOT override margin — Leaflet uses margin-left/margin-top for iconAnchor positioning */
}

.custom-map-marker svg {
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
    z-index: 2000 !important;
}


/* Map Lab Panel */
.map-lab-panel {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 260px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    color: #1a1a1a;
    font-family: 'Outfit', sans-serif;
}

.map-lab-panel.collapsed {
    width: 48px;
    height: 48px;
    border-radius: 24px;
}

.map-lab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.map-lab-panel.collapsed .map-lab-header span {
    display: none;
}

.map-lab-toggle {
    background: none;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.map-lab-panel:not(.collapsed) .map-lab-toggle {
    transform: rotate(90deg);
}

.map-lab-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.lab-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    font-weight: 700;
    margin-bottom: -4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 4px;
}

.lab-row {
    display: flex;
    gap: 12px;
}

.flex-1 {
    flex: 1;
}

.lab-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lab-group label {
    font-size: 0.72rem;
    font-weight: 500;
    color: #555;
    display: flex;
    justify-content: space-between;
}

.lab-group label span {
    color: #ac966a;
    font-weight: 700;
}

.lab-group input[type="color"] {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    background: white;
    padding: 2px;
}

.lab-group input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.lab-group input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.lab-group select {
    padding: 6px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: inherit;
    font-size: 0.8rem;
    background: white;
}

/* Custom Slider Style */
.lab-group input[type=range] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    outline: none;
}

.lab-group input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #ac966a;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.w-full {
    width: 100%;
}

.mt-2 {
    margin-top: 8px;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.8rem;
}

/* Onboarding Card Style */
.map-onboarding-overlay {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transition: all 0.5s ease;
}

.map-onboarding-overlay.hidden {
    opacity: 0;
    transform: translate(-50%, 20px);
    pointer-events: none;
}

/* Ensure Leaflet tooltips render ABOVE the vignette overlay */
.map-focus-mode .leaflet-tooltip-pane {
    z-index: 700 !important;
}

.map-focus-mode .leaflet-marker-pane {
    z-index: 700 !important;
}

/* Onboarding Tooltip (Leaflet tooltip attached to marker) */
.onboarding-popup.leaflet-tooltip {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0;
    pointer-events: auto;
    /* Required for interactive tooltip */
    z-index: 1000 !important;
}

.onboarding-popup.leaflet-tooltip-bottom:before {
    border-bottom-color: rgba(255, 255, 255, 0.92);
}

.marker-popup-card {
    padding: 16px 18px;
    font-family: var(--font-family);
    width: 380px;
    max-width: 85vw;
}

.marker-popup-card h3 {
    font-family: var(--font-body-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.marker-popup-card .popup-addr {
    font-family: var(--font-body-serif);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    font-weight: 300;
    text-align: center;
    letter-spacing: 0.02em;
}

.marker-popup-card .popup-header-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
}

.marker-popup-card .popup-summary-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.marker-popup-card .step-icon-done {
    color: #6b5e4f;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    background: rgba(139, 122, 100, 0.12);
    padding: 4px 8px;
    border-radius: 6px;
    gap: 4px;
    line-height: 1;
}

.marker-popup-card .step-icon-done i {
    font-size: 0.85rem;
}

.marker-popup-card .step-label {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: block;
    text-align: center;
    font-family: var(--font-body-serif);
    letter-spacing: 0.01em;
}

.marker-popup-card .prop-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    justify-items: center;
}

.marker-popup-card .prop-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    width: 100%;
    border: 1px solid rgba(139, 122, 100, 0.2);
    border-radius: 10px;
    background: rgba(253, 252, 250, 0.8);
    font-family: var(--font-family);
    font-size: 0.82rem;
    color: #6b5e4f;
    cursor: pointer;
    transition: all 0.2s;
}

.marker-popup-card .prop-type-btn i {
    font-size: 1.2rem;
    color: #8b7a64;
}

.marker-popup-card .prop-type-btn:hover {
    border-color: #8b7a64;
    background: rgba(139, 122, 100, 0.08);
}

.marker-popup-card .floor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    justify-items: center;
}

.marker-popup-card .floor-btn {
    padding: 10px 0;
    width: 100%;
    border: 1px solid rgba(139, 122, 100, 0.2);
    border-radius: 8px;
    background: rgba(253, 252, 250, 0.8);
    font-family: var(--font-family);
    font-size: 0.85rem;
    color: #6b5e4f;
    cursor: pointer;
    transition: all 0.2s;
}

.marker-popup-card .floor-btn:hover {
    border-color: #8b7a64;
    background: rgba(139, 122, 100, 0.08);
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.bounce-in {
    animation: bounceIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.marker-popup-card .toggle-group {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.marker-popup-card .toggle-btn {
    flex: 1;
    padding: 7px 0;
    border: 1px solid rgba(139, 122, 100, 0.2);
    border-radius: 8px;
    background: rgba(253, 252, 250, 0.8);
    font-family: var(--font-family);
    font-size: 0.82rem;
    color: #6b5e4f;
    cursor: pointer;
    transition: all 0.2s;
}

.marker-popup-card .toggle-btn.active {
    background: #4b453a;
    color: white;
    border-color: #4b453a;
}

.popup-confirm-btn {
    width: 100%;
    margin-top: 4px;
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
    border-radius: 10px !important;
}

.onboarding-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 28px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    text-align: center;
}

.onboarding-card h3 {
    font-family: var(--font-body-serif);
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.onboarding-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.onboarding-card .access-card {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    text-align: left;
}

.onboarding-card .access-card h4 {
    display: none;
    /* Already in card h3 */
}

.onboarding-card .wizard-footer-actions {
    margin-top: 24px;
    justify-content: center;
}

.step-content {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.step-content.active {
    display: flex;
    min-height: 0;
}

/* Ensure inner wrappers use flex column layout */
#step-2,
#step-3-main,
#step-3-stairs,
#step-4,
#step-5,
#step-6,
#step-7,
.summary-contact-layout {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#step-2,
#step-3,
#step-3-stairs,
#step-4,
#step-5,
#step-6,
#step-7 {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Make step-3-main fill available space and scroll */
#step-3-main {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    scrollbar-width: thin;
    scrollbar-color: rgba(172, 150, 106, 0.15) transparent;

    /* no width cap here – controls can stretch out to use available space */
    width: 100%;
}

#step-3-main::-webkit-scrollbar {
    width: 5px;
}

#step-3-main::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

#step-3-main::-webkit-scrollbar-thumb {
    background: rgba(172, 150, 106, 0.2);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

#step-3-main::-webkit-scrollbar-thumb:hover {
    background: rgba(172, 150, 106, 0.35);
}

.step-content.step-entering {
    animation: stepContentIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.step-content.step-entering>* {
    animation: wizardStaggerIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--child-delay, 0ms);
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 28px;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 0;
    padding-top: 0;
    scrollbar-width: none;
}

/* When step‑3 is active, furniture items should form a responsive grid
   instead of a long single column. Each cell will take at least 320px but
   expand to fill remaining space, allowing 2‑3 items side by side on wide
   screens. */
.tab-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* fill the available space in wizard-main */
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    align-content: start;
    overflow-x: hidden;
    padding: 2px 4px 16px;
}

@media (max-width: 720px) {
    .tab-content {
        max-width: none;
    }
}

.tabs-header::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 12px 22px;
    border: 2px solid transparent;
    background: transparent;
    border-radius: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: auto;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
}

.tab-badge {
    display: none;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 0;
    background: var(--accent-green);
    color: white;
    padding: 0 5px;
    animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab-badge.visible {
    display: inline-block;
}

@keyframes badgePop {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.tab-icon-box {
    width: 32px;
    height: 32px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tab-icon-box svg {
    width: 18px;
    height: 18px;
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.tab-btn:hover .tab-icon-box {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.03);
    border: 2px solid var(--text-primary);
    box-shadow: none;
    transform: none;
    font-weight: 500;
}

.inv-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(95, 77, 48, 0.12);
    border-radius: 20px;
    margin-bottom: 0;
    transition: all 0.2s ease;
    min-height: 84px;
    height: auto;
    box-sizing: border-box;
    width: 100%;
}

@media (hover: hover) {
    .inv-item:hover {
        border-color: rgba(106, 87, 55, 0.25);
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 8px 20px rgba(68, 50, 26, 0.06);
    }
}

.inv-search-inner {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 58px;
    left: auto;
    display: flex;
    align-items: center;
    padding: 0;
    z-index: 10;
    width: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease;
    background: var(--accent-light);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.inv-search-inner.active {
    z-index: 10;
}

/* On Desktop specifically */
@media (min-width: 769px) {
    .inv-controls-row.search-active .inv-search-inner {
        width: calc(100% - 70px);
        opacity: 1;
        visibility: visible;
        box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    }
}

.inv-search-bar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    margin-left: auto;
}

.search-toggle-btn {
    position: relative;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: var(--accent-light);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
}

.search-toggle-btn:hover {
    color: var(--text-primary);
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.inv-search-bar.expanded .search-toggle-btn {
    pointer-events: auto;
}

.inv-search-inner input {
    width: 100%;
    height: 100%;
    padding: 0 44px 0 42px; /* Extra left padding for magnifying glass */
    border: none;
    background: transparent;
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.inv-search-icon {
    position: absolute;
    left: 14px;
    display: flex;
    align-items: center;
    color: #8c7d63;
    pointer-events: none;
    z-index: 11; /* Above input */
}

.search-clear.hidden {
    display: none;
}

.inv-search-inner .search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 4px;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Room Selection Grid — always 1 visible row, no scroll */
/* Room Selection Grid removed from here as it is now inside .inv-controls-row */

.room-sq-btn {
    position: relative;
    z-index: 1;
    flex: 1 1 0%;
    background: transparent;
    border: none;
    padding: 0 18px;
    height: 100%;
    font-family: var(--font-family);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s linear;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    opacity: 0.55;
    white-space: nowrap;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .room-sq-btn:hover {
        color: var(--text-primary);
        background: rgba(0, 0, 0, 0.04);
        opacity: 0.8;
    }
}

.room-sq-btn:active {
    transform: scale(0.95);
    transition: transform 0.08s ease;
}

.room-sq-btn.active {
    color: var(--text-primary);
    background: transparent;
    opacity: 1;
}

/* Subtle separator between rooms */
.room-sq-btn:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -4.5px;
    /* (gap 8px + width 1px) / 2 approx */
    top: 50%;
    transform: translateY(-50%);
    width: 1.5px;
    height: 14px;
    background-color: rgba(0, 0, 0, 0.08);
    /* Minimal vertical line */
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Hide separator when room is active to blend with the white box */
.room-sq-btn.active::after,
.room-sq-btn:hover::after {
    opacity: 0;
}

.room-sq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-sq-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 2px;
    stroke: currentColor;
}

.room-sq-name {
    font-family: var(--font-family);
    font-size: 0.64rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
    line-height: 1.1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 2px;
}

/* Compact inventory controls */
.inv-controls-container {
    margin-top: -12px;
    margin-bottom: 14px;
    position: sticky;
    top: 0;
    background: #fdfcfa;
    z-index: 100;
    padding: 12px 0 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.inv-controls-row {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
}

.inv-controls-row.search-active .room-grid {
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none;
}

.inv-controls-row.search-active {
    gap: 8px;
}

.room-grid {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 6px;
    /* Added padding for the floating pill effect */
    /* allow the container to grow or scroll rather than cut off buttons */
    overflow-x: auto;
    background: var(--accent-light);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    flex: 1 1 auto;
    width: 100%;
    height: 58px;
    margin: 0;
    min-width: 0;
    box-sizing: border-box;
    transition: opacity 0.3s ease, transform 0.3s ease;
}




.room-grid-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
}

.room-grid::-webkit-scrollbar {
    height: 6px;
}

.room-grid::-webkit-scrollbar-thumb {
    background: rgba(172, 150, 106, 0.25);
    border-radius: 3px;
}

/* End of Room Grid indicators and scrollbars */

.search-compact-row {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}



.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-compact-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.room-search-row {
    display: none;
    /* Replaced by .inv-search-bar above grid */
}

.search-input-wrapper-compact {
    display: none;
}

.search-input-wrapper-compact input {
    display: none;
}

@media (max-width: 700px) {
    .room-sq-btn {
        padding: 8px 12px;
        font-size: 0.78rem;
    }

    .inv-search-bar input {
        height: 58px;
        font-size: 0.78rem;
    }

    /* Stack controls and give full width on small screens */
    .inv-controls-row {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
        margin: 0;
        position: static;
    }

    .room-grid,
    .inv-search-bar.expanded {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        padding-right: 12px;
    }

    .inv-search-bar.expanded {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        height: 58px;
    }
}

.search-input-wrapper-compact .search-icon {
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    margin: auto;
    opacity: 0.5;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 20px;
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.2rem;
    padding: 4px;
    line-height: 1;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inv-item.has-items {
    border-color: rgba(106, 87, 55, 0.34);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 235, 216, 0.96));
    box-shadow: none;
}

.inv-item.has-items .inv-helper {
    color: #6a5737;
    font-weight: 600;
}

.inv-item:last-child {
    margin-bottom: 0;
}

.inv-item.inv-item-block {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.inv-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.inv-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.inv-price-tag {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--accent-highlight);
    font-family: var(--font-body-serif);
    white-space: nowrap;
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-style: italic;
}

.dim-rows-container {
    width: 100%;
}

.dim-rows-container:not(:empty) {
    margin-top: 12px;
    padding: 12px 16px;
    border-top: none;
    background: rgba(138, 117, 80, 0.03);
    border-radius: 0;
}

.dim-unit-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    animation: fadeUp 0.25s ease;
}

.dim-unit-row:last-child {
    margin-bottom: 0;
}

.dim-unit-label {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-secondary);
    white-space: nowrap;
    min-width: 40px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dim-unit-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
    opacity: 0.5;
}

.dim-unit-remove:hover {
    color: #c0392b;
    background: transparent;
    opacity: 1;
}

.mini-dim-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    opacity: 0.7;
    font-family: var(--font-body-serif);
    font-style: italic;
}

.inv-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}

.dim-select {
    padding: 8px 30px 8px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    background: transparent;
    font-family: var(--font-body-serif);
    font-size: 0.82rem;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    transition: border-color 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237d756a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    flex: 1;
    min-width: 0;
}

.dim-select:focus {
    outline: none;
    border-color: var(--text-secondary);
}

.inv-name {
    font-weight: 400;
    font-size: 1rem;
    color: #2f2415;
    letter-spacing: 0.01em;
    font-family: var(--font-body-serif);
    line-height: 1.2;
}

.inv-dim {
    font-family: var(--font-family);
    font-size: 0.8rem;
    font-style: normal;
    color: var(--text-secondary);
    font-weight: 300;
}

.counter {
    display: flex;
    align-items: center;
    gap: 0;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.cnt-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 0;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-shadow: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .cnt-btn:hover {
        background: var(--text-primary);
        color: white;
        transform: none;
    }
}

.cnt-btn:active {
    transform: scale(0.9);
    transition: transform 0.08s ease;
}

.cnt-btn.cnt-plus {
    background: var(--text-primary);
    color: white;
}

@media (hover: hover) {
    .cnt-btn.cnt-plus:hover {
        background: var(--accent-green-hover);
        transform: none;
    }
}

.cnt-btn.cnt-plus:active {
    background: var(--accent-green-hover);
    transform: scale(0.9);
    transition: transform 0.08s ease;
}

.qty {
    width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 0.88rem;
    font-family: var(--font-family);
    border: none;
    line-height: 32px;
    color: var(--text-primary);
}

/* =========================================================
   STAIRS POPUP (mismo diseño que dim-modal)
   ========================================================= */
.stairs-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(37, 27, 14, 0.3);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stairs-popup-overlay.hidden {
    display: none;
}

.stairs-popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.stairs-popup-box {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 240, 229, 0.97));
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    border: 1px solid rgba(95, 77, 48, 0.12);
    box-shadow: 0 24px 64px rgba(37, 27, 14, 0.22);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    overflow: hidden;
}

.stairs-popup-overlay.active .stairs-popup-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.stairs-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 32px 20px;
    border-bottom: 1px solid rgba(95, 77, 48, 0.08);
    flex-shrink: 0;
}

.stairs-popup-title {
    font-family: var(--font-body-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: #2f2415;
    margin: 0 0 6px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.stairs-popup-desc {
    font-size: 0.88rem;
    font-weight: 400;
    color: #6d624f;
    margin: 0;
    line-height: 1.5;
}

.stairs-popup-subtitle {
    font-size: 0.88rem;
    font-weight: 400;
    color: #6d624f;
    margin: 0;
    line-height: 1.5;
}

.stairs-popup-close {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(95, 77, 48, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    color: #3d301f;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .stairs-popup-close:hover {
        background: #fff;
        border-color: rgba(95, 77, 48, 0.25);
        transform: rotate(90deg) scale(1.05);
    }
}

.stairs-popup-close:active {
    transform: scale(0.92);
    transition: transform 0.08s ease;
}

.stairs-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px 32px;
    min-height: 0;
}

.stairs-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px 32px 24px;
    border-top: 1px solid rgba(95, 77, 48, 0.08);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.5);
}

/* Etiquetas botones: desktop largas, móvil cortas para una sola fila */
.stairs-popup-btn-label-mobile {
    display: none;
}

/* Botones del popup escaleras: misma estética que wizard footer / dim-modal */
.stairs-popup-footer .btn {
    min-height: 52px;
    padding: 14px 22px;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.stairs-popup-footer .btn-secondary {
    background: #f3eadb;
    border: none;
    color: #493a25;
}

@media (hover: hover) {
    .stairs-popup-footer .btn-secondary:hover:not(:disabled) {
        background: #ebdeca;
        color: #2f2415;
    }
}

.stairs-popup-footer .btn-secondary:active:not(:disabled) {
    background: #e4d5c1;
    transform: scale(0.97);
    transition: transform 0.08s ease;
}

.stairs-popup-footer .btn-primary {
    background: #3d301f;
    border: none;
    color: #f8f3ea;
}

@media (hover: hover) {
    .stairs-popup-footer .btn-primary:hover:not(:disabled) {
        background: #56422b;
        color: #f8f3ea;
    }
}

.stairs-popup-footer .btn-primary:active:not(:disabled) {
    background: #56422b;
    transform: scale(0.97);
    transition: transform 0.08s ease;
}

.stairs-popup-footer .btn-primary:disabled {
    background: rgba(95, 77, 48, 0.2);
    color: rgba(248, 243, 234, 0.6);
    cursor: not-allowed;
}


.extras-section {
    margin-top: 40px;
    padding: 32px;
    border-top: 1px solid var(--border-color);
    background: transparent;
    border-radius: 0;
}

.extras-title {
    font-family: var(--font-body-serif);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.extras-section .input-group label {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Actions Footer within Wizards
   Placed as direct children of .wizard-container; switch to absolute to
   pin inside the box rather than the viewport. (fixed in a transformed
   ancestor caused jumping; absolute avoids that and stays attached.) */


/* Variant for the step-6 "← Atrás" which is just a back link, no full bar */
.wizard-footer-actions--back-only {
    border-top: none;
    box-shadow: none;
    justify-content: flex-start;
    background: transparent;
}

/* Adjust wizard container padding for consistent footer spacing */
.wizard-container {
    padding-bottom: 80px;
}

/* Ensure wizard main area has enough padding so content doesn't get hidden behind the sticky footer */
.wizard-main {
    flex-grow: 1;
}


.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--bg-color);
}

/* Calendar Step */
#step-3 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.calendar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    overflow-y: hidden;
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cal-header h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.cal-nav {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 0;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    padding: 0;
}

.cal-nav:hover {
    color: var(--text-primary);
    background: transparent;
    transform: none;
}

.cal-nav svg {
    display: block;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    flex-grow: 0;
}

/* Add weekday headers to the calendar */
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cal-day {
    padding: 6px 2px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 0;
    overflow: hidden;
}

.cal-day.empty {
    border: none;
    background: transparent;
    cursor: default;
}

.cal-day.disabled {
    background: transparent;
    color: #d0cec9;
    cursor: not-allowed;
    border-color: rgba(0, 0, 0, 0.03);
    opacity: 0.5;
}

.cal-day.disabled .c-date {
    color: #d0cec9;
}

.cal-day:not(.disabled):not(.empty):not(.active):hover {
    border-color: var(--text-primary);
    background: rgba(172, 150, 106, 0.08);
    transform: none;
    box-shadow: none;
}

.cal-day.active {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
    transform: none;
    box-shadow: none;
}

.cal-day.weekend {
    border-color: rgba(172, 150, 106, 0.4);
    background: rgba(172, 150, 106, 0.05);
}

.cal-day.weekend .c-lbl {
    color: var(--text-primary);
    font-size: 0.55rem;
}

.cal-day.active.weekend {
    background: var(--text-primary);
}

.cal-day.active.weekend .c-lbl {
    color: white;
}

.cal-day.full {
    opacity: 0.7;
    cursor: not-allowed;
    background: #fff5f5;
    border-color: #feb2b2;
}

.cal-day.full .c-lbl {
    color: #e53e3e;
    font-weight: 700;
}

.c-date {
    position: relative;
    z-index: 1;
    font-weight: 500;
    font-size: 1.1rem;
    font-family: var(--font-body-serif);
}

.cal-day.active .c-lbl {
    color: var(--accent-green);
}

.c-lbl {
    font-size: 0.6rem;
    color: var(--accent-highlight);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: none;
    /* Hide promo text to save space on smaller heights */
}

@media (min-height: 800px) {
    .c-lbl {
        display: block;
    }
}

.c-lbl--icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.c-lbl--icon svg {
    display: block;
    flex-shrink: 0;
}

/* Icono % de fondo en días fin de semana: esquina inferior derecha, un poco cortado */
.c-lbl--bg {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 40%;
    height: 40%;
    display: flex !important;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
    opacity: 0.22;
}

.c-lbl--bg svg {
    display: block;
    width: 22px;
    height: 22px;
}

.c-price {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-secondary);
    font-family: var(--font-body-serif);
    font-style: italic;
}

.cal-info-text {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
    padding: 10px 16px;
    background: #fafaf9;
    border: 1px dashed var(--border-color);
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Final Confirmation form */
.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.contact-form-wiz {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
    margin-top: 32px;
    padding: 40px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: none;
}

.contact-form-wiz label {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: -16px;
}

.form-input {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    font-family: var(--font-body-serif);
    font-size: 1.1rem;
    background: transparent;
    transition: border-color 0.3s ease;
    outline: none;
    color: var(--text-primary);
}

.form-input:focus {
    border-color: var(--text-primary);
    background: transparent;
}

.form-input::placeholder {
    color: #c5c0b8;
    font-style: italic;
    font-family: var(--font-body-serif);
    font-weight: 300;
}

.terms-text {
    font-family: var(--font-body-serif);
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: center;
    background: transparent;
    padding: 16px 20px;
    border-radius: 0;
    border-top: 1px solid var(--border-color);
}

/* Hidden map host used only for route calculations and onboarding */
.wizard-map-shell {
    display: none;
}

/* Real Leaflet map container */
.map-wrapper {
    width: calc(100% + 2 * var(--map-shell-padding, 28px));
    margin-left: calc(-1 * var(--map-shell-padding, 28px));
    margin-top: calc(-1 * var(--map-shell-padding, 28px));
    margin-bottom: 0;
    min-height: 125px;
    height: 125px;
    background: var(--accent-light);
    border-radius: 0;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
}

.map-wrapper::after {
    display: none;
}

#map {
    width: 100%;
    height: 100%;
}

/* Ensure Leaflet itself respects rounding */
.map-wrapper .leaflet-container {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.map-stats-capsule {
    position: absolute;
    right: 14px;
    bottom: 18px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    z-index: 2000;
}

.map-stats-capsule.hidden {
    opacity: 0;
    transform: translateY(10px);
}

.map-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.map-pin {
    position: absolute;
    background: white;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: none;
    border: 1px solid var(--border-color);
    z-index: 2;
}

.map-pin.origin {
    bottom: 20%;
    left: 20%;
    color: var(--text-primary);
}

.map-pin.dest {
    top: 20%;
    right: 20%;
    color: var(--accent-highlight);
}

.map-route-line {
    position: absolute;
    width: 60%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--text-primary), var(--text-primary) 5px, transparent 5px, transparent 10px);
    top: 50%;
    left: 20%;
    transform: rotate(-30deg);
    z-index: 1;
}

/* Force Hide Leaflet Routing Instructions Panel */
.leaflet-routing-container {
    display: none !important;
}

/* Sidebar Accordions */
.summary-accordions {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sum-accordion {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0;
    background: transparent;
    overflow: hidden;
}

.sum-accordion:last-child {
    border-bottom: none;
}

.acc-header {
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    font-weight: 400;
    color: var(--text-primary);
    transition: opacity 0.2s;
}

.acc-header:hover {
    background: rgba(0, 0, 0, 0.02);
    opacity: 1;
}

.acc-title {
    font-family: var(--font-family);
    font-size: 0.82rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
}

.acc-title svg {
    color: var(--text-primary);
    opacity: 0.6;
}

.acc-icon {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
    color: var(--text-primary);
}

.acc-content {
    display: none;
    padding: 0 0 16px 0;
    border-top: none;
    background: transparent;
}

.acc-content.active {
    display: block;
}

.acc-header.active .acc-icon {
    transform: rotate(180deg);
}

.acc-subgroup {
    padding-top: 8px;
}

.acc-sub-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.7;
}


/* ============================
   INVENTORY PANEL — PREMIUM REDESIGN
   ============================ */
.inv-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.inv-panel-header {
    padding: 0 0 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 0;
    flex-shrink: 0;
}

.inv-panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.inv-panel-title {
    font-family: var(--font-body-serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.inv-panel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    border-radius: 14px;
    background: var(--text-primary);
    color: #fff;
    font-family: var(--font-family);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.inv-panel-subtitle {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin: 6px 0 0 0;
    letter-spacing: 0.01em;
}

/* Scrollable inventory body */
.inv-panel-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(172, 150, 106, 0.2) transparent;
}

/* When empty, don't stretch to fill the full panel height */
.inv-panel-body:has(.empty-inv) {
    flex: none;
}

.inv-panel-body::-webkit-scrollbar {
    width: 4px;
}

.inv-panel-body::-webkit-scrollbar-thumb {
    background: rgba(172, 150, 106, 0.25);
    border-radius: 2px;
}

.inv-panel-body::-webkit-scrollbar-track {
    background: transparent;
}

/* Panel footer */
.inv-panel-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 14px 0 0 0;
    margin-top: auto;
}

.inv-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.inv-footer-label {
    font-family: var(--font-family);
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inv-footer-label i {
    font-size: 0.85rem;
    opacity: 0.6;
}

.inv-footer-val {
    font-family: var(--font-family);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Empty state */
.empty-inv {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 16px;
    text-align: center;
    color: var(--text-secondary);
    border-radius: 12px;
    background: rgba(172, 150, 106, 0.03);
    border: 1.5px dashed rgba(172, 150, 106, 0.15);
    margin-top: 4px;
}

.empty-inv-icon {
    opacity: 0.18;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.empty-inv p {
    font-size: 0.88rem;
    font-family: var(--font-body-serif);
    font-weight: 400;
    color: var(--text-primary);
    opacity: 0.5;
    margin: 0;
}

.empty-inv-hint {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 300;
    opacity: 0.6;
}

/* Dimension Selection Modal Redesign */
.dim-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(37, 27, 14, 0.3);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dim-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.dim-modal-box {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 240, 229, 0.97));
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    border: 1px solid rgba(95, 77, 48, 0.12);
    box-shadow: 0 24px 64px rgba(37, 27, 14, 0.22);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    overflow: hidden;
}

.dim-modal-overlay.active .dim-modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.dim-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 32px 20px;
    border-bottom: 1px solid rgba(95, 77, 48, 0.08);
    flex-shrink: 0;
}

.dim-modal-header h4 {
    font-family: var(--font-body-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: #2f2415;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.dim-modal-close {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(95, 77, 48, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    color: #3d301f;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .dim-modal-close:hover {
        background: #fff;
        border-color: rgba(95, 77, 48, 0.25);
        transform: rotate(90deg) scale(1.05);
    }
}

.dim-modal-close:active {
    transform: scale(0.92);
    transition: transform 0.08s ease;
}

#dim-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px 32px;
    min-height: 0;
}

.dim-modal-section {
    margin-bottom: 18px;
}

.dim-label {
    display: block;
    font-family: var(--font-family);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #8c7d63;
    margin-bottom: 12px;
    font-weight: 700;
}

.dim-options-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}


.dim-option-btn-v2 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(95, 77, 48, 0.12);
    border-radius: 22px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-height: 72px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.dim-option-btn-v2:focus-visible {
    outline: 2px solid rgba(106, 87, 55, 0.4);
    outline-offset: 2px;
}

.dim-option-btn-v2:focus:not(:focus-visible) {
    outline: none;
}

@media (hover: hover) {
    .dim-option-btn-v2:hover {
        background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(245, 235, 216, 0.98));
        border-color: rgba(106, 87, 55, 0.34);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(68, 50, 26, 0.08);
    }
}

/* User request: Immediate touch feedback */
.dim-option-btn-v2:active {
    transform: scale(0.97) translateY(0);
    background: rgba(47, 36, 21, 0.04);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.1s ease;
}

.dim-option-icon {
    display: none;
}

.dim-option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dim-option-title {
    display: block;
    font-family: var(--font-body-serif);
    font-size: 1rem;
    color: #2f2415;
    font-weight: 400;
    line-height: 1.25;
}

.dim-option-arrow {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    background: rgba(172, 150, 106, 0.12);
    color: #6a5737;
    border-radius: 999px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}



.dim-modal-divider {
    text-align: center;
    position: relative;
    margin: 28px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.dim-modal-divider::before,
.dim-modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(95, 77, 48, 0.1);
}

.dim-modal-divider span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8c7d63;
    font-weight: 700;
}

.dim-custom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.dim-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.dim-measure-input {
    width: 100%;
    height: 52px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(95, 77, 48, 0.12);
    background: rgba(255, 255, 255, 0.6);
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: #2f2415;
    text-align: center;
    transition: all 0.3s ease;
}

.dim-measure-input:focus {
    outline: none;
    border-color: #ac966a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(172, 150, 106, 0.1);
}

.dim-input-hint {
    font-size: 0.62rem;
    color: #8c7d63;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    opacity: 0.7;
}

.dim-custom-add-btn-v3 {
    width: 100%;
    height: 54px;
    background: #2f2415;
    color: #f8f3ea;
    border: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border-radius: 18px;
    font-family: var(--font-family);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
    .dim-custom-add-btn-v3:hover {
        background: #43311d;
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(37, 27, 14, 0.16);
    }
}

.dim-custom-add-btn-v3:active {
    transform: scale(0.96) translateY(0);
    background: #1a150c;
    transition: transform 0.1s ease;
}

.dim-input-wrap span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.5;
}




.dim-remove-btn:hover {
    border-color: #ce4b4b !important;
    background: #fff5f5 !important;
}

.dim-remove-icon {
    font-size: 1.25rem;
    color: #ce4b4b;
    font-weight: 300;
}

/* Mobile adjustments */
@media (max-width: 480px) {

    .dim-modal-box,
    .stairs-popup-box {
        max-width: 94vw;
        margin: 12px;
    }

    .dim-modal-header,
    .stairs-popup-header {
        padding: 18px 20px 14px;
    }

    .dim-modal-header h4,
    .stairs-popup-title {
        font-size: 1.15rem;
    }

    #dim-modal-body,
    .stairs-popup-body {
        padding: 20px 20px 8px;
    }

    .stairs-popup-footer {
        padding: 16px 20px 20px;
        flex-wrap: wrap;
    }

    .stairs-popup-btn-label-desktop {
        display: none;
    }

    .stairs-popup-btn-label-mobile {
        display: inline;
    }

    .stairs-popup-footer .btn {
        min-height: 48px;
        padding: 12px 18px;
        font-size: 0.85rem;
    }

    .dim-option-btn-v2 {
        padding: 12px 16px;
    }
}

/* Remove Modal Styles Refresh */
.dim-remove-btn {
    transition: all 0.2s;
}

@media (hover: hover) {
    .dim-remove-btn:hover {
        background: #fef1f1 !important;
        border-color: #fca5a5 !important;
    }
}

.dim-remove-icon {
    color: #ef4444;
    font-weight: bold;
    font-size: 1.2rem;
}

.dim-custom-add-btn:hover {
    background: var(--accent-green-hover);
}

/* Dimension tag chips shown under furniture item name */
.dim-display {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
    max-height: 56px;
    overflow: hidden;
}

.inv-dim-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(172, 150, 106, 0.12);
    color: #6a5737;
    font-family: var(--font-family);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    border: none;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.inv-dim-tag--more {
    background: rgba(47, 36, 21, 0.1);
    color: #493a25;
    font-weight: 600;
    flex-shrink: 0;
    max-width: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .wizard-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 24px 48px;
    }

    .wizard-header {
        width: 100%;
    }

    .wizard-progress {
        width: 100%;
        justify-content: flex-start;
    }

    .wizard-close-btn {
        position: absolute;
        top: 24px;
        right: 48px;
    }

    .bar-arrow {
        display: none;
    }

    .widget-step1 {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .widget-action-centered {
        justify-content: flex-end;
    }

    .property-dropdown-panel .property-cards {
        flex-wrap: wrap;
    }

    .wizard-body {
        flex-direction: column;
        overflow-y: auto;
    }

    .wizard-map-shell {
        min-width: 100%;
        max-width: 100%;
        order: -1;
        overflow: visible;
        border-left: none;
        border-bottom: 1px solid var(--border-color);
    }

    .wizard-main {
        overflow-y: auto;
    }

    .map-placeholder {
        min-height: 200px;
        flex: none;
    }

    .map-wrapper {
        min-height: 200px;
        height: 200px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-image-wrapper {
        min-height: 0;
        padding: 56px 64px 32px 64px;
    }

    .hero-content {
        max-width: 680px;
    }

    .hero-content .hero-title {
        font-size: 3.5rem;
        line-height: 1.14;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-content {
        max-width: none;
        padding: 0;
    }

    .about-img-1,
    .about-img-2 {
        height: 320px;
    }

    .about-img-1 {
        display: none !important;
    }

    .services-accordion-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-accordion-left h2 {
        font-size: 2.2rem;
    }

    .hww-progress-header h2 {
        font-size: 2.2rem;
    }

    .hww-header h2 {
        font-size: 2.2rem;
    }
}

/* ===========================
   TABLET BREAKPOINT (992px)
   Single breakpoint for all content layout changes.
   Aligns with hamburger menu appearance.
=========================== */
@media (max-width: 992px) {
    /* -- Hero -- */
    .hero-section {
        margin-bottom: 60px;
    }

    .hero-image-wrapper {
        padding: 32px 40px 24px 40px;
    }

    .hero-content {
        max-width: none;
    }

    .hero-content .hero-title {
        font-size: 2.8rem;
        line-height: 1.16;
    }

    .hero-content .hero-title .hero-title-line {
        white-space: normal !important;
    }

    .quote-widget-wrapper {
        margin-top: 32px;
    }

    /* Mobile adjustments for very narrow screens */
    @media (max-width: 1024px) {
        .hero-section {
            padding: 20px 12px;
            margin-bottom: 0;
        }

        .hero-image-wrapper {
            padding: 24px 20px 8px 20px;
            min-height: 380px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            justify-content: center;
        }

        .hero-content {
            width: 100%;
            margin-bottom: 0;
        }

        .hero-content .hero-title {
            font-size: 2.6rem;
            line-height: 1.15;
            letter-spacing: -0.01em;
        }

        .quote-widget-wrapper {
            transform: translateY(0);
            margin-top: 16px;
            width: 100%;
            max-width: 400px;
        }

        .quote-widget.quote-widget--bar {
            background: rgba(255, 255, 255, 0.95) !important;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.4);
            border-radius: 4px; /* Sharpened to match desktop architectural style */
            /* overflow: hidden; removed to allow autocomplete dropdown visibility */
            box-shadow: 0 20px 50px rgba(37, 27, 14, 0.15);
            pointer-events: auto;
            transform: none !important;
        }

        .bar-row {
            flex-direction: column;
            gap: 0;
        }

        .bar-field {
            width: 100%;
            border-bottom: 1px solid rgba(0,0,0,0.05);
            padding: 20px 24px;
            text-align: left;
        }

        .bar-label {
            color: var(--text-secondary);
            font-weight: 600;
        }

        .bar-field input {
            color: var(--text-primary);
        }

        .bar-arrow {
            display: none;
        }

        .bar-cta {
            width: 100%;
            padding: 20px;
            background: #2f2415;
            color: white;
            border: none;
            border-radius: 0 0 4px 4px; /* Match parent's bottom corners explicitly on mobile */
            font-size: 0.85rem;
            font-weight: 600;
            letter-spacing: 0.1em;
            transition: background 0.3s ease;
        }

        .bar-cta:active {
            background: #1a1610;
        }
    }

    /* -- Section general -- */
    section {
        padding: 24px 24px !important;
    }

    /* Alineación específica para títulos del blog en móvil */
    .blog-single-page .blog-single-top h1,
    .blog-single-page .blog-content-body h1,
    .blog-single-page .blog-content-body h2,
    .blog-single-page .blog-content-body h3,
    .blog-single-page .blog-content-body h4,
    .blog-single-page .blog-content-body h5,
    .blog-single-page .blog-content-body h6,
    .blog-single-page .blog-block-h1,
    .blog-single-page .blog-block-h2,
    .blog-single-page .blog-block-h3,
    .blog-single-page .blog-block-h4,
    .blog-single-page .blog-block-h5,
    .blog-single-page .blog-block-h6 {
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        left: 0 !important;
        transform: none !important;
    }

    .section-tag, .section-center-tag {
        font-size: 0.75rem !important;
        text-align: center !important;
        width: 100%;
        margin-bottom: 12px;
    }

    section h2, .about-content h2, .services-accordion-left h2,
    .hww-header h2, .reviews-header h2, .hww-progress-header h2 {
        font-size: 2.2rem !important;
        text-align: center !important;
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* EXCEPCIÓN: Títulos del blog siempre alineados a la izquierda */
    .blog-single-top h1,
    .blog-content-body h1,
    .blog-content-body h2,
    .blog-content-body h3,
    .blog-content-body h4,
    .blog-content-body h5,
    .blog-content-body h6,
    .blog-block-h1,
    .blog-block-h2,
    .blog-block-h3,
    .blog-block-h4,
    .blog-block-h5,
    .blog-block-h6 {
        text-align: left !important;
    }

    .about-section p, .services-accordion-intro, .footer-desc,
    .reviews-subtitle, .faq-section p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .about-content p {
        text-align: justify;
        line-height: 1.6;
    }

    /* Center the services left column content */
    .services-accordion-left {
        text-align: left;
    }

    /* Center about-content when stacked */
    .about-content {
        max-width: none;
        padding: 0;
        text-align: center;
    }

    /* -- About -- */
    .about-img-2 {
        height: 240px;
    }

    /* -- Services -- */
    .services-accordion-layout {
        gap: 28px;
    }

    .services-cta-btn {
        display: flex !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 12px 20px !important;
        font-size: 0.82rem !important;
        max-width: 280px !important;
        margin-top: 30px !important;
    }

    .services-cta-btn span {
        display: none !important;
    }

    .srv-acc-body-inner {
        padding-left: 0;
        flex-direction: column;
        gap: 20px;
    }

    .srv-acc-features {
        flex-wrap: wrap;
        gap: 10px;
    }

    .srv-acc-visual {
        display: none;
    }

    .srv-acc-header h3 {
        font-size: 1.15rem;
    }

    /* -- Reviews -- */
    .mobile-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid var(--border-color);
        background: rgba(255, 255, 255, 0.9);
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        color: var(--text-primary);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }

    .mobile-arrow-prev {
        left: -20px;
    }

    .mobile-arrow-next {
        right: -20px;
    }

    .mobile-arrow:hover {
        background: var(--text-primary);
        color: white;
        border-color: var(--text-primary);
    }

    .reviews-slider-container {
        position: relative;
    }

    .reviews-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .reviews-footer {
        justify-content: center;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }

    .trust-indicator {
        align-items: center;
        flex-direction: column;
        gap: 8px;
    }

    .trust-text {
        text-align: center;
    }

    /* -- Blog -- */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* -- Process section -- */
    .hww-progress-section {
        padding: 80px 0;
    }

    .hww-progress-inner {
        padding: 0 24px;
    }

    .hww-flow-container {
        gap: 48px;
    }

    .hww-flow-title {
        font-size: 1.5rem;
    }

    .hww-flow-desc {
        font-size: 0.95rem;
    }

    /* -- Footer -- */
    .footer-col {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact-list {
        align-items: center !important;
        width: 100%;
    }

    .footer-contact-list li {
        justify-content: center !important;
    }

    .footer-col-brand .logo {
        justify-content: center !important;
        align-items: center !important;
    }

    .footer-legal {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* -- Buttons centering (landing page only) -- */
    .services-cta-btn, .btn-editorial, .btn-footer {
        display: flex !important;
        margin-left: auto !important;
        margin-right: auto !important;
        justify-content: center !important;
        text-align: center !important;
    }


}

/* ===========================
   920px — WIZARD INTERNAL RULES ONLY
   Content sections handled at 992px above.
=========================== */
@media (max-width: 1024px) {
    .hero-section {
        margin-bottom: 60px;
    }

    .cal-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    /* Wizard internals */
    .wizard-top-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
        gap: 16px;
    }

    .wizard-header {
        width: 100%;
    }

    .wizard-progress,
    .wizard-map-shell {
        padding: 20px 24px;
    }

    .wizard-main {
        padding: 20px 24px 100px 24px;
    }

    .wizard-progress {
        padding: 0;
        width: 100%;
        justify-content: space-between;
    }

    .wizard-title {
        font-size: 1.8rem;
    }

    .prog-label {
        display: none;
    }

    .prog-step {
        min-width: 32px;
        padding: 0;
    }

    .inv-right {
        gap: 10px;
    }

    .inv-price-tag {
        font-size: 0.78rem;
        padding: 3px 8px;
    }

    .tabs-header {
        gap: 0;
    }

    .tab-btn {
        padding: 10px 14px;
        font-size: 0.78rem;
    }

    .tab-badge {
        min-width: 16px;
        height: 16px;
        line-height: 16px;
        font-size: 0.6rem;
    }

    .contact-form-wiz {
        padding: 24px;
    }

    .extras-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .dim-modal-box {
        max-width: 94vw;
        margin: 12px;
    }

    .dim-modal-header h4 {
        font-size: 1.15rem;
    }

    .hero-section {
        margin-bottom: 0px;
    }

    .hero-image-wrapper {
        min-height: 0;
        padding: 24px 20px 8px 20px;
    }

    .hero-content {
        max-width: none;
    }

    .hero-content .hero-title {
        font-size: 2.2rem;
        text-align: center;
    }

    .hero-content .hero-title .hero-title-line {
        white-space: normal !important;
    }

    .section-tag, .section-center-tag {
        font-size: 0.72rem !important;
        text-align: center !important;
    }

    h2, .about-content h2, .services-accordion-left h2, .hww-header h2, .reviews-header h2, .hww-progress-header h2 {
        font-size: 1.8rem !important;
        text-align: center !important;
    }

    section {
        padding: 50px 20px !important;
    }

    .services-cta-btn, .btn-editorial, .btn-footer {
        display: flex !important;
        margin-left: auto !important;
        margin-right: auto !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 320px !important;
    }

    .bar-cta {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .quote-widget-wrapper {
        margin-top: 24px;
    }

    .quote-widget {
        padding: 24px 20px;
    }
}

/* ===========================
   PLAN SELECTION (STEP 4)
=========================== */
#step-5 {
    gap: 0;
}

.plan-step-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
    max-width: 42ch;
}

.plan-cards-container {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: nowrap;
    justify-content: center;
}

.plan-card {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 2px solid var(--border-color);
    padding: 32px 24px;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.plan-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(172, 150, 106, 0.12);
    color: var(--text-primary);
    margin-bottom: 16px;
    flex-shrink: 0;
}

.plan-card-icon svg {
    width: 28px;
    height: 28px;
}

.plan-card:hover {
    border-color: var(--text-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.plan-card.active {
    border-color: var(--text-primary);
    background: #faf9f6;
    box-shadow: 0 0 0 1px var(--text-primary);
}

.plan-card.active .plan-card-icon {
    background: rgba(172, 150, 106, 0.2);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    white-space: nowrap;
}

.plan-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.plan-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.plan-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
}

/* --- Feature checklist --- */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    line-height: 1.35;
}

.plan-features li svg {
    flex-shrink: 0;
}

.plan-features li.pf-yes {
    color: var(--text-primary);
    font-weight: 450;
}

.plan-features li.pf-yes svg {
    color: #6a9a5b;
}

.plan-features li.pf-no {
    color: rgba(125, 117, 106, 0.5);
    font-weight: 400;
}

.plan-features li.pf-no svg {
    color: rgba(125, 117, 106, 0.35);
}

.plan-options {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
}

.plan-radio {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.plan-radio input[type="radio"] {
    margin-top: 4px;
    accent-color: var(--text-primary);
}

.radio-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.plan-footer-actions {
    justify-content: space-between;
}

.btn-large {
    padding: 18px 48px;
    font-size: 0.9rem;
}

/* ===========================
   PLAN CARD COLOR TIERS
=========================== */

/* --- Esencial: understated, warm stone --- */
#plan-esencial {
    background: linear-gradient(168deg, #faf8f4 0%, #f3efe8 100%);
    border-color: rgba(160, 145, 120, 0.18);
}

#plan-esencial .plan-card-icon {
    background: rgba(160, 145, 120, 0.12);
    color: #8a7d6a;
}

#plan-esencial:hover {
    border-color: rgba(140, 125, 100, 0.35);
    box-shadow: 0 12px 28px rgba(100, 85, 60, 0.08);
}

#plan-esencial.active {
    border-color: #9e8e72;
    background: linear-gradient(168deg, #f7f4ee 0%, #efe9df 100%);
    box-shadow: 0 0 0 1.5px #9e8e72, 0 16px 32px rgba(100, 85, 60, 0.1);
}

#plan-esencial.active .plan-card-icon {
    background: rgba(160, 145, 120, 0.22);
}

/* --- Estándar: hero card, rich warm gold --- */
#plan-estandar {
    background: linear-gradient(168deg, #fffbf3 0%, #f8f0e0 100%);
    border-color: rgba(172, 150, 106, 0.22);
}

#plan-estandar .plan-card-icon {
    background: linear-gradient(135deg, rgba(172, 150, 106, 0.18), rgba(143, 122, 84, 0.14));
    color: #7a6640;
}

#plan-estandar .plan-badge {
    background: linear-gradient(135deg, #8b7355 0%, #6b5a3e 100%);
    box-shadow: 0 4px 12px rgba(107, 90, 62, 0.25);
}

#plan-estandar:hover {
    border-color: rgba(143, 122, 84, 0.4);
    box-shadow: 0 16px 36px rgba(107, 85, 50, 0.12);
}

#plan-estandar.active {
    border-color: #8b7355;
    background: linear-gradient(168deg, #fdf8ee 0%, #f5ead6 100%);
    box-shadow: 0 0 0 1.5px #8b7355, 0 20px 40px rgba(107, 85, 50, 0.12);
}

#plan-estandar.active .plan-card-icon {
    background: linear-gradient(135deg, rgba(172, 150, 106, 0.28), rgba(143, 122, 84, 0.22));
}

/* --- Premium: deep bronze, luxurious --- */
#plan-premium {
    background: linear-gradient(168deg, #faf7f2 0%, #f0ebe1 100%);
    border-color: rgba(90, 72, 48, 0.15);
}

#plan-premium .plan-card-icon {
    background: rgba(75, 60, 38, 0.1);
    color: #5a4830;
}

#plan-premium:hover {
    border-color: rgba(90, 72, 48, 0.3);
    box-shadow: 0 14px 32px rgba(70, 55, 35, 0.1);
}

#plan-premium.active {
    border-color: #6b5a3e;
    background: linear-gradient(168deg, #f8f4ed 0%, #ede5d6 100%);
    box-shadow: 0 0 0 1.5px #6b5a3e, 0 18px 36px rgba(70, 55, 35, 0.12);
}

#plan-premium.active .plan-card-icon {
    background: rgba(75, 60, 38, 0.18);
}

/* --- Title & subtitle tints per tier --- */
#plan-esencial .plan-title {
    color: #8a7d6a;
}

#plan-estandar .plan-title {
    color: #6b5a3e;
}

#plan-estandar .plan-subtitle {
    color: #8b7355;
}

#plan-premium .plan-title {
    color: #5a4830;
}

#plan-premium .plan-subtitle {
    color: #7a6b52;
}

/* --- Accent strip (top bar per tier) --- */
.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 24px 24px 0 0;
    transition: height 0.25s ease;
}

#plan-esencial::before {
    background: linear-gradient(90deg, #c4b99a, #b5a88a);
}

#plan-estandar::before {
    background: linear-gradient(90deg, #c2a46e, #ac966a, #9a8050);
    height: 5px;
}

#plan-premium::before {
    background: linear-gradient(90deg, #7a6b52, #5a4830);
}

.plan-card.active::before {
    height: 5px;
}

.plan-card.is-dimmed {
    opacity: 0.7;
    transform: scale(0.985);
    filter: saturate(0.82);
}

.plan-card.is-dimmed .plan-card-inner {
    box-shadow: none;
}

/* --- Hero card: Estándar stands out --- */
.plan-card--hero {
    border-color: rgba(172, 150, 106, 0.3);
    box-shadow: none;
}

.plan-card--hero .plan-badge {
    font-size: 0.78rem;
    padding: 5px 16px;
    background: linear-gradient(135deg, #a08050 0%, #8b7355 50%, #6b5a3e 100%);
    box-shadow: 0 4px 14px rgba(107, 90, 62, 0.3);
    letter-spacing: 0.08em;
}

/* ===========================
   PLAN ESENCIAL: CARD FACE SWAP
=========================== */
#plan-esencial .plan-card-inner {
    position: relative;
    overflow: visible;
}

.plan-card-front,
.plan-card-back {
    display: flex;
    flex-direction: column;
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-card-front {
    opacity: 1;
    transform: translateY(0);
}

.plan-card-front.hidden {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    position: absolute;
    inset: 0;
}

.plan-card-back {
    opacity: 1;
    transform: translateY(0);
}

.plan-card-back.hidden {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    position: absolute;
    inset: 0;
}

.plan-variant-question {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.plan-variant-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.plan-variant-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    min-height: 52px;
    border: 1.5px solid rgba(95, 77, 48, 0.15);
    border-radius: 14px;
    background: rgba(248, 244, 237, 0.7);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.plan-variant-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(172, 150, 106, 0.12);
    flex-shrink: 0;
    color: var(--text-primary);
}

.plan-variant-btn:hover {
    border-color: rgba(95, 77, 48, 0.35);
    background: rgba(248, 244, 237, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(68, 50, 26, 0.08);
}

.plan-variant-btn:active {
    transform: scale(0.98);
    box-shadow: none;
}

.plan-variant-btn.selected {
    border-color: var(--text-primary);
    background: rgba(250, 245, 236, 0.96);
    box-shadow: 0 0 0 1px var(--text-primary);
}

.plan-variant-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    padding: 0;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease;
    align-self: flex-start;
}

.plan-variant-back:hover {
    opacity: 1;
    color: var(--text-primary);
}

.plan-variant-back svg {
    flex-shrink: 0;
}

.wizard-dev-tools {
    position: absolute;
    top: 26px;
    right: 96px;
    z-index: 60;
}

.wizard-dev-tools.hidden {
    display: none;
}

.wizard-dev-toggle {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(95, 77, 48, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.wizard-dev-toggle.active {
    background: #3d301f;
    border-color: #3d301f;
    color: white;
}

.wizard-dev-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(95, 77, 48, 0.12);
    background: rgba(255, 251, 244, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 32px rgba(64, 46, 24, 0.14);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wizard-dev-panel.hidden {
    display: none;
}

.wizard-dev-group {
    display: grid;
    gap: 8px;
}

.wizard-dev-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(95, 77, 48, 0.7);
    padding: 0 2px;
}

.wizard-dev-scenarios,
.wizard-dev-steps {
    display: grid;
    gap: 8px;
}

.wizard-dev-scenarios {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wizard-dev-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wizard-dev-scenario,
.wizard-dev-step {
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(95, 77, 48, 0.1);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-primary);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
}

.wizard-dev-scenario.active {
    background: #3d301f;
    border-color: #3d301f;
    color: white;
    box-shadow: 0 10px 18px rgba(61, 48, 31, 0.18);
}

@media (max-width: 1120px),
(max-height: 760px) {
    .wizard-dev-tools {
        top: 14px;
        right: 70px;
    }

    .wizard-dev-toggle {
        min-height: 32px;
        padding: 0 10px;
        font-size: 0.64rem;
    }

    .wizard-dev-panel {
        min-width: 220px;
    }

    .wizard-dev-scenarios {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   SUMMARY & CONTACT (STEP 5)
=========================== */
.summary-final-block {
    flex: 1.2;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.summary-card-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.summary-final-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.price-range-box {
    background: var(--accent-light);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(172, 150, 106, 0.1);
    text-align: center;
}

.price-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    font-weight: 600;
}

.price-value {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.price-disclaimer {
    font-size: 0.72rem;
    color: var(--text-secondary);
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    max-width: 200px;
    line-height: 1.4;
}

.price-disclaimer i {
    font-size: 0.8rem;
}

.summary-details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sum-row-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.sum-row-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.sum-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.sum-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sum-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    font-weight: 600;
}

.sum-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.summary-trust-badge {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(172, 150, 106, 0.05);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.trust-icon {
    color: var(--accent-highlight);
    display: flex;
    align-items: center;
}

.summary-contact-layout {
    display: flex;
    gap: 40px;
    align-items: stretch;
    flex-grow: 1;
}

.contact-lead-block {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.contact-lead-block h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-lead-block p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

.form-grid-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.contact-lead-block .input-group label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.contact-lead-block .input-group input,
.contact-lead-block .input-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.contact-lead-block .input-group input:focus,
.contact-lead-block .input-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.02);
}

.btn-submit-lead {
    width: 100%;
    padding: 18px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 32px;
    letter-spacing: 0.02em;
}

.thanks-icon {
    font-size: 4rem;
    color: var(--text-primary);
    margin-bottom: 24px;
}

/* ── Animated check (thanks screen) ── */
.thanks-check-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    color: var(--text-primary);
}

.thanks-check-svg {
    width: 100%;
    height: 100%;
}

.thanks-check-circle {
    stroke-dasharray: 170;
    stroke-dashoffset: 170;
    animation: thanks-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.15s forwards;
    opacity: 0.35;
}

.thanks-check-tick {
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: thanks-tick 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes thanks-circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes thanks-tick {
    to {
        stroke-dashoffset: 0;
    }
}

@media (max-width: 1024px) {
    .summary-contact-layout {
        flex-direction: column;
        gap: 24px;
    }
}

/* ===========================
   HOW WE WORK (PROGRESS LINE)
=========================== */
.hww-progress-section {
    background-color: transparent;
    position: relative;
}

.hww-progress-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 48px;
}

.hww-progress-header {
    margin-bottom: 30px;
}

.hww-progress-header h2 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 400;
    color: #1a1610;
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* Container for the 3 steps & the line */
.hww-progress-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-top: 30px;
    /* Space for the nodes */
}

/* The Background Line (Gray) */
.hww-track-bg {
    position: absolute;
    top: 40px;
    /* Aligned with the dots */
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* ===========================
   HOW WE WORK (ICONIC FLOW)
=========================== */
.hww-flow-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    position: relative;
}

.hww-flow-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hww-flow-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 24px; /* Reduced to pull content up */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.hww-flow-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hww-icon-placeholder {
    color: var(--text-primary);
    opacity: 0.3;
}

.hww-icon-placeholder svg {
    width: 48px;
    height: 48px;
}

.hww-flow-content {
    max-width: 320px;
}

.hww-flow-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.3em;
    margin-bottom: 16px;
    opacity: 0.8;
}

.hww-flow-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: #1a1610;
    margin-bottom: 16px;
    font-weight: 400;
    line-height: 1.2;
}

.hww-flow-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

@media (max-width: 992px) {
    .hww-progress-section {
        padding: 60px 0;
    }

    .hww-progress-inner {
        padding: 0 20px;
        align-items: center;
    }

    .hww-progress-header {
        margin-bottom: 40px;
        width: 100%;
        text-align: center;
    }

    .hww-flow-container {
        flex-direction: column;
        align-items: center;
        gap: 48px;
        margin-top: 20px;
        padding: 0;
        width: 100%;
    }

    .hww-flow-step {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .hww-flow-icon {
        margin-bottom: 20px;
    }

    .hww-flow-content {
        max-width: 100%;
        padding: 0 10px;
    }

    .hww-flow-title {
        font-size: 1.6rem;
    }
}

/* 
   ===========================
   BLOG SECTION (CLEAN SLATE)
   =========================== 
*/
/* 
   ===========================
   NEW BLOG SECTION (EDITORIAL ELEGANT)
   =========================== 
*/
.blog-section {
    background-color: var(--bg-color);
    padding: 80px 0;
}

.blog-main-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    color: #1a1610;
    margin: 0 auto 24px;
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.blog-subtitle-main {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
}

.blog-archive-header {
    padding: 10px 0 45px;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Blog Clean Design Enhancements */
.archive-section {
    background: var(--bg-color);
    padding-top: 0 !important;
    padding-bottom: 80px;
}

.blog-grid {
    max-width: 1080px;
    /* Tighter width for better centering */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Featured Article (Well-Proportioned) */
.blog-featured-article {
    display: flex;
    align-items: center;
    gap: 32px;
    text-decoration: none;
    color: inherit;
    margin: 0 auto;
    width: 100%;
}

.blog-featured-img-wrap {
    flex: 0 0 50%;
    height: 440px;
    overflow: hidden;
    border-radius: 4px;
}

.blog-featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-featured-article:hover .blog-featured-img-wrap img {
    transform: scale(1.04);
}

.blog-featured-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    border-radius: 20px;
    transition: all 0.4s ease;
}

.blog-featured-article:hover .blog-featured-content {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* Recent Articles Grid */
.blog-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.blog-recent-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 20px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: transparent;
}

.blog-recent-card:hover {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.blog-recent-img-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 12px;
}

.blog-recent-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.blog-recent-card:hover .blog-recent-img-wrap img {
    transform: scale(1.04);
}

/* Typography & Details */
.blog-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-highlight);
    margin-bottom: 12px;
    display: block;
}

.blog-featured-content .blog-title {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    line-height: 1.15;
    color: #1a1610;
    margin-bottom: 20px;
    font-weight: 400;
}

.blog-featured-article:hover .blog-title {
    color: var(--accent-highlight);
}

.blog-recent-card .blog-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1.25;
    color: #1a1610;
    margin-bottom: 12px;
    font-weight: 400;
    transition: color 0.4s ease;
}

.blog-recent-card:hover .blog-title {
    color: var(--accent-highlight);
}

.blog-excerpt {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 95%;
}

.blog-meta {
    font-size: 0.85rem;
    color: #999;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-featured-article {
        align-items: flex-start;
        gap: 32px;
    }

    .blog-featured-img-wrap {
        flex: 0 0 45%;
        height: 360px;
    }

    .blog-recent-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .blog-section {
        padding: 60px 24px;
    }
    .archive-section {
        padding-top: 15px !important;
    }

    .blog-featured-article {
        flex-direction: column;
        gap: 24px;
    }

    .blog-featured-img-wrap {
        flex: none;
        width: 100%;
        height: 320px;
    }

    .blog-recent-grid {
        grid-template-columns: 1fr;
    }

    .blog-featured-content .blog-title {
        font-size: 2.2rem;
    }
}

/* ===========================
   STEP 3: ACCESOS (NEW)
   =========================== */
.access-cards-flex {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.access-card {
    flex: 1;
    background: white;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.access-card h4 {
    margin-bottom: 16px;
    font-size: 1.2rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--accent-light);
    padding-bottom: 8px;
}

.stair-items-section {
    padding: 0;
    background: transparent;
    border: none;
}

.stair-section-block {
    margin-bottom: 28px;
}

.stair-section-title {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    font-family: var(--font-family);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.stair-info-msg {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.stair-items-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 2px 2px 16px;
}

.stair-item-check {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(95, 77, 48, 0.12);
    border-radius: 22px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-height: 72px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    font-family: var(--font-family);
}

@media (hover: hover) {
    .stair-item-check:hover {
        background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(245, 235, 216, 0.98));
        border-color: rgba(106, 87, 55, 0.34);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(68, 50, 26, 0.08);
    }
}

.stair-item-check:active {
    transform: scale(0.97) translateY(0);
    background: rgba(47, 36, 21, 0.04);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.1s ease;
}

.stair-item-check.selected {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(245, 235, 216, 0.98));
    border-color: rgba(106, 87, 55, 0.5);
    box-shadow: 0 8px 20px rgba(68, 50, 26, 0.1);
}

.stair-item-check.selected .stair-item-arrow {
    background: #2f2415;
    color: #f8f3ea;
    transform: scale(1.1);
}

.stair-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stair-item-name {
    display: block;
    font-family: var(--font-body-serif);
    font-size: 1rem;
    color: #2f2415;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 2px;
}

.stair-item-dim {
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    color: #6d624f;
    font-weight: 400;
}

.vol-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    background: #fdf2f2;
    color: #9b1c1c;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 8px;
}

.stair-section-block {
    margin-bottom: 24px;
}

.stair-section-title {
    font-family: var(--font-body-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: #3d301f;
    margin-bottom: 12px;
    padding-left: 8px;
    border-left: 3px solid rgba(95, 77, 48, 0.2);
}

.stair-item-arrow {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    background: rgba(172, 150, 106, 0.12);
    color: #6a5737;
    border-radius: 999px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-highlight);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-family: var(--font-family);
}

.btn-link:hover {
    color: var(--text-primary);
}

@media (max-width: 1024px) {
    .access-cards-flex {
        flex-direction: column;
        gap: 16px;
    }
}

/* ── SPA PAGE VIEWS ── */
.page-view {
    transition: opacity 0.5s ease-in-out;
}

.page-view.hidden {
    display: none !important;
}

.page-view.active {
    display: block !important;
}

/* Single Post View */
.blog-single-page {
    background-color: var(--bg-color);
    min-height: 100vh;
}

.blog-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 1024px) {
    .blog-single-container {
        padding: 0 20px;
    }
}

.blog-single-header {
    padding-top: 5px;
    padding-bottom: 40px;
    background: transparent;
}

@media (max-width: 1024px) {
    .blog-single-header {
        padding-top: 10px;
        padding-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .blog-single-header {
        padding-top: 8px;
        padding-bottom: 24px;
    }
}

.blog-single-top {
    margin-bottom: 35px;
}

/* Blog Content Separator */
.blog-content-separator {
    max-width: 200px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    margin: 0 auto 60px;
    border-radius: 2px;
    opacity: 0.6;
    position: relative;
    animation: fadeInScale 0.8s ease-out;
}

.blog-content-separator::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(172, 150, 106, 0.2);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 0.6;
        transform: scaleX(1);
    }
}

@media (max-width: 1024px) {
    .blog-content-separator {
        max-width: 150px;
        margin: 0 auto 48px;
        height: 2px;
    }
    
    .blog-content-separator::before {
        width: 6px;
        height: 6px;
        box-shadow: 0 0 0 2px rgba(172, 150, 106, 0.2);
    }
}

.blog-recommended-separator {
    margin: 60px auto 40px !important;
}

.blog-recommended-separator::before {
    display: none !important;
}

@media (max-width: 1024px) {
    .blog-recommended-separator {
        margin: 48px auto 32px !important;
    }
}

@media (max-width: 480px) {
    .blog-recommended-separator {
        margin: 36px auto 24px !important;
    }
}

.blog-single-top .section-tag {
    margin-bottom: 24px;
}

.blog-single-top h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 1000px;
    color: #1a1610;
    text-align: left;
}

@media (max-width: 1024px) {
    .blog-single-top h1 {
        text-align: left;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .blog-single-top h1 {
        text-align: left;
        margin-bottom: 16px;
    }
}

.blog-single-meta {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.blog-single-hero {
    width: 100%;
    height: 30vh;
    min-height: 200px;
    max-height: 400px;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .blog-single-hero {
        height: 25vh;
        min-height: 180px;
        border-radius: 8px;
        margin-bottom: 20px;
    }
}

.blog-single-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Glassmorphism Card for Single Article */
.blog-single-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    padding: 60px 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.04);
    margin-top: 40px;
    margin-bottom: 60px;
    animation: slideUpFade 0.8s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .blog-single-card {
        padding: 40px 24px;
        border-radius: 20px;
        margin-top: 24px;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .blog-single-card {
        padding: 32px 16px;
        border-radius: 16px;
        margin-top: 16px;
        margin-bottom: 32px;
    }
}

.back-btn {
    background: none;
    border: none;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: #1a1610;
    transform: translateX(-4px);
}

.blog-content-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

@media (max-width: 1024px) {
    .blog-content-body {
        margin: 32px auto;
        padding: 0 20px;
        font-size: 1.05rem;
        line-height: 1.65;
    }
}

@media (max-width: 480px) {
    .blog-content-body {
        padding: 0 16px;
        font-size: 1rem;
        line-height: 1.6;
    }
}

.blog-content-body p {
    margin-bottom: 32px;
}

.blog-content-body h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: #1a1610;
    margin: 48px 0 24px;
    line-height: 1.25;
    text-align: left;
}

@media (max-width: 1024px) {
    .blog-content-body h2 {
        font-size: 1.8rem;
        margin: 40px 0 20px;
        line-height: 1.2;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .blog-content-body h2 {
        font-size: 1.6rem;
        margin: 32px 0 16px;
        line-height: 1.15;
        text-align: left;
    }
}

.blog-content-body h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--text-primary);
    margin: 40px 0 20px;
    line-height: 1.3;
    text-align: left;
}

@media (max-width: 1024px) {
    .blog-content-body h3 {
        font-size: 1.4rem;
        margin: 32px 0 16px;
        line-height: 1.25;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .blog-content-body h3 {
        font-size: 1.3rem;
        margin: 28px 0 14px;
        line-height: 1.2;
        text-align: left;
    }
}

.blog-content-body ul,
.blog-content-body ol {
    margin-bottom: 32px;
    padding-left: 24px;
}

.blog-content-body li {
    margin-bottom: 12px;
}

.blog-content-body img {
    width: 100%;
    height: auto;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .blog-content-body img {
        margin: 32px 0;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 480px) {
    .blog-content-body img {
        margin: 24px 0;
        border-radius: 6px;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    }
}

/* ===========================
   REVIEWS SECTION (REDESIGNED & COMPACT)
   =========================== */
.reviews-section {
    background-color: var(--bg-color);
}

/* Desktop: needed for the JS transform overflow */
@media (min-width: 993px) {
    .reviews-section {
        overflow: hidden;
    }
}

.reviews-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.reviews-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.reviews-header-main {
    flex-grow: 1;
    text-align: left;
}

.reviews-header .section-tag {
    margin-bottom: 12px;
    display: block;
}

.reviews-header h2 {
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 0;
    color: #1a1610;
    letter-spacing: -0.01em;
}

.reviews-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
}

.reviews-slider-wrapper::before,
.reviews-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 56px;
    width: 110px;
    z-index: 10;
    pointer-events: none;
}

.reviews-slider-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-color) 0%, rgba(245, 242, 236, 0) 100%);
}

.reviews-slider-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-color) 0%, rgba(245, 242, 236, 0) 100%);
}

.reviews-slider-container {
    padding: 10px 0 30px 0;
    cursor: grab;
}

.reviews-slider-container:active {
    cursor: grabbing;
}

.reviews-track {
    display: flex;
    gap: 24px;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.review-card {
    flex: 0 0 350px;
    background: #fff;
    padding: 32px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.review-card:hover {
    border-color: var(--text-primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.04);
}

.review-stars {
    color: #9B8760;
    font-size: 0.85rem;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 8px;
}

.review-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #1a1610;
    flex-grow: 1;
    font-style: italic;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--accent-light);
    padding-top: 16px;
}

.author-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: #1a1610;
}

.author-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reviews-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.reviews-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.5;
    margin: 12px 0 0 0;
}

.trust-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-stars {
    color: #9B8760;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.trust-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.slider-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 5px;
    /* Slight adjustment to align with title text baseline */
}

.ctrl-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.ctrl-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.ctrl-btn:hover {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

.ctrl-btn.prev:hover svg {
    transform: translateX(-3px);
}

.ctrl-btn.next:hover svg {
    transform: translateX(3px);
}

/* Hide mobile controls on desktop */
.mobile-controls {
    display: none;
}

/* Hide mobile arrows on desktop */
.mobile-arrow {
    display: none;
}

@media (max-width: 992px) {
    .reviews-section {
        padding: 40px 0;
    }

    .reviews-inner {
        padding: 0 0; /* Remove padding to let slider be full-width */
    }

    .reviews-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 0 24px;
        margin-bottom: 16px;
    }

    .reviews-header-main {
        text-align: center;
        width: 100%;
    }

    .reviews-header h2 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .reviews-subtitle {
        font-size: 0.95rem;
        margin-bottom: 0;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .reviews-slider-wrapper {
        position: relative;
        width: 100%;
        overflow: visible;
    }

    /* Native scroll-snap carousel */
    .reviews-slider-container {
        overflow: hidden; /* Changed from overflow-x: auto to allow JS control */
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 30px 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .reviews-slider-container::-webkit-scrollbar {
        display: none;
    }

    .reviews-track {
        display: flex;
        padding: 0;
        gap: 16px;
        /* transform: none !important; removed to allow infinite loop logic */
    }

    .review-card {
        flex: 0 0 88vw;
        max-width: 320px;
        min-height: 280px;
        padding: 24px 20px;
        text-align: center;
        scroll-snap-align: center;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    }

    /* Show mobile arrows on mobile */
    .mobile-arrow {
        display: flex !important;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: white;
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        z-index: 20;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
    }

    .mobile-arrow-prev {
        left: 12px;
    }

    .mobile-arrow-next {
        right: 12px;
    }

    .mobile-arrow:active {
        background: var(--text-primary);
        color: white;
        transform: translateY(-50%) scale(0.95);
    }

    .slider-controls {
        display: none !important;
    }

    .reviews-footer {
        padding: 0 24px;
        margin-top: 20px;
    }

    .hww-progress-header {
        margin-bottom: 30px !important;
    }
}


/* ===========================
   FAQ SECTION
=========================== */
.faq-section {
    background-color: var(--bg-color);
}

.faq-inner {
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-acc-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-acc-item:hover {
    border-color: var(--text-primary);
}

.faq-acc-item.active {
    border-color: var(--text-primary);
}

.faq-acc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    background: transparent;
}

.faq-acc-header h3 {
    font-size: 1.1rem;
    font-family: var(--font-family);
    font-weight: 500;
    margin: 0;
    color: #1a1610;
}

.faq-acc-icon {
    font-size: 0.8rem;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.faq-acc-item.active .faq-acc-icon {
    transform: rotate(180deg);
}

.faq-acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
}

.faq-acc-item.active .faq-acc-body {
    max-height: 500px;
    padding: 0 24px 24px 24px;
}

.faq-acc-body p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===========================
   PREMIUM FOOTER
=========================== */
/* ===========================
   PREMIUM FOOTER REDESIGN
=========================== */
.premium-footer {
    background-color: #15120e;
    color: #fff;
    padding: 80px 48px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    padding-bottom: 60px;
}

.footer-about {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    align-self: center; /* Center vertically in the grid */
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

.premium-footer .logo-icon-img {
    height: 72px;
    width: auto;
}

.premium-footer .logo-text-img {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.footer-social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
    transform: translateY(-5px) scale(1.1);
}

/* Contact Column */
.footer-col:nth-child(3) .footer-title {
    text-align: left; /* Corrected to left */
}



.footer-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 32px;
    letter-spacing: 0.02em;
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    text-align: center;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: #8c8882;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align list items to the left */
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: flex-start; /* Align items content to the left */
}

.contact-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(172, 150, 106, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-value {
    font-size: 0.95rem;
    color: #fff;
}

.footer-bottom-v2 {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
}


.footer-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #6b6863;
    font-size: 0.85rem;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    gap: 32px;
}

.footer-legal-links a {
    color: #6b6863;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #fff;
}

/* RESPONSIVE FOOTER */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1.5fr;
        gap: 40px;
    }
    .footer-trust {
        grid-column: span 3;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        padding-top: 40px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .footer-trust .footer-title {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .pre-footer {
        padding: 80px 24px;
    }
    .pre-footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
    .pre-footer-content h2 {
        font-size: 2.8rem;
    }
    .pre-footer-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .pre-footer-actions {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-about {
        grid-column: span 2;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-logo {
        align-items: center;
    }
    .logo-icon-img, .logo-text-img {
        align-self: center;
    }
}

@media (max-width: 1024px) {
    .premium-footer {
        padding: 80px 24px 40px;
    }
    .pre-footer-content h2 {
        font-size: 2.4rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .footer-about, .footer-trust {
        grid-column: span 1;
    }
    .footer-trust {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-title {
        text-align: center;
    }
    .footer-links, .footer-contact-list {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-contact-list li {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal-links {
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .pre-footer-content h2 {
        font-size: 2rem;
    }
    .pre-footer-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .stat-num {
        font-size: 2rem;
    }
    .btn-gold, .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
}


/* ===========================
   BUDGET LOADING OVERLAY
=========================== */
.budget-loading-overlay {
    position: absolute;
    inset: 0;
    background: #fdfcfa;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.budget-loading-overlay.hidden {
    display: none;
}

.budget-loading-overlay.visible {
    opacity: 1;
    pointer-events: all;
    display: flex;
}

.budget-loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
    display: flex;
}

/* Card */
.blo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 400px;
    width: 100%;
    padding: 0 24px;
    animation: bloCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes bloCardIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ring */
.blo-ring-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.blo-ring {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.blo-ring-track {
    fill: none;
    stroke: rgba(172, 150, 106, 0.12);
    stroke-width: 3;
}

.blo-ring-fill {
    fill: none;
    stroke: var(--text-primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 213.6;
    stroke-dashoffset: 213.6;
    animation: bloRingFill 2.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes bloRingFill {
    to {
        stroke-dashoffset: 32;
    }
}

.blo-ring-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    animation: bloIconPulse 2s ease-in-out 0.4s infinite;
}

@keyframes bloIconPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

/* Title */
.blo-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: #1a1610;
    letter-spacing: -0.01em;
    text-align: center;
    animation: bloFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.blo-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: -12px;
    animation: bloFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

@keyframes bloFadeUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Steps */
.blo-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 6px 0;
    overflow: hidden;
}

.blo-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    opacity: 0;
}

.blo-step--1 {
    animation: bloStepIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.blo-step--2 {
    animation: bloStepIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

.blo-step--3 {
    animation: bloStepIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 1.45s both;
}

.blo-step--4 {
    animation: bloStepIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 2.0s both;
}

@keyframes bloStepIn {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.blo-step-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Completed check (steps 1-3) */
.blo-step--1 .blo-step-check,
.blo-step--2 .blo-step-check,
.blo-step--3 .blo-step-check {
    background: var(--text-primary);
    color: #fff;
    animation: bloCheckPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.blo-step--1 .blo-step-check {
    animation-delay: 0.65s;
}

.blo-step--2 .blo-step-check {
    animation-delay: 1.2s;
}

.blo-step--3 .blo-step-check {
    animation-delay: 1.75s;
}

@keyframes bloCheckPop {
    from {
        transform: scale(0.4);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Spinner for step 4 */
.blo-step-check--spin {
    border: 1.5px solid rgba(172, 150, 106, 0.25);
    color: var(--text-secondary);
    animation: bloCheckPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 2.1s both,
        bloSpinIcon 1.1s linear 2.1s infinite;
}

@keyframes bloSpinIcon {
    to {
        transform: rotate(360deg);
    }
}

.blo-step-label {
    font-size: 0.83rem;
    color: #1a1610;
    font-weight: 500;
}

.blo-step--1 .blo-step-label,
.blo-step--2 .blo-step-label,
.blo-step--3 .blo-step-label {
    text-decoration: none;
    color: var(--text-secondary);
    animation: bloLabelDone 0s both;
}

.blo-step--1 .blo-step-label {
    animation-delay: 0.65s;
}

.blo-step--2 .blo-step-label {
    animation-delay: 1.2s;
}

.blo-step--3 .blo-step-label {
    animation-delay: 1.75s;
}

/* Shimmer price preview */
.blo-price-preview {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: bloFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.blo-price-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    font-weight: 600;
}

.blo-price-shimmer {
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(90deg,
            rgba(172, 150, 106, 0.08) 0%,
            rgba(172, 150, 106, 0.2) 40%,
            rgba(172, 150, 106, 0.08) 80%);
    background-size: 200% 100%;
    animation: bloShimmer 1.4s ease-in-out infinite;
}

@keyframes bloShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===========================
   STEP 6 — CONTACT FORM (STANDALONE)
=========================== */
.contact-lead-block--standalone {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 32px 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-lead-intro p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form-grid .input-group:last-child {
    grid-column: 1 / -1;
}

.contact-form-notes {
    margin-top: 0;
}

.contact-lead-block--standalone .input-group label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.contact-lead-block--standalone .input-group input,
.contact-lead-block--standalone .input-group textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: var(--font-family);
    font-size: 0.92rem;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.contact-lead-block--standalone .input-group input:focus,
.contact-lead-block--standalone .input-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.02);
}

.contact-lead-block--standalone .input-group input.input-error {
    border-color: #e05555;
    background: #fff8f8;
}

@media (max-width: 600px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-lead-block--standalone {
        padding: 24px;
    }
}

/* ===========================
   STEP 6 — TUS DATOS (alineado con wizard)
=========================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

.step-content--datos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 24px 20px;
    gap: 20px;
}

.datos-step-wrapper {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.datos-step-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 42ch;
    margin: 0;
}

.datos-card {
    width: 100%;
    background: #fff;
    padding: 28px 24px;
    border-radius: 24px;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(68, 50, 26, 0.06);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.datos-card:hover {
    border-color: rgba(172, 150, 106, 0.4);
    box-shadow: 0 12px 28px rgba(68, 50, 26, 0.08);
}

.datos-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(95, 77, 48, 0.08);
}

.datos-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(172, 150, 106, 0.12);
    color: var(--text-primary);
    flex-shrink: 0;
}

.datos-card-icon svg {
    width: 24px;
    height: 24px;
}

.datos-card-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 400;
}

.datos-form {
    margin: 0;
}

.datos-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.datos-input-group label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #493a25;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.datos-input-group label i {
    font-size: 1rem;
    color: var(--accent-highlight);
    opacity: 0.9;
}

.datos-input-group .required {
    color: #c44;
    font-weight: 600;
}

.datos-optional {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.datos-input-group input,
.datos-input-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(95, 77, 48, 0.14);
    font-family: var(--font-family);
    font-size: 1rem;
    background: #faf9f7;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.datos-input-group input::placeholder,
.datos-input-group textarea::placeholder {
    color: rgba(73, 58, 37, 0.45);
}

.datos-input-group input:focus,
.datos-input-group textarea:focus {
    outline: none;
    border-color: var(--accent-highlight);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(155, 135, 96, 0.15);
}

.datos-input-group textarea {
    min-height: 100px;
    resize: none;
}

.datos-input-group input.input-error {
    border-color: #c44;
    background: #fff8f8;
}

/* Tablet: 2 columnas para nombre y email */
@media (min-width: 600px) {
    .datos-form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .datos-input-group--full {
        grid-column: 1 / -1;
    }

    .datos-card {
        padding: 32px 28px;
    }

    .datos-step-intro {
        text-align: center;
        margin: 0 auto;
    }
}

/* Desktop: más aire y consistencia con plan cards — sin padding-bottom extra (contenido centrado) */
@media (min-width: 1024px) {
    .step-content--datos {
        padding: 16px 24px;
        gap: 24px;
    }

    .datos-step-wrapper {
        max-width: 700px;
        gap: 24px;
    }

    .datos-card {
        padding: 28px 32px;
        border-radius: 24px;
        box-shadow: 0 12px 32px rgba(68, 50, 26, 0.06);
    }

    .datos-card:hover {
        box-shadow: 0 16px 40px rgba(68, 50, 26, 0.08);
    }

    .datos-card-head {
        margin-bottom: 28px;
        padding-bottom: 24px;
    }

    .datos-card-title {
        font-size: 1.5rem;
    }

    .datos-form-grid {
        gap: 24px;
    }

    .datos-input-group input,
    .datos-input-group textarea {
        padding: 16px 18px;
        border-radius: 16px;
    }

    .datos-input-group textarea {
        min-height: 120px;
    }
}

/* Larger screens: even more space */
@media (min-width: 1440px) {
    .datos-step-wrapper {
        max-width: 800px;
    }

    .wizard-container[data-step="6"] .wizard-body.single-column .wizard-main {
        max-width: 850px;
    }
}

/* Móvil: touch targets 44px+, espaciado cómodo */
@media (max-width: 599px) {
    .step-content--datos {
        padding: 0 16px 100px;
        gap: 16px;
    }

    .datos-step-wrapper {
        max-width: 100%;
    }

    .datos-step-intro {
        font-size: 0.95rem;
        text-align: left;
    }

    .datos-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .datos-card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .datos-card-title {
        font-size: 1.2rem;
    }

    .datos-form-grid {
        gap: 18px;
    }

    .datos-input-group input,
    .datos-input-group textarea {
        min-height: 48px;
        padding: 14px 16px;
        font-size: 16px;
        /* evita zoom en iOS */
    }

    .datos-input-group textarea {
        min-height: 100px;
    }
}

/* Layout específico para step 6: centrado vertical/horizontal, sin scroll en PC */
.wizard-container[data-step="6"] .wizard-body {
    flex: 1;
    min-height: 0;
    display: flex;
    overflow: hidden;
}

.wizard-container[data-step="6"] .wizard-body.single-column .wizard-main {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.wizard-container[data-step="6"] .wizard-main {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-height: 0 !important;
}

.wizard-container[data-step="6"] #step-6.step-content.active {
    flex: 1 !important;
    min-height: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
}

@media (min-width: 769px) {
    .wizard-container[data-step="6"] {
        --wizard-footer-space: 96px !important;
    }

    .wizard-container[data-step="6"] .wizard-main {
        padding-top: 0 !important;
        padding-bottom: var(--wizard-footer-space) !important;
        justify-content: center !important;
    }

    .wizard-container[data-step="6"] #step-6.step-content.active {
        margin: auto !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* En móvil el paso 6 puede hacer scroll si hace falta (teclado, etc.) */
@media (max-width: 767px) {
    .wizard-container[data-step="6"] .wizard-main {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wizard-container[data-step="6"] #step-6.step-content.active {
        justify-content: flex-start;
        align-items: center;
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 100px;
    }

    .step-content--datos {
        justify-content: flex-start;
        padding: 24px 16px 80px;
    }
}

/* ===========================
   STEP 7 — BUDGET REVEAL
=========================== */

/* Keep the header space on the budget step, but make its content invisible */

.wizard-container.budget-mode .wizard-header {
    visibility: hidden;
}

.wizard-container.budget-mode .wizard-header,
.wizard-container.budget-mode .wizard-header > div,
.wizard-container.budget-mode .wizard-title,
.wizard-container.budget-mode .wizard-subtitle {
    visibility: hidden !important;
    opacity: 0 !important;
}

.wizard-container.budget-mode .wizard-top-bar {
    background: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.wizard-container.budget-mode .wizard-top-bar::before,
.wizard-container.budget-mode .wizard-top-bar::after {
    opacity: 0 !important;
    content: none !important;
}

.wizard-container.budget-mode .wizard-progress {
    display: none;
}

.wizard-container.budget-mode .wizard-body {
    border-top: none;
}

.wizard-container.budget-mode .wizard-main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: visible;
    padding-top: 8px;
    padding-bottom: calc(var(--wizard-footer-space) + 16px);
}

.wizard-container.budget-mode #step-7.step-content.active {
    display: flex;
    flex: 1;
    min-height: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    padding: 18px 24px 28px;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
}


/* Thanks Mode: keep the top header visible while simplifying the rest of the layout */

.wizard-container.thanks-mode .wizard-body {
    border-top: none;
    padding-top: 0;
}

.wizard-container.thanks-mode {
    padding-bottom: 0 !important;
}

.wizard-container.thanks-mode .wizard-main {
    padding-bottom: 0;
}

/* Main vertical layout: hero on top, details/inventory below */
.budget-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 100%;
    gap: 16px;
    overflow: visible;
    padding: 10px 0 14px;
    width: 100%;
    margin: 0 auto;
}

.wizard-container.budget-mode .budget-layout {
    flex: 0 1 auto;
    justify-content: flex-start;
    min-height: 0;
    max-height: 100%;
    width: min(100%, 1180px);
    margin: 0 auto;
}

/* ── HERO: Price banner ── */
.budget-hero {
    flex-shrink: 0;
    width: 100%;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 32%),
        linear-gradient(135deg, #f8f0e1 0%, #efe1c7 48%, #f8f4ec 100%);
    border: 1px solid rgba(136, 107, 62, 0.14);
    border-radius: 28px;
    padding: 28px 30px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 24px 48px rgba(68, 50, 26, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.budget-hero::before,
.budget-hero::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(2px);
}

.budget-hero::before {
    width: 220px;
    height: 220px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(123, 95, 54, 0.18) 0%, rgba(123, 95, 54, 0) 70%);
}

.budget-hero::after {
    width: 180px;
    height: 180px;
    left: -90px;
    bottom: -110px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 68%);
}

.budget-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 760px;
}

.budget-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(95, 77, 48, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #6e5a3b;
    font-weight: 700;
}

.budget-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #a88b5c 0%, #7e6540 100%);
    box-shadow: 0 0 0 6px rgba(168, 139, 92, 0.14);
}

.budget-amount {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 4.1vw, 4.1rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #2f2415;
    font-weight: 400;
    margin: 0;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Footnote */
.budget-footnote {
    position: relative;
    z-index: 1;
    font-size: 0.82rem;
    color: var(--text-secondary);
    opacity: 0.88;
    margin: 12px 0 0;
    line-height: 1.38;
    max-width: 64ch;
}

/* Asterisk separator */
.budget-asterisk {
    font-size: 0.55em;
    vertical-align: super;
    margin-left: 4px;
    opacity: 0.5;
}

/* ── BOTTOM: Two-column cards ── */
.budget-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 16px;
    align-items: stretch;
    width: 100%;
    margin: 0 auto;
}

.budget-left-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.budget-right-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.budget-right-column.budget-right-column--fill .budget-card--inventory {
    flex: 1 1 auto;
    height: var(--budget-inventory-target-height);
    max-height: var(--budget-inventory-target-height);
}

/* Shared card base */
.budget-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 247, 241, 0.96) 100%);
    border: 1px solid rgba(95, 77, 48, 0.1);
    border-radius: 24px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 18px 36px rgba(68, 50, 26, 0.07);
}

.budget-card-title {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(172, 150, 106, 0.1);
}

.budget-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.budget-card-head-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.budget-card-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #8a7550;
    font-weight: 700;
}

.budget-card-title--main {
    padding-bottom: 0;
    border-bottom: none;
    font-size: clamp(0.98rem, 1.35vw, 1.14rem);
    letter-spacing: -0.02em;
    text-transform: none;
    color: #2f2415;
}

/* ── Details card ── */
.budget-card--details {
    gap: 12px;
}

.budget-summary-list {
    display: grid;
    gap: 8px;
}

.budget-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 241, 231, 0.86) 100%);
    border: 1px solid rgba(95, 77, 48, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.budget-summary-row--stacked {
    display: grid;
    gap: 12px;
    align-items: stretch;
}

.budget-summary-key {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.budget-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(172, 150, 106, 0.18), rgba(95, 77, 48, 0.08));
    color: #6a5636;
}

.budget-summary-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #897659;
    font-weight: 700;
}

.budget-summary-value {
    display: block;
    min-width: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #2c2417;
    line-height: 1.22;
    overflow-wrap: anywhere;
    text-align: right;
}

.budget-summary-route {
    display: grid;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.budget-route-leg {
    display: grid;
    gap: 5px;
    min-width: 0;
    position: relative;
    padding-left: 18px;
}

.budget-route-leg-label {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8a7550;
    font-weight: 700;
}

.budget-route-leg::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3rem;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #a88b5c 0%, #7e6540 100%);
    box-shadow: 0 0 0 4px rgba(168, 139, 92, 0.12);
}

.budget-route-leg + .budget-route-leg::after {
    content: '';
    position: absolute;
    left: 3px;
    top: -14px;
    bottom: calc(100% - 0.4rem);
    width: 2px;
    background: linear-gradient(180deg, rgba(168, 139, 92, 0.16), rgba(126, 101, 64, 0.42));
}

.budget-route-stop {
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    font-size: 0.84rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.budget-route-arrow {
    display: none;
}

/* ── Inventory card ── */
.budget-card--inventory {
    flex: 0 1 auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    max-height: min(56vh, 540px);
}

.budget-inv-badge {
    background: var(--text-primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    padding: 4px 10px;
    border-radius: 20px;
    line-height: 1.5;
    margin-left: 2px;
}

.budget-inv-summary {
    margin: 2px 0 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #6b5a43;
}

.budget-inv-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 6px;
    min-height: 0;
}

.budget-inv-list::-webkit-scrollbar {
    width: 4px;
}

.budget-inv-list::-webkit-scrollbar-thumb {
    background: rgba(172, 150, 106, 0.25);
    border-radius: 4px;
}

.budget-inv-list::-webkit-scrollbar-track {
    background: transparent;
}

.binv-room {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(95, 77, 48, 0.08);
}

.binv-room-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(172, 150, 106, 0.12);
}

.binv-room-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(172, 150, 106, 0.16), rgba(95, 77, 48, 0.08));
    color: #6a5636;
    line-height: 1;
    flex-shrink: 0;
}

.binv-room-icon svg {
    width: 17px;
    height: 17px;
}

.binv-room-name {
    font-size: 0.96rem;
    font-weight: 700;
    color: #2c2417;
}

.binv-room-count {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(248, 242, 232, 0.9);
    border: 1px solid rgba(172, 150, 106, 0.12);
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a7550;
    font-weight: 700;
    white-space: nowrap;
}

.binv-room-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}

.binv-room-line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.binv-room-line + .binv-room-line {
    border-top: 1px solid rgba(172, 150, 106, 0.1);
}

.binv-room-line-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 26px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(247, 241, 233, 0.92);
    border: 1px solid rgba(172, 150, 106, 0.14);
    font-size: 0.72rem;
    font-weight: 700;
    color: #5b4830;
    flex-shrink: 0;
}

.binv-room-line-body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.binv-room-line-name {
    font-size: 0.89rem;
    line-height: 1.34;
    color: #3f3120;
    font-weight: 600;
}

.binv-room-line-dim {
    font-size: 0.74rem;
    line-height: 1.4;
    color: #7b6850;
}

.binv-empty {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 16px 0;
}

@media (max-width: 720px) {
    .budget-layout {
        overflow-y: auto;
        justify-content: flex-start;
        gap: 16px;
        padding: 0 0 24px;
        margin: 0 auto;
    }

    .budget-hero {
        padding: 24px 20px 14px;
        border-radius: 24px;
    }

    .budget-amount {
        font-size: 2.2rem;
    }

    .budget-bottom {
        grid-template-columns: 1fr;
    }

    .budget-left-column {
        gap: 16px;
    }

    .budget-right-column {
        min-width: 0;
    }

    .budget-card--details {
        width: 100%;
    }

    .budget-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .budget-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .budget-summary-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .budget-summary-row:not(.budget-summary-row--stacked) {
        display: grid;
        gap: 8px;
    }

    .budget-route-leg {
        gap: 5px;
    }

    .budget-route-leg-label {
        font-size: 0.64rem;
    }

    .budget-route-stop {
        font-size: 0.82rem;
    }

    .budget-card--inventory {
        min-height: 160px;
        max-height: none;
    }
}

/* Ensure no translucent footer in thanks mode */
.wizard-container.thanks-mode::after {
    display: none !important;
}

/* Ensure background is clean */
.wizard-container.thanks-mode {
    background: white !important;
}

/* ===========================
   WIZARD REDESIGN OVERRIDES
   =========================== */

:root {
    --wizard-shell-bg: #fbf7f0;
    --wizard-panel-bg: rgba(255, 255, 255, 0.92);
    --wizard-panel-border: rgba(95, 77, 48, 0.14);
    --wizard-shadow-lg: 0 32px 84px rgba(68, 50, 26, 0.2);
    --wizard-shadow-md: 0 18px 36px rgba(68, 50, 26, 0.09);
    --wizard-radius: 28px;
    --wizard-gutter: clamp(18px, 2.6vw, 32px);
    --wizard-footer-space: clamp(120px, 15vh, 156px);
}

.wizard-overlay.active {
    background: rgba(54, 41, 20, 0.2);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.wizard-container {
    width: min(1460px, calc(100vw - 28px));
    height: min(940px, calc(100vh - 28px));
    margin: auto;
    border-radius: var(--wizard-radius);
    border: 1px solid rgba(95, 77, 48, 0.14);
    background:
        radial-gradient(circle at top left, rgba(172, 150, 106, 0.15), transparent 28%),
        linear-gradient(180deg, #fcfaf5 0%, #f7f1e7 100%);
    box-shadow: var(--wizard-shadow-lg);
    padding-bottom: 0;
    isolation: isolate;
}

.wizard-top-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 18px 24px;
    padding: clamp(14px, 2vw, 24px) var(--wizard-gutter) 12px;
    padding-right: calc(var(--wizard-gutter) + 64px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
    border-bottom: 1px solid rgba(95, 77, 48, 0.1);
    box-shadow: none;
    overflow: hidden;
    position: relative;
}

.wizard-top-bar::before,
.wizard-top-bar::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.75;
}

.wizard-top-bar::before {
    width: 220px;
    height: 220px;
    top: -120px;
    left: -36px;
    background: radial-gradient(circle, rgba(172, 150, 106, 0.18) 0%, rgba(172, 150, 106, 0) 72%);
}

.wizard-top-bar::after {
    width: 180px;
    height: 180px;
    right: 40px;
    bottom: -128px;
    background: radial-gradient(circle, rgba(95, 77, 48, 0.12) 0%, rgba(95, 77, 48, 0) 74%);
}

.wizard-header {
    grid-column: 1;
    min-width: 0;
    background: transparent !important;
}

.wizard-header>div {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    max-width: min(780px, 100%);
}

.wizard-mobile-progress {
    display: none;
}

/* Barra de progreso móvil/tablet: de lado a lado con 12px de margen */
@media (max-width: 768px) {
    .wizard-mobile-progress {
        display: block;
        margin-bottom: 6px;
        margin-left: -12px;
        width: calc(100vw - 24px);
        max-width: calc(100% + 60px);
        padding: 0;
        box-sizing: border-box;
    }

    .wizard-mobile-progress-track {
        height: 3px;
        background: rgba(95, 77, 48, 0.08);
    }

    .wizard-mobile-progress-fill {
        background: linear-gradient(90deg, #ac966a 0%, #8b7355 100%);
    }
}

.wizard-mobile-progress-track {
    position: relative;
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(95, 77, 48, 0.12);
}

.wizard-mobile-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 20%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ac966a, #5f4d30);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.wizard-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 6px 12px;
    margin-bottom: 0;
    border-radius: 999px;
    border: 1px solid rgba(95, 77, 48, 0.14);
    background: rgba(255, 251, 244, 0.76);
    color: #5b4a2f;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 12px 26px rgba(68, 50, 26, 0.06);
}

.wizard-kicker-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ac966a, #5f4d30);
    box-shadow: 0 0 0 4px rgba(172, 150, 106, 0.14);
}

.wizard-heading-row {
    display: block;
}

.wizard-heading-copy {
    display: grid;
    gap: 4px;
    max-width: 60ch;
}

.wizard-title {
    max-width: none;
    margin: 0;
    color: #2f2415;
    font-size: clamp(1.35rem, 1.9vw, 2.05rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    white-space: normal;
}

.wizard-subtitle {
    max-width: 60ch;
    margin: 0;
    color: #615644;
    font-size: clamp(0.82rem, 0.92vw, 0.94rem);
    line-height: 1.35;
    letter-spacing: 0;
}

@media (min-width: 769px) {
    .wizard-header > div {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        column-gap: 16px;
        row-gap: 4px;
        max-width: none;
        width: 100%;
    }

    .wizard-kicker {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        margin-top: 2px;
        margin-bottom: 0;
    }

    .wizard-heading-row {
        grid-column: 2;
        grid-row: 1;
    }

    .wizard-heading-copy {
        max-width: 58ch;
    }
}


.wizard-close-btn {
    position: absolute;
    top: 20px;
    right: var(--wizard-gutter);
    z-index: 30;
    pointer-events: auto;
    width: 46px;
    height: 46px;
    padding: 0;
    margin-left: 0;
    border-radius: 14px;
    border: 1px solid rgba(95, 77, 48, 0.12);
    background: rgba(255, 255, 255, 0.78);
    color: #5d4f3a;
    opacity: 1;
}

.wizard-close-btn:hover {
    background: white;
    color: #2f2415;
}

.wizard-body {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 420px);
    gap: 0;
    border-top: none;
    background: transparent;
    isolation: isolate;
}

.wizard-main {
    padding: var(--wizard-gutter) var(--wizard-gutter) calc(var(--wizard-footer-space) + 24px);
    background: transparent;
    position: relative;
    z-index: 1;
    overflow-x: clip;
}

.wizard-main .step-content.active {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    gap: 22px;
}

.wizard-map-shell {
    min-width: 0;
    max-width: none;
    padding: var(--wizard-gutter) var(--wizard-gutter) calc(var(--wizard-footer-space) + 24px) 0;
    border-left: 1px solid rgba(95, 77, 48, 0.08);
    background: #fdfcfa;
    overflow-y: auto;
    position: relative;
    z-index: 3;
    isolation: isolate;
    box-shadow: -20px 0 28px rgba(68, 50, 26, 0.05);
}

.wizard-body.single-column {
    grid-template-columns: minmax(0, 1fr);
}

.wizard-body.single-column .wizard-main {
    max-width: 1040px;
}

.wizard-body.single-column .wizard-map-shell {
    display: none;
}

.map-focus-mode .wizard-body {
    grid-template-columns: minmax(0, 1fr);
}

.map-focus-mode .wizard-map-shell {
    display: flex;
    padding: 0;
    border-left: none;
}

.wizard-main .input-group label {
    display: block;
    margin-bottom: 8px;
    color: #6d624f;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wizard-main .input-group input,
.wizard-main .input-group select,
.wizard-main .input-group textarea {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid rgba(95, 77, 48, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #2f2415;
    font-family: var(--font-family);
    font-size: 0.96rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.wizard-main .input-group textarea {
    min-height: 140px;
    resize: vertical;
}

.wizard-container[data-step="6"] .datos-input-group textarea,
.wizard-container[data-step="6"] .special-textarea {
    resize: none;
}

.wizard-main .input-group input:focus,
.wizard-main .input-group select:focus,
.wizard-main .input-group textarea:focus {
    outline: none;
    border-color: rgba(95, 77, 48, 0.35);
    box-shadow: 0 0 0 4px rgba(172, 150, 106, 0.1);
    background: white;
}

.route-step-stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(95, 77, 48, 0.12);
    color: #493a25;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.route-step-stat--soft {
    background: rgba(246, 240, 229, 0.9);
}

.route-step-hero {
    display: none;
    padding: 20px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(172, 150, 106, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 240, 229, 0.94));
    border: 1px solid rgba(95, 77, 48, 0.12);
    box-shadow: 0 20px 38px rgba(68, 50, 26, 0.1);
}

.route-step-hero-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.route-step-hero-copy h3 {
    margin: 12px 0 0;
    color: #2f2415;
    font-size: 1.3rem;
    line-height: 1.02;
}

.route-step-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(172, 150, 106, 0.12);
    color: #5f4a2d;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.route-step-stops {
    display: grid;
    gap: 10px;
}

.route-step-stop {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.route-step-stop-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #3d301f;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(61, 48, 31, 0.16);
}

.route-step-stop-mark--dest {
    background: #ac966a;
}

.route-step-stop-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.route-step-stop-label {
    color: #7a6a53;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.route-step-stop-copy strong {
    color: #2f2415;
    font-size: 1rem;
    line-height: 1.2;
}

.route-step-stop-copy span:last-child {
    color: #6d624f;
    font-size: 0.86rem;
    line-height: 1.45;
}

.route-step-divider {
    padding-left: 16px;
}

.route-step-divider span {
    display: block;
    width: 2px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(172, 150, 106, 0.2), rgba(61, 48, 31, 0.5));
}

.route-step-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.wizard-container[data-step="2"] #step-2 {
    max-width: 780px;
    margin: 0 auto;
}

.wizard-container[data-step="2"] .route-step-hero {
    display: none;
}

.route-step-shell {
    display: grid;
    gap: 18px;
}

.route-stage-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    max-width: 420px;
    margin: 0 auto;
    padding: 6px;
    border-radius: 20px;
    border: 1px solid rgba(95, 77, 48, 0.1);
    background: rgba(243, 234, 219, 0.88);
}

.route-stage-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 16px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: #6b5b43;
    text-align: center;
    transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.route-stage-tab:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.route-stage-tab.active {
    background: rgba(255, 255, 255, 0.96);
    color: #2f2415;
    box-shadow: 0 10px 22px rgba(68, 50, 26, 0.08);
}

.route-stage-tab-label {
    color: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.route-point {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(95, 77, 48, 0.08);
}

.point-label {
    margin-bottom: 4px;
}

.point-elevator-badge.no-elevator {
    opacity: 1;
    text-decoration: line-through;
    background: rgba(255, 245, 238, 0.94);
    border-color: rgba(156, 74, 28, 0.18);
    color: #9c4a1c;
}

.point-elevator-badge.no-elevator i {
    color: #9c4a1c;
}

.map-wrapper {
    min-height: 270px;
    height: 270px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(95, 77, 48, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.inv-panel,
.inv-panel-body {
    min-height: 0;
}

#step-2,
#step-3,
#step-4,
#step-5,
#step-6,
#step-7 {
    gap: 22px;
}

.access-grid-container {
    display: grid;
    gap: 20px;
}

.access-cards-flex {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 0;
}

.access-cards-flex--single {
    grid-template-columns: minmax(0, 1fr);
}

.access-card {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(95, 77, 48, 0.12);
    box-shadow: var(--wizard-shadow-md);
}

.route-stage-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px;
    background: rgba(255, 255, 255, 0.92);
}

.route-stage-card-head {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.route-stage-card p {
    margin: 0;
    color: #6d624f;
    font-size: 0.95rem;
    line-height: 1.5;
}

.route-stage-address {
    color: #2f2415;
    font-size: clamp(1.18rem, 2vw, 1.5rem);
    line-height: 1.1;
}

.wizard-container[data-step="2"] #step-2 {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wizard-container[data-step="2"] .wizard-main .step-content.active {
    max-width: 1080px;
}

    .wizard-container[data-step="2"] .wizard-body.single-column .wizard-main {
    max-width: 1160px;
}

@media (min-width: 769px) {
    .wizard-container[data-step="2"] .wizard-main {
        display: flex;
        flex-direction: column;
        padding-bottom: var(--wizard-footer-space);
    }

    .wizard-container[data-step="2"] .step-content,
    .wizard-container[data-step="2"] #step-2 {
        overflow: visible;
    }

    .wizard-container[data-step="2"] .step-content.active {
        flex: 1;
    }

    .wizard-container[data-step="2"] #step-2 {
        flex: 1;
    }

    .wizard-container[data-step="2"] .route-step-shell {
        padding-bottom: 28px;
        align-items: stretch;
    }

    .route-summary-card--desktop .route-step-eyebrow,
    .route-summary-card--desktop .route-summary-card-copy p {
        display: none;
    }

    .route-summary-card--desktop .route-summary-card-copy h3 {
        margin-top: 0;
    }

    .route-stage-card-head {
        margin-bottom: 18px;
    }

    .route-stage-card-copy {
        gap: 0;
    }

    .route-step-summary {
        position: static;
        display: flex;
    }

    .route-step-summary>.route-summary-card,
    .route-stage-card {
        height: 100%;
    }
}

.route-step-shell {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.access-grid-container.route-stage-transitioning {
    pointer-events: none;
}

.route-step-summary {
    position: sticky;
    top: 0;
}

.route-summary-card {
    padding: 26px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(172, 150, 106, 0.22), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 240, 229, 0.94));
    border: 1px solid rgba(95, 77, 48, 0.12);
    box-shadow: 0 22px 40px rgba(68, 50, 26, 0.1);
}

.route-summary-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.route-summary-card-copy {
    min-width: 0;
}

.route-summary-card-copy h3 {
    margin: 12px 0 0;
    color: #2f2415;
    font-size: clamp(1.28rem, 2.2vw, 1.6rem);
    line-height: 1.02;
}

.route-summary-card-copy p {
    margin: 10px 0 0;
    color: #6d624f;
    font-size: 0.95rem;
    line-height: 1.55;
}

.route-summary-card-stops {
    display: grid;
    gap: 12px;
}

.route-summary-card--desktop .route-step-stats {
    margin-top: 22px;
}

.route-stage-card {
    max-width: none;
    margin: 0;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 237, 0.94));
    overflow: hidden;
    transform-origin: center center;
}

@keyframes routeStageCardOutForward {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        opacity: 0;
        transform: translate3d(-34px, 0, 0) scale(0.98);
    }
}

@keyframes routeStageCardInForward {
    from {
        opacity: 0;
        transform: translate3d(42px, 0, 0) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes routeStageCardOutBackward {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        opacity: 0;
        transform: translate3d(34px, 0, 0) scale(0.98);
    }
}

@keyframes routeStageCardInBackward {
    from {
        opacity: 0;
        transform: translate3d(-42px, 0, 0) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.route-stage-transitioning--forward .route-stage-panel--leaving {
    animation: routeStageCardOutForward 170ms cubic-bezier(0.4, 0, 1, 1) both;
}

.route-stage-transitioning--forward .route-stage-panel--entering {
    animation: routeStageCardInForward 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.route-stage-transitioning--backward .route-stage-panel--leaving {
    animation: routeStageCardOutBackward 170ms cubic-bezier(0.4, 0, 1, 1) both;
}

.route-stage-transitioning--backward .route-stage-panel--entering {
    animation: routeStageCardInBackward 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {

    .route-stage-transitioning--forward .route-stage-panel--leaving,
    .route-stage-transitioning--forward .route-stage-panel--entering,
    .route-stage-transitioning--backward .route-stage-panel--leaving,
    .route-stage-transitioning--backward .route-stage-panel--entering {
        animation: none !important;
    }
}

.route-stage-card-head {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.route-stage-card-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.route-stage-card .route-stage-address,
.route-stage-card .route-stage-current-meta,
.route-stage-card .route-stage-card-copy p {
    display: none;
}

.route-stage-card p {
    margin: 0;
    color: #766956;
    font-size: 0.9rem;
    line-height: 1.45;
}

.route-stage-current-meta {
    color: #5d4f3a;
    font-size: 0.88rem;
    line-height: 1.45;
}

.route-stage-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.route-stage-elevator {
    grid-column: 1 / -1;
}

.route-stage-card .input-group {
    margin: 0;
}

.route-stage-card .toggle-group {
    border-radius: 16px;
    overflow: hidden;
    border-color: rgba(95, 77, 48, 0.14);
    background: rgba(255, 255, 255, 0.86);
}

.route-stage-card .toggle-btn {
    min-height: 54px;
    font-weight: 600;
}

/* Mobile route sheet display is handled in media queries */

.access-card h4 {
    margin-bottom: 18px;
    padding-bottom: 0;
    border-bottom: none;
    color: #2f2415;
    font-size: 1.42rem;
    line-height: 1.05;
}

#step-3-main {
    overflow: hidden;
    padding-bottom: 8px;
}

.inventory-controls-host {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}

.inventory-list-shell {
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.inventory-list-viewport {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 5px;
}

.inventory-list-viewport::-webkit-scrollbar {
    width: 5px;
}

.inventory-list-viewport::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.inventory-list-viewport::-webkit-scrollbar-thumb {
    background: rgba(172, 150, 106, 0.2);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.inventory-list-viewport::-webkit-scrollbar-thumb:hover {
    background: rgba(172, 150, 106, 0.35);
}

.inv-controls-container {
    margin: 0 0 22px;
    padding: 0 0 18px;
    top: 0;
    background: transparent;
    border-bottom: none;
}

.inv-controls-row {
    gap: 14px;
}

.room-grid {
    min-height: 62px;
    height: auto;
    padding: 8px;
    border-radius: 20px;
    background: rgba(246, 240, 229, 0.88);
    border-color: rgba(95, 77, 48, 0.1);
}

.room-grid-indicator {
    border-radius: 14px;
    background: white;
    box-shadow: 0 10px 26px rgba(68, 50, 26, 0.1);
}

.room-sq-btn {
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 14px;
    opacity: 1;
}

.room-sq-name {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.search-toggle-btn {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(95, 77, 48, 0.1);
}

.search-toggle-btn:hover {
    background: white;
}

.current-room-label {
    margin: 0;
    color: #6d624f;
    font-size: 0.88rem;
}

.tab-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inv-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(95, 77, 48, 0.12);
    border-radius: 20px;
    margin-bottom: 0;
    transition: all 0.2s ease;
    min-height: 84px;
    height: auto;
    box-sizing: border-box;
    width: 100%;
}

.inv-name {
    color: #2f2415;
    font-size: 1rem;
}

.counter {
    margin-left: auto;
    align-self: center;
    border-radius: 14px;
}

.qty {
    width: 40px;
}

.no-results {
    padding: 22px;
    border-radius: 20px;
    border: 1px dashed rgba(95, 77, 48, 0.18);
    background: rgba(255, 255, 255, 0.68);
    color: #6d624f;
    text-align: center;
}

.calendar-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 26px;
    border-radius: 28px;
    border: 1px solid rgba(95, 77, 48, 0.12);
    background: rgba(255, 255, 255, 0.76);
    overflow: visible;
}

.cal-header {
    margin-bottom: 16px;
}

.cal-grid,
.cal-weekdays {
    gap: 8px;
}

.cal-day {
    min-height: 84px;
    padding: 10px 6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(95, 77, 48, 0.08);
}

.cal-day.empty {
    background: transparent;
}

.cal-info-text {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    text-align: left;
    background: rgba(255, 255, 255, 0.84);
    border-style: solid;
}

.plan-cards-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 0;
    align-items: stretch;
    max-width: 100%;
}

#step-5 .plan-step-intro {
    margin-bottom: 20px;
    font-size: 1rem;
    color: rgba(95, 77, 48, 0.85);
}

.plan-card {
    padding: 22px 20px 20px;
    border-radius: 24px;
    border-width: 1px;
    border-color: rgba(95, 77, 48, 0.12);
    box-shadow: var(--wizard-shadow-md);
    min-height: 0;
    /* altura natural para que quepa sin scroll en PC */
}

.plan-card-inner {
    min-height: 100%;
}

.plan-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    margin-bottom: 14px;
    background: rgba(172, 150, 106, 0.14);
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 36px rgba(68, 50, 26, 0.12);
    border-color: rgba(95, 77, 48, 0.2);
}

.plan-card.active {
    background: linear-gradient(180deg, rgba(250, 245, 236, 0.96), white);
    box-shadow: 0 0 0 2px rgba(95, 77, 48, 0.35), 0 24px 40px rgba(68, 50, 26, 0.12);
    border-color: rgba(95, 77, 48, 0.35);
}

/* Evitar que la sombra se corte */
.plan-cards-container {
    margin-bottom: 16px;
}

.plan-card.active .plan-card-icon {
    background: rgba(172, 150, 106, 0.25);
}

/* Hero card (Estándar) scale on desktop */
.plan-card--hero {
    transform: scale(1.02);
    z-index: 1;
}

.plan-card--hero:hover {
    transform: scale(1.02) translateY(-4px);
}

.plan-card--hero.active {
    transform: scale(1.02);
}

.plan-options {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-radio {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(95, 77, 48, 0.12);
    border-radius: 16px;
    background: rgba(248, 244, 237, 0.9);
    min-height: 48px;
}

.plan-radio input {
    margin-top: 3px;
    accent-color: var(--text-primary);
    min-width: 18px;
    min-height: 18px;
}

.contact-lead-block--standalone {
    max-width: 780px;
    margin: 0 auto;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(95, 77, 48, 0.12);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--wizard-shadow-md);
}

.contact-form-grid {
    gap: 18px;
}

.contact-lead-block--standalone .input-group input,
.contact-lead-block--standalone .input-group textarea {
    min-height: 54px;
    padding: 14px 16px;
    border-radius: 16px;
    background: white;
    border-color: rgba(95, 77, 48, 0.12);
    box-shadow: none;
}

.contact-lead-block--standalone .input-group textarea {
    min-height: 140px;
}

.wizard-footer-actions {
    position: absolute;
    bottom: max(18px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2 * var(--wizard-gutter));
    max-width: 420px;
    padding: 10px 12px;
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-radius: 24px;
    border: 1px solid rgba(95, 77, 48, 0.12);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 22px 40px rgba(68, 50, 26, 0.16);
    flex-wrap: nowrap;
    z-index: 10000;
}

.wizard-footer-actions.active {
    display: flex;
}


.wizard-footer-actions .btn {
    min-height: 60px;
    border-radius: 18px;
    letter-spacing: 0.1em;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding: 12px 20px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wizard-footer-actions .btn .btn-label-mobile {
    display: none;
}

.wizard-footer-actions .btn-secondary {
    background: #f3eadb;
    border-color: transparent;
    color: #493a25;
}

@media (hover: hover) {
    .wizard-footer-actions .btn-secondary:hover:not(:disabled) {
        background: #ebdeca;
        border-color: transparent;
        color: #2f2415;
    }
}

#wizard-footer.wizard-footer-actions--route.active {
    display: grid;
    grid-template-columns: 1fr 78px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 24px;
}

#wizard-footer.wizard-footer-actions--route .btn-secondary {
    order: 1;
}

#wizard-footer.wizard-footer-actions--route .route-sheet-toggle {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    width: 60px;
    max-width: 60px;
    min-width: 60px;
    height: 60px;
    min-height: 60px;
    padding: 0;
    margin: 0 auto;
    border: 1px solid rgba(95, 77, 48, 0.12);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 236, 223, 0.96));
    color: #3d301f;
    box-shadow: 0 16px 28px rgba(68, 50, 26, 0.12);
    flex-shrink: 0;
}

#wizard-footer.wizard-footer-actions--route .route-sheet-toggle.active {
    background:
        linear-gradient(180deg, rgba(61, 48, 31, 0.98), rgba(95, 74, 45, 0.96));
    color: white;
}

#wizard-footer.wizard-footer-actions--route .route-sheet-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wizard-footer.wizard-footer-actions--route .route-sheet-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Toggle between truck and close icons */
#wizard-footer.wizard-footer-actions--route .route-sheet-toggle .close-icon {
    display: none !important;
}

#wizard-footer.wizard-footer-actions--route .route-sheet-toggle.active .truck-icon {
    display: none !important;
}

#wizard-footer.wizard-footer-actions--route .route-sheet-toggle.active .close-icon {
    display: inline-flex !important;
}

/* Global Route Sheet Badge Styling */
.route-sheet-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #d9534f;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.8) translate(25%, -25%);
    transition: opacity 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    pointer-events: none;
}

.route-sheet-badge.visible {
    opacity: 1;
    transform: scale(1) translate(25%, -25%);
}

#wizard-footer.wizard-footer-actions--route .route-sheet-toggle-label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#wizard-footer.wizard-footer-actions--route .btn-primary {
    order: 3;
}

#wizard-footer.wizard-footer-actions--route .btn {
    min-height: 60px;
    padding: 0;
}

#wizard-footer.wizard-footer-actions--route .btn .btn-label-mobile {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wizard-footer-actions .btn-secondary:active:not(:disabled) {
    background: #e4d5c1;
    transform: scale(0.97);
    transition: transform 0.08s ease;
}

.wizard-footer-actions .btn-primary {
    background: #3d301f;
    border-color: #3d301f;
}

@media (hover: hover) {
    .wizard-footer-actions .btn-primary:hover:not(:disabled) {
        background: #56422b;
        border-color: #56422b;
        color: white;
    }
}

.wizard-footer-actions .btn-primary:active:not(:disabled) {
    background: #56422b;
    transform: scale(0.97);
    transition: transform 0.08s ease;
}

.budget-layout {
    max-width: 1180px;
    margin: auto;
}

/* Pantalla estrecha O baja: diseño tablet/móvil para que las tarjetas no queden bajo el footer */
@media (max-width: 1120px),
(max-height: 850px) {
    .wizard-container {
        width: 100vw;
        height: 100vh;
        margin: 0;
        border: none;
        border-radius: 0;
    }

    .wizard-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .wizard-main {
        padding: 22px 24px calc(var(--wizard-footer-space) + 18px);
    }

    .wizard-map-shell {
        padding: 0 24px calc(var(--wizard-footer-space) + 18px);
        border-left: none;
    }

    .wizard-top-bar {
        padding-right: 74px;
        overflow: visible;
    }

    .wizard-header,
    .wizard-header>div {
        overflow: visible;
    }
}

/* Optimización para portátiles de 13" (pantallas con poca altura) */
@media (min-width: 769px) and (max-width: 1500px) and (max-height: 850px) {
    .wizard-container.budget-mode {
        --wizard-footer-space: 96px;
    }

    .wizard-top-bar {
        padding: 14px 32px 10px !important;
        gap: 14px 18px !important;
    }

    .wizard-header {
        min-width: 0 !important;
        flex: 1 !important;
    }

    .wizard-header > div {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        align-items: flex-start !important;
        column-gap: 14px !important;
        row-gap: 4px !important;
        max-width: none !important;
        width: 100% !important;
    }

    .wizard-kicker {
        margin-bottom: 0 !important;
        margin-top: 2px !important;
        flex-shrink: 0 !important;
        padding: 6px 12px !important;
    }

    .wizard-heading-row {
        flex: none !important;
    }

    .wizard-title {
        font-size: 1.22rem !important;
        margin-bottom: 2px !important;
        line-height: 1.2 !important;
    }

    .wizard-subtitle {
        font-size: 0.82rem !important;
        line-height: 1.28 !important;
        margin-top: 2px !important;
    }

    .wizard-main {
        padding-top: 8px !important;
    }

    .inv-controls-container {
        margin-top: 0 !important;
        margin-bottom: 12px !important;
        padding: 4px 0 !important;
    }

    .room-sq-btn {
        padding: 0 10px !important;
        height: 40px !important;
    }

    .room-sq-icon svg {
        width: 16px !important;
        height: 16px !important;
    }

    .current-room-label {
        margin-bottom: 12px !important;
    }

    .inv-item {
        min-height: 64px !important;
        padding: 10px 16px !important;
    }

    .wizard-container[data-step="3"] {
        --wizard-footer-space: 82px !important;
    }

    .wizard-container[data-step="3"] .wizard-main {
        padding-bottom: 96px !important; /* footer space + consistent gap */
    }

    .wizard-container[data-step="3"] #step-3-main {
        padding-bottom: 12px !important;
    }

    .wizard-container.budget-mode .wizard-main {
        justify-content: flex-start !important;
        align-items: center !important;
        overflow: hidden !important;
        padding-top: 0 !important;
        padding-bottom: calc(var(--wizard-footer-space) + 8px) !important;
    }

    .wizard-container.budget-mode #step-7.step-content.active {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
        min-height: auto !important;
        align-items: center !important;
        justify-content: flex-start !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 10px 18px 14px !important;
    }

    .budget-layout {
        max-width: 1120px;
        gap: 12px;
        padding-top: 0;
        padding-bottom: 0;
        justify-content: flex-start;
        margin: auto;
    }

    .budget-hero {
        padding: 20px 24px 14px;
    }

    .budget-amount {
        font-size: clamp(2.35rem, 3.2vw, 3.2rem);
    }

    .budget-bottom {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.92fr);
        gap: 12px;
        align-items: start;
    }

    .budget-left-column,
    .budget-right-column {
        gap: 12px;
    }

    .budget-card {
        padding: 18px 20px;
        gap: 12px;
    }

    .budget-summary-row {
        padding: 10px 12px;
    }

    .budget-card--inventory {
        max-height: min(34vh, 290px);
    }

    /* Optimización extra para el popup de escaleras */
    .stairs-popup-header {
        padding: 14px 24px !important;
    }

    .stairs-popup-title {
        font-size: 1.15rem !important;
        margin-bottom: 2px !important;
    }

    .stairs-popup-desc {
        font-size: 0.82rem !important;
    }

    .stair-item-check {
        min-height: 64px !important;
        padding: 10px 16px !important;
    }
}

@media (min-width: 769px) and (max-width: 1500px) and (max-height: 920px) {
    .wizard-container.budget-mode {
        --wizard-footer-space: 88px;
    }

    .wizard-container.budget-mode .wizard-main {
        padding-top: 0 !important;
        padding-bottom: calc(var(--wizard-footer-space) + 16px) !important;
        overflow: hidden !important;
    }

    .wizard-container.budget-mode #step-7.step-content.active {
        justify-content: flex-start !important;
        padding: 12px 18px 36px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .wizard-container.budget-mode .budget-layout {
        width: min(100%, 760px);
        gap: 12px;
        padding: 0;
        justify-content: flex-start;
        margin: 0 auto;
    }

    .wizard-container.budget-mode .budget-bottom {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .wizard-container.budget-mode .budget-left-column,
    .wizard-container.budget-mode .budget-right-column {
        gap: 12px;
        width: 100%;
    }

    .wizard-container.budget-mode .budget-hero {
        padding: 16px 20px 12px;
        border-radius: 24px;
    }

    .wizard-container.budget-mode .budget-eyebrow {
        padding: 6px 12px;
        font-size: 0.66rem;
    }

    .wizard-container.budget-mode .budget-amount {
        font-size: clamp(2.1rem, 2.8vw, 2.9rem);
    }

    .wizard-container.budget-mode .budget-footnote {
        font-size: 0.76rem;
        line-height: 1.28;
        margin-top: 8px;
    }

    .wizard-container.budget-mode .budget-card {
        padding: 16px 18px;
        gap: 10px;
        border-radius: 20px;
    }

    .wizard-container.budget-mode .budget-card-head {
        gap: 10px;
    }

    .wizard-container.budget-mode .budget-card-title {
        padding-bottom: 10px;
    }

    .wizard-container.budget-mode .budget-summary-list {
        gap: 6px;
    }

    .wizard-container.budget-mode .budget-summary-row {
        padding: 8px 10px;
        gap: 12px;
        border-radius: 14px;
    }

    .wizard-container.budget-mode .budget-summary-row--stacked {
        gap: 10px;
    }

    .wizard-container.budget-mode .budget-summary-icon {
        width: 24px;
        height: 24px;
    }

    .wizard-container.budget-mode .budget-summary-value,
    .wizard-container.budget-mode .budget-route-stop {
        font-size: 0.82rem;
    }

    .wizard-container.budget-mode .budget-card--inventory {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .wizard-container.budget-mode .budget-inv-list {
        gap: 10px;
        overflow: visible;
        padding-right: 0;
    }

    .wizard-container.budget-mode .binv-room {
        padding: 13px 14px;
        gap: 9px;
    }

    .wizard-container.budget-mode .binv-room-header {
        padding-bottom: 8px;
    }

    .wizard-container.budget-mode .binv-room-items {
        gap: 0;
    }

    .wizard-container.budget-mode .binv-room-count {
        min-height: 22px;
        padding: 0 8px;
        font-size: 0.6rem;
    }

    .wizard-container.budget-mode .binv-room-line-qty {
        min-width: 30px;
        min-height: 24px;
        font-size: 0.68rem;
        padding: 0 6px;
    }

    .wizard-container.budget-mode .binv-room-line-name {
        font-size: 0.84rem;
    }

    .wizard-container.budget-mode .binv-room-line-dim {
        font-size: 0.73rem;
    }
}

/* Tablet o altura baja: extra espacio para que la última tarjeta no quede bajo el footer */
@media (min-width: 769px) and (max-width: 1120px),
(min-width: 769px) and (max-height: 760px) {
    .wizard-container[data-step="5"] .wizard-main {
        padding-bottom: 280px;
    }

    .wizard-container[data-step="5"] .plan-cards-container::after {
        content: '';
        display: block;
        height: 120px;
        flex-shrink: 0;
    }
}

@media (max-width: 1024px) {
    .wizard-overlay {
        min-height: 100dvh;
        min-height: -webkit-fill-available;
        height: 100dvh;
        height: -webkit-fill-available;
        align-items: stretch;
        justify-content: stretch;
        overflow: hidden;
        /* Ensure full coverage so the home page is never visible below */
        bottom: 0;
        top: 0;
        left: 0;
        right: 0;
    }

    .wizard-container {
        --wizard-footer-space: 104px;
        background:
            radial-gradient(circle at top left, rgba(172, 150, 106, 0.16), transparent 28%),
            linear-gradient(180deg, #fbf7f0 0%, #f2e8d9 100%);
        min-height: 100dvh;
        min-height: -webkit-fill-available;
        height: 100dvh;
        height: -webkit-fill-available;
        overflow: hidden;
        flex: 1;
        width: 100%;
    }

    .wizard-body {
        min-height: 0;
        overflow: hidden;
    }

    .wizard-main {
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    /* Step 4: no scroll — calendar fits in viewport */
    .wizard-container[data-step="4"] .wizard-main {
        overflow: hidden;
    }

    /* Step 5: allow horizontal swipe on plan carousel (override pan-y) */
    .wizard-container[data-step="5"] .wizard-main {
        touch-action: manipulation;
    }

    .wizard-container[data-step="4"] #step-4 .calendar-wrapper {
        padding: 12px 14px;
    }

    .wizard-container[data-step="4"] #step-4 .cal-info-text {
        margin-top: 8px;
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .wizard-top-bar {
        grid-template-columns: 1fr;
        gap: 8px 0;
        padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
        padding-right: 56px;
        position: sticky;
        top: 0;
        z-index: 24;
        background: rgba(252, 250, 246, 0.97);
        border-bottom: 1px solid rgba(95, 77, 48, 0.06);
        box-shadow: 0 2px 12px rgba(68, 50, 26, 0.04);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .wizard-header {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .wizard-header>div {
        max-width: none;
        padding-right: 0;
        gap: 6px;
    }

    .wizard-kicker {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 4px;
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: none;
        color: #7a6b52;
        font-size: 0.7rem;
        font-weight: 500;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .wizard-kicker-dot {
        width: 5px;
        height: 5px;
        border-radius: 999px;
        background: #ac966a;
        box-shadow: none;
    }

    .wizard-heading-row {
        display: block;
    }

    .wizard-heading-copy {
        gap: 2px;
    }

    .wizard-title {
        max-width: none;
        margin: 0;
        font-size: clamp(1.2rem, 5.5vw, 1.5rem);
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }

    .wizard-subtitle {
        margin-top: 2px;
        max-width: 28ch;
        color: #7a6f5e;
        font-size: 0.8rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .wizard-mobile-progress {
        margin-bottom: 4px;
        margin-left: -4px;
    }

    .wizard-close-btn {
        position: absolute;
        top: 14px;
        transform: none;
        right: 18px;
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        padding: 0;
        border-radius: 12px;
        border: 1px solid rgba(95, 77, 48, 0.08);
        background: rgba(255, 255, 255, 0.92);
        color: #5d4f3a;
        box-shadow: 0 4px 12px rgba(0,0,0,0.04);
        z-index: 30;
    }

    .wizard-header {
        padding-right: 0;
    }

    .wizard-top-bar {
        padding-right: 72px !important;
        align-items: flex-start;
    }

    .wizard-close-btn svg {
        width: 18px;
        height: 18px;
    }

    .wizard-main {
        padding: 18px 20px calc(var(--wizard-footer-space) + 18px);
    }

    .wizard-container[data-step="2"] .wizard-main {
        display: flex;
        flex-direction: column;
    }

    .wizard-container[data-step="2"] .step-content.active {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .wizard-container[data-step="2"] #step-2 {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .wizard-container[data-step="2"] .route-step-hero .route-step-hero-copy h3,
    .wizard-container[data-step="2"] .route-step-stop-label {
        display: none;
    }

    .wizard-container[data-step="2"] .access-card.route-stage-card .route-stage-card-copy h4 {
        display: none;
    }

    .wizard-map-shell {
        padding: 0;
    }

    .access-cards-flex,
    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .inv-controls-row {
        flex-direction: column;
        align-items: stretch;
    }

    .room-grid,
    .inv-search-bar {
        width: 100%;
    }

    .search-toggle-btn {
        width: 100%;
        height: 54px;
    }

    .route-step-stats {
        width: 100%;
    }

    .route-step-stat {
        flex: 1 1 0;
        min-width: 0;
        white-space: normal;
    }

    .route-stage-tabs {
        grid-template-columns: 1fr;
        max-width: none;
        width: 100%;
    }

    .route-stage-tab {
        padding: 14px 16px;
        border-radius: 18px;
    }

    .wizard-container[data-step="2"] .access-grid-container {
        gap: 18px;
    }

    .wizard-container[data-step="2"] .route-step-shell {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .wizard-container[data-step="2"] .route-step-summary {
        display: none;
    }

    .wizard-container[data-step="2"] .access-card {
        padding: 20px 18px;
        border-radius: 26px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 16px 32px rgba(68, 50, 26, 0.08);
    }

    .wizard-container[data-step="2"] .route-stage-card {
        padding: 22px 18px;
    }

    .wizard-container[data-step="2"] .route-stage-card-head {
        gap: 14px;
    }

    .wizard-container[data-step="2"] .route-stage-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wizard-container[data-step="2"] .route-stage-elevator {
        grid-column: auto;
    }

    .wizard-container[data-step="2"] .access-card h4 {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }

    .wizard-container[data-step="2"] .toggle-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wizard-container[data-step="2"] .toggle-btn {
        min-height: 52px;
    }

    .calendar-wrapper {
        padding: 18px 14px;
        border-radius: 22px;
    }

    .cal-grid,
    .cal-weekdays {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 4px;
    }

    .cal-day {
        min-height: 60px;
        padding: 8px 2px;
        border-radius: 14px;
    }

    .c-date {
        font-size: 0.92rem;
    }

    .c-lbl {
        display: none !important;
    }

    .c-lbl--bg {
        display: flex !important;
    }

    .contact-lead-block--standalone {
        padding: 22px;
        border-radius: 22px;
    }

    .wizard-footer-actions {
        left: 50%;
        bottom: max(12px, env(safe-area-inset-bottom));
        width: calc(100% - 24px);
    }

    .btn-label-desktop {
        display: none !important;
    }

    .wizard-footer-actions .btn .btn-label-mobile,
    .btn-label-mobile {
        display: block !important;
    }
}

/* =========================================
   ROUTE POPUP (GLOBAL/DESKTOP BASE)
   ========================================= */
.mobile-route-sheet-backdrop,
.mobile-route-sheet {
    display: block;
}

.mobile-route-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(37, 27, 14, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
}

.mobile-route-sheet-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-route-sheet {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translate(-50%, -45%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
    overflow-y: auto;
    z-index: 10011;
    padding: 24px;
}

.mobile-route-sheet.active {
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: auto;
}

.mobile-route-sheet-handle {
    display: none;
}

.mobile-route-sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.mobile-route-sheet-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(172, 150, 106, 0.14);
    color: #5f4a2d;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mobile-route-sheet-header-copy h3 {
    margin: 10px 0 0;
    color: #2f2415;
    font-size: 1.2rem;
    line-height: 1.05;
}

.mobile-route-sheet-close {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(95, 77, 48, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    color: #3d301f;
    cursor: pointer;
}

.mobile-route-sheet-body {
    display: grid;
}

.mobile-route-sheet .route-summary-card {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.mobile-route-sheet .route-summary-card-head {
    margin-bottom: 18px;
}

.mobile-route-sheet .route-summary-card-copy p {
    font-size: 0.9rem;
}

.mobile-inventory-section {
    margin-top: 24px;
    padding: 0 2px;
}

.mobile-inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(47, 36, 21, 0.1);
}

.mobile-inventory-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #667085;
    background: rgba(47, 36, 21, 0.05);
    padding: 4px 8px;
    border-radius: 12px;
}

.mobile-inventory-room {
    margin-bottom: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(47, 36, 21, 0.08);
    overflow: hidden;
}

.mobile-inventory-room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(47, 36, 21, 0.02);
    border-bottom: 1px solid rgba(47, 36, 21, 0.06);
}

.mobile-inventory-room-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2f2415;
}

.mobile-inventory-room-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: #667085;
}

.mobile-inventory-items {
    padding: 8px;
}

.mobile-inventory-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 4px;
    background: white;
    border: 1px solid rgba(47, 36, 21, 0.06);
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-inventory-item:hover {
    border-color: rgba(47, 36, 21, 0.12);
    background: rgba(47, 36, 21, 0.01);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(47, 36, 21, 0.08);
}

.mobile-inventory-item:last-child {
    margin-bottom: 0;
}

.mobile-inventory-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(47, 36, 21, 0.06);
    border-radius: 6px;
    color: #3d301f;
    margin-right: 12px;
    flex-shrink: 0;
}

.mobile-inventory-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 2px;
}

.mobile-inventory-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2f2415;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.mobile-inventory-item-details {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.mobile-inventory-item-qty {
    font-size: 0.75rem;
    font-weight: 600;
    color: #667085;
    background: rgba(47, 36, 21, 0.05);
    padding: 2px 6px;
    border-radius: 8px;
    flex-shrink: 0;
}

.mobile-inventory-item-size {
    font-size: 0.72rem;
    font-weight: 500;
    color: #8c7d63;
    background: rgba(172, 150, 106, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    max-width: 120px;
}

.mobile-inventory-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    flex-shrink: 0;
}

.mobile-inventory-delete, .mobile-inventory-edit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #667085;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-inventory-delete:hover {
    background: rgba(217, 83, 79, 0.1);
    color: #d9534f;
}

.mobile-inventory-edit:hover {
    background: rgba(172, 150, 106, 0.1);
    color: var(--text-primary);
}

.mobile-inventory-delete:active, .mobile-inventory-edit:active {
    transform: scale(0.92);
}

/* Re-open media query for mobile overrides */
@media (max-width: 1024px) {
    .mobile-route-sheet {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        border-radius: 32px 32px 0 0;
        box-shadow: 0 -8px 32px rgba(47, 36, 21, 0.12);
        transform: translateY(100%);
        padding: 0 20px env(safe-area-inset-bottom, 20px);
        opacity: 0;
        max-height: 70vh;
        z-index: 10011;
    }

    .mobile-route-sheet.active {
        transform: translateY(0);
        opacity: 1;
    }

    .mobile-route-sheet-backdrop {
        position: fixed;
        background: rgba(37, 27, 14, 0.24);
    }

    .mobile-route-sheet-handle {
        display: block;
        width: 44px;
        height: 5px;
        margin: 16px auto 20px;
        border-radius: 999px;
        background: rgba(47, 36, 21, 0.15);
        cursor: grab;
        transition: background 0.2s ease, transform 0.2s ease;
        touch-action: pan-y;
    }

    .mobile-route-sheet-handle:hover {
        background: rgba(47, 36, 21, 0.35);
    }

    .mobile-route-sheet-handle:active {
        cursor: grabbing;
        transform: scaleY(1.2);
    }

    .mobile-route-sheet.dragging {
        transition: none;
    }

    .mobile-route-sheet.dragging .mobile-route-sheet-handle {
        background: rgba(47, 36, 21, 0.4);
    }

    .mobile-route-sheet.dragging .mobile-route-sheet-handle {
        background: rgba(47, 36, 21, 0.4);
    }

    .wizard-header>div {
        gap: 4px;
    }

    .wizard-kicker {
        margin-bottom: 2px;
        font-size: 0.65rem;
    }

    .wizard-mobile-progress {
        margin-bottom: 4px;
        margin-left: 0;
    }

    .wizard-main,
    .wizard-map-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .wizard-title {
        font-size: clamp(1.1rem, 6vw, 1.35rem);
    }

    .wizard-subtitle {
        font-size: 0.78rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .wizard-close-btn {
        top: calc(8px + env(safe-area-inset-top));
        right: 10px;
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        border-radius: 8px;
    }

    .wizard-close-btn svg {
        width: 16px;
        height: 16px;
    }

    #wizard-footer.wizard-footer-actions--route {
        grid-template-columns: minmax(78px, 1fr) 60px minmax(92px, 1fr);
        gap: 8px;
        padding: 10px;
    }

    #wizard-footer.wizard-footer-actions--route .route-sheet-toggle {
        width: 60px;
        max-width: 60px;
        min-width: 60px;
        height: 60px;
        min-height: 60px;
        border-radius: 20px;
    }

    .mobile-route-sheet {
        padding-left: 14px;
        padding-right: 14px;
    }

    .route-step-hero {
        padding: 18px 16px;
        border-radius: 24px;
    }

    .route-step-hero-head {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-content {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .inv-item {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 16px 20px;
    }

    .counter {
        margin-left: 0;
        align-self: flex-end;
    }
}

.inv-mobile-shell {
    display: grid;
    gap: 10px;
}



.current-room-label {
    display: none !important;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.current-room-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(172, 150, 106, 0.14);
    color: #6a5737;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.current-room-text {
    color: #2f2415;
    font-weight: 600;
}

.current-room-total {
    margin-left: auto;
    color: #75664f;
    font-size: 0.82rem;
}

.current-room-label.searching .current-room-chip {
    background: rgba(95, 77, 48, 0.12);
}

.inv-helper {
    color: #8a7a62;
    font-size: 0.76rem;
    line-height: 1.2;
    min-height: 0.95rem;
}

.cnt-btn.cnt-minus {
    color: #7a6a54;
}

.counter {
    margin-left: auto;
    align-self: center;
    min-width: 112px;
    padding: 4px;
    border: none;
    border-radius: 18px;
    background: rgba(239, 233, 223, 0.96);
    box-shadow: inset 0 0 0 1px rgba(95, 77, 48, 0.08);
}

.cnt-btn {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: none;
}

@media (hover: hover) {
    .cnt-btn.cnt-minus:hover {
        background: rgba(255, 255, 255, 1);
        color: #2f2415;
    }
}

.cnt-btn.cnt-plus {
    background: #2f2415;
    color: #f8f3ea;
}

@media (hover: hover) {
    .cnt-btn.cnt-plus:hover {
        background: #43311d;
    }
}

.qty {
    width: auto;
    min-width: 28px;
    font-size: 1rem;
    line-height: 36px;
}

@media (max-width: 1024px) {
    .wizard-container[data-step="3"] .wizard-top-bar {
        gap: 6px;
        padding-bottom: 8px !important;
    }

    .wizard-container[data-step="3"] .wizard-kicker {
        margin-bottom: 2px;
    }

    .wizard-container[data-step="3"] .wizard-title {
        margin-bottom: 0;
    }

    .wizard-container[data-step="3"] .wizard-subtitle {
        margin-bottom: 0;
        line-height: 1.32;
    }

    .wizard-container[data-step="3"] .wizard-body {
        margin-top: 0 !important;
    }

    .wizard-container[data-step="3"] #step-3 {
        gap: 0;
        margin-top: 0;
        padding-top: 0;
        height: 100%;
    }

    .wizard-container[data-step="3"] .wizard-main {
        padding-top: 10px !important;
        padding-bottom: calc(var(--wizard-footer-space) + 5px) !important;
    }

    .wizard-container[data-step="3"] .step-content.active {
        margin-top: 0;
    }

    .wizard-container[data-step="3"] #step-3-main {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1 1 auto;
        height: 100%;
        margin-top: 0;
        padding-top: 10px;
        padding-bottom: 5px;
        transform: none;
        overflow: hidden;
        min-height: 0;
    }

    .inventory-controls-host {
        padding-top: 14px;
    }

    .wizard-container[data-step="3"] #step-3-main::after {
        content: none;
    }

    #step-3-main>.tabs-header {
        display: none;
        margin: 0;
        border: 0;
        padding: 0;
        min-height: 0;
        height: 0;
        overflow: hidden;
    }

    .inv-controls-container {
        margin: -10px 0 10px;
        padding: 0 0 14px;
        position: sticky;
        top: calc(72px + env(safe-area-inset-top));
        z-index: 30;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .wizard-container[data-step="3"] #step-3-main>.inv-controls-container {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .wizard-container[data-step="3"] #step-3-main>.inv-controls-container::before {
        content: none;
    }

    .inv-controls-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .inv-search-bar {
        display: none;
    }

    .room-grid {
        display: grid;
        min-height: auto;
        height: auto;
        padding: 0;
        overflow: visible;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    #room-grid-container.room-grid {
        margin-top: 0;
    }

    .room-grid.search-open {
        gap: 10px;
    }

    .room-grid {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: auto;
        height: auto;
        padding: 4px 2px 2px;
        overflow-x: auto;
        overflow-y: hidden;
        border: none;
        background: transparent;
        box-shadow: none;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, black 18px, black calc(100% - 18px), transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, black 18px, black calc(100% - 18px), transparent 100%);
    }

    .room-grid::-webkit-scrollbar {
        display: none;
    }

    .room-grid-indicator {
        display: none;
    }

    .room-sq-btn {
        flex: 0 0 auto;
        min-width: max-content;
        min-height: 46px;
        padding: 0 14px;
        border-radius: 16px;
        border: 1px solid rgba(95, 77, 48, 0.12);
        background: rgba(255, 255, 255, 0.82);
        color: #6e604b;
        scroll-snap-align: start;
        gap: 8px;
        opacity: 1;
        box-shadow: none;
    }

    .room-sq-btn.active {
        background: #2f2415;
        border-color: #2f2415;
        color: #f8f3ea;
        box-shadow: none;
    }

    .room-sq-btn::after {
        display: none;
    }

    .room-sq-name {
        width: auto;
        max-width: none;
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    .inv-search-inner {
        position: relative;
        display: flex;
        min-height: 54px;
        padding: 0;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(95, 77, 48, 0.12);
        box-shadow: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        right: auto;
    }

    .search-toggle-btn {
        box-shadow: none;
    }

    .search-toggle-btn:hover {
        box-shadow: none;
    }

    .inv-search-inner input {
        font-size: 0.96rem;
    }

    .inv-search-inner .search-clear {
        right: 12px;
        width: 28px;
        height: 28px;
        border-radius: 999px;
        background: rgba(172, 150, 106, 0.12);
        color: #6a5737;
    }

    .current-room-label {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 10px;
        padding: 0 2px;
        margin-top: 8px;
    }

    .tab-content {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .inv-item {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-height: 84px;
        padding: 14px 16px;
        gap: 12px;
        border-radius: 20px;
        border: 1px solid rgba(95, 77, 48, 0.12);
        background: rgba(255, 255, 255, 0.9);
        box-shadow: none;
    }

    .inv-item:active {
        transform: scale(0.98);
        background: rgba(47, 36, 21, 0.03);
        transition: transform 0.1s ease;
    }

    .inv-item.has-items {
        border-color: rgba(106, 87, 55, 0.34);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 235, 216, 0.96));
        box-shadow: none;
    }

    .inv-info {
        min-width: 0;
        flex: 1 1 auto;
        gap: 6px;
    }

    .inv-name {
        font-size: 0.98rem;
        line-height: 1.15;
    }

    .dim-display {
        margin-top: 0;
    }

    .inv-dim-tag {
        max-width: 120px;
    }

    .no-results {
        padding: 20px 16px;
        border-radius: 22px;
        border-style: solid;
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 14px 28px rgba(68, 50, 26, 0.05);
    }
}

@media (max-width: 480px) {
    .wizard-container {
        --wizard-footer-space: 96px;
        min-height: 100dvh;
        height: 100dvh;
    }

    .wizard-container[data-step="3"] .wizard-body {
        margin-top: 0 !important;
    }

    .wizard-container[data-step="3"] #step-3-main {
        padding-bottom: 5px;
        padding-top: 12px;
        transform: none;
    }

    .inventory-list-viewport {
        height: 100%;
        padding-bottom: 5px;
    }

    .inventory-controls-host {
        padding-top: 16px;
    }

    .wizard-footer-actions {
        grid-template-columns: minmax(78px, 1fr) minmax(92px, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .inv-controls-container {
        top: calc(64px + env(safe-area-inset-top));
    }

    #room-grid-container.room-grid {
        margin-top: 0;
    }

    .wizard-container[data-step="3"] #step-3-main>.inv-controls-container {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .current-room-label {
        grid-template-columns: 1fr auto;
    }

    .current-room-chip {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .current-room-total {
        margin-left: 0;
    }

    .inv-item {
        padding: 14px;
    }

    .counter {
        min-width: 104px;
    }
}

/* ===========================
   STEP 5 — MOBILE RESPONSIVE (CAROUSEL) — LEGACY COMPAT
=========================== */

@media (max-width: 767px) {
    .wizard-container[data-step="5"] .wizard-main {
        overflow-y: auto;
        overflow-x: visible;
        /* Changed from hidden to allow horizontal swipe on children */
        -webkit-overflow-scrolling: touch;
    }

    .wizard-container[data-step="5"] #step-5.step-content.active {
        flex: 0 1 auto;
        touch-action: pan-x pan-y;
    }

    .wizard-container[data-step="5"] .plan-card-inner {
        height: auto;
        min-height: unset;
        width: 100%;
        overflow: visible;
    }
}

/* ===========================
   PLAN STEP REFINEMENT
=========================== */
.plan-cards-container {
    width: min(1320px, 100%);
    margin: 6px auto 16px;
    gap: clamp(20px, 2.5vw, 32px);
    align-items: stretch;
}

/* En paso 5: margen para que las sombras de las tarjetas no se corten */
.wizard-container[data-step="5"] .plan-cards-container {
    margin: 8px 12px 24px;
    padding-bottom: 10px;
}

/* Paso 5 en PC: más espacio respecto al footer */
@media (min-width: 768px) {
    .wizard-container[data-step="5"] .plan-cards-container {
        margin-bottom: 48px;
    }
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px 26px 24px;
    border-radius: 24px;
    border: 1px solid rgba(88, 69, 42, 0.14);
    box-shadow: none;
    overflow: visible;
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        background 0.28s ease;
}

.plan-card::before {
    display: none;
    border-radius: 24px 24px 0 0;
    z-index: 2;
}

.plan-card-inner,
.plan-card-front,
.plan-card-back {
    position: relative;
    z-index: 1;
}

.plan-card-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    min-width: 0;
    overflow: visible;
}

.plan-card-front,
.plan-card-back {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible;
}

.plan-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.plan-head .plan-card-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.plan-head-copy {
    min-width: 0;
}

.plan-description,
.plan-fit {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.plan-head-copy .plan-title {
    margin: 0 0 2px;
}

.plan-head-copy .plan-subtitle {
    margin: 0;
}

.plan-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 14px;
}

.plan-title {
    margin: 0 0 4px;
    font-size: clamp(1.4rem, 1.8vw, 1.75rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.plan-subtitle {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.plan-description {
    margin: 0 0 16px;
    max-width: 100%;
    color: rgba(95, 77, 48, 0.84);
    font-size: 0.95rem;
    line-height: 1.55;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.plan-features {
    gap: 0;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(95, 77, 48, 0.1);
    min-width: 0;
}

.plan-features li {
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(95, 77, 48, 0.06);
    font-size: 0.93rem;
    line-height: 1.4;
}

.plan-features li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.plan-features li svg {
    flex-shrink: 0;
    min-width: 14px;
}

.plan-features li span {
    display: block;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.plan-fit {
    margin: auto 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(95, 77, 48, 0.1);
    color: rgba(95, 77, 48, 0.86);
    font-size: 0.9rem;
    line-height: 1.5;
}

.plan-fit strong {
    color: var(--text-primary);
    font-weight: 600;
}

.plan-badge {
    top: 16px;
    right: 16px;
    left: auto;
    transform: none;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.plan-card.active {
    transform: translateY(-2px);
    border-color: rgba(71, 55, 30, 0.34);
    box-shadow: 0 0 0 1px rgba(71, 55, 30, 0.2);
}

.plan-card.active::before {
    height: 5px;
}

.plan-card--hero {
    transform: none;
    box-shadow: none;
}

.plan-card--hero:hover,
.plan-card--hero.active {
    transform: translateY(-5px);
}

.wizard-container[data-step="5"] .plan-card,
.wizard-container[data-step="5"] .plan-card:hover,
.wizard-container[data-step="5"] .plan-card.active,
.wizard-container[data-step="5"] .plan-card--hero,
.wizard-container[data-step="5"] .plan-card--hero:hover,
.wizard-container[data-step="5"] .plan-card--hero.active,
.wizard-container[data-step="5"] .plan-card.is-dimmed {
    transform: none;
}

.wizard-container[data-step="5"] .plan-card.is-dimmed {
    opacity: 0.78;
    filter: none;
}

#plan-esencial {
    background: linear-gradient(180deg, #f7f2eb 0%, #fdfaf6 100%);
    border-color: rgba(141, 122, 89, 0.16);
}

#plan-esencial .plan-card-icon {
    background: linear-gradient(135deg, rgba(191, 174, 146, 0.28), rgba(233, 224, 209, 0.65));
    color: #7a6a54;
}

#plan-esencial .plan-subtitle {
    color: #87765d;
}

#plan-estandar {
    background: linear-gradient(180deg, #f8efdf 0%, #fffaf1 100%);
    border-color: rgba(154, 125, 73, 0.18);
}

#plan-estandar .plan-card-icon {
    background: linear-gradient(135deg, rgba(189, 155, 94, 0.32), rgba(238, 221, 185, 0.72));
    color: #6d5731;
}

#plan-estandar .plan-subtitle {
    color: #82653a;
}

#plan-estandar .plan-badge {
    background: linear-gradient(135deg, #8b7355 0%, #6b5a3e 100%);
    box-shadow: 0 8px 16px rgba(107, 90, 62, 0.2);
}

#plan-premium {
    background: linear-gradient(180deg, #f3ede5 0%, #fbf8f3 100%);
    border-color: rgba(91, 73, 49, 0.16);
}

#plan-premium .plan-card-icon {
    background: linear-gradient(135deg, rgba(113, 91, 60, 0.24), rgba(229, 219, 204, 0.72));
    color: #58452e;
}

#plan-premium .plan-subtitle {
    color: #6d5940;
}

.plan-variant-question {
    margin: 0 0 16px;
    max-width: 34ch;
    color: rgba(95, 77, 48, 0.82);
    font-size: 0.95rem;
    line-height: 1.5;
}

.plan-variant-buttons {
    gap: 12px;
}

.plan-variant-btn {
    min-height: 60px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(95, 77, 48, 0.12);
    background: rgba(255, 255, 255, 0.72);
}

.plan-variant-btn span:last-child {
    display: block;
    line-height: 1.35;
}

.plan-variant-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(172, 150, 106, 0.12);
}

.plan-variant-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(95, 77, 48, 0.24);
    box-shadow: 0 10px 20px rgba(64, 46, 24, 0.08);
}

.plan-variant-btn.selected {
    border-color: rgba(71, 55, 30, 0.34);
    background: rgba(250, 245, 236, 0.95);
    box-shadow: 0 0 0 1px rgba(71, 55, 30, 0.2);
}

.plan-variant-back {
    margin-top: 16px;
    min-height: 44px;
}

/* Wizard en pantalla completa o altura baja: tarjetas en columna (se puede hacer scroll) */
@media (max-width: 1120px),
(max-height: 760px) {
    .plan-cards-container {
        width: 100%;
    }

    .wizard-container[data-step="5"] #step-5.step-content.active {
        padding: 12px 20px 20px;
    }

    .wizard-container[data-step="5"] .plan-cards-container {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 16px;
        width: 100%;
        margin: 8px 0 28px;
        padding: 0;
        overflow-x: visible;
        overflow-y: visible;
        scroll-snap-type: none;
        scroll-padding-inline: 0;
        -webkit-overflow-scrolling: auto;
        touch-action: auto;
    }

    .wizard-container[data-step="5"] .plan-cards-container::-webkit-scrollbar {
        display: none;
    }

    .wizard-container[data-step="5"] .plan-card {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        max-width: none;
        min-height: unset;
        padding: 22px 20px 20px;
        border-radius: 20px;
        overflow: visible;
        scroll-snap-align: none;
    }

    .wizard-container[data-step="5"] .plan-card:hover,
    .wizard-container[data-step="5"] .plan-card.active,
    .wizard-container[data-step="5"] .plan-card--hero,
    .wizard-container[data-step="5"] .plan-card--hero:hover,
    .wizard-container[data-step="5"] .plan-card--hero.active {
        transform: none;
    }

    .wizard-container[data-step="5"] .plan-card::before {
        border-radius: 20px 20px 0 0;
    }

    .wizard-container[data-step="5"] .plan-head {
        gap: 12px;
        margin-bottom: 12px;
    }

    .wizard-container[data-step="5"] .plan-card-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .wizard-container[data-step="5"] .plan-title {
        font-size: 1.3rem;
    }

    .wizard-container[data-step="5"] .plan-subtitle {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }

    .wizard-container[data-step="5"] .plan-description {
        margin-bottom: 14px;
        font-size: 0.9rem;
    }

    .wizard-container[data-step="5"] .plan-features {
        padding-top: 10px;
    }

    .wizard-container[data-step="5"] .plan-features li {
        padding: 7px 0;
        font-size: 0.87rem;
    }

    .wizard-container[data-step="5"] .plan-fit {
        padding-top: 14px;
        font-size: 0.86rem;
    }

    /* Badge "El más elegido": centrado y medio salido por arriba (igual que en desktop) */
    .wizard-container[data-step="5"] .plan-card--hero .plan-badge {
        left: 50%;
        right: auto;
        top: 0;
        transform: translate(-50%, -50%);
        padding: 5px 10px;
        font-size: 0.62rem;
    }

    .wizard-container[data-step="5"] .plan-variant-question {
        margin-bottom: 14px;
        font-size: 0.9rem;
    }

    .wizard-container[data-step="5"] .plan-variant-btn {
        min-height: 54px;
        padding: 12px 14px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .wizard-container[data-step="5"] .plan-card {
        padding: 20px 18px 18px;
        border-radius: 18px;
    }

    .wizard-container[data-step="5"] .plan-card::before {
        border-radius: 18px 18px 0 0;
    }

    .wizard-container[data-step="5"] .plan-title {
        font-size: 1.2rem;
    }

    .wizard-container[data-step="5"] .plan-description,
    .wizard-container[data-step="5"] .plan-fit,
    .wizard-container[data-step="5"] .plan-features li {
        font-size: 0.84rem;
    }
}

/* Stable Property Selection Step 2 */
.access-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.access-form-grid .input-group {
    margin-bottom: 0;
}

.access-form-grid label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

/* Premium Select Styling (Reusing app patterns) */
.access-form-grid select {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid rgba(172, 150, 106, 0.2);
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: #2f2415;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236a5737' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
}

.access-form-grid select:hover {
    border-color: var(--text-primary);
    background-color: #fdfaf5;
}

.access-form-grid select:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 4px rgba(172, 150, 106, 0.1);
}

.access-form-grid select:disabled {
    background-color: #f7f3ed;
    color: #a89e8d;
    cursor: not-allowed;
    border-color: rgba(172, 150, 106, 0.1);
}

.parking-input-group {
    margin-top: 4px;
}

.parking-input-hint,
.parking-input-note {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.35;
}

.parking-input-hint {
    margin-bottom: 10px;
}

.parking-input-note {
    margin-top: 12px;
}

.parking-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.parking-choice-btn {
    appearance: none;
    border: 1px solid rgba(172, 150, 106, 0.2);
    background: linear-gradient(180deg, #fffdf9 0%, #f7f1e8 100%);
    border-radius: 14px;
    min-height: 64px;
    padding: 12px 12px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
}

.parking-choice-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(106, 87, 55, 0.42);
    box-shadow: 0 10px 26px rgba(82, 60, 25, 0.08);
}

.parking-choice-btn:focus-visible {
    outline: none;
    border-color: rgba(106, 87, 55, 0.78);
    box-shadow: 0 0 0 4px rgba(172, 150, 106, 0.16);
}

.parking-choice-btn.active {
    border-color: rgba(106, 87, 55, 0.75);
    background: linear-gradient(180deg, #fff9ee 0%, #f2e0bd 100%);
    box-shadow: 0 14px 30px rgba(82, 60, 25, 0.12);
}

.parking-choice-title {
    font-family: var(--font-body-serif);
    font-size: 0.9rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.parking-choice-helper {
    font-size: 0.72rem;
    line-height: 1;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 576px) {
    .access-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .parking-choice-grid {
        grid-template-columns: 1fr;
    }

    .parking-choice-btn {
        min-height: 60px;
    }
}
/* Address Validation Errors */
.route-error {
    color: #cc3333;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    height: 0;
    overflow: hidden;
}
.route-error.active {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    margin-bottom: 4px;
}

/* Wizard mobile polish: align header copy, free step-6 form, compact final budget */
@media (max-width: 767px) {
    .wizard-container {
        --wizard-content-top-gap: 12px;
        --wizard-content-bottom-gap: 16px;
    }

    .wizard-top-bar {
        display: block !important;
        padding: calc(10px + env(safe-area-inset-top)) 16px 10px !important;
        min-height: 0;
    }

    .wizard-header {
        display: block;
        width: 100%;
        min-width: 0;
        padding-right: 0 !important;
    }

    .wizard-header > div {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        align-content: flex-start !important;
        justify-items: start;
        gap: 6px;
        width: 100%;
        max-width: none;
        padding-right: 56px;
    }

    .wizard-heading-copy {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-items: start;
        align-content: start;
        gap: 4px;
        width: 100%;
    }

    .wizard-mobile-progress {
        width: 100%;
        max-width: none;
        margin: 0 0 4px;
    }

    .wizard-kicker {
        display: none !important;
    }

    .wizard-title,
    .wizard-subtitle {
        text-align: left !important;
        justify-self: start;
        width: 100%;
        max-width: none;
    }

    .wizard-title {
        font-size: clamp(1.05rem, 6vw, 1.28rem) !important;
        line-height: 1.08 !important;
        margin: 0 !important;
    }

    .wizard-subtitle {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .wizard-close-btn {
        position: absolute !important;
        top: calc(10px + env(safe-area-inset-top)) !important;
        right: 16px !important;
        transform: none !important;
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        border-radius: 10px;
    }

    .wizard-main {
        overflow-y: auto !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        overflow-x: visible !important;
    }

    .wizard-main .step-content.active {
        width: 100%;
        max-width: none !important;
        margin: 0 !important;
        flex: 0 0 auto !important;
        gap: 0 !important;
        padding-top: var(--wizard-content-top-gap) !important;
        padding-bottom: calc(var(--wizard-footer-space) + var(--wizard-content-bottom-gap) + env(safe-area-inset-bottom, 0px)) !important;
        box-sizing: border-box;
    }

    .step-content,
    .step-content.active,
    #step-2,
    #step-3,
    #step-3-main,
    #step-3-stairs,
    #step-4,
    #step-5,
    #step-6,
    #step-7 {
        overflow: visible !important;
        min-height: auto !important;
        height: auto !important;
    }

    .wizard-container[data-step="2"] .wizard-main,
    .wizard-container[data-step="3"] .wizard-main,
    .wizard-container[data-step="4"] .wizard-main,
    .wizard-container[data-step="5"] .wizard-main,
    .wizard-container[data-step="6"] .wizard-main,
    .wizard-container.budget-mode .wizard-main {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        overflow-y: auto !important;
        overflow-x: visible !important;
    }

    .wizard-container[data-step="2"] .step-content.active,
    .wizard-container[data-step="3"] .step-content.active,
    .wizard-container[data-step="4"] .step-content.active,
    .wizard-container[data-step="5"] .step-content.active,
    .wizard-container[data-step="6"] .step-content.active,
    .wizard-container.budget-mode #step-7.step-content.active {
        margin-top: 0 !important;
    }

    .wizard-container[data-step="3"] #step-3-main {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .wizard-container[data-step="6"] .wizard-main {
        padding-top: var(--wizard-content-top-gap) !important;
    }

    .wizard-container[data-step="6"] #step-6.step-content.active {
        flex: 0 0 auto !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding-top: 0 !important;
        padding-bottom: calc(var(--wizard-footer-space) + 28px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .wizard-container[data-step="6"] .step-content--datos {
        padding: 0 0 22px !important;
        gap: 14px;
    }

    .wizard-container[data-step="6"] .datos-step-wrapper {
        max-width: none;
        padding-bottom: 18px;
    }

    .wizard-container.budget-mode {
        --wizard-footer-space: 92px;
    }

    .wizard-container.budget-mode .wizard-top-bar {
        padding: calc(10px + env(safe-area-inset-top)) 16px 6px !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }

    .wizard-container.budget-mode .wizard-header,
    .wizard-container.budget-mode .wizard-mobile-progress,
    .wizard-container.budget-mode .wizard-kicker,
    .wizard-container.budget-mode .wizard-heading-row {
        display: none !important;
    }

    .wizard-container.budget-mode .wizard-main {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .wizard-container.budget-mode #step-7.step-content.active {
        align-items: stretch !important;
        padding: 16px 10px calc(var(--wizard-footer-space) + var(--wizard-content-bottom-gap) + env(safe-area-inset-bottom, 0px)) !important;
    }

    .wizard-container.budget-mode .budget-layout {
        width: 100% !important;
        max-width: none !important;
        gap: 12px;
        padding: 2px;
        overflow: visible;
    }

    .wizard-container.budget-mode .budget-bottom {
        gap: 12px !important;
    }

    .wizard-container.budget-mode .budget-left-column,
    .wizard-container.budget-mode .budget-right-column {
        gap: 12px !important;
        width: 100%;
    }

    .wizard-container.budget-mode .budget-hero {
        padding: 20px 18px 14px;
        box-shadow:
            0 14px 28px rgba(68, 50, 26, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.42);
    }

    .wizard-container.budget-mode .budget-card {
        padding: 18px 16px;
        border-radius: 22px;
        box-shadow: 0 12px 24px rgba(68, 50, 26, 0.08);
    }

    .wizard-container.budget-mode .budget-card--inventory {
        max-height: none;
    }

    .wizard-container.budget-mode .budget-inv-list {
        overflow: visible;
        padding-right: 0;
    }
}

/* ==========================================================================
   SIMPLIFIED VERSION CUSTOM STYLES (Hero, About, etc.)
   ========================================================================== */

/* Hero Contact Links & Glassmorphism */
.hero-contact-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
    animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.hero-contact-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.hero-contact-link svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
}

@media (max-width: 768px) {
    .hero-contact-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 16px;
    }
    .hero-contact-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* About Section Read More */
.about-read-more-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    background: none;
    border: none;
    padding: 0;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.about-read-more-btn:hover {
    color: var(--accent-hover);
}

.about-read-more-icon {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-read-more-btn[aria-expanded="true"] .about-read-more-icon {
    transform: translateX(4px);
}

.about-copy-more {
    margin-top: 20px;
    animation: fadeIn 0.5s ease both;
}

.about-copy-more p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

/* Mobile Adjustments for hero content */
@media (max-width: 992px) {
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-top: 0;
    }
}

/* Ensure the hero doesn't cut off content */
.hero-section {
    position: relative;
    padding: 0 48px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 0 12px;
        margin-bottom: 20px;
    }
    .hero-title {
        font-size: 2.6rem !important;
        line-height: 1.15 !important;
        letter-spacing: -0.03em !important;
        margin-bottom: 8px !important;
    }
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5)) !important;
    }
    .hero-contact-link {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        font-weight: 600 !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
}




