@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   DESIGN SYSTEM VARIABLES
   ========================================================================== */
:root {
    /* Brand Colors */
    --color-green: #5eab33;
    --color-green-dark: #3e7420;
    --color-green-light: #f2f9ed;
    --color-gold: #d2a13e;
    --color-gold-dark: #a0781a;
    --color-gold-light: #faf5eb;
    
    /* Neutral Colors */
    --color-bg: #fcfbf9;         /* Cream main background */
    --color-card: #ffffff;       /* Pure white for cards */
    --color-text-main: #2d3529;  /* Elegant charcoal green-grey for body */
    --color-text-muted: #616e5c; /* Muted text */
    --color-border: #eae8e3;     /* Thin divider lines */
    
    /* Layout & Shadow Tokens */
    --shadow-premium: 0 20px 40px -15px rgba(45, 53, 41, 0.05);
    --shadow-hover: 0 30px 60px -20px rgba(94, 171, 51, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(45, 53, 41, 0.04);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Animations */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

/* ==========================================================================
   GLOBAL UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

.section-padding {
    padding: 120px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
}

.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.text-green { color: var(--color-green); }

/* Typography Scales */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.8rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.8rem;
    letter-spacing: -0.01em;
}

p {
    font-weight: 400;
    color: var(--color-text-muted);
}

.lead {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-xl);
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-green);
    color: var(--color-white);
    border: 1px solid var(--color-green);
    box-shadow: 0 10px 20px -8px rgba(94, 171, 51, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-green-dark);
    border-color: var(--color-green-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -8px rgba(94, 171, 51, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--color-border);
    transform: translateY(-3px);
}

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-white);
    border: 1px solid var(--color-gold);
    box-shadow: 0 10px 20px -8px rgba(210, 161, 62, 0.3);
}

.btn-gold:hover {
    background-color: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -8px rgba(210, 161, 62, 0.4);
}

/* ==========================================================================
   NAVBAR (HEADER)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.header-active {
    background-color: rgba(252, 251, 249, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-glass);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
    transition: var(--transition-smooth);
    max-width: 1120px;
    margin: 0 auto;
}

.header-active .nav-container {
    height: 95px;
}

.logo-link img {
    height: 100px;
    width: auto;
    transition: var(--transition-smooth);
}

.header-active .logo-link img {
    height: 80px;
}

.nav-menu {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--color-text-main);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-green);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    margin-left: 20px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}

.mobile-toggle span {
    width: 28px;
    height: 2px;
    background-color: var(--color-text-main);
    transition: var(--transition-smooth);
}

@media (max-width: 992px) {
    .nav-container {
        height: 80px;
    }
    
    .header-active .nav-container {
        height: 70px;
    }
    
    .logo-link img {
        height: 60px;
    }
    
    .header-active .logo-link img {
        height: 50px;
    }

    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--color-bg);
        border-left: 1px solid var(--color-border);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 50px;
        gap: 30px;
        transition: var(--transition-smooth);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-menu .nav-cta {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
    }
    
    .nav-menu .nav-cta .btn {
        width: 100%;
    }
    
    /* Toggle active state */
    .mobile-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .mobile-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7px);
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 170px;
    padding-bottom: 80px;
    position: relative;
    background: radial-gradient(circle at 80% 20%, rgba(94, 171, 51, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(210, 161, 62, 0.03) 0%, transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 24px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.page-title {
    font-size: 3rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.hero-content .lead {
    margin-bottom: 40px;
    font-size: 1.25rem;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-gold-light);
    color: var(--color-gold-dark);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.hero-visual {
    position: relative;
    height: 500px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.hero-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel-slide.active {
    opacity: 1;
}

@media (max-width: 992px) {
    .hero {
        padding-top: 120px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content .lead {
        margin: 0 auto 30px;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-visual {
        height: 400px;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.25;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   TRUST BAR / CREDENTIALS
   ========================================================================== */
.trustbar {
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 30px 0;
}

.trust-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-green);
    line-height: 1;
}

.trust-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .trust-container {
        grid-template-columns: 1fr 1fr;
        display: grid;
        text-align: center;
    }
    
    .trust-item {
        flex-direction: column;
        gap: 6px;
    }
}

/* ==========================================================================
   BENEFITS & ABOUT PREVIEWS
   ========================================================================== */
.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    margin-bottom: 16px;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 80px;
    }
    
    .header-active .nav-container {
        height: 70px;
    }
    
    .logo-link img {
        height: 60px;
    }
    
    .header-active .logo-link img {
        height: 50px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .order-mobile-1 {
        order: 1;
    }
    
    .order-mobile-2 {
        order: 2;
    }
}

@media (max-width: 480px) {
    .grid-5 {
        grid-template-columns: 1fr;
    }
}

.premium-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 40px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.premium-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: var(--color-green);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.premium-card:hover .card-icon {
    background-color: var(--color-green);
    color: var(--color-white);
}

.premium-card h3 {
    margin-bottom: 16px;
    font-size: 1.4rem;
}

/* ==========================================================================
   CARDS WITH IMAGES
   ========================================================================== */
.card-img-top {
    height: 240px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.premium-card-img {
    padding: 24px;
}

.premium-card-img:hover .card-img-top {
    transform: scale(1.03);
}

/* ==========================================================================
   REVIEWS & TESTIMONIAL BLOCK
   ========================================================================== */
.reviews-section {
    background-color: var(--color-white);
    position: relative;
}

.google-review-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.google-review-badge {
    background-color: #f1f3f4;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.google-review-stars {
    color: #fbbc05;
    font-size: 1.2rem;
}

.review-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 30px;
    position: relative;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-gold-dark);
}

.review-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.review-details span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   AGENDAMIENTO Y FORMULARIO (CTA SECTIONS)
   ========================================================================== */
.cta-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .cta-split {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.calendar-widget {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-premium);
}

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

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.calendar-nav-btn:hover {
    background-color: var(--color-green-light);
    color: var(--color-green);
    border-color: transparent;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.calendar-day-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding-bottom: 8px;
}

.calendar-day {
    padding: 10px 0;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
}

.calendar-day:hover:not(.disabled) {
    background-color: var(--color-green-light);
    color: var(--color-green);
}

.calendar-day.active {
    background-color: var(--color-green);
    color: var(--color-white);
}

.calendar-day.disabled {
    color: #cdd3cb;
    cursor: not-allowed;
}

.time-slots {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.time-slot {
    border: 1px solid var(--color-border);
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.time-slot:hover {
    border-color: var(--color-green);
    color: var(--color-green);
}

.time-slot.active {
    background-color: var(--color-green);
    color: var(--color-white);
    border-color: var(--color-green);
}

/* Elegant Form */
.premium-form {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 45px;
    box-shadow: var(--shadow-premium);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.form-control {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-green);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(94, 171, 51, 0.1);
}

/* ==========================================================================
   ABOUT & HISTORY PAGE SPECIFICS
   ========================================================================== */
.history-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 992px) {
    .history-section {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.polaroid-collage {
    position: relative;
    height: 480px;
}

.polaroid {
    position: absolute;
    background-color: var(--color-white);
    padding: 16px 16px 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    border: 1px solid var(--color-border);
    width: 250px;
    transition: var(--transition-smooth);
}

.polaroid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 12px;
}

.polaroid p {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    color: var(--color-text-main);
}

.polaroid-1 {
    top: 20px;
    left: 20px;
    transform: rotate(-6deg);
    z-index: 2;
}

.polaroid-2 {
    top: 80px;
    right: 20px;
    transform: rotate(5deg);
    z-index: 1;
}

.polaroid-3 {
    bottom: 20px;
    left: 80px;
    transform: rotate(-2deg);
    z-index: 3;
}

.polaroid:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 576px) {
    .polaroid-collage {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
    }
    
    .polaroid {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .polaroid:hover {
        transform: scale(1.02) !important;
    }
}

/* ==========================================================================
   CONTACT PAGE SPECIFICS
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-premium);
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-green-light);
    color: var(--color-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.maps-embed-container {
    height: 350px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    margin-top: 24px;
}

.maps-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   INTELLIGENT FLOATING WIDGETS
   ========================================================================== */
/* Chat Widget */
.chat-widget-toggle {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--color-green);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(94, 171, 51, 0.35);
    cursor: pointer;
    z-index: 999;
    transition: var(--transition-smooth);
}

.chat-widget-toggle:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: var(--color-green-dark);
}

.chat-widget {
    position: fixed;
    bottom: 120px;
    right: 40px;
    width: 360px;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    display: none;
    overflow: hidden;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(20px);
}

.chat-widget.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.chat-header {
    background-color: var(--color-green);
    color: var(--color-white);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chat-title h4 {
    font-size: 1rem;
    font-weight: 600;
}

.chat-title span {
    font-size: 0.8rem;
    opacity: 0.8;
}

.chat-close {
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.chat-close:hover {
    opacity: 1;
}

.chat-body {
    padding: 24px;
    max-height: 300px;
    overflow-y: auto;
    background-color: var(--color-bg);
}

.chat-msg {
    margin-bottom: 16px;
    max-width: 80%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.chat-msg-bot {
    background-color: var(--color-white);
    color: var(--color-text-main);
    border-radius: 0 12px 12px 12px;
    border: 1px solid var(--color-border);
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.chat-option {
    background-color: var(--color-white);
    border: 1px solid var(--color-green);
    color: var(--color-green);
    padding: 10px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
}

.chat-option:hover {
    background-color: var(--color-green);
    color: var(--color-white);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px !important;
    left: auto !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
    cursor: pointer;
    z-index: 999;
    font-size: 1.8rem;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.45);
}

@media (max-width: 768px) {
    .chat-widget-toggle,
    .chat-widget {
        right: 20px;
        bottom: 20px;
    }
    
    .chat-widget {
        bottom: 95px;
        width: 320px;
        max-width: calc(100% - 40px);
    }
    
    .whatsapp-float {
        right: 20px !important;
        left: auto !important;
        bottom: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.footer-logo img {
    height: 80px;
    width: auto;
    margin-bottom: 24px;
}

.footer-text {
    font-size: 0.95rem;
    max-width: 320px;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.footer-social-icon:hover {
    background-color: var(--color-green-light);
    color: var(--color-green);
    border-color: transparent;
}

.footer-nav-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: var(--color-text-muted);
}

.footer-menu a:hover {
    color: var(--color-green);
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Success modal styles */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 53, 41, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1010;
    opacity: 0;
    transition: var(--transition-smooth);
}

.success-modal.active {
    display: flex;
    opacity: 1;
}

.success-modal-content {
    background-color: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 50px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.15);
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.success-modal.active .success-modal-content {
    transform: scale(1);
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-green-light);
    color: var(--color-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
}
