/* ── TOKENS ───────────────────────────────────── */
:root {
    --bg-primary: #F9F7F2;
    --bg-secondary: #F2EFE9;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --accent: #A89078;
    --border: #E5E0D8;
    --white: #FFFFFF;

    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;

    --section-padding: 120px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ───────────────────────────────── */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.1;
}

p {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.75;
}

em {
    font-style: italic;
}

.label {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent);
    display: block;
    margin-bottom: 1.5rem;
}

/* ── NAVBAR ───────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: padding 0.5s var(--ease), background 0.5s var(--ease);
}

nav.scrolled {
    padding: 0.8rem 4rem;
    background: rgba(249, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

/* Dark nav for inner pages with dark hero */
.nav-dark .logo,
.nav-dark .nav-links a {
    color: var(--white);
}

.nav-dark>.btn {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.nav-dark .nav-toggle span {
    background: var(--white);
}

/* When scrolled, revert to standard light bg */
.nav-dark.scrolled .logo,
.nav-dark.scrolled .nav-links a {
    color: var(--text-primary);
}

/* Ensure mobile menu links are visible in dark mode */
.nav-dark .nav-links.open a {
    color: var(--text-primary);
}

.nav-dark.scrolled>.btn {
    border-color: var(--border);
    color: var(--text-primary);
}

.nav-dark.scrolled .nav-toggle span {
    background: var(--text-primary);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 64px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.5;
}

/* CTA inside nav-links: only visible in mobile overlay */
.nav-links .btn {
    display: none;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-primary);
    transition: transform 0.4s var(--ease), opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span {
    background: var(--text-primary) !important;
}

/* ── HERO ─────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    padding: 0 4rem;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    padding-top: 80px;
}

.hero-content h1 {
    font-size: clamp(3rem, 7vw, 6.5rem);
    margin-bottom: 2.5rem;
}

.hero-content h1 span {
    font-style: italic;
    display: block;
}

.hero-image-wrapper {
    position: relative;
    height: 70vh;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.hero-image-wrapper img {
    position: absolute;
    top: -7.5%;
    left: 0;
    width: 100%;
    height: 115%;
    object-fit: cover;
    display: block;
}

/* ── REVEAL ───────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── SECTIONS ─────────────────────────────────── */
section {
    padding: var(--section-padding) 4rem;
}

/* ── FILOSOFÍA ────────────────────────────────── */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.intro-text h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
}

/* Visual composition wrapper */
.visual-comp {
    position: relative;
    height: 600px;
}

.visual-comp-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 90%;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.visual-comp-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.visual-comp-detail {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 60%;
    overflow: hidden;
    z-index: 2;
    box-shadow: 16px 16px 48px rgba(0, 0, 0, 0.08);
}

.visual-comp-detail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-comp-quote {
    position: absolute;
    top: 15%;
    left: 55%;
    z-index: 10;
    max-width: 240px;
}

.visual-comp-quote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.visual-comp-quote span {
    display: block;
    width: 36px;
    height: 1px;
    background: var(--white);
    margin-top: 1.2rem;
}

/* ── PROYECTOS ────────────────────────────────── */
.projects-editorial {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.project-item {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.project-item img {
    position: absolute;
    top: -7.5%;
    left: 0;
    width: 100%;
    height: 115%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s var(--ease);
}

.project-item:hover img {
    transform: scale(1.04) translateY(-1%);
}

.project-item.large {
    grid-column: span 7;
    height: 600px;
}

.project-item.small {
    grid-column: span 5;
    height: 460px;
    align-self: end;
}

.project-item.wide {
    grid-column: span 12;
    height: 520px;
    margin-top: 3rem;
}

.project-info {
    margin-top: 1.5rem;
}

.project-info h3 {
    font-size: 1.7rem;
}

/* ── GARANTÍAS ────────────────────────────────── */
.garantias-grid {
    display: flex;
    gap: 8rem;
    align-items: flex-start;
}

.garantias-left {
    flex: 1;
}

.garantias-right {
    flex: 1;
    border-left: 1px solid var(--border);
    padding-left: 4rem;
}

.garantia-item {
    margin-bottom: 3rem;
}

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

.garantia-item h4 {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

/* ── BUTTONS ──────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.2rem;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    background: transparent;
    cursor: pointer;
    transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

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

.btn svg {
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(5px);
}

/* ── FOOTER ───────────────────────────────────── */
footer {
    padding: 7rem 4rem 3rem;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.9rem;
}

.footer-links ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 300;
    transition: opacity 0.3s;
}

.footer-links ul li a:hover {
    opacity: 0.5;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-socials {
    display: flex;
    gap: 2rem;
    margin-right: 100px;
}

.footer-socials a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.82rem;
    transition: opacity 0.3s;
}

.footer-socials a:hover {
    opacity: 0.5;
}


/* ══════════════════════════════════════════════════
   INNER PAGE COMPONENTS
   ══════════════════════════════════════════════════ */

/* ── PAGE HERO (inner pages) ──────────────────── */
.page-hero {
    position: relative;
    height: 70vh;
    min-height: 480px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 6rem 4rem 5rem;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(0.8);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.page-hero-content .label {
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.page-hero-content h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    color: var(--white);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.page-hero-content p {
    color: rgba(255, 255, 255, 0.55);
    max-width: 480px;
    font-size: 1rem;
}

/* ── PROCESS STEPS ────────────────────────────── */
.proceso-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.proceso-left h2 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    margin-bottom: 2rem;
}

.step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}

.step:first-child {
    border-top: 1px solid var(--border);
}

.step-num {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
    padding-top: 0.1rem;
}

.step h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.step p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── VALUES GRID ──────────────────────────────── */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.valor-item {
    padding: 3rem 2.5rem;
    border: 1px solid var(--border);
    transition: border-color 0.4s var(--ease);
}

.valor-item:hover {
    border-color: var(--accent);
}

.valor-icon {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    line-height: 1;
}

.valor-item h4 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.valor-item p {
    font-size: 0.95rem;
}

/* ── CTA BANNER ───────────────────────────────── */
.cta-banner {
    background: var(--text-primary);
    padding: var(--section-padding) 4rem;
    text-align: center;
}

.cta-banner h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.5);
    max-width: 500px;
    margin: 0 auto 3rem;
}

.cta-banner .btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.cta-banner .btn:hover {
    background: var(--white);
    color: var(--text-primary);
    border-color: var(--white);
}

/* ── FULL-WIDTH IMAGE BREAK ───────────────────── */
.image-break {
    position: relative;
    height: 55vh;
    min-height: 350px;
    overflow: hidden;
}

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

/* ── FAQ ──────────────────────────────────────── */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 6rem;
    align-items: start;
}

.faq-left h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1.5rem;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 0;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary);
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    transition: transform 0.4s var(--ease);
}

.faq-item.open .faq-question svg {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease), padding 0.5s var(--ease);
    padding: 0 0;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 0 1.8rem;
}

.faq-answer p {
    font-size: 0.95rem;
}

/* ── CONTACT DETAILS GRID ─────────────────────── */
.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.contact-detail {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
}

.contact-detail h4 {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.contact-detail p {
    font-size: 1rem;
}

.contact-detail a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s;
}

.contact-detail a:hover {
    color: var(--accent);
}

/* ── CONTACT FORM (full page) ─────────────────── */
.contact-page-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
}

.contact-page-form .field-full {
    grid-column: span 2;
}

.contact-field {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.8rem;
}

.contact-field label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-field input,
.contact-field textarea,
.contact-field select {
    width: 100%;
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    color: var(--text-primary);
    outline: none;
    font-weight: 300;
}

.contact-field textarea {
    resize: none;
}

.contact-field select {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}


/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 1024px)
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {

    :root {
        --section-padding: 80px;
    }

    nav {
        padding: 1.5rem 2.5rem;
    }

    nav.scrolled {
        padding: 1.1rem 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        position: fixed;
        inset: 0;
        background: var(--bg-primary);
        justify-content: center;
        align-items: center;
        z-index: 999;
        font-size: 1.5rem;
    }

    .nav-links.open .btn {
        display: inline-flex;
    }

    .nav-toggle {
        display: flex;
    }

    nav>.btn {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 0 2.5rem;
        min-height: auto;
        padding-top: 130px;
        padding-bottom: 60px;
        gap: 3rem;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero-image-wrapper {
        height: 50vw;
        min-height: 260px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .visual-comp {
        height: 400px;
    }

    .visual-comp-quote {
        left: 50%;
        max-width: 200px;
        top: 10%;
    }

    .projects-editorial {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-item.large,
    .project-item.small,
    .project-item.wide {
        grid-column: span 1;
        height: 280px;
        margin-top: 0;
    }

    .garantias-grid {
        flex-direction: column;
        gap: 3rem;
    }

    .garantias-right {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    section {
        padding: var(--section-padding) 2.5rem;
    }

    /* Inner page hero */
    .page-hero {
        height: 50vh;
        padding: 6rem 2.5rem 4rem;
    }

    /* Process */
    .proceso-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Values */
    .valores-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* FAQ */
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Contact */
    .contact-details-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-page-form {
        grid-template-columns: 1fr;
    }

    .contact-page-form .field-full {
        grid-column: span 1;
    }

    /* CTA banner */
    .cta-banner {
        padding: var(--section-padding) 2.5rem;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 600px)
   ═══════════════════════════════════════════════ */
@media (max-width: 600px) {

    :root {
        --section-padding: 60px;
    }

    nav {
        padding: 1.2rem 1.5rem;
    }

    nav.scrolled {
        padding: 0.9rem 1.5rem;
    }

    section {
        padding: var(--section-padding) 1.5rem;
    }

    .hero {
        padding: 120px 1.5rem 50px;
    }

    .hero-image-wrapper {
        height: 65vw;
    }

    .project-item.large,
    .project-item.small,
    .project-item.wide {
        height: 60vw;
    }

    /* Inner page hero */
    .page-hero {
        height: auto;
        min-height: 380px;
        padding: 120px 1.5rem 4rem;
    }

    .page-hero-content h1 {
        font-size: 2.8rem;
        line-height: 1.1;
    }

    /* Buttons full width on mobile */
    .btn {
        width: 100%;
        justify-content: center;
        padding: 1.2rem 2rem;
    }

    .visual-comp {
        height: 380px;
        margin-top: 2rem;
    }

    .visual-comp-quote {
        position: relative;
        left: 0;
        top: 0;
        margin-top: 2rem;
        max-width: 100%;
        padding: 0 1rem;
    }

    .visual-comp-quote p {
        font-size: 1rem;
        text-align: center;
    }

    .visual-comp-quote span {
        margin: 1.2rem auto 0;
    }

    .visual-comp-bg {
        width: 100%;
        height: 80%;
        opacity: 0.8;
    }

    .visual-comp-detail {
        width: 60%;
        height: 50%;
        bottom: 5%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-logo {
        font-size: 1.8rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
        margin-top: 1.5rem;
        margin-right: 0;
    }
}

/* ── CHATBOT ─────────────────────────────────── */
#chatbot-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    font-family: var(--font-sans);
}

#chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s var(--ease), background 0.3s ease;
}

#chatbot-toggle:hover {
    transform: scale(1.05) translateY(-3px);
    background: var(--accent);
}

#chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    max-height: 550px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s var(--ease);
    overflow: hidden;
}

#chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#chatbot-header {
    padding: 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.chatbot-title strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.chatbot-title small {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

#chatbot-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
}

#chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 250px;
    scrollbar-width: thin;
}

.chat-msg {
    max-width: 85%;
    padding: 0.8rem 1.1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: msgAppear 0.4s var(--ease) forwards;
}

@keyframes msgAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.chat-msg.bot {
    background: var(--white);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
    align-self: flex-start;
    border: 1px solid var(--border);
}

.chat-msg.user {
    background: var(--text-primary);
    color: var(--white);
    border-bottom-right-radius: 2px;
    align-self: flex-end;
}

#chatbot-options {
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.5);
}

.chat-option-btn {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.chat-option-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-primary);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    #chatbot-window {
        width: calc(100vw - 40px);
        right: -10px;
        bottom: 70px;
    }
}