/* =============================================
   DRA. MIRNA FLORES — DESIGN SYSTEM
   Paleta: Verde profesional + blanco + dorado
   ============================================= */

:root {
  --green-900: #0D2B1A;
  --green-800: #1B4332;
  --green-700: #2D6A4F;
  --green-600: #40916C;
  --green-500: #52B788;
  --green-400: #74C69D;
  --green-100: #D8F3DC;
  --green-50:  #F0FAF3;

  --gold:      #C9A84C;
  --gold-light:#F0D9A0;

  --dark:      #111827;
  --gray-800:  #1F2937;
  --gray-600:  #4B5563;
  --gray-400:  #9CA3AF;
  --gray-100:  #F3F4F6;
  --white:     #FFFFFF;
  --cream:     #FAFAF8;

  --font-main: 'Outfit', sans-serif;
  --font-serif:'Lora', serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.14);

  --transition: .3s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }
em { font-style: italic; font-family: var(--font-serif); color: var(--green-600); }
p  { line-height: 1.7; color: var(--gray-600); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-dark  { background: var(--green-800); color: var(--white); }
.section-dark p, .section-dark .svc-link { color: var(--green-100); }
.section-dark h2 em { color: var(--green-400); }
.section-soft  { background: var(--green-50); }

/* =============================================
   SECTION LABELS & HEADERS
   ============================================= */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-100);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.section-label.light { color: var(--green-400); background: rgba(255,255,255,.1); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-header p { margin-top: 12px; font-size: 1.05rem; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-700);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(45,106,79,.35);
}
.btn-primary svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(45,106,79,.45); }
.btn-primary.green { background: var(--green-600); }
.btn-primary.green:hover { background: var(--green-700); }
.btn-primary.full { width: 100%; justify-content: center; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-800);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 4px;
  border-bottom: 2px solid var(--green-400);
  transition: var(--transition);
}
.btn-secondary:hover { color: var(--green-600); border-color: var(--green-600); }

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0,0,0,.08);
  padding: 10px 0;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; flex-direction: column; }
.brand-name { font-weight: 800; font-size: 1.1rem; color: var(--green-800); }
.brand-sub  { font-size: .72rem; color: var(--green-600); letter-spacing: .04em; }
.nav-links  { list-style: none; display: flex; align-items: center; gap: 32px; }
.nav-links a { font-weight: 500; font-size: .95rem; color: var(--gray-800); transition: var(--transition); }
.nav-links a:hover { color: var(--green-700); }
.nav-links .nav-cta {
  background: var(--green-700);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.nav-links .nav-cta:hover { background: var(--green-800); color: var(--white); }
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--green-800); border-radius: 2px; transition: var(--transition); }

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-50) 0%, var(--white) 50%, var(--green-100) 100%);
  padding-top: 100px;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-100), transparent 70%);
  animation: floatShape 8s ease-in-out infinite;
}
.shape-1 { width: 600px; height: 600px; top: -200px; right: -200px; animation-delay: 0s; }
.shape-2 { width: 400px; height: 400px; bottom: -150px; left: -100px; animation-delay: 2s; }
.shape-3 { width: 200px; height: 200px; top: 40%; left: 30%; animation-delay: 4s; opacity: .5; }

@keyframes floatShape {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(20px,-20px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
  border: 1px solid var(--green-200, #B7E4C7);
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--green-500);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(82,183,136,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(82,183,136,0); }
}

.hero-text h1 { margin-bottom: 20px; }
.hero-sub { font-size: 1.1rem; max-width: 480px; margin-bottom: 36px; }

.hero-actions { display: flex; align-items: center; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: fit-content;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: .95rem; font-weight: 700; color: var(--green-800); }
.stat span   { font-size: .72rem; color: var(--gray-400); margin-top: 2px; }
.stat-divider { width: 1px; height: 32px; background: var(--gray-100); }

/* Hero Image */
.hero-img-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1/1;
  background: var(--green-50);
}
.hero-img-frame img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center center;
}
.img-badge-float {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--green-800);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
  font-size: .78rem;
  font-weight: 500;
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--green-400);
  border-bottom: 2px solid var(--green-400);
  transform: rotate(45deg);
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* =============================================
   ABOUT
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.about-img-wrap img { width:100%; height:100%; object-fit:cover; object-position:center top; }
.about-img-accent {
  position: absolute;
  top: -16px; right: -16px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--green-400);
  opacity: .15;
  z-index: -1;
}
.about-lead {
  font-size: 1.15rem;
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--green-700);
  border-left: 3px solid var(--green-400);
  padding-left: 16px;
  margin: 16px 0 20px;
}
.about-attrs { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.attr {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--green-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--green-100);
}
.attr-icon { font-size: 1.5rem; flex-shrink: 0; }
.attr strong { display: block; font-weight: 700; color: var(--green-800); margin-bottom: 2px; }
.attr span   { font-size: .88rem; color: var(--gray-600); }

/* =============================================
   SERVICES
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.service-card:hover {
  background: rgba(255,255,255,.13);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.service-card.featured {
  border-color: var(--green-400);
  background: rgba(82,183,136,.1);
}
.svc-badge {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--gold);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
}
.svc-icon { font-size: 2rem; margin-bottom: 16px; }
.service-card h3 { color: var(--white); margin-bottom: 10px; }
.svc-link { display: inline-block; margin-top: 16px; color: var(--green-400); font-weight: 600; font-size: .9rem; transition: var(--transition); }
.svc-link:hover { color: var(--white); gap: 8px; }

/* =============================================
   GESTIÓN SOCIAL
   ============================================= */
.gestion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.gestion-items { display: flex; flex-direction: column; gap: 20px; margin: 28px 0 36px; }
.gestion-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.gestion-item > span { font-size: 1.8rem; flex-shrink: 0; margin-top: 2px; }
.gestion-item strong { display: block; font-weight: 700; margin-bottom: 2px; }
.gestion-item p { font-size: .9rem; }
.gestion-img {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
}
.gestion-img img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.gestion-card-float {
  position: absolute;
  bottom: -24px; left: -24px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  max-width: 260px;
  border-left: 4px solid var(--green-500);
}
.gestion-card-float strong { display: block; font-size: .95rem; color: var(--green-800); margin-bottom: 6px; }
.gestion-card-float p { font-size: .85rem; margin-bottom: 8px; }
.gestion-card-float span { font-size: .78rem; color: var(--green-600); font-weight: 600; }

/* =============================================
   BLOG
   ============================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-img-wrap { height: 200px; background-size: cover; background-position: center; }
.blog-img-1 { background-image: url('blog_hidratacion.png'); background-size: cover; background-position: center; }
.blog-img-2 { background-image: url('blog_estres.png'); background-size: cover; background-position: center top; }
.blog-img-3 { background-image: url('blog_regenerativa.png'); background-size: cover; background-position: center; }
.blog-content { padding: 24px; }
.blog-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}
.blog-content h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--dark); }
.blog-content p  { font-size: .88rem; }
.blog-link { display: inline-block; margin-top: 14px; color: var(--green-600); font-weight: 600; font-size: .9rem; transition: var(--transition); }
.blog-link:hover { color: var(--green-800); }

/* =============================================
   CONTACT
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-text h2 { margin-bottom: 16px; }
.contact-text > p { margin-bottom: 32px; }
.contact-channels { display: flex; flex-direction: column; gap: 14px; }
.channel-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
}
.channel-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.channel-btn.whatsapp { background: #25D366; color: var(--white); }
.channel-btn.whatsapp:hover { background: #1da551; transform: translateX(4px); }
.channel-btn.facebook { background: #1877F2; color: var(--white); }
.channel-btn.facebook:hover { background: #0d65df; transform: translateX(4px); }

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}
.contact-form h3 { font-size: 1.2rem; margin-bottom: 28px; color: var(--green-800); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--gray-800); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: .95rem;
  color: var(--dark);
  transition: var(--transition);
  background: var(--cream);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(82,183,136,.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: var(--green-900);
  color: var(--white);
  padding: 56px 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
.footer-brand strong { display: block; font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.footer-brand span   { font-size: .82rem; color: var(--green-400); line-height: 1.6; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: .9rem; color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-links a:hover { color: var(--green-400); }
.footer-social { display: flex; gap: 16px; font-size: 1.5rem; }
.footer-social a { transition: var(--transition); }
.footer-social a:hover { transform: scale(1.2); }
.footer-bottom {
  padding: 16px 0;
  text-align: center;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.35); }

/* =============================================
   AI CHAT ASSISTANT (LIA) — PREMIUM UX/UI
   ============================================= */
.lia-assistant {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Hint Bubble */
.lia-hint {
  background: var(--white);
  padding: 12px 18px;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-bottom: 12px;
  position: relative;
  max-width: 200px;
  animation: hintFloat 4s ease-in-out infinite;
  border: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  transition: .3s;
}
.lia-hint:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.15); }
.lia-hint p {
  margin: 0;
  font-size: .85rem;
  color: var(--dark);
  font-weight: 600;
  line-height: 1.4;
}
.lia-hint p span {
  font-weight: 400;
  color: var(--gray-400);
  font-size: .75rem;
}
.lia-hint-close {
  position: absolute;
  top: -8px; left: -8px;
  width: 20px; height: 20px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  opacity: 0;
  transition: .3s;
}
.lia-hint:hover .lia-hint-close { opacity: 1; }

@keyframes hintFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Main Trigger Button */
.chat-trigger {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(45,106,79,0.4);
  transition: all .5s cubic-bezier(.175, .885, .32, 1.275);
  position: relative;
  animation: portraitFloat 6s ease-in-out infinite;
}

.chat-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 45px rgba(45,106,79,0.5);
}

.chat-trigger-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.chat-trigger-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes portraitFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(2deg); }
  75% { transform: translateY(5px) rotate(-2deg); }
}

.chat-trigger-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--gold);
  color: var(--white);
  font-size: .7rem;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--white);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Chat Window Container */
.chat-container {
  position: fixed;
  bottom: 105px;
  right: 28px;
  width: 400px;
  max-width: calc(100vw - 56px);
  height: 620px;
  max-height: calc(100vh - 160px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  box-shadow: 0 30px 100px rgba(0,0,0,0.2);
  z-index: 201;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  pointer-events: none;
  transition: all .5s cubic-bezier(.175, .885, .32, 1.275);
  border: 1px solid rgba(255,255,255,0.4);
}
.chat-container.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
.chat-header {
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  position: relative;
}
.chat-header::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 20px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), transparent);
}

.chat-header-info { display: flex; align-items: center; gap: 16px; }
.chat-avatar {
  width: 52px; height: 52px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border: 2px solid rgba(255,255,255,0.5);
}
.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-name { display: block; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  opacity: .9;
  margin-top: 2px;
}
.chat-status::before {
  content: "";
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px #4ade80;
}

.chat-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  width: 36px; height: 36px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: .3s;
}
.chat-close:hover { background: rgba(255,255,255,0.25); transform: rotate(90deg); }

/* Messages Area */
.chat-messages {
  flex: 1;
  padding: 30px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: radial-gradient(circle at center, #ffffff, #f9fbfb);
}

.chat-msg {
  max-width: 85%;
  padding: 16px 20px;
  border-radius: 24px;
  font-size: .95rem;
  line-height: 1.6;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--white);
  color: var(--dark);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(0,0,0,0.02);
}
.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  color: var(--white);
  border-bottom-right-radius: 4px;
  box-shadow: 0 8px 20px rgba(45,106,79,0.2);
}

/* Typing Indicator */
.chat-typing {
  font-size: .8rem;
  color: var(--green-700);
  font-weight: 600;
  padding: 4px 12px;
  background: rgba(45,106,79,0.05);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
}
.typing-dots { display: flex; gap: 3px; }
.typing-dots span {
  width: 4px; height: 4px;
  background: var(--green-500);
  border-radius: 50%;
  animation: dotTyping 1.4s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotTyping {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

/* Input Area */
.chat-input-area {
  padding: 24px 28px;
  background: var(--white);
  display: flex;
  gap: 16px;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.04);
}
.chat-input-area input {
  flex: 1;
  border: 2px solid #f0f2f1;
  background: #f8faf9;
  padding: 16px 24px;
  border-radius: 20px;
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: .3s;
}
.chat-input-area input:focus {
  border-color: var(--green-400);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.chat-input-area button {
  width: 54px; height: 54px;
  border-radius: 18px;
  background: var(--green-700);
  border: none;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .4s cubic-bezier(.175, .885, .32, 1.275);
  flex-shrink: 0;
}
.chat-input-area button:hover {
  background: var(--green-800);
  transform: translateY(-4px) rotate(-10deg);
  box-shadow: 0 8px 20px rgba(45,106,79,0.3);
}
.chat-input-area button svg { width: 24px; height: 24px; }

/* =============================================
   ANIMATIONS
   ============================================= */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-animate="fade-left"]  { transform: translateX(-30px); }
[data-animate="fade-right"] { transform: translateX(30px); }
[data-animate].visible {
  opacity: 1;
  transform: translate(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .gestion-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-col { order: -1; }
  .gestion-img { order: -1; }
  .gestion-card-float { position: static; max-width: 100%; margin-top: 16px; }
}
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 40px;
    text-align: center;
  }
  .hero-text { order: 2; }
  .hero-image {
    order: 1;
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    max-width: 280px;
    margin: 0 auto 24px;
  }
  .hero-badge { margin: 0 auto 20px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stat-divider { display: none; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.98); padding: 100px 32px 40px; gap: 20px; z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .hamburger { display: flex; z-index: 101; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .footer-inner { flex-direction: column; }
}
