:root {
  --blush: #F9E7E2;
  --blush-deep: #F3D7D2;
  --cream: #FFFBF7;
  --maroon: #40141F;
  --maroon-soft: #6B3A46;
  --green: #2E7A57;
  --green-soft: #E5F0E9;
  --rose: #D89AA0;
  --wa: #1FBE5F;
  --line: #E9CFC9;
}

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

body {
  background: var(--blush);
  font-family: 'Figtree', system-ui, sans-serif;
  color: var(--maroon);
  -webkit-font-smoothing: antialiased;
}

.page { max-width: 430px; margin: 0 auto; padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

.eyebrow {
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: var(--maroon-soft);
}
.eyebrow.green, .green-text { color: var(--green); }
.eyebrow.rose { color: var(--rose); letter-spacing: .14em; }
.center { text-align: center; }

/* HERO */
.hero { text-align: center; padding: 30px 24px 4px; }
.hero-mark {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--maroon); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px rgba(64,20,31,.35);
}
.hero .eyebrow { margin-bottom: 8px; }
h1 {
  font-family: 'Bodoni Moda', serif; font-weight: 500; font-size: 40px;
  line-height: 1; letter-spacing: .02em;
}
.tagline {
  font-family: 'Bodoni Moda', serif; font-style: italic;
  font-size: 17px; color: var(--maroon-soft); margin-top: 10px;
}
.meta { font-size: 12.5px; color: var(--maroon-soft); margin-top: 10px; }

/* POINTERS */
.pointers { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 6px; }
.btn-row {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 15px 17px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--cream); color: var(--maroon); text-decoration: none;
  font-weight: 600; font-size: 14.5px; cursor: pointer;
  font-family: 'Figtree', sans-serif;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-row:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(64,20,31,.14); }
.btn-row:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.btn-row .arrow { margin-left: auto; color: var(--maroon-soft); }
.btn-row.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-row.wa .arrow { color: rgba(255,255,255,.85); }

/* COLIBRÍ POINTER */
.colibri-ptr .colibri-bird { display: flex; animation: hover-bob 2.2s ease-in-out infinite; transform-origin: center; }

/* FLOATING CHAT WIDGET */
.chat-fab {
  position: fixed;
  z-index: 900;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: calc(20px + env(safe-area-inset-right, 0px));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--maroon);
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(43,13,21,.38);
  transition: transform .2s ease, opacity .2s ease, visibility .2s ease;
}
.chat-fab:hover { transform: translateY(-2px) scale(1.04); }
.chat-fab.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.85);
}

.chat-widget {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.chat-widget.open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--blush-deep);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  background: var(--maroon);
  color: var(--cream);
  flex-shrink: 0;
}
.chat-header-bird { display: flex; animation: hover-bob 2.2s ease-in-out infinite; }
.chat-header-copy { text-align: left; min-width: 0; }
.chat-header-copy strong { display: block; font-size: 15px; font-weight: 700; }
.chat-header-copy small { display: block; font-size: 11px; opacity: .75; }
.chat-close {
  margin-left: auto;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,251,247,.12);
  color: var(--cream);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.chat-close:hover { background: rgba(255,251,247,.22); }

.chat {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--blush-deep);
}
.bubble {
  max-width: 84%; padding: 10px 13px; border-radius: 16px;
  font-size: 13.5px; line-height: 1.5; animation: pop .3s ease both;
  white-space: pre-wrap; word-wrap: break-word;
}
.bubble.user { align-self: flex-end; background: var(--green); color: #fff; }
.bubble.bot { align-self: flex-start; background: var(--cream); color: var(--maroon); border: 1.5px solid var(--line); }
.bubble.typing { display: flex; gap: 4px; padding: 12px 14px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--maroon-soft); animation: blink 1.2s infinite; }
.dot:nth-child(2) { animation-delay: .2s; }
.dot:nth-child(3) { animation-delay: .4s; }

.wa-cta {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: #fff; border: none; border-radius: 999px;
  padding: 10px 16px; font-weight: 700; font-size: 13.5px; cursor: pointer;
  font-family: 'Figtree', sans-serif; text-decoration: none; animation: pop .3s ease both;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--blush-deep);
  flex-shrink: 0;
}
.input-row input {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 11px 15px;
  font-size: 16px;
  background: var(--cream);
  color: var(--maroon);
  font-family: 'Figtree', sans-serif;
}
.mic, .send {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--cream); color: var(--green);
  font-family: 'Figtree', sans-serif; font-size: 16px;
}
.mic.listening { background: var(--green); color: #fff; border-color: var(--green); animation: ripple 1.1s infinite; }
.send { color: var(--maroon); font-weight: 700; }

/* SECTIONS */
.section { padding-top: 26px; }
.section.pad { padding-left: 22px; padding-right: 22px; }
.section h2 { display: block; margin-bottom: 12px; }

.scroller { display: flex; gap: 12px; overflow-x: auto; padding: 4px 22px 10px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.arch-card { flex-shrink: 0; width: 108px; text-align: center; }
.arch {
  height: 128px; border-radius: 54px 54px 16px 16px;
  background: var(--cream); border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.icon { width: 48px; height: 48px; stroke: var(--green); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.arch-card .eyebrow { color: var(--maroon); margin-top: 8px; letter-spacing: .16em; }
.arch-card small { display: block; font-size: 11px; color: var(--maroon-soft); margin-top: 2px; }

/* TALLERES */
.taller {
  display: flex; align-items: center; gap: 14px; background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 14px;
  margin-bottom: 10px; cursor: pointer; transition: transform .15s ease;
}
.taller:hover { transform: translateY(-2px); }
.date { width: 52px; flex-shrink: 0; text-align: center; background: var(--green-soft); border-radius: 12px; padding: 7px 0; }
.date .d { display: block; font-family: 'Bodoni Moda', serif; font-size: 20px; color: var(--green); line-height: 1; }
.date .m { font-size: 8.5px; letter-spacing: .18em; color: var(--green); }
.t-copy { flex: 1; }
.t-copy strong { display: block; font-size: 13.5px; }
.t-copy small { font-size: 11.5px; color: var(--maroon-soft); }

.chip {
  border: 1.5px solid var(--line); background: var(--cream); color: var(--maroon);
  border-radius: 999px; padding: 9px 14px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; font-family: 'Figtree', sans-serif;
  transition: transform .15s ease;
}
.chip:hover { transform: translateY(-2px); }
.green-chip { border-color: var(--green); color: var(--green); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* HISTORIA */
.pull { font-family: 'Bodoni Moda', serif; font-style: italic; font-size: 17px; line-height: 1.5; }
.body-copy { font-size: 13px; color: var(--maroon-soft); line-height: 1.65; margin-top: 10px; }

/* GALERÍA */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; display: block; }
.gallery img:nth-child(3n+1) { border-radius: 40px 16px 16px 16px; }

/* VISÍTANOS */
.visit { background: var(--cream); border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; }
.map {
  display: block; height: 92px; position: relative; text-decoration: none;
  background: linear-gradient(120deg, var(--green-soft), #CFE3D6);
}
.pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--maroon); color: var(--cream); border-radius: 999px;
  padding: 5px 13px; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.visit-body { padding: 14px 16px; }
.hours { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 8px; }
.hours .green-text { font-weight: 700; }
.visit-body p { font-size: 12px; color: var(--maroon-soft); line-height: 1.55; }

/* FOOTER */
.footer { text-align: center; padding: 24px 0 26px; }
.contact { display: flex; justify-content: center; gap: 14px; margin-bottom: 10px; }
.contact a { font-size: 12.5px; color: var(--maroon); font-weight: 600; text-decoration: none; }

/* ANIMATIONS */
@keyframes hover-bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-4px) rotate(3deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes ripple { 0% { box-shadow: 0 0 0 0 rgba(46,122,87,.45); } 100% { box-shadow: 0 0 0 12px rgba(46,122,87,0); } }

@media (max-width: 767px) {
  .chat-widget {
    inset: 0;
  }
  .chat-panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  body.chat-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .chat-widget {
    bottom: 24px;
    right: 24px;
    width: 370px;
    height: min(620px, calc(100dvh - 48px));
  }
  .chat-panel {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(43,13,21,.28);
  }
  .chat-header {
    padding-top: 14px;
    border-radius: 24px 24px 0 0;
  }
  .input-row {
    padding-bottom: 12px;
    border-radius: 0 0 24px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .colibri-bird, .chat-header-bird, .bubble, .dot, .mic.listening, .wa-cta { animation: none; }
  .btn-row, .chip, .taller, .chat-fab, .chat-widget { transition: none; }
}
