/* ========================================
   POKEYS FACTORY - Main Stylesheet
   Design inspired by opalcamera.com
   ======================================== */

/* Detailed Features Grid (Figuras Page) */
.detailed-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.detailed-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
    height: 100%;
}

.detailed-feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.detailed-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.detailed-feature-card:hover .detailed-feature-icon {
    background: var(--accent);
    color: #111;
    transform: scale(1.1) rotate(5deg);
}

.detailed-feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #fff;
    font-weight: 700;
}

.detailed-feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.detailed-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detailed-feature-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.detailed-feature-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--accent);
    font-weight: bold;
}

/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #252525;

    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #555555;

    --accent: #ffc300;
    --accent-hover: #e6b000;
    --accent-glow: rgba(255, 195, 0, 0.3);

    --border-color: #2a2a2a;
    --border-radius: 16px;
    --border-radius-sm: 8px;

    --max-width: 1200px;
    --header-height: 80px;

    --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-nav: 'Inter', system-ui, -apple-system, sans-serif;

    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

.no-scroll {
    overflow: hidden !important;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 0;
    /* Hide horizontal scrollbar */
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Firefox Support */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-primary);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: #000;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden !important;
    position: relative;
    width: 100% !important;
    max-width: 100vw !important;
    touch-action: pan-y !important;
    /* Forces vertical-only interaction */
}

/* Aggressive safeguard for all structural containers */
section,
main,
header,
footer {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* ===== Interactive Dot Grid Background ===== */
#dotGridCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* At the very bottom */
    pointer-events: none;
    background: #000;
}

/* Ensure all content is above the background canvas */
section,
header,
footer,
.theme-light,
.theme-dark,
main {
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ===== Layout Utilities ===== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-dark {
    background: transparent;
}

/* ===== Header - Opal Style ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 40px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    opacity: 0;
    animation: headerFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    max-width: 100vw;
    box-sizing: border-box;
}

@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base "Capsule" State (Default for all pages) */
.header.scrolled {
    top: 8px;
}

.header.scrolled .header-inner {
    position: relative;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    border: none;
    border-radius: 100px;
    padding: 8px 24px;
    max-width: fit-content;
    margin: 0 auto;
    gap: 32px;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.4);
    opacity: 1;
    z-index: 10;
}



/* Full "Home" State (ONLY on index.php top) */
.header.header--home:not(.scrolled) {
    min-height: 120px;
    padding: 40px 60px;
}

.header.header--home:not(.scrolled) .header-inner {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    max-width: 1600px;
    margin: 0 auto;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
}

/* Scrolled compact details */
.header.scrolled .cart-btn {
    padding: 6px 16px;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.scrolled .logo {
    padding: 6px 16px;
    transition: opacity 0.3s ease;
}

.header.scrolled .cart-btn:hover {
    background: var(--accent);
    color: #000;
}

@media (min-width: 901px) {
    .header.scrolled .nav-col {
        padding: 6px 16px;
        border-radius: 100px;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        flex-direction: row;
        align-items: center;
        cursor: pointer;
        position: relative;
        /* Base for dropdown */
    }

    .header.scrolled .nav-col:hover {
        background: var(--accent);
        color: #000;
    }

    .header.scrolled .nav-col:hover .nav-title {
        color: #000;
    }

    /* Submenu dropdown in capsule state */
    .header.scrolled .nav-dropdown {
        position: absolute;
        top: calc(100% + 15px);
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 12px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
        display: flex;
        pointer-events: none;
        /* Evitar que el área invisible capture el ratón */
        flex-direction: column;
        gap: 2px;
        min-width: 180px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    /* Bridge to prevent losing hover when moving mouse down */
    .header.scrolled .nav-dropdown::before {
        content: '';
        position: absolute;
        top: -20px;
        left: 0;
        width: 100%;
        height: 20px;
        background: transparent;
    }

    /* Active state controlled via JS */
    .header.scrolled .nav-col.is-open .nav-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
        /* Permitir interacción al estar abierto */
    }

    .header.scrolled .nav-dropdown .nav-item {
        display: block !important;
        padding: 8px 16px;
        border-radius: 8px;
        transition: all 0.2s ease;
        text-align: center;
        width: 100%;
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .header.scrolled .nav-dropdown .nav-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--accent) !important;
    }
}

/* Specific mobile handling for the compact capsule - Only hide on mobile if not in home expanded state and not active */
@media (max-width: 900px) {
    .nav-opal:not(.active) {
        display: none !important;
    }
}

.header.scrolled .nav-opal {
    gap: 16px;
    /* Slightly reduced gap to accommodate inner padding */
}

.header.scrolled .nav-title {
    margin-bottom: 0;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.header.scrolled .nav-item:not(.nav-dropdown .nav-item) {
    display: none;
}

.header.scrolled .cart-btn {
    width: auto;
    height: 40px;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header.scrolled .cart-btn svg {
    width: 18px;
    height: 18px;
    transition: color 0.3s ease;
}

.header.scrolled .cart-btn:hover svg {
    color: #000;
}

.header-inner {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.logo img {
    height: 30px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo:hover {
    opacity: 0.8;
}

/* Opal-style Navigation */
.nav-opal {
    display: flex;
    gap: 60px;
    flex: 1;
    font-family: var(--font-nav);
}

.nav-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-dropdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.nav-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 4px 0;
    opacity: var(--nav-item-opacity, 1);
    transition: var(--transition-fast), opacity 0.5s ease;
}

.nav-item:hover {
    color: var(--text-primary);
}

/* Cart Container */
.cart-container {
    position: relative;
    margin-left: auto;
}

.cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
}

.cart-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition);
}

.cart-count.has-items {
    opacity: 1;
    transform: scale(1);
}

/* Cart Dropdown */
.cart-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 340px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    overflow: hidden;
}

.cart-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-header {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.cart-logo {
    width: 36px;
    height: 36px;
    background: var(--bg-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.cart-product-info {
    display: flex;
    flex-direction: column;
}

.cart-product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
}

.cart-product-desc {
    font-size: 0.8rem;
    color: #666;
}

.cart-product-price {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.cart-variant {
    font-size: 0.8rem;
    color: #666;
}

.cart-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
}

.cart-order-btn {
    background: #000;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.cart-order-btn:hover {
    background: #333;
}

.cart-tabs {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 24px;
}

.cart-tab {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
}

.cart-tab-link {
    font-size: 0.85rem;
    color: #666;
}

.cart-tab-link:hover {
    color: #000;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    margin-left: auto;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    .header {
        padding: 16px 16px;
        min-height: auto;
        background: transparent;
        backdrop-filter: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .header-inner {
        align-items: center;
        gap: 12px;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
    }

    .header.scrolled .header-inner {
        max-width: 100%;
        width: 100%;
        padding: 8px 16px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-opal {
        position: fixed;
        top: 65px;
        left: 16px;
        right: 16px;
        background: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        flex-direction: column;
        padding: 8px;
        gap: 4px;
        opacity: 0;
        transform: translateY(-15px) scale(0.97);
        transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    }

    .nav-opal.active {
        opacity: 1;
        transform: translateY(0) scale(1);
        display: flex !important;
        pointer-events: auto;
        z-index: 999;
    }

    .nav-col {
        gap: 0;
        display: flex;
        flex-direction: column;
    }

    .nav-title {
        font-size: 1.05rem;
        font-weight: 600;
        color: #fff;
        margin-bottom: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 14px 16px;
        border-radius: 14px;
        transition: background 0.2s ease;
    }

    .nav-title:active {
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-title::after {
        content: '›';
        font-size: 1.3rem;
        transition: transform 0.3s ease;
        color: rgba(255, 255, 255, 0.3);
        font-weight: 300;
    }

    .nav-col.active-mobile .nav-title::after {
        transform: rotate(90deg);
        color: var(--accent);
    }

    .nav-col.active-mobile .nav-title {
        color: var(--accent);
        background: rgba(255, 195, 0, 0.06);
    }

    .nav-dropdown {
        max-height: 0;
        overflow: hidden;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 8px !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        pointer-events: auto !important;
        transform: none !important;
        transition: max-height 0.3s ease;
    }

    .nav-col.active-mobile .nav-dropdown {
        max-height: 300px;
    }

    .nav-item {
        font-size: 0.95rem;
        padding: 12px 16px;
        display: block !important;
        opacity: 1 !important;
        color: rgba(255, 255, 255, 0.6) !important;
        border-radius: 10px;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .nav-item:hover,
    .nav-item:active {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.05);
    }

    .cart-container {
        margin-left: 0;
    }

    .cart-dropdown {
        position: fixed;
        top: 70px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}


/* ===== Scroll-Animated Hero ===== */
.scroll-hero {
    position: relative;
    height: 350vh;
    /* Reduced for faster transition and better scroll flow */
    width: 100%;
}

.scroll-hero-frames {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    will-change: transform;
    /* Optimize for scaling */
}

.scroll-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, 0) 60%,
            rgba(0, 0, 0, 1) 100%);
    opacity: 0.3;
    z-index: 2;
    pointer-events: none;
}


.scroll-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /* Removed transition to eliminate black fade/flicker */
}

.scroll-frame.active {
    opacity: 1;
}

/* Base hero content color - specific elements can override this */
.scroll-hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    pointer-events: none;
    color: #ffffff;
}

.scroll-hero-content .scroll-hero-title,
.scroll-hero-content .scroll-hero-subtitle {
    color: #ffffff;
}

/* Ensure all children, including accents, are white */


.hero-text-block {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(var(--tx, -50%), -50%) scale(var(--text-scale, 1));
    width: 100%;
    opacity: 0;
    transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 2.5s ease;
    will-change: transform, opacity;
}

.hero-text-block.secondary {
    --tx: 100%;
    /* Start further to the right */
}

.hero-text-block.active {
    opacity: 1;
    --tx: -50%;
}

.hero-text-block.exit-left {
    opacity: 0;
    --tx: -150%;
}

.hero-text-block.exit-right {
    opacity: 0;
    --tx: 100%;
}

.scroll-hero-title {
    font-size: clamp(2.8rem, 10.5vw, 8.4rem);
    /* Reduced 30% from clamp(4rem, 15vw, 12rem) */
    font-weight: 400;
    /* Clean, not too bold like the image */
    line-height: 0.9;
    letter-spacing: -0.05em;
    /* Tighter tracking like the image */
    text-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', system-ui, sans-serif;
    /* Clean sans-serif */
}

.scroll-hero-subtitle {
    font-size: clamp(0.7rem, 1.75vw, 1.05rem);
    /* Reduced 30% from clamp(1rem, 2.5vw, 1.5rem) */
    color: #ffffff;
    margin-top: 24px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    /* Use white for the "Scroll" text */
    font-size: 0.85rem;
    animation: bounce 2s infinite;
    pointer-events: auto;
    cursor: pointer;
    z-index: 20;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--accent);
    /* Keep arrow yellow */
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* Hide content after scroll progress */
.scroll-hero-content.hidden {
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .scroll-hero {
        height: 120vh;
    }

    .scroll-hero-title {
        font-size: clamp(2rem, 12vw, 6rem);
        max-width: 100%;
        overflow-wrap: break-word;
        padding: 0 10px;
    }

    .scroll-reveal-section {
        height: 300vh;
        overflow: visible !important;
    }

    .scroll-reveal-content {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        height: 100vh;
        height: 100dvh;
        padding: 0 24px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        background: transparent;
        transform: translateZ(0);
        /* Force layer for better sticky performance */
    }

    .reveal-logo {
        width: 140px;
        margin-bottom: 20px;
    }

    .scroll-reveal-text {
        font-size: 1.15rem;
    }
}

/* ===== Bento Grid Hero ===== */
.bento-hero {
    padding: 140px 40px 80px;
    background: transparent;
}

.bento-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 20px;
}

.theme-light {
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9f9;
    --bg-card: #f6f6f6;
    --bg-card-hover: #eeeeee;
    --text-primary: #111111;
    --text-secondary: #444444;
    --text-muted: #888888;
    --border-color: #eeeeee;
}

.bento-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.bento-card:hover {
    border-color: var(--accent);
}

.theme-light .bento-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.bento-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Title Card */
.bento-title-card {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-main-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #ffffff;
}

.bento-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 400px;
}

.bento-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    width: fit-content;
    transition: var(--transition);
}

.bento-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Stat Cards */
.bento-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-stat-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.bento-stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bento-stat-value.negative {
    color: #ff6b6b;
}

.bento-stat-value.accent {
    color: var(--accent);
}

.stat-arrow {
    font-size: 1.2rem;
}

.stat-arrow.up {
    color: var(--accent);
}

.stat-arrow.down {
    color: #ff6b6b;
}

.bento-stat-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Image Cards */
.bento-image-card {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.bento-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.bento-image-card:hover img {
    transform: scale(1.05);
}

.bento-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.bento-image-overlay h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.bento-image-card-wide {
    grid-column: span 2;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.bento-image-card-wide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Glow Effects - Disabled */
.bento-glow-green {
    box-shadow: none;
}

.bento-glow-accent::before {
    display: none;
}

/* Feature Card */
.bento-feature-card {
    display: flex;
    flex-direction: column;
}

.bento-feature-visual {
    margin-bottom: 16px;
}

.feature-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.feature-box {
    aspect-ratio: 1;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.feature-box.active {
    border-color: var(--accent);
    background: rgba(0, 255, 136, 0.1);
}

.bento-feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.bento-feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Text Card */
.bento-text-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.bento-text-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive Bento */
@media (max-width: 1100px) {
    .bento-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-title-card {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 700px) {
    .bento-hero {
        padding: 120px 20px 60px;
    }

    .bento-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .bento-title-card,
    .bento-image-card-wide {
        grid-column: span 1;
    }

    .bento-main-title {
        font-size: 1.8rem;
    }

    .bento-card {
        margin: 0 auto;
        width: 100%;
    }
}

/* ===== Showcase Section (Simplified Image-Only) ===== */
.showcase-section {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}

.showcase-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.showcase-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Use cover to ensure the section is filled and content is centered */
    object-position: center;
    opacity: 1;
}

.showcase-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
    pointer-events: none;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
}

.hero-content {
    max-width: 900px;
    padding: 40px 24px;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.hero-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

/* ===== Service Cards ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-content {
    padding: 24px;
}

.service-card h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.95rem;
}

.service-card-link:hover {
    gap: 12px;
}

/* ===== Product Gallery ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    z-index: 2;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* Hover Swap Variant */
.gallery-item--hover-swap .img-back {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
}

.gallery-item--hover-swap:hover .img-front {
    opacity: 0;
}

.gallery-item--hover-swap:hover .img-back {
    opacity: 1;
}

/* ===== Newsletter Section ===== */
.newsletter {
    text-align: center;
    background: transparent;
    padding: 80px 24px;
}

.newsletter h2 {
    margin-bottom: 16px;
}

.newsletter p {
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--accent);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form button {
    padding: 16px 32px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--accent-hover);
}

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }
}

/* ===== CTA Section ===== */
.cta-section {
    text-align: center;
    padding: 120px 24px;
    background: transparent;
    overflow: hidden;
    /* Ensure animations don't trigger scrollbars */
}

/* Staggered Entrance Animations */
.cta-section h2,
.cta-section p,
.cta-section .cta-diagram,
.cta-section .hero-cta {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-section.visible h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.cta-section.visible p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.cta-section.visible .cta-diagram {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.3s;
}

.cta-section.visible .hero-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
    /* Apply float animation after entrance */
    animation: gentleFloat 6s ease-in-out infinite;
    animation-delay: 1.5s;
    /* Wait for entrance to finish */
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Video Background CTA Variation */
.cta-section.has-video-bg {
    position: relative;
    padding: 190px 24px;
    color: #fff;
    overflow: hidden;
    background: #000;
}

.cta-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.cta-section.has-video-bg .container {
    position: relative;
    z-index: 3;
}

.cta-section h2 {
    margin-bottom: 16px;
}

.cta-section p {
    margin-bottom: 32px;
}

/* ===== About Section ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 16px;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* ===== Page Hero ===== */
.page-hero {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.3;
}

.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 30%, transparent 70%, var(--bg-primary) 100%);
}

/* ===== Values Section (Redesigned) ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.value-card {
    position: relative;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.value-number {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    font-family: var(--font-display);
    pointer-events: none;
    transition: var(--transition);
}

.value-card:hover .value-number {
    color: rgba(255, 255, 255, 0.08);
}

.value-content {
    position: relative;
    z-index: 2;
}

.value-content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #fff;
}

.value-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* ===== Contact Form ===== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 18px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.form-submit:hover {
    background: var(--accent-hover);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.95rem;
}

.footer-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    padding: 6px 0;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.footer-social a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.mb-5 {
    margin-bottom: 48px;
}

/* ===== Scroll Reveal Text Effect ===== */
.scroll-reveal-section {
    height: 300vh;
    /* Increased for deeper scroll interaction */
    background: transparent;
    position: relative;
}

.scroll-reveal-content {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1265px;
    /* 15% wider than 1100px */
    margin: 0 auto;
    padding: 0 40px;
}

.reveal-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.reveal-logo {
    width: 225px;
    /* Reduced 25% from 300px */
    opacity: 0;
    transition: var(--transition);
}

.reveal-logo.animate {
    animation: logoBounce 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes logoBounce {
    0% {
        opacity: 0;
        transform: translateY(-150px) scaleY(1.2);
    }

    40% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }

    60% {
        transform: translateY(-20px) scaleY(1.05);
    }

    80% {
        transform: translateY(0) scaleY(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

.scroll-reveal-text {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2.6vw, 1.85rem);
    /* Reduced 25% from clamp(1.4rem, 3.5vw, 2.45rem) */
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-align: center;
    /* Centered as per design */
}

/* ===== Theme Specifics ===== */
.theme-light {
    background: transparent;
    color: #111111;
}

/* ===== Google Reviews Section ===== */
.reviews-section {
    padding: 100px 0;
    overflow: hidden;
    background: #ffffff;
}

.reviews-header-container {
    margin-bottom: 60px;
}

.reviews-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 400;
    color: #111111;
    margin: 0;
}

.reviews-title strong {
    font-weight: 700;
}

.reviews-full-grid {
    width: 100%;
}

.reviews-grid {
    display: flex;
    gap: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.review-summary {
    flex: 0 0 350px;
    display: flex;
    justify-content: center;
    padding: 20px 40px;
    background: #ffffff;
}

.summary-card {
    text-align: center;
}

.excellent-label {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    color: #111111;
}

.stars-row {
    color: #ffc300;
    font-size: 1.8rem;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.review-count {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.google-logo-box {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: -2px;
}

.google-g {
    color: #4285F4;
}

.google-o1 {
    color: #EA4335;
}

.google-o2 {
    color: #FBBC05;
}

.google-g2 {
    color: #4285F4;
}

.google-l {
    color: #34A853;
}

.google-e {
    color: #EA4335;
}

/* Carousel Viewport */
.reviews-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 10px 0 20px 0;
    width: 100%;
    margin: 0 auto;
}

.reviews-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.review-card {
    flex: 0 0 calc(33.333% - 20px);
    background: #f9f9f9;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 30px;
    box-shadow: none;
    text-align: left;
    margin-right: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1100px) {
    .review-card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .review-card {
        flex: 0 0 100%;
        margin-right: 0;
    }
}

/* Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.indicator-bar {
    width: 60px;
    /* Longer bars */
    height: 8px;
    background: #e0e0e0;
    border-radius: 100px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.indicator-fill {
    width: 0%;
    height: 100%;
    background: #fc5d35;
    /* Orange color from image, or use var(--accent) if preferred */
    background: var(--accent);
    /* Using site accent for consistency */
    border-radius: 100px;
    display: block;
    will-change: width;
}

/* ===== Highlight Heading Section ===== */
.highlight-heading-section {
    padding: 80px 0 40px;
    background: transparent;
    text-align: center;
}

.highlight-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #000000;
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.03em;
}

.highlight-title strong {
    font-weight: 800;
    display: block;
    margin-top: 10px;
}



.review-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111;
}

.review-date {
    font-size: 0.8rem;
    color: #888;
}

.google-icon-small {
    position: absolute;
    top: 0;
    right: 0;
}

.review-stars {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    color: #ffc300;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.review-body {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #333;
}

/* Responsive */
@media (max-width: 900px) {
    .reviews-grid {
        flex-direction: column;
        align-items: center;
    }

    .review-summary {
        flex: none;
        margin-bottom: 40px;
    }

    .reviews-carousel {
        width: 100%;
        margin-left: 0;
        padding-left: 24px;
        padding-right: 24px;
        padding-bottom: 24px;
    }
}

.scroll-reveal-text .word {
    display: inline-block;
    color: #444444;
    /* Darker gray for initial state */
    transition: color 0.4s ease-out;
}

.scroll-reveal-text .word.revealed {
    color: #ffffff;
}

/* ===== FAQ Section (Accordion) ===== */
.faq-section {
    padding: 80px 0 120px;
    background: transparent;
}

.faq-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 400;
}

.faq-title strong {
    font-weight: 700;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpBounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Staggered animation delays for the 10 items */
.faq-item:nth-child(1) {
    animation-delay: 0.1s;
}

.faq-item:nth-child(2) {
    animation-delay: 0.2s;
}

.faq-item:nth-child(3) {
    animation-delay: 0.3s;
}

.faq-item:nth-child(4) {
    animation-delay: 0.4s;
}

.faq-item:nth-child(5) {
    animation-delay: 0.5s;
}

.faq-grid .faq-col:nth-child(2) .faq-item:nth-child(1) {
    animation-delay: 0.6s;
}

.faq-grid .faq-col:nth-child(2) .faq-item:nth-child(2) {
    animation-delay: 0.7s;
}

.faq-grid .faq-col:nth-child(2) .faq-item:nth-child(3) {
    animation-delay: 0.8s;
}

.faq-grid .faq-col:nth-child(2) .faq-item:nth-child(4) {
    animation-delay: 0.9s;
}

.faq-grid .faq-col:nth-child(2) .faq-item:nth-child(5) {
    animation-delay: 1.0s;
}

@keyframes slideUpBounce {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-question {
    width: 100%;
    background: var(--accent);
    color: #000;
    padding: 20px 24px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.3s ease, border-radius 0.3s ease;
    border: none;
    outline: none;
}

.faq-item.active .faq-question {
    border-radius: 8px 8px 0 0;
}

.faq-question:hover {
    filter: brightness(0.95);
}

.faq-icon {
    font-style: normal;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.faq-item.active .faq-icon {
    transform: rotate(90deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
    border: 1px solid var(--border-color);
    border-top: none;
}

.faq-answer-inner {
    min-height: 0;
    padding: 0 24px;
    transition: padding 0.4s ease;
}

.faq-item.active .faq-answer-inner {
    padding: 24px;
}

.faq-answer p {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    /* Prevent font size shifting during animation */
    -webkit-text-size-adjust: none;
    width: 100%;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .faq-grid {
        grid-template-columns: 1fr;
        padding: 0 24px;
    }
}

/* ===== Contact Section Custom Theme ===== */
.contact-custom-bg {
    background-color: #8d99ae !important;
    color: #ffffff;
}

.contact-custom-bg h2,
.contact-custom-bg h3 {
    color: #ffffff;
}

.contact-custom-bg p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-custom-bg .form-group label {
    color: #ffffff;
}

.contact-custom-bg input,
.contact-custom-bg select,
.contact-custom-bg textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.contact-custom-bg option {
    background-color: #8d99ae;
    /* Match section background */
    color: #ffffff;
}

.contact-custom-bg input::placeholder,
.contact-custom-bg textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-custom-bg .form-submit {
    background: var(--accent);
    color: #000000;
}

.contact-custom-bg .form-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* ===== Newsletter Section Background ===== */
.newsletter-section-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('../images/mujer sentada.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    padding: 120px 0 !important;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-section-bg .newsletter h2 {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.newsletter-section-bg .newsletter p {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== CTA Section Diagram ===== */
.cta-diagram {
    max-width: 900px;
    width: 90%;
    margin: 50px auto;
    display: block;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.cta-diagram:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .cta-diagram {
        margin: 30px auto;
        width: 100%;
    }
}

/* ===== Glowing Timeline Section ===== */
.glow-timeline-section {
    position: relative;
    padding: 120px 0 150px;
    background: transparent;
    overflow: hidden;
}

.timeline-section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 100px;
    position: relative;
    z-index: 5;
}

.timeline-section-title strong {
    font-weight: 700;
}

/* Central Vertical Line */
.timeline-line {
    display: none;
    /* Replaced by SVG */
}

/* SVG Timeline Path */
.timeline-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.timeline-path {
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Glowing Orb */
.timeline-glow-orb {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 15px 8px rgba(255, 195, 0, 0.6),
        0 0 40px 20px rgba(255, 195, 0, 0.4),
        0 0 80px 40px rgba(255, 195, 0, 0.2);
    z-index: 3;
    /* Behind items (z-index 5) */
    will-change: left, top;
    pointer-events: none;
}



/* Large ambient glow behind the orb */
.timeline-glow-orb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 195, 0, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Timeline Items Container */
.timeline-items {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.timeline-extra-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
    /* Let gap handle spacing if needed, but here it is a single block in the flow */
}

/* Reset margins for items inside the row wrapper */
.timeline-extra-row .timeline-item.left,
.timeline-extra-row .timeline-item.right {
    margin: 0;
    align-self: center;
    /* Vertical alignment */
    transform: translateX(0);
    /* Override initial off-screen transform */
    opacity: 1;
    /* Make visible by default or handle with JS */
}

.timeline-item.text-item {
    display: flex;
    /* Flex context for text */
    justify-content: flex-end;
    /* Align text block to right side of left column */
    padding-right: 40px;
    /* Space from center */
}

.timeline-item.text-item.text-item-right {
    justify-content: flex-start;
    /* Align text block to left side of right column */
    padding-right: 0;
    padding-left: 40px;
    /* Space from center */
}

.reveal-on-scroll {
    font-family: var(--font-display);
    color: #444;
    /* Start Gray */
    margin: 0;
    text-align: center;
}

.reveal-word {
    display: inline-block;
    transition: color 0.5s ease;
    color: #444;
}

.reveal-word.revealed {
    color: #ffffff;
    /* End White */
}

/* Individual Timeline Item */
.timeline-item {
    position: relative;
    width: 45%;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Left cards start off-screen to the left */
.timeline-item.left {
    align-self: flex-start;
    margin-left: 5%;
    transform: translateX(-120px);
}

/* Right cards start off-screen to the right */
.timeline-item.right {
    align-self: flex-end;
    margin-right: 5%;
    transform: translateX(120px);
}

/* When visible, bounce into place */
.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Branch Lines - Now handled by SVG path */
.timeline-branch {
    display: none;
}

/* Timeline Card */
.timeline-card {
    display: block;
    position: relative;
    background: rgba(15, 15, 15, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.timeline-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 195, 0, 0.3);
}

/* Card Glow Effect (appears when lit) */
.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(255, 195, 0, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.timeline-item.lit .card-glow {
    opacity: 1;
}

.timeline-item.lit .timeline-card {
    border-color: rgba(255, 195, 0, 0.4);
    box-shadow:
        0 0 30px rgba(255, 195, 0, 0.1),
        inset 0 1px 0 rgba(255, 195, 0, 0.2);
}

/* Card Image */
.timeline-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.timeline-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-card:hover .timeline-card-image img {
    transform: scale(1.05);
}

/* Card Content */
.timeline-card-content {
    position: relative;
    padding: 30px;
    z-index: 2;
}

.timeline-card-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
}

.timeline-card-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.timeline-card-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.timeline-card-link {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    transition: color 0.3s ease;
}

.timeline-card:hover .timeline-card-link {
    color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
    .timeline-line {
        left: 30px;
    }

    .timeline-glow-orb {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        max-width: 450px;
        margin: 0 auto !important;
    }

    .timeline-item.left,
    .timeline-item.right {
        align-self: center;
    }

    .timeline-item.left .timeline-branch,
    .timeline-item.right .timeline-branch {
        display: none;
    }
}

@media (max-width: 900px) {
    .glow-timeline-section .container {
        max-width: 600px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .timeline-items {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .timeline-extra-row {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        width: 100%;
    }

    .timeline-extra-row .timeline-item.left,
    .timeline-extra-row .timeline-item.right {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }

    .timeline-item.text-item {
        padding: 20px 20px 0;
        justify-content: center;
        order: 2;
        text-align: center;
    }

    .timeline-item.text-item.text-item-right {
        padding: 20px 20px 0;
        text-align: center;
    }

    /* Ensure cards (which are not text-items) stay at order 0 or 1 */
    .timeline-item:not(.text-item) {
        order: 1;
    }

    .timeline-card {
        display: block;
        width: 100%;
    }

    .timeline-card-content {
        text-align: center;
    }

    .timeline-card-content h3 {
        text-align: center;
    }

    .timeline-card-content p {
        text-align: center;
    }

    .timeline-card-label {
        text-align: center;
        display: block;
    }

    .timeline-card-link {
        text-align: center;
        display: block;
    }

    .reveal-on-scroll {
        text-align: center !important;
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 600px) {
    .glow-timeline-section {
        padding: 0 0 80px;
    }

    .timeline-section-title {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }

    .timeline-items {
        gap: 40px;
    }

    .timeline-extra-row {
        gap: 20px;
    }

    .timeline-card-image {
        height: 140px;
    }

    .timeline-card-content {
        padding: 20px;
    }

    .timeline-card-content h3 {
        font-size: 1.1rem;
    }

    .timeline-card-content p {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    .timeline-card-label {
        font-size: 0.65rem;
    }

    .reveal-on-scroll {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }

    .timeline-item.text-item,
    .timeline-item.text-item.text-item-right {
        padding: 0 16px;
    }
}

/* ========================================
   3D INTERACTIVE GALLERY SECTION
   Inspired by stackbyte.dev
   ======================================== */

/* 3D Interactive Gallery Styles (Commented out for future use)
.interactive-gallery-section {
    ... (estilos de la galería) ...
}
*/

/*
.interactive-gallery-section {
    position: relative;
    height: 250vh;
    padding: 0;
    background: transparent;
    overflow: visible;
}
... (all gallery styles) ...
*/


/* Highlight Title Section */
.highlight-heading-section {
    padding: 100px 0 60px;
    text-align: center;
}

.highlight-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: #ffffff;
    /* Requested White */
    font-weight: 400;
    letter-spacing: -0.02em;
}

.highlight-title strong {
    color: #facc15;
    /* Vibrant Yellow matching card theme */
    font-weight: 800;
    display: block;
    /* Ensure visual break */
    margin-top: 8px;
}