/* Global Variables */
:root {
    /* Brand Colors (PDF Palette Spec) */
    --color-primary-dark: #1B2B5A;   /* Azul Marino Corporativo */
    --color-primary-light: #009688;  /* Turquesa Agua */
    --color-accent: #F57C00;         /* Naranja Cálido */
    --color-accent-light: #FFF3E0;   /* Fondo Naranja Suave */
    --color-vital-green: #4CAF50;    /* Verde Vital */
    --color-yellow: #FBC02D;         /* Amarillo Optimismo */
    --color-grey-struct: #6D6D6D;    /* Gris Estructura */

    /* Neutral Foundation (PDF Blanco Luminoso #FAFAFA) */
    --color-bg-body: #FAFAFA;        /* Blanco Luminoso */
    --color-bg-alt: #F0F4F8;         /* Tono Azul Claro Corporativo */
    --color-bg-white: #FFFFFF;       /* Off white / Blanco puro */

    --color-neutral-light: #F7F9FC;  /* Blanco/Gris Muy Suave */
    --color-neutral: #E2E8F0;        /* Dividers / Borders */
    --color-neutral-dark: #6D6D6D;   /* Subtítulos */

    /* Text */
    --color-text-main: #333333;      /* Charcoal legible */
    --color-text-header: #1B2B5A;    /* Azul Marino */

    /* CTA */
    --color-cta-primary: #F57C00;    /* Naranja Cálido CTA */
    --color-cta-hover: #E06C00;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* UI Elements */
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --shadow-sm: 0 4px 10px rgba(27, 43, 90, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(27, 43, 90, 0.12);
    --shadow-lg: 0 25px 50px -12px rgba(27, 43, 90, 0.18);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Nunito', sans-serif;
    color: var(--color-text-header);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

button,
.btn {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

/* Buttons */
@media (max-width: 768px) {
    /* Hide elements on mobile */
    .hide-on-mobile {
        display: none !important;
    }
    /* Show hamburger toggle on mobile */
    .nav-toggle {
        display: flex;
    }
}
@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: var(--color-cta-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(245, 124, 0, 0.35);
}

.btn-primary:hover {
    background-color: var(--color-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 124, 0, 0.5);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-primary-light);
    color: var(--color-primary-light);
}

.btn-secondary:hover {
    background-color: var(--color-primary-light);
    color: white;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

header.scrolled .logo {
    font-size: 1.3rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary-dark);
}

.logo span {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--color-text-main);
    position: relative;
    padding: 0.5rem 1rem;
    /* Added padding for hit area */
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
}

.nav-links a:hover {
    color: var(--color-primary-dark);
    background-color: var(--color-accent-light);
    transform: translateY(-2px);
}

.nav-links a::after {
    /* Removed simple line, replaced with pill background on hover above */
    content: none;
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at 60% 50%, #fff 0%, var(--color-neutral-light) 60%, #eae7e3 100%);
    color: var(--color-text-header);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(232, 180, 146, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulse-glow 8s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-lg);
}

.hero-text h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--color-primary-dark), #1a3c1e 30%, var(--color-cta-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    max-width: 500px;
    color: var(--color-text-main);
}


.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.hero-image {
    position: relative;
    perspective: 1000px;
    /* Enables 3D space */
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 4px solid rgba(255, 255, 255, 0.5);
    animation: float 6s ease-in-out infinite;
    transition: transform 0.4s ease-out, box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.hero-image:hover img {
    transform: rotateY(-5deg) rotateX(2deg) scale(1.02);
    box-shadow: 20px 30px 50px rgba(0, 0, 0, 0.2);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* About Section */
.about-section {
    background-color: #fff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.value-card {
    background: var(--color-neutral-light);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--color-neutral);
    transition: transform 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.value-card h4 {
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* ===============================
   SERVICES SECTION
================================ */

.services-section {
    background-color: #f8f9fa;
}

/* ===============================
   TWO COLUMN LAYOUT
================================ */

.service-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* ===============================
   PROCESS GRID
================================ */

.process-grid.compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* ===============================
   PROCESS CARDS
================================ */

.process-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.8rem;
    border-top: 4px solid #d96c45;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    position: relative;

    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

/* STEP NUMBER */
.step-number {
    position: absolute;
    top: -10px;
    left: 18px;
    width: 42px;
    height: 42px;
    background: #d96c45;
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* TEXT */
.process-card h3 {
    margin-top: 1.6rem;
    margin-bottom: 0.6rem;
    color: #d96c45;
    font-size: 1rem;
}

.process-card p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

/* STEP 5 POSITION */
.step-5 {
    width: 75%;
}



/* ===============================
   IMAGE + BENEFITS
================================ */

.service-image {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* Reduced gap */
}

.service-image img {
    width: 100%;
    max-height: 315px;
    /* Constrain height */
    object-fit: cover;
    border-radius: 17px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.service-benefits-wrapper {
    margin-top: 0.5rem;
    /* Reduced margin */
}

.service-benefits-wrapper h4 {
    color: #d96c45;
    margin-bottom: 0.6rem;
}

.service-benefits {
    list-style: none;
    padding: 0;
}

.service-benefits li {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: #374151;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 992px) {
    .service-layout {
        grid-template-columns: 1fr;
    }

    .process-grid.compact {
        grid-template-columns: 1fr;
    }

    .step-5 {
        width: 100%;
    }

    .process-card {
        aspect-ratio: auto;
    }
}

/* ===============================
   SG-SST STYLES
================================ */
.sst-container {
    padding: 1rem;
}

.sst-intro .section-desc {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--color-text-main);
}

.subsection-title {
    text-align: center;
    color: var(--color-cta-primary);
    margin-bottom: 2rem;
    font-weight: 700;
}

.sst-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: flex-start;
    /* Prevent cards from stretching to row height */
}

.sst-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    /* Remove fixed height if it was causing issues with expansion, but here flex should handle it */
    min-height: 100px;
    /* Ensure header fits */
    display: flex;
    flex-direction: column;
    cursor: pointer;
    /* Clickable indication */
}

.sst-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.sst-card.active {
    border-color: var(--color-cta-primary);
    box-shadow: var(--shadow-md);
}

.sst-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
    /* Removed bottom margin, will be added by body when active */
    transition: margin-bottom 0.3s ease;
}

.sst-card.active .sst-card-header {
    margin-bottom: 1rem;
}

.sst-card-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.sst-card.active .sst-card-body {
    max-height: 300px;
    /* Adjust as needed */
    opacity: 1;
}

.sst-card .icon-box {
    width: 50px;
    height: 50px;
    background: var(--color-neutral-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: background 0.3s, color 0.3s;
}

.sst-card:hover .icon-box {
    background: var(--color-primary-dark);
    color: #fff;
}

.sst-card h4 {
    margin: 0;
    color: var(--color-text-header);
    font-size: 1.1rem;
    font-weight: 700;
}

.sst-card-body p {
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.5;
    margin: 0;
}

.sst-note {
    background: #fff5eb;
    /* Soft Orange tint */
    border-left: 4px solid var(--color-cta-primary);
    padding: 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.sst-note .note-icon {
    font-size: 1.5rem;
    color: var(--color-cta-primary);
    margin-top: 0.2rem;
}

.sst-note h5 {
    color: var(--color-cta-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.sst-note p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

/* Footer */
footer {
    background-color: var(--color-primary-dark);
    color: var(--color-neutral);
    padding: var(--spacing-lg) 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Floating Elements */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20BA5C;
}

/* Chatbot */
/* Chatbot */
.chatbot-toggler {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background: var(--color-primary-dark);
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: open-bounce 2s infinite;
}

@keyframes open-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.chatbot-toggler:hover {
    transform: scale(1.1) rotate(-5deg);
    animation: none;
}


.chatbot-toggler span {
    color: white;
    font-size: 1.5rem;
}

.chatbot-window {
    position: fixed;
    right: 90px;
    bottom: 20px;
    width: 350px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transform-origin: bottom right;
    transition: all 0.3s ease;
    z-index: 1001;
}

.show-chatbot .chatbot-window {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}

.chat-header {
    background: var(--color-primary-dark);
    padding: 1rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-body {
    height: 350px;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    display: flex;
}

.chat-footer input {
    width: 100%;
    border: 1px solid #ddd;
    padding: 0.5rem;
    border-radius: 20px;
    outline: none;
}

.chat-footer button {
    background: none;
    border: none;
    color: var(--color-primary-light);
    margin-left: 0.5rem;
    cursor: pointer;
}

/* Chat Bubbles */
.chat-msg {
    display: flex;
    margin-bottom: 0;
    /* removed margin-bottom as gap handles it, ensuring tighter flow */
    opacity: 0;
    animation: slideUpFade 0.3s ease forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-msg .msg-content {
    background: white;
    padding: 0.8rem 1rem;
    border-radius: 12px 12px 12px 2px;
    max-width: 85%;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: var(--color-text-main);
    border: 1px solid #eee;
}

.user-msg {
    justify-content: flex-end;
}

.user-msg .msg-content {
    background: var(--color-primary-dark);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 12px 12px 2px 12px;
    max-width: 85%;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(47, 82, 51, 0.2);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 15px;
    background: white;
    border-radius: 12px;
    width: fit-content;
    border: 1px solid #eee;
    margin-bottom: 10px;
    animation: slideUpFade 0.3s ease forwards;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}


/* Tabs Interface */
.tabs-container {
    width: 100%;
    margin-top: 2rem;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    border-bottom: 2px solid #ddd;
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-main);
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    border-radius: var(--radius-sm);
}


.service-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-accent-light);
    /* Soft orange bg */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cta-primary);
    /* Orange icon */
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ... */

.tab-btn:hover {
    color: var(--color-cta-primary);
    background-color: var(--color-accent-light);
}

.tab-btn.active {
    color: var(--color-cta-primary);
    background-color: var(--color-accent-light);
}

.tab-btn.active::after {
    background-color: var(--color-cta-primary);
}


.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    border: 2px solid white;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-5px);
}

/* Chatbot Override for Position if needed */
.chatbot-toggler {
    bottom: 25px;
    /* Adjust slightly if needed */
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nav-links {
        display: none;
        /* simple mobile hide for now, would need hamburger */
    }

    .tabs-nav {
        flex-direction: column;
        gap: 0.5rem;
        border-bottom: none;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
        background-color: #f0f0f0;
    }

    .tab-btn.active::after {
        display: none;
        /* Hide underline on mobile */
    }
}

/* Chat Options (Chips) */
.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.option-btn {
    background-color: #fff;
    border: 1px solid var(--color-primary-light);
    color: var(--color-primary-light);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.option-btn:hover {
    background-color: var(--color-primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.option-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background-color: #f0f0f0;
    border-color: #ddd;
    color: #999;
}

/* Game Modal Styles */
.game-trigger {
    position: fixed;
    bottom: 25px;
    left: 20px;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    display: none;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 999;
}

.game-trigger:hover {
    transform: translateY(-3px);
    background: var(--color-cta-primary);
    color: white;
}

.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.game-modal.active {
    opacity: 1;
    visibility: visible;
}

.game-content {
    background: white;
    padding: 20px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.game-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--color-primary-dark);
}

.close-game {
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.close-game:hover {
    color: var(--color-cta-primary);
}

.game-score-board {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-primary-dark);
    margin-bottom: 10px;
}

canvas#gameCanvas {
    background: linear-gradient(to bottom, #e0f7fa, #fff);
    border-radius: 10px;
    border: 2px solid var(--color-neutral);
    cursor: crosshair;
    display: block;
    width: 100%;
    height: 400px;
    /* Fixed height for consistency */
}

/* Process Diagram Component */
.process-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin: 2rem 0;
    position: relative;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 150px;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-top: 4px solid var(--color-primary-light);
    position: relative;
    transition: transform 0.3s;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--color-cta-primary);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--color-bg-alt);
    color: var(--color-primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.process-arrow {
    align-self: center;
    color: var(--color-neutral-dark);
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .process-container {
        flex-direction: column;
        align-items: center;
    }

    .process-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
}

/* Simple Comparison Chart */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.comparison-item {
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--color-cta-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Carousel / Slideshow Styles */
/* Carousel / Slideshow Styles (Services Page) */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    min-height: 500px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.carousel-slide {
    display: none;
    padding: 3rem;
    animation: fadeEffect 0.6s ease;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeEffect {
    from {
        opacity: 0.6;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(42, 72, 46, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav-btn:hover {
    background: var(--color-cta-primary);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    text-align: center;
    padding: 1rem;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-neutral);
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.2);
}

/* Homepage Infinite Auto-Scroll Slider */
.slider {
    background: white;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .125);
    height: 480px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Homepage Hero Carousel */
.hero-carousel-container {
    position: relative;
    max-width: 1000px;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    background: #fff;
}

.hero-timer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--color-cta-primary);
    width: 0%;
    z-index: 20;
    pointer-events: none;
    transition: width 10s linear;
}


.hero-carousel-track {
    display: flex;
    width: 300%;
    /* 3 slides */
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide {
    width: 33.333%;
    /* 100% / 3 */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.slide-content-box {
    flex: 1;
    padding: 3rem;
    color: var(--color-text-main);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.slide-content-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

.slide-content-box p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.5;
    color: #333;
}

.slide-image-box {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.slide-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s linear;
    /* Subtle zoom effect during the 10s view */
}

/* Animation class for image zoom */
.hero-slide.active-zoom .slide-image-box img {
    transform: scale(1.1);
}

/* Color Variants for Slides */
.bg-variant-1 {
    background-color: #E8F5E9;
}

/* Light Green */
.bg-variant-2 {
    background-color: #FFF3E0;
}

/* Light Orange */
.bg-variant-3 {
    background-color: #E3F2FD;
}

/* Light Blue */

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 25%;
    /* Center under the text content which is 50% width */
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active {
    background: var(--color-cta-primary);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .hero-carousel-container {
        height: auto;
        min-height: 550px;
    }

    .hero-slide {
        flex-direction: column-reverse;
    }

    .slide-image-box {
        flex: 0 0 200px;
        width: 100%;
    }

    .slide-content-box {
        padding: 2rem;
        text-align: center;
    }

    .hero-dots {
        left: 50%;
        bottom: 10px;
    }
}


/* Carousel dots fix */
.dot.active,
.dot:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.2);
}

/* Hexagon Values Diagram */
.hexagon-container {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 580px;
    margin: 4rem auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}


/* Polar positioning helper will be updated below */

.hexagon-center {
    position: absolute;
    width: 220px;
    height: 190px;
    background: rgba(27, 43, 90, 0.97);
    backdrop-filter: blur(10px);
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 2.8rem;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--color-accent);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    transition: all 0.4s ease;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.hexagon-center h4 {
    color: var(--color-accent);
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
    font-weight: 800;
    text-transform: uppercase;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.2;
    max-width: 115px;
}

.hexagon-center p {
    font-size: 0.68rem;
    color: white;
    line-height: 1.3;
    margin: 0;
    max-width: 115px;
    word-break: break-word;
}

.value-hexagon {
    position: absolute;
    width: 160px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 1rem;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background-color: var(--color-primary-dark);
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.value-hexagon .img-wrapper {
    width: 65px;
    height: 65px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.value-hexagon img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}

.value-hexagon:hover .img-wrapper {
    transform: scale(1.1);
}

.value-hexagon span {
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.hex-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.value-hexagon:hover {
    transform: translate(-50%, -50%) scale(1.05);
    z-index: 15;
}

/* Ensure hexagons are relative to the container */
.value-hexagon,
.hexagon-center {
    position: absolute;
    transform: translate(-50%, -50%);
}

/* Colors aligned to PDF palette (#1B2B5A, #F57C00, #4CAF50, #009688, #FBC02D, #6D6D6D) */
.hex-1 {
    left: 50%;
    top: 15%;
    background-color: #1B2B5A;
}

/* Top - Azul Marino Corporativo */
.hex-2 {
    left: 80%;
    top: 32%;
    background-color: #F57C00;
}

/* Top Right - Naranja Cálido */
.hex-3 {
    left: 80%;
    top: 68%;
    background-color: #4CAF50;
}

/* Bottom Right - Verde Vital */
.hex-4 {
    left: 50%;
    top: 85%;
    background-color: #009688;
}

/* Bottom - Turquesa Agua */
.hex-5 {
    left: 20%;
    top: 68%;
    background-color: #FBC02D;
    color: #1B2B5A;
}

.hex-5 span {
    color: #1B2B5A !important;
}

/* Bottom Left - Amarillo Optimismo */
.hex-6 {
    left: 20%;
    top: 32%;
    background-color: #6D6D6D;
}

/* Top Left - Gris Estructura */


/* Top Left */

/* Top Left */

/* Interaction states */
.hexagon-container.has-focus .value-hexagon:not(.active) {
    opacity: 0.2;
    filter: grayscale(1) blur(3px);
    transform: translate(-50%, -50%) scale(0.7) !important;
}

.value-hexagon.active {
    z-index: 30;
    transform: translate(-50%, -50%) scale(1.3) !important;
    filter: brightness(1.2) drop-shadow(0 0 30px var(--color-accent));
    border: 2px solid var(--color-accent);
}

@media (max-width: 768px) {
    .hexagon-container {
        display: none;
    }
}

/* ==========================================================================
   Compass UI Styles
   ========================================================================== */

.compass-section-wrapper {
    padding: var(--spacing-md) 0;
}

.compass-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.compass-container {
    position: relative;
    width: 450px;
    height: 450px;
    margin: 0 auto;
    background: var(--color-bg-white);
    border-radius: 50%;
    box-shadow:
        inset 0 0 50px rgba(42, 72, 46, 0.05),
        var(--shadow-lg);
    border: 15px solid var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
}

.compass-container.is-pointing {
    border-color: var(--color-primary-light);
}

.compass-ring {
    position: absolute;
    width: 90%;
    height: 90%;
    border: 1px dashed var(--color-neutral-dark);
    border-radius: 50%;
    opacity: 0.2;
}

.compass-point {
    position: absolute;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.compass-point .label {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--color-primary-dark);
    display: block;
    text-align: center;
    transition: var(--transition-fast);
}

.compass-point:hover .label,
.compass-point.active .label {
    color: var(--color-cta-primary);
    transform: scale(1.2);
}

.compass-point .marker {
    width: 4px;
    height: 12px;
    background: var(--color-primary-dark);
    margin: 4px auto 0;
    border-radius: 2px;
}

.compass-point.north {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.compass-point.south {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.compass-focus-point {
    position: absolute;
    width: 55px;
    height: 55px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--color-primary-light);
    border: 2px solid var(--color-bg-alt);
}

.compass-focus-point:hover,
.compass-focus-point.active {
    background: var(--color-primary-dark);
    color: white;
    transform: scale(1.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--color-accent);
}

.compass-focus-point.nw {
    top: 25%;
    left: 25%;
    transform: translate(-50%, -50%);
}

.compass-focus-point.ne {
    top: 25%;
    right: 25%;
    transform: translate(50%, -50%);
}

.compass-focus-point.sw {
    bottom: 25%;
    left: 25%;
    transform: translate(-50%, 50%);
}

.compass-focus-point.se {
    bottom: 25%;
    right: 25%;
    transform: translate(50%, 50%);
}

.compass-needle {
    position: absolute;
    width: 6px;
    height: 75%;
    background: transparent;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 5;
    pointer-events: none;
}

.needle-north {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 70px solid var(--color-cta-primary);
    transform: translateX(-50%);
    filter: drop-shadow(0 0 5px rgba(217, 108, 69, 0.3));
}

.needle-south {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 70px solid var(--color-neutral-dark);
    transform: translateX(-50%);
}

.compass-hub {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 20;
    cursor: pointer;
    border: 6px solid var(--color-bg-alt);
    transition: var(--transition-bounce);
}

.compass-hub:hover {
    transform: scale(1.05);
    border-color: var(--color-accent);
}

.inner-hub {
    width: 100px;
    height: 100px;
    background: var(--color-primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 2.5rem;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.compass-info {
    padding: 3rem;
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-left: 8px solid var(--color-cta-primary);
    animation: slideRightFade 0.5s ease-out;
}

@keyframes slideRightFade {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.compass-info .eyebrow {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-cta-primary);
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.compass-info h3 {
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    font-family: "Poppins", sans-serif;
}

.compass-info p {
    font-weight: 400;
    color: var(--color-text-main);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* Tooltips */
.tooltip {
    position: absolute;
    background: var(--color-text-header);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
    pointer-events: none;
}

.compass-point .tooltip {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
}

.compass-point:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-15px);
}

.shadow-tooltip {
    bottom: -35px !important;
    top: auto !important;
}

.compass-focus-point:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .compass-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .compass-container {
        width: 350px;
        height: 350px;
    }

    .compass-hub {
        width: 110px;
        height: 110px;
    }

    .inner-hub {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }

    .compass-info {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .compass-container {
        width: 300px;
        height: 300px;
        border-width: 10px;
    }

    .compass-focus-point {
        width: 45px;
        height: 45px;
    }

    .compass-info h3 {
        font-size: 1.8rem;
    }
}

/* ============================================
   MULTI-GAME SYSTEM STYLES
   ============================================ */

/* Game Trigger Button */
.game-trigger {
    position: fixed;
    bottom: 180px;
    right: 20px;
    background: linear-gradient(135deg, #D96C45, #E89B6E);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(217, 108, 69, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.game-trigger:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 30px rgba(217, 108, 69, 0.6);
}

.game-trigger i {
    font-size: 1.8rem;
    margin-bottom: 2px;
}

.game-trigger span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Game Modal */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.game-modal.active {
    opacity: 1;
    pointer-events: all;
}

.game-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.game-modal.active .game-content {
    transform: scale(1);
}

.game-header {
    background: linear-gradient(135deg, #2A482E, #3a5a3e);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 20px 20px 0 0;
}

.game-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.close-game {
    cursor: pointer;
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.close-game:hover {
    transform: rotate(90deg);
    color: #D96C45;
}

/* Game Selection Menu */
.game-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.game-select-btn {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
}

.game-select-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #D96C45;
    background: linear-gradient(135deg, #fff, #f8f9fa);
}

.game-icon-circle {
    width: 100px;
    height: 80px;
    background: linear-gradient(135deg, #fff5f0, #ffe8d9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 108, 69, 0.2);
    border: 3px solid #D96C45;
}

.game-select-btn:hover .game-icon-circle {
    width: 100px;
    height: 80px;
    background: linear-gradient(135deg, #fff5f0, #ffe8d9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 108, 69, 0.2);
    border: 3px solid #D96C45;
}

.game-select-btn span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2A482E;
}

.game-select-btn small {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Game Containers */
.game-container {
    padding: 2rem;
}

.game-score-board {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #2A482E;
}

.back-to-menu-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.back-to-menu-btn:hover {
    background: #5a6268;
    transform: translateX(-5px);
}

/* Canvas Styles */
#gameCanvas,
#pacmanCanvas {
    width: 100%;
    height: 450px;
    border: 3px solid #2A482E;
    border-radius: 15px;
    background: #f8f9fa;
    display: block;
    margin: 0 auto;
}

/* Word Scramble Game Styles */
.word-game-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
}

.word-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    font-weight: 600;
    color: #2A482E;
}

.scrambled-word-display {
    font-size: 3rem;
    font-weight: 800;
    color: #D96C45;
    letter-spacing: 0.5rem;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff5f0, #ffe8d9);
    border-radius: 15px;
    border: 3px dashed #D96C45;
    min-width: 300px;
}

.word-hint {
    font-size: 1.1rem;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

.word-input {
    width: 100%;
    max-width: 400px;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    text-align: center;
    outline: none;
    transition: all 0.3s;
}

.word-input:focus {
    border-color: #D96C45;
    box-shadow: 0 0 0 3px rgba(217, 108, 69, 0.1);
}

.word-submit-btn {
    background: linear-gradient(135deg, #D96C45, #E89B6E);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(217, 108, 69, 0.3);
}

.word-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 108, 69, 0.4);
}

.word-feedback {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.word-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.word-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.word-feedback.warning {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
}

.word-feedback.gameover {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
    font-size: 1.2rem;
}

/* Pac-Man Controls */
.pacman-controls {
    text-align: center;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-content {
        width: 95%;
        max-height: 95vh;
    }

    .game-menu {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    #gameCanvas,
    #pacmanCanvas {
        height: 350px;
    }

    .scrambled-word-display {
        font-size: 2rem;
        letter-spacing: 0.3rem;
        min-width: 200px;
    }

    .game-trigger {
        width: 55px;
        height: 55px;
        bottom: 160px;
    }

    .game-trigger i {
        font-size: 1.5rem;
    }
}


/* ========================================
   Process Section Styles
   ======================================== */

.process {
    background: var(--color-bg-white);
    position: relative;
}

.process h2 {
    margin-bottom: 3.5rem;
    font-size: 2.2rem;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    background: #ffffff;
    border-radius: 18px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(141, 169, 118, 0.1);
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary-light);
}

.step .number {
    position: absolute;
    top: -20px;
    left: 2rem;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-light));
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 6px 15px rgba(42, 72, 46, 0.3);
    transition: all 0.3s ease;
}

.step:hover .number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(42, 72, 46, 0.4);
}

.step h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
    font-size: 1.3rem;
    font-weight: 700;
}

.step p {
    color: var(--color-text-main);
    line-height: 1.7;
    font-size: 0.95rem;
    opacity: 0.9;
}

.process .note {
    margin-top: 2.5rem;
    text-align: center;
    color: var(--color-text-main);
    font-size: 1rem;
    font-style: italic;
    opacity: 0.85;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem;
    background: var(--color-accent-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-accent);
}

/* Responsive adjustments for process section */
@media (max-width: 768px) {
    .process h2 {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .step {
        padding: 2rem 1.5rem 1.5rem;
    }

    .step .number {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        left: 1.5rem;
    }

    .step h3 {
        font-size: 1.2rem;
    }

    .process .note {
        font-size: 0.95rem;
        padding: 1.2rem;
    }
}


/* FORCE TAB FIX */
.tab-content {
    display: none !important;
}

.tab-content.active {
    display: block !important;
}

/* REVEAL TEXT STYLES */
.reveal-text-container {
    position: relative;
    cursor: pointer;
    display: block;
    margin-bottom: 0;
}

.reveal-text-content {
    color: transparent;
    transition: color 0.5s ease 99999s;
}

.reveal-dots {
    position: absolute;
    inset: 0;
    /* Black dots, 2px visual size (1px radius) */
    background-image: radial-gradient(circle, #000 1px, transparent 1.5px);
    background-size: 6px 6px;
    background-repeat: repeat;
    background-position: left top;
    opacity: 1;
    transition: opacity 0.5s ease 99999s;
    pointer-events: none;
}

.reveal-text-container:hover .reveal-text-content {
    color: var(--color-text-main);
    transition: color 1.5s ease 0s;
}

.reveal-text-container:hover .reveal-dots {
    opacity: 0;
    transition: opacity 1.5s ease 0s;
}

/* Hexagon Values fitting */
.value-hexagon .hex-content span {
    font-size: 0.72rem !important;
    font-weight: 700;
    line-height: 1.1;
    word-break: normal;
    text-align: center;
    max-width: 88%;
    margin: 4px auto 0;
    display: block;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* Chatbot Option Buttons Wrap & No Horizontal Scroll */
.chat-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.chat-options .option-btn {
    white-space: normal !important;
    word-break: break-word !important;
    text-align: left !important;
    line-height: 1.4 !important;
    padding: 10px 14px !important;
    height: auto !important;
    min-height: 40px !important;
    width: 100% !important;
    display: block !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}