/* Contact and the small, optional service guide share the site's visual language. */
[hidden] { display: none !important; }
.header nav > a.nav-last { display: flex; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.contact { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 100% 0, #c1f8790b, transparent 65%); padding-top: 76px; padding-bottom: 40px; }
.contact-intro { display: grid; grid-template-columns: 1.5fr 1fr; align-items: end; gap: 50px; margin: 27px 0 46px; }
.contact-intro h2 { position: relative; margin: 0; font-size: clamp(36px, 4.8vw, 66px); line-height: 1.08; letter-spacing: -.045em; }
.contact-intro h2 > span { display: inline-block; color: var(--accent); margin-left: .25em; }
.contact-intro p { margin: 0; color: var(--muted); max-width: 335px; font-size: 18px; line-height: 1.65; }
.contact-email { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #4c5b42; border-bottom: 1px solid #4c5b42; padding: 22px 0; font-family: var(--display); font-size: clamp(21px, 3.25vw, 43px); letter-spacing: -.045em; }
.contact-email > span:first-child { overflow-wrap: anywhere; }
.contact-phone { border-top: 0; }
.contact-arrow { display: grid; place-items: center; flex: 0 0 58px; width: 58px; height: 58px; color: var(--bg); background: var(--accent); font-size: 36px; transition: transform .2s, background .2s; }
.contact-email:hover .contact-arrow { transform: translate(3px, -3px); background: #dcffad; }
.contact-email:hover > span:first-child { color: var(--accent); }
.contact-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 15px; color: var(--muted); font-size: 14px; }
.contact-chat { background: none; border: 0; color: var(--accent); padding: 12px 0; font: inherit; cursor: pointer; }
.contact-chat span { margin-left: 12px; }
.chat-launcher { position: fixed; z-index: 20; right: 26px; bottom: 24px; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 20px; border: 1px solid #d8ffa8; border-radius: 30px; background: var(--accent); color: #17220f; font: 600 15px var(--body); box-shadow: 0 8px 32px #0006; cursor: pointer; transition: transform .2s, background .2s; }
.chat-launcher:hover { transform: translateY(-3px); background: #d5ff9f; }
.chat-launcher svg { width: 23px; height: 23px; }
.service-chat { position: fixed; z-index: 30; right: 26px; bottom: 24px; width: 392px; max-width: calc(100% - 32px); height: 574px; max-height: calc(100dvh - 40px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #4d5c43; border-radius: 16px; background: #171c18; box-shadow: 0 16px 70px #0009; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 18px 12px; }
.chat-overline { font-family: var(--display); font-size: 15px; letter-spacing: -.04em; color: var(--muted); }
.chat-overline > span { color: var(--accent); font-weight: 700; }
.chat-header h2 { font-size: 22px; line-height: 1.2; margin: 6px 0 0; letter-spacing: -.03em; }
.chat-close { align-self: flex-start; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #3b4539; border-radius: 50%; color: var(--text); background: transparent; font: 28px var(--body); cursor: pointer; }
.chat-close:hover { background: #2b3625; }
.chat-description { font-size: 12px; line-height: 1.5; color: var(--muted); padding: 0 18px 14px; margin: 0; border-bottom: 1px solid var(--line); }
.chat-messages { flex: 1; min-height: 70px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #526345 transparent; padding: 20px 16px 8px; }
.chat-message { width: fit-content; max-width: 94%; margin: 0 0 15px; padding: 13px 14px; border-radius: 3px 13px 13px 13px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.chat-message p { margin: 0; white-space: pre-line; }
.chat-message p + p { margin-top: 10px; }
.chat-message-bot { background: #242d22; color: #eef2e8; }
.chat-speaker { display: block; color: var(--accent); font-size: 11px; font-weight: 600; margin-bottom: 5px; }
.chat-message-user { margin-left: auto; background: #d0f4a4; color: #17220f; border-radius: 13px 3px 13px 13px; }
.chat-message-user .chat-speaker { color: #355021; }
.chat-answer-link { display: inline-flex; align-items: center; min-height: 38px; margin-top: 7px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.chat-prompts { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px 12px; }
.chat-prompts button { border: 1px solid #46543e; border-radius: 16px; color: #d7e8c7; background: transparent; padding: 8px 10px; min-height: 36px; font: 12px var(--body); cursor: pointer; }
.chat-prompts button:hover { background: #303e27; border-color: var(--accent); }
.chat-form { display: flex; align-items: center; gap: 7px; padding: 0 16px; }
.chat-form input { flex: 1; min-width: 0; height: 46px; border: 1px solid #46543e; border-radius: 8px; padding: 0 12px; background: #101611; color: var(--text); font: 16px var(--body); }
.chat-form input::placeholder { color: #a2ae9b; }
.chat-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chat-form button { flex: 0 0 46px; height: 46px; border: 0; border-radius: 8px; background: var(--accent); color: #17220f; font: 27px var(--body); cursor: pointer; }
.chat-footnote { text-align: center; font-size: 11px; line-height: 1.6; color: var(--muted); padding: 12px 14px 14px; margin: 0; }
.chat-footnote a { color: var(--accent); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.footer { padding-bottom: 95px; }
@media (max-width: 760px) {
  .contact { padding-top: 45px; padding-bottom: 28px; }
  .contact-intro { grid-template-columns: 1fr; gap: 22px; margin: 22px 0 30px; }
  .contact-intro p { max-width: 430px; font-size: 16px; }
  .contact-arrow { flex-basis: 44px; width: 44px; height: 44px; font-size: 29px; }
}
@media (max-width: 480px) {
  .contact-email { gap: 10px; font-size: clamp(17px, 5.05vw, 23px); }
  .contact-arrow { flex-basis: 36px; width: 36px; height: 40px; }
  .contact-bottom { align-items: flex-start; flex-direction: column; gap: 0; }
  .chat-launcher { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .service-chat { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: none; max-height: calc(100dvh - 24px); }
}
@media (max-width: 620px) {
  .header nav > a[href="#proyecto"] { display: none; }
  .header nav > a.nav-last { display: flex; gap: 5px; }
}
@media (max-width: 360px) {
  .contact-arrow { display: none; }
  .contact-email { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-launcher, .contact-arrow { transition: none; }
}
@media (max-height: 480px) {
  .chat-header { padding: 8px 16px; }
  .chat-header h2 { font-size: 18px; margin: 0; }
  .chat-overline, .chat-description { display: none; }
  .chat-close { width: 36px; height: 36px; flex-basis: 36px; }
  .chat-prompts { padding-top: 4px; padding-bottom: 6px; }
  .chat-prompts button { min-height: 30px; padding: 5px 8px; }
  .chat-footnote { padding: 6px 12px; }
  .chat-messages { min-height: 40px; padding-top: 8px; }
}

.chat-status { color: var(--muted); font-size: 12px; min-height: 0; margin: 0; padding: 0 18px; }
.chat-status:not(:empty) { padding-bottom: 8px; }
.chat-privacy { font-size: 11px; line-height: 1.4; color: var(--muted); margin: 9px 18px 0; }
.chat-prompts button:disabled, .chat-form button:disabled { opacity: .5; cursor: wait; }
.chat-footnote { padding-top: 7px; }
@media (max-height: 480px) { .chat-privacy { font-size: 10px; margin-top: 5px; } .chat-status:not(:empty) { padding-bottom: 3px; } }
