:root {
    /* Colors - Modern B2B Palette */
    --color-bg-dark: #121e33;
    /* Un azul marino más claro y notorio */
    --color-bg-surface: #1b2a47;
    /* Superficie más clara acorde al fondo */
    --color-primary: #00e5ff;
    /* Cyan neón / Calipso brillante (Original) */
    --color-primary-dark: #00b3cc;
    /* Versión más oscura para hovers */
    --color-text-main: #f0f4f8;
    --color-text-muted: #9ba3af;
    --color-accent: #ff477e;

    /* Glassmorphism */
    --glass-bg: rgba(27, 42, 71, 0.6);
    /* Ajustado al nuevo fondo */
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography styles */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.highlight {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

/* Buttons */
.btn-primary,
.btn-primary-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-bg-dark);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
}

.btn-primary-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-primary-outline:hover {
    background: rgba(0, 229, 255, 0.1);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top right, rgba(0, 229, 255, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(255, 71, 126, 0.05), transparent 40%);
}

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 4rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--color-text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    opacity: 0.7;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .btn-primary-outline {
    opacity: 1;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo-img {
    max-height: 85px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
}

.logo-img:hover {
    transform: scale(1.05);
}

.hero-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 4rem 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.main-headline {
    font-size: 2.8rem;
    /* Adjusted back to fit screen based on user feedback */
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
    /* Subtle tightening for premium look */
}

.hook-box {
    max-width: 600px;
}

.sub-headline {
    font-size: 1.15rem;
    /* Slightly smaller for better contrast with h1 */
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.video-mockup {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent var(--color-bg-dark);
    margin-left: 4px;
}

/* Standard Section Styles */
section {
    padding: 8rem 0;
}

.story-section {
    background-color: var(--color-bg-surface);
}

.section-header {
    text-align: center;
    max-width: 950px;
    margin: 0 auto 6rem auto;
    padding: 0 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
    color: var(--color-text-main);
    letter-spacing: -0.5px;
}

.section-title.primary-accent {
    color: var(--color-primary);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}


/* --- Scroll Layout --- */
.scroll-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    padding-bottom: 10vh;
}

/* Left Column: Sticky Media */
.media-column {
    position: relative;
}

.sticky-box {
    position: sticky;
    top: 20vh;
    height: 60vh;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease;
}

/* Right Column: Scrollable Text Items */
.text-column {
    padding: 20vh 0 20vh 0;
}

.service-block {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.service-block.active {
    opacity: 1;
}

.service-block h3 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-block p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

@media (max-width: 968px) {
    .sticky-box {
        height: 35vh;
        position: sticky;
        top: 80px;
        /* Aligned with standard header heights */
        margin-bottom: 2rem;
        z-index: 10;
        border-radius: 12px;
    }

    .scroll-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-block {
        min-height: auto;
        margin-bottom: 4rem;
        opacity: 1;
    }

    .text-column {
        padding: 0;
    }
}

/* --- Slider inside Sticky Box --- */
.comparison-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    box-sizing: border-box;
    transition: background-image 0.5s ease;
}

.image-layer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
}

.image-after h3,
.image-before h3 {
    position: relative;
    font-size: 2.5rem;
    margin: 0;
    z-index: 2;
}

.image-after h3 {
    color: var(--color-primary);
}

.image-before h3 {
    color: var(--color-accent);
}

.image-after p,
.image-before p {
    position: relative;
    font-size: 1.2rem;
    color: #fff;
    margin: 0.5rem 0 0 0;
    z-index: 2;
}

.image-before {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    filter: grayscale(80%) contrast(1.2);
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    margin: 0;
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #fff;
    z-index: 5;
    pointer-events: none;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: var(--color-bg-dark);
    border: 3px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.slider-button::before {
    content: '↔';
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.instructions {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 20;
    pointer-events: none;
    font-size: 0.8rem;
}


/* --- Cinematic Cover Flow (Netflix Style) --- */

.cover-flow-container {
    display: flex;
    gap: 1rem;
    height: 480px;
    width: 100%;
}

.cover-card {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #000;
}

.cover-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    transition: all 0.6s ease;
    filter: grayscale(100%) contrast(1.1) brightness(1.05);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Subtle Noise/Grain Overlay to mask pixelation */
.cover-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.18;
    pointer-events: none;
    mix-blend-mode: overlay;
    filter: contrast(150%) brightness(100%);
}

.cover-card:hover {
    flex: 3;
}

.cover-card:hover .cover-bg {
    opacity: 0.8;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.cover-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(10, 15, 22, 1) 0%, rgba(10, 15, 22, 0) 100%);
    text-align: left;
    transform: translateY(20px);
    opacity: 0.8;
    transition: all 0.6s ease;
}

.cover-card:hover .cover-content {
    transform: translateY(0);
    opacity: 1;
}

.cover-card h4 {
    font-size: 1.5rem;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.cover-card p {
    color: #ccc;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.5s ease 0.2s;
}

.cover-card:hover p {
    opacity: 1;
}

@media (max-width: 968px) {
    .cover-flow-container {
        flex-direction: column;
        height: auto;
    }

    .cover-card {
        flex: none;
        height: 300px;
        margin-bottom: 1rem;
    }

    .cover-card p {
        opacity: 1;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Booking Section */
.booking-section {
    background: var(--color-bg-dark);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
}

.glass-card h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.glass-card p {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.calendar-placeholder {
    min-height: 300px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    border: 1px dashed var(--glass-border);
}

/* Footer */
.footer {
    background: var(--color-bg-surface);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 0 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-text-main);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-logo-img {
    max-height: 70px;
    width: auto;
    display: block;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.branding-col p {
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.social-links a:hover {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    transform: translateY(-2px);
    border-color: var(--color-primary);
}

.footer-col h4 {
    color: var(--color-text-main);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 968px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible,
.fade-in.visible,
.fade-right.visible,
.fade-left.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 229, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
    }
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 1rem;
    right: 1rem;
    z-index: 1000;
}

.sticky-mobile-cta .btn-primary {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.6);
}

@media (max-width: 768px) {
    .sticky-mobile-cta {
        display: block;
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }

    .sub-headline {
        margin: 0 auto 2.5rem auto;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .main-headline {
        font-size: 2.5rem;
    }
}

/* Calculator Styles */
.calculator-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
}

.calculator-section h3 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.calc-card {
    margin-top: 2rem;
}

.calc-input {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.calc-input input[type=range] {
    width: 100%;
    max-width: 500px;
    accent-color: var(--color-primary);
}

.highlight-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-text-main);
    background: rgba(0, 229, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.calc-results {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.result-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.result-box h4 {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-heading);
}

.triple-impact-box {
    border-color: var(--color-accent);
    background: rgba(255, 71, 126, 0.05);
}

.triple-impact-box h4 {
    color: var(--color-accent);
}

.triple-impact-box .result-value {
    color: var(--color-accent);
    font-size: 1.5rem;
}

/* --- Triple Impact Projects Section --- */
.triple-impact-section {
    position: relative;
    overflow: hidden;
}

.triple-impact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.05), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.impact-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
    position: relative;
    z-index: 2;
}

.impact-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.impact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.impact-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.6s ease;
}

.impact-card:hover .impact-img {
    transform: scale(1.05);
}

/* Gradient overlay for text readability */
.impact-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-main), transparent);
}

.impact-card-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text-main);
    margin: 1rem 0;
}

.impact-card-content p {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 0;
}

.impact-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.impact-badge.social {
    background: rgba(255, 140, 0, 0.1);
    color: #ff8c00;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.impact-badge.environmental {
    background: rgba(0, 229, 255, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.impact-badge.economic {
    background: rgba(255, 71, 126, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(255, 71, 126, 0.2);
}

/* ======================================
   CASE MODAL SYSTEM
====================================== */

/* Botón "Ver caso completo" dentro de cover-card */
.cover-detail-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.2rem;
    background: transparent;
    border: 1px solid rgba(0, 229, 255, 0.5);
    border-radius: 30px;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s,
        background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cover-card:hover .cover-detail-btn {
    opacity: 1;
    transform: translateY(0);
}

.cover-detail-btn:hover {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    border-color: var(--color-primary);
}

/* Modal Overlay */
.case-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.case-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Panel */
.case-modal {
    background: var(--color-bg-surface);
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 229, 255, 0.1);
    position: relative;
    overflow-y: auto;
    transform: scale(0.94) translateY(24px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-modal-overlay.active .case-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Close Button */
.case-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--color-text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.case-modal-close:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: rotate(90deg);
}

/* Modal Header */
.cm-header {
    padding: 3rem 3rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    background: radial-gradient(ellipse at top center, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
    text-align: center;
}

.cm-company {
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.cm-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-text-main);
    margin: 0;
    line-height: 1.2;
}

/* Modal Body */
.cm-body {
    padding: 2.5rem 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.cm-section {
    margin-bottom: 2rem;
}

.cm-section h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-primary);
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cm-section h4::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.cm-section p {
    color: var(--color-text-muted);
    line-height: 1.75;
    font-size: 0.95rem;
}

/* Metrics */
.cm-metrics h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text-main);
    margin: 0 0 1.5rem;
}

.cm-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cm-metric {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--color-primary);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
}

.cm-val {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.cm-lab {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Button inside modal */
.cm-cta {
    display: block;
    text-align: center;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-bg-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.cm-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.5);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .cm-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .cm-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .cm-title {
        font-size: 1.6rem;
    }

    .cm-metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ======================================
   TRIPLE IMPACT — DOCK INMERSIVO
====================================== */

.ti-dock-section {
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.ti-bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: background-image 0.8s ease-in-out;
    background-image: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&q=80&w=1600');
}

.ti-bg-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 15, 22, 1) 0%, rgba(10, 15, 22, 0.65) 50%, rgba(10, 15, 22, 0.85) 100%);
}

.ti-dock-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8rem;
    padding-bottom: 8rem;
    gap: 2rem;
    text-align: center;
}


.ti-info-panel {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem 2.5rem;
    box-sizing: border-box;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.ti-info-panel.active {
    opacity: 1;
    transform: translateY(0);
}

.ti-badge {
    display: none;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.ti-panel-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin: 0 0 0.75rem;
    color: var(--color-text-main);
}

.ti-panel-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0;
}

.ti-media {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 0;
    opacity: 0;
    transition: height 0.4s ease, opacity 0.4s ease;
}

.ti-media iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.ti-dock {
    display: flex;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.45);
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    flex-wrap: wrap;
    justify-content: center;
}

.ti-dock-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--color-text-main);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.ti-dock-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.05) translateY(-4px);
}

.ti-dock-btn.active {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

.partnership-bar {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 0.8;
}

.partnership-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.partnership-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
    flex-wrap: wrap;
    filter: grayscale(1) brightness(2);
    transition: all 0.5s ease;
}

.partnership-logos:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

.partner-item {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-item:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .ti-info-panel {
        padding: 2rem 1.5rem;
    }

    .ti-panel-title {
        font-size: 1.5rem;
    }

    .ti-dock {
        gap: 0.75rem;
        padding: 0.75rem 1.25rem;
    }

    .ti-dock-btn {
        padding: 0.6rem 1.1rem;
        font-size: 0.9rem;
    }
}

/* ─── ROI Full Calculator ─────────────────────────────────────── */
.roi-full-calc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.roi-inputs-panel {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.roi-sliders-group {
    margin-bottom: 0.5rem;
}

.roi-slider-row {
    margin-bottom: 1rem;
}

.roi-sl-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.roi-sl-val {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-main);
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 0.15rem 0.6rem;
    border-radius: 6px;
}

.roi-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

.roi-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
    cursor: pointer;
}

.roi-toggle-hint {
    font-size: 0.72rem;
    color: rgba(155, 163, 175, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0.3rem 0 0.5rem;
}

.roi-toggle-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.roi-toggle-item.roi-active {
    background: rgba(255, 71, 126, 0.08);
    border-color: rgba(255, 71, 126, 0.25);
}

.roi-ti-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.roi-ti-text {
    flex: 1;
}

.roi-ti-text strong {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-main);
}

.roi-hours-row {
    display: none;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.roi-hours-row.roi-hrs-show {
    display: flex;
}

.roi-hours-row input[type="number"] {
    width: 55px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--color-text-main);
    font-size: 0.82rem;
    text-align: center;
    padding: 0.2rem 0.3rem;
    border-radius: 5px;
    outline: none;
}

.roi-hours-row input[type="number"]:focus {
    border-color: var(--color-primary);
}

/* Switch */
.roi-sw {
    position: relative;
    width: 38px;
    height: 22px;
    flex-shrink: 0;
}

.roi-sw input {
    opacity: 0;
    width: 0;
    height: 0;
}

.roi-sw-track {
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.3s;
}

.roi-sw-track::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.3s;
}

.roi-sw input:checked+.roi-sw-track {
    background: var(--color-accent);
}

.roi-sw input:checked+.roi-sw-track::after {
    transform: translateX(16px);
}

/* Results */
.roi-results-panel {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.roi-hero-counter {
    background: linear-gradient(135deg, rgba(255, 71, 126, 0.12), rgba(255, 71, 126, 0.03));
    border: 1px solid rgba(255, 71, 126, 0.3);
    border-radius: 16px;
    padding: 1.8rem;
    text-align: center;
}

.roi-hero-label {
    font-size: 0.7rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.roi-hero-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
}

.roi-hero-sub {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.3rem;
}

.roi-finance-panel {
    background: linear-gradient(135deg, rgba(0, 255, 179, 0.06), rgba(0, 255, 179, 0.01));
    border: 1px solid rgba(0, 255, 179, 0.18);
    border-radius: 14px;
    padding: 1.4rem;
}

.roi-fin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.roi-fin-row:last-child {
    border-bottom: none;
}

.roi-fin-total {
    padding-top: 0.8rem;
}

.roi-fin-total span:first-child {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-main);
    font-size: 0.95rem;
}

.roi-fin-bad {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-accent);
}

.roi-fin-neutral {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
}

.roi-fin-good {
    font-family: var(--font-heading);
    font-weight: 900;
    color: #00ffb3;
    font-size: 1.4rem;
}

.roi-cta-btn {
    display: inline-block;
    text-align: center;
    width: 100%;
    margin-top: 0.3rem;
}

/* ─── ROI Calculator — Compact 4-Zone Layout ─── */


/* Header row: title + subtotal chip */
.roi-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.roi-header-row h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin: 0;
}

.roi-header-row p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0.2rem 0 0;
}

.roi-subtotal-chip {
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(0, 229, 255, 0.04));
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
}

.roi-subtotal-chip small {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Zone 1: 2-column sliders */
.roi-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 2.5rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 0.7rem;
}

.roi-col {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.roi-slider-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.roi-sl-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.roi-sl-val {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text-main);
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.18);
    padding: 0.05rem 0.45rem;
    border-radius: 5px;
}

.roi-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

.roi-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 6px var(--color-primary);
    cursor: pointer;
}

/* Zone 2: Intuitive Process Grid */
.roi-process-section {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
}

.roi-section-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.roi-process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 0.8rem;
}

.roi-process-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    opacity: 0.5;
    filter: grayscale(0.8);
    cursor: pointer;
}

.roi-process-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    opacity: 0.8;
}

.roi-process-card.roi-active {
    opacity: 1;
    filter: grayscale(0);
    background: rgba(255, 71, 126, 0.06);
    border-color: rgba(255, 71, 126, 0.3);
    box-shadow: 0 4px 15px rgba(255, 71, 126, 0.05);
}

.roi-process-card.roi-active:hover {
    background: rgba(255, 71, 126, 0.1);
    border-color: rgba(255, 71, 126, 0.5);
}

.rpc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.rpc-icon {
    font-size: 1.2rem;
}

.rpc-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-main);
    white-space: nowrap;
}

.rpc-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rpc-num {
    width: 45px;
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    text-align: center;
    outline: none;
}

.rpc-unit {
    font-size: 0.6rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* Toggle switch adjustments inside cards */
.roi-process-card .roi-sw {
    transform: scale(0.85);
}

/* Toggle switch */
.roi-sw {
    position: relative;
    width: 30px;
    height: 17px;
    flex-shrink: 0;
}

.roi-sw input {
    opacity: 0;
    width: 0;
    height: 0;
}

.roi-sw-track {
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.3s;
}

.roi-sw-track::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.3s;
}

.roi-sw input:checked+.roi-sw-track {
    background: var(--color-accent);
}

.roi-sw input:checked+.roi-sw-track::after {
    transform: translateX(13px);
}

/* Zone 3: Horizontal 4-card results bar */
.roi-results-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}

.roi-rc {
    padding: 0.9rem 0.8rem;
    border-radius: 12px;
    background: rgba(255, 71, 126, 0.07);
    border: 1px solid rgba(255, 71, 126, 0.2);
    text-align: center;
    position: relative;
}

.roi-rc-eco {
    background: rgba(0, 232, 122, 0.07);
    border-color: rgba(0, 232, 122, 0.2);
}

.roi-rc-locked {
    background: rgba(100, 100, 120, 0.06);
    border-color: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.roi-rc-savings {
    background: rgba(0, 229, 255, 0.07);
    border-color: rgba(0, 229, 255, 0.2);
}

.roi-rc-label {
    font-size: 0.62rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.35rem;
}

.roi-rc-val {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
}

.roi-rc-eco .roi-rc-val {
    color: #00e87a;
}

.roi-rc-savings .roi-rc-val {
    color: var(--color-primary);
}

/* Blur / reveal states */
.roi-blurred {
    filter: blur(7px);
    user-select: none;
    opacity: 0.6;
    transition: filter 0.6s ease, opacity 0.6s ease;
}

@keyframes unblur {
    from {
        filter: blur(8px);
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        filter: blur(0);
        opacity: 1;
        transform: scale(1);
    }
}

.roi-revealed {
    animation: unblur 0.6s ease forwards;
}

.roi-fin-good {
    color: var(--color-primary) !important;
}

/* Zone 4: Lead Gate */
.roi-gate {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(0, 229, 255, 0.25);
    border-radius: 10px;
}

.roi-gate-lock {
    font-size: 1rem;
    flex-shrink: 0;
}

.roi-gate-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
    margin-right: 0.3rem;
}

.roi-gate-input {
    flex: 1;
    min-width: 130px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-text-main);
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
    border-radius: 7px;
    outline: none;
    transition: border-color 0.25s;
}

.roi-gate-input:focus {
    border-color: var(--color-primary);
}

.roi-gate-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-bg-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.45rem 1.1rem;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.roi-gate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 229, 255, 0.35);
}

.roi-gate-note {
    font-size: 0.62rem;
    color: rgba(155, 163, 175, 0.4);
}

.roi-revealed-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.roi-greeting {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.roi-disclaimer {
    font-size: 0.62rem;
    color: rgba(155, 163, 175, 0.4);
    margin: 0;
    flex: 1;
}

/* Footnotes styling */
.roi-footnotes {
    margin-top: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.roi-footnotes p {
    font-size: 0.68rem;
    color: rgba(155, 163, 175, 0.5);
    line-height: 1.5;
    margin: 0.4rem 0;
}

/* Responsive */
@media (max-width: 900px) {
    .roi-two-cols {
        grid-template-columns: 1fr;
    }

    .roi-results-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .roi-results-bar {
        grid-template-columns: 1fr 1fr;
    }

    .roi-chip-row {
        gap: 0.35rem;
    }
}


.roi-disclaimer strong {
    color: rgba(155, 163, 175, 0.75);
}

/* ── 3-Zone Layout ─────────────────────────────────── */

/* Zone layout: vertical stack */
.roi-full-calc {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
    text-align: left;
}

/* Zone 1: Slider Strip — 2-col or 3-col grid */
.roi-slider-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 2rem;
    padding: 1.2rem 1.4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
}

/* Zone 2+3: Toggles | Results side by side */
.roi-bottom-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.2rem;
}

.roi-toggles-col {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

/* Compact single-line toggle row */
.roi-trow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 9px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.25s ease;
}

.roi-trow.roi-active {
    background: rgba(255, 71, 126, 0.07);
    border-color: rgba(255, 71, 126, 0.22);
}

.roi-ti-emoji {
    font-size: 0.95rem;
    flex-shrink: 0;
}

.roi-ti-name {
    flex: 1;
    font-size: 0.82rem;
    color: var(--color-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Inline mini number input */
.roi-mini-num {
    width: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--color-text-main);
    font-size: 0.8rem;
    text-align: center;
    padding: 0.15rem 0.25rem;
    border-radius: 5px;
    outline: none;
    flex-shrink: 0;
}

.roi-mini-num:focus {
    border-color: var(--color-primary);
}

.roi-mini-unit {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
    min-width: 28px;
}

/* Responsive */
@media (max-width: 900px) {
    .roi-slider-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .roi-bottom-grid {
        grid-template-columns: 1fr;
    }

    .roi-ti-name {
        white-space: normal;
    }
}

@media (max-width: 576px) {
    .roi-slider-strip {
        grid-template-columns: 1fr;
    }
}

/* ── Eco Waste Block ─────────────────────────────── */
.roi-eco-block {
    margin-top: 0.8rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.07), rgba(0, 200, 80, 0.02));
    border: 1px solid rgba(0, 255, 100, 0.2);
    text-align: center;
}

.roi-eco-header {
    font-size: 0.68rem;
    color: #00e87a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.roi-eco-kgs {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: #00e87a;
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 232, 122, 0.4);
}

.roi-eco-sub {
    font-size: 0.75rem;
    color: rgba(155, 163, 175, 0.8);
    margin-top: 0.25rem;
}

.roi-eco-note {
    font-size: 0.63rem;
    color: rgba(155, 163, 175, 0.45);
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* ======================================
   FAQ SECTION
====================================== */

.faq-section {
    padding: 8rem 0;
    background: var(--color-bg-dark);
}

.faq-header {
    text-align: center;
    max-width: 950px;
    margin: 0 auto 6rem;
}

.faq-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-text-main);
    margin: 0;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.4s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background: rgba(0, 0, 0, 0.2);
}

.faq-answer p {
    padding: 0 2rem 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Active State */
.faq-item.active {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .faq-question {
        padding: 1.2rem 1.5rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }
}

.info-modal-scroll {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 1rem;
}

.info-modal-scroll h3 {
    color: var(--color-primary);
    margin: 1.5rem 0 0.5rem;
    font-family: var(--font-heading);
}

.info-modal-scroll p {
    margin-bottom: 1rem;
}

.info-modal-scroll::-webkit-scrollbar {
    width: 6px;
}

.info-modal-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.2);
    border-radius: 10px;
}

/* ======================================
   BOOKING & CHAT SECTION
====================================== */

.booking-section {
    padding: 8rem 0;
    background: radial-gradient(circle at bottom right, rgba(0, 229, 255, 0.05), transparent 60%);
}

.booking-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem;
    text-align: center;
}

.booking-container h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.booking-container p {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 3.5rem;
}

/* Chat UI */
.chat-container {
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.95) 0%, rgba(15, 23, 36, 0.98) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
    text-align: left;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 229, 255, 0.05);
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.chat-header {
    padding: 1.5rem 1.8rem;
    background: rgba(0, 229, 255, 0.03);
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-bot-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chat-status-dot {
    width: 8px;
    height: 8px;
    background: #00e87a;
    border-radius: 50%;
    box-shadow: 0 0 10px #00e87a;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-header span {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-main);
}

.chat-model-badge {
    font-size: 0.7rem;
    background: rgba(0, 229, 255, 0.1);
    color: var(--color-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    font-weight: 600;
}

.chat-messages {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.3);
    border-radius: 10px;
}

.message {
    max-width: 85%;
    padding: 1rem 1.4rem;
    border-radius: 16px;
    font-size: 1.05rem;
    line-height: 1.6;
    animation: messageIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message.ai {
    align-self: flex-start;
    background: rgba(13, 20, 30, 0.85);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--color-text-main);
    font-family: 'Inter', monospace;
    position: relative;
    overflow: visible;
    /* Allows text to flow properly */
    height: auto;
    /* Grows with content */
    min-height: fit-content;
}

/* Scanline Effect */
.message.ai::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    opacity: 0.25;
    border-radius: inherit;
    /* Matches the parent's rounded corners */
}

.message.user {
    align-self: flex-end;
    background: var(--color-primary);
    color: var(--color-bg-dark);
    font-weight: 600;
    border-bottom-right-radius: 4px;
    box-shadow: 0 8px 16px rgba(0, 229, 255, 0.2);
    border: none;
}

.chat-options {
    padding: 1.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
}

.chat-opt-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 12px;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.chat-opt-btn:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.1);
}

.chat-input-area {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: none;
    /* Only show when needed */
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
}

.chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: var(--color-primary);
    outline: none;
    font-family: 'Inter', monospace;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.chat-input::placeholder {
    color: rgba(0, 229, 255, 0.3);
}

.chat-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.6);
}

.chat-send {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-send:hover {
    background: #fff;
    transform: scale(1.05);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 0;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--color-text-muted);
    border-radius: 50%;
    opacity: 0.4;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .booking-container {
        padding: 3rem 1.25rem;
    }

    .chat-container {
        height: 500px;
    }

    .message {
        max-width: 90%;
        padding: 1rem 1.25rem;
    }
}

/* --- Immersion Showroom (Cinematic Full-Width) --- */
.immersion-showroom {
    padding-bottom: 8rem;
    overflow: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.showroom-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
}

.immersion-rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 0 10vw 4rem 10vw;
    scrollbar-width: none;
    /* Firefox */
}

@media (max-width: 968px) {
    .immersion-rail {
        padding: 0 5vw 2rem 5vw;
        gap: 1rem;
    }
}

.immersion-rail.is-dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.immersion-rail.is-dragging .immersion-item {
    pointer-events: none;
    /* Prevents clicks during drag */
}

.immersion-rail::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.immersion-item {
    flex: 0 0 70vw;
    height: 80vh;
    max-height: 800px;
    min-height: 500px;
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    scroll-snap-align: center;
    background: var(--color-bg-surface);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.immersion-item:hover {
    transform: scale(1.02);
}

.immersion-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.immersion-item:hover .immersion-img {
    transform: scale(1.1);
}

.immersion-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 15, 22, 0.95) 0%, rgba(10, 15, 22, 0.4) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem;
    color: #fff;
}

.product-tag {
    display: inline-block;
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    background: rgba(0, 229, 255, 0.15);
    padding: 4px 12px;
    border-radius: 6px;
    width: fit-content;
}

.immersion-overlay h4 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.1;
    font-weight: 800;
}

.immersion-overlay p {
    font-size: 1rem;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.product-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.product-features span {
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 968px) {
    .immersion-item {
        flex: 0 0 85vw;
        height: 70vh;
    }

    .immersion-overlay {
        padding: 2rem;
    }

    .immersion-overlay h4 {
        font-size: 1.5rem;
    }

    .immersion-overlay p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .immersion-item {
        flex: 0 0 90vw;
    }
}

/* --- Mobile Navigation Fixes --- */
@media (max-width: 968px) {
    .glass-nav {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .logo-img {
        max-height: 60px;
    }
}

/* --- Deep Mobile Fixes --- */
@media (max-width: 768px) {

    /* 1. Global Container/Centering safety */
    body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* 2. Casos Reales Button (Fix Double Click) */
    .cover-card .cover-bg {
        opacity: 0.8 !important;
        filter: grayscale(0%) !important;
        transform: scale(1.05) !important;
    }

    .cover-card .cover-content {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }

    .cover-card .cover-detail-btn {
        opacity: 1 !important;
        transform: translateY(0) !important;
        margin-top: 0.8rem;
        width: 100%;
        background: rgba(0, 229, 255, 0.1);
    }

    /* 3. Showroom Text Sizes */
    .immersion-overlay {
        padding: 1.5rem !important;
        justify-content: flex-end;
    }

    .immersion-overlay h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.25rem !important;
    }

    .immersion-overlay p {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.2;
    }

    .product-features {
        gap: 0.5rem !important;
    }

    .product-features span {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
    }

    /* 4. Centering Sections & Panels */
    .ti-info-panel {
        text-align: center;
        padding: 1.5rem 1rem !important;
    }

    /* 5. Triple Impact CTA Button */
    #triple-impact .cta-button {
        font-size: 0.85rem !important;
        padding: 1rem 1.5rem !important;
        display: block;
        white-space: normal;
        margin: 0 auto;
        max-width: 90%;
    }

    /* 6. ROI Calculator Overflow */
    .roi-header-row {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .roi-subtotal-chip {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
        white-space: normal !important;
        text-align: center;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    /* 7. Command Center Chat */
    .chat-container {
        height: 75vh !important;
        min-height: 550px !important;
    }

    .chat-options {
        flex-wrap: wrap !important;
        justify-content: center;
        padding: 0.6rem !important;
        gap: 0.4rem !important;
        border-top: 1px solid var(--glass-border);
    }

    .chat-options::-webkit-scrollbar {
        display: none;
    }

    .chat-opt-btn {
        flex: 0 0 auto;
        padding: 0.4rem 0.6rem !important;
        font-size: 0.75rem !important;
        width: auto;
    }

    .chat-messages {
        padding: 1rem !important;
    }

    /* 8. Footer Compression */
    .footer {
        padding: 2rem 0 0 0 !important;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
        text-align: left;
    }

    .branding-col {
        grid-column: span 2;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .branding-col p {
        margin: 0 auto 1rem auto;
    }

    .branding-col .social-links {
        justify-content: center;
    }

    .footer-col h4 {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
    }

    .footer-col ul li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    /* 9. Triple Impact Centering Fix */
    #triple-impact .section-header {
        text-align: center;
        margin: 0 auto 2rem auto !important;
        padding: 0 1rem !important;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ti-dock-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .ti-dock {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        margin-bottom: 2rem;
    }

    /* 10. Maximize Chat Space (Reduce Header) */
    .chat-header {
        padding: 0.5rem 0.8rem !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .chat-bot-info {
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
    }

    .chat-bot-info .chat-status-dot {
        width: 6px !important;
        height: 6px !important;
    }

    .chat-model-badge {
        font-size: 0.6rem !important;
        padding: 2px 4px !important;
        margin-left: auto;
    }

    .chat-messages {
        padding: 0.8rem !important;
    }

    .chat-input-area {
        padding: 0.6rem !important;
    }

    .chat-input {
        font-size: 0.9rem !important;
        padding: 0.6rem 1rem !important;
    }

    .chat-send {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
    }
}