:root {
  --ink: #4c5166;
  --forest: #817eaa;
  --forest-deep: #4c5166;
  --sage: #aaa7c9;
  --sage-pale: #efeff7;
  --ivory: #f7f6fb;
  --paper: #ffffff;
  --terracotta: #c594c5;
  --terracotta-deep: #9b6d9f;
  --charcoal: #3d434c;
  --muted: #707487;
  --line: rgba(76, 81, 102, .16);
  --shadow: 0 24px 64px rgba(76, 81, 102, .15);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--charcoal); background: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 120px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; transform: translateY(-180%); padding: 10px 14px; background: white; color: var(--forest); border-radius: 8px; }
.skip-link:focus { transform: none; }

.topbar { background: var(--forest-deep); color: white; font-size: 13px; letter-spacing: .01em; }
.topbar-inner { min-height: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar a { font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.5); }
.topbar-note { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.82); }
.topbar-note strong { color: white; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #c594c5; box-shadow: 0 0 0 5px rgba(197,148,197,.18); }

.site-header { position: absolute; z-index: 20; width: 100%; top: 40px; border-bottom: 1px solid rgba(255,255,255,.18); color: white; }
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 64px; height: 64px; object-fit: contain; flex: none; filter: drop-shadow(0 8px 18px rgba(50,48,79,.12)); }
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 24px; line-height: 1; font-weight: 600; }
.brand-copy small { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; opacity: .75; }
.main-nav { display: flex; align-items: center; gap: 25px; font-size: 14px; font-weight: 650; }
.main-nav > a:not(.button), .nav-chat { opacity: .9; transition: opacity .2s; }
.main-nav > a:hover, .nav-chat:hover { opacity: 1; }
.nav-chat { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; }
.menu-button { display: none; background: none; border: 0; padding: 8px; }
.menu-button span:not(.sr-only) { display: block; width: 26px; height: 2px; background: currentColor; margin: 5px; }

@media (min-width: 981px) {
  .site-header:not(.inner-header) .main-nav {
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(50,52,78,.38);
    box-shadow: 0 12px 34px rgba(35,37,59,.2), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(13px) saturate(115%);
    -webkit-backdrop-filter: blur(13px) saturate(115%);
  }
  .site-header:not(.inner-header) .main-nav > a:not(.button),
  .site-header:not(.inner-header) .nav-chat {
    padding: 10px 12px;
    border-radius: 999px;
    opacity: 1;
    font-weight: 760;
    letter-spacing: .005em;
    text-shadow: 0 1px 2px rgba(28,29,47,.9), 0 0 12px rgba(28,29,47,.68);
    transition: background .2s, opacity .2s;
  }
  .site-header:not(.inner-header) .main-nav > a:not(.button):hover,
  .site-header:not(.inner-header) .nav-chat:hover {
    background: rgba(255,255,255,.12);
  }
}

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 24px; border: 1px solid var(--terracotta); border-radius: 999px; background: var(--terracotta); color: white; font-weight: 750; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); background: var(--terracotta-deep); box-shadow: 0 12px 30px rgba(129,126,170,.25); }
.button-small { min-height: 42px; padding: 0 19px; }
.button-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); backdrop-filter: blur(12px); }
.button-ghost:hover { background: rgba(255,255,255,.18); box-shadow: none; }
.button-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.button-outline:hover { background: var(--forest); color: white; box-shadow: none; }
.button-light { background: var(--ivory); color: var(--forest); border-color: var(--ivory); }
.button-light:hover { background: white; box-shadow: 0 12px 30px rgba(0,0,0,.15); }
.button.full { width: 100%; }

.hero { position: relative; min-height: 820px; display: flex; align-items: center; color: white; overflow: hidden; background: var(--forest); }
.hero-image { position: absolute; inset: 0; background-image: url("hero-veterinaria-patino-marca.png"); background-size: cover; background-position: 56% center; transform: scale(1.01); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(54,55,80,.96) 0%, rgba(76,81,102,.84) 36%, rgba(76,81,102,.22) 71%, rgba(76,81,102,.06) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 118px; }
.eyebrow { margin: 0 0 18px; color: #ded0e2; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.dark { color: var(--terracotta-deep); }
.eyebrow.light { color: #ded0e2; }
.hero h1 { max-width: 700px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(56px, 7vw, 98px); line-height: .96; letter-spacing: -.045em; font-weight: 500; }
.hero h1 em { color: #ddd9ef; font-weight: 400; }
.hero-lead { max-width: 570px; margin: 30px 0 0; font-size: 19px; line-height: 1.65; color: rgba(255,255,255,.84); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 33px; }
.sparkle { font-size: 17px; }
.hero-proof { display: flex; gap: 0; margin-top: 52px; }
.hero-proof div { display: flex; flex-direction: column; padding: 0 28px; border-left: 1px solid rgba(255,255,255,.22); }
.hero-proof div:first-child { padding-left: 0; border-left: 0; }
.hero-proof strong { font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.hero-proof span { margin-top: 3px; color: rgba(255,255,255,.65); font-size: 12px; }
.concept-note { position: absolute; z-index: 2; bottom: 18px; right: 24px; margin: 0; padding: 7px 10px; border-radius: 6px; background: rgba(54,55,80,.58); color: rgba(255,255,255,.7); font-size: 10px; backdrop-filter: blur(8px); }

.action-dock { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: -54px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.action-card { min-height: 190px; padding: 27px; display: grid; grid-template-columns: auto 1fr; gap: 15px 18px; color: white; }
.action-card.primary { background: var(--forest); }
.action-card.urgent { background: var(--terracotta); }
.action-card.neutral { background: #eeeef6; color: var(--forest-deep); }
.action-icon { font-family: Georgia, serif; font-size: 15px; opacity: .65; }
.action-card p { margin: 0 0 7px; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }
.action-card h2 { margin: 0; font-family: Georgia, serif; font-size: 24px; line-height: 1.14; font-weight: 500; }
.action-card a { grid-column: 2; width: max-content; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 750; }
.action-card a span { margin-left: 6px; }

.section-heading h2, .legacy-copy h2, .cat-copy h2, .assistant-copy h2, .appointment-copy h2, .visit-card h2 { font-family: Georgia, "Times New Roman", serif; color: var(--forest); font-size: clamp(42px, 5vw, 68px); line-height: 1.02; letter-spacing: -.035em; font-weight: 500; margin: 0; }
.split-heading { display: grid; grid-template-columns: 1.4fr .65fr; gap: 80px; align-items: end; }
.split-heading > p { margin: 0 0 5px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.need-section { background: var(--paper); }
.need-grid { margin-top: 58px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.need-card { position: relative; display: grid; grid-template-columns: 124px 1fr auto; align-items: center; min-height: 155px; padding: 16px 24px 16px 16px; text-align: left; background: white; border: 1px solid var(--line); border-radius: 20px; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.need-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(21,59,52,.1); border-color: rgba(21,59,52,.28); }
.need-art { height: 122px; display: grid; place-items: center; border-radius: 14px; overflow: hidden; font-size: 42px; }
.dog-art { background: #e7e6f1; }
.cat-art { background: #eadbea; }
.wellness-art { background: #f0e8f3; color: var(--forest); font-size: 60px; }
.specialist-art { background: #d9d7e9; color: var(--forest); font-size: 58px; }
.need-art span { filter: grayscale(.2); }
.need-copy { display: flex; flex-direction: column; padding-left: 22px; }
.need-copy small { color: var(--terracotta-deep); font-size: 10px; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; }
.need-copy strong { margin-top: 7px; color: var(--forest); font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.need-copy > span { margin-top: 5px; color: var(--muted); font-size: 13px; }
.need-card .arrow { align-self: start; margin-top: 13px; font-size: 21px; color: var(--forest); }
.services-list-wrap { margin-top: 76px; }
.mini-label { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; }
.services-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.services-list a { display: flex; justify-content: space-between; padding: 17px 4px; border-bottom: 1px solid var(--line); font-family: Georgia, serif; font-size: 19px; color: var(--forest); }
.services-list a:nth-child(odd) { padding-right: 28px; }
.services-list a:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.services-list a span { transition: transform .2s; }
.services-list a:hover span { transform: translateX(5px); }

.legacy { background: var(--ivory); overflow: hidden; }
.legacy-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: center; }
.legacy-visual { position: relative; height: 620px; border-radius: 220px 220px 28px 28px; background: radial-gradient(circle at 70% 25%, rgba(255,255,255,.7), transparent 28%), linear-gradient(145deg, #c5c2de, #817eaa 54%, #4c5166); overflow: hidden; }
.legacy-visual::before { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; left: -80px; top: 90px; box-shadow: 0 0 0 50px rgba(255,255,255,.04), 0 0 0 100px rgba(255,255,255,.03); }
.legacy-visual::after { content: "＋"; position: absolute; right: 45px; top: 54px; color: rgba(255,255,255,.38); font-size: 92px; font-weight: 200; }
.year-stamp { position: absolute; left: 62px; top: 140px; display: flex; flex-direction: column; color: white; }
.year-stamp span, .year-stamp small { text-transform: uppercase; letter-spacing: .2em; font-size: 11px; }
.year-stamp strong { font-family: Georgia, serif; font-size: 104px; line-height: .95; font-weight: 400; letter-spacing: -.06em; }
.quote-card { position: absolute; left: 30px; right: 30px; bottom: 30px; padding: 28px 34px; border-radius: 18px; background: rgba(255,255,255,.92); color: var(--forest); backdrop-filter: blur(12px); }
.quote-card span { position: absolute; font-family: Georgia, serif; font-size: 58px; color: var(--terracotta); line-height: 1; }
.quote-card p { margin: 8px 0 0 46px; font-family: Georgia, serif; font-size: 25px; line-height: 1.25; }
.legacy-copy > p:not(.eyebrow) { margin: 26px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.check-list { list-style: none; margin: 40px 0 0; padding: 0; }
.check-list li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.check-list li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sage-pale); color: var(--forest); font-size: 13px; font-weight: 800; }
.check-list strong { color: var(--forest); font-size: 15px; }
.check-list p { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.cat-section { position: relative; padding: 120px 0; color: white; background: var(--forest); overflow: hidden; }
.cat-pattern { position: absolute; inset: 0; opacity: .08; background-image: radial-gradient(circle at 20px 20px, white 2px, transparent 2px); background-size: 45px 45px; mask-image: linear-gradient(90deg, transparent 0, black 45%, black 100%); }
.cat-grid { position: relative; display: grid; grid-template-columns: 1fr .75fr; gap: 100px; align-items: center; }
.cat-copy h2 { color: white; }
.cat-copy > p:not(.eyebrow) { max-width: 610px; color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.7; }
.cat-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }
.cat-points span { padding: 9px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: 12px; color: rgba(255,255,255,.78); }
.text-button { border: 0; padding: 0 0 6px; border-bottom: 1px solid rgba(255,255,255,.7); color: white; background: none; font-weight: 750; cursor: pointer; }
.text-button span { margin-left: 8px; }
.cat-card { padding: 36px; border-radius: 220px 220px 26px 26px; background: #c594c5; color: var(--forest-deep); box-shadow: 0 30px 70px rgba(50,48,79,.26); }
.cat-illustration { min-height: 290px; display: grid; place-content: center; text-align: center; border-radius: 190px 190px 20px 20px; background: #eee7f1; font-family: Georgia, serif; }
.cat-face { font-size: 84px; letter-spacing: -23px; transform: translateX(-10px); }
.cat-face span { font-size: 23px; letter-spacing: 0; margin: 0 17px; }
.cat-whiskers { font-size: 28px; margin-top: -22px; }
.cat-card p { margin: 28px 8px 4px; font-size: 14px; line-height: 1.65; }
.cat-card p strong { display: block; margin-bottom: 6px; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }

.journey { background: white; }
.section-heading.center { max-width: 680px; margin: 0 auto; text-align: center; }
.section-heading.center > p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.journey-line { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 74px; }
.journey-line::before { content: ""; position: absolute; left: 5%; right: 5%; top: 24px; height: 1px; background: var(--line); }
.journey-line article { position: relative; }
.journey-line article > span { position: relative; z-index: 1; display: grid; place-items: center; width: 49px; height: 49px; border: 1px solid var(--sage); border-radius: 50%; background: white; color: var(--forest); font-family: Georgia, serif; }
.journey-line h3 { margin: 24px 0 10px; color: var(--forest); font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.journey-line p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.assistant-section { padding: 120px 0; background: #817eaa; color: white; overflow: hidden; }
.assistant-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: center; }
.assistant-demo { transform: rotate(-2deg); max-width: 465px; margin: 0 auto; border-radius: 30px; background: var(--paper); color: var(--charcoal); box-shadow: 0 40px 80px rgba(50,48,79,.28); overflow: hidden; }
.demo-top { display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid var(--line); }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 50%; background: white; color: var(--forest); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.demo-top div { display: flex; flex-direction: column; flex: 1; }
.demo-top small, .assistant-id small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.demo-top i, .assistant-id i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; background: #53a277; }
.demo-chat { padding: 24px; min-height: 395px; background: #f8f5ef; }
.demo-chat p { max-width: 82%; margin: 0 0 12px; padding: 13px 15px; border-radius: 16px; font-size: 13px; line-height: 1.5; }
.demo-chat .bot { background: white; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.demo-chat .user { margin-left: auto; background: var(--forest); color: white; border-bottom-right-radius: 5px; }
.demo-options { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.demo-options span { padding: 8px 10px; border: 1px solid var(--forest); border-radius: 99px; color: var(--forest); font-size: 11px; }
.assistant-copy .eyebrow { color: #f1d0c6; }
.assistant-copy h2 { color: white; }
.assistant-copy > p:not(.eyebrow):not(.safety-note) { color: rgba(255,255,255,.79); font-size: 17px; line-height: 1.7; }
.assistant-features { margin: 30px 0 34px; border-top: 1px solid rgba(255,255,255,.25); }
.assistant-features > div { display: grid; grid-template-columns: 32px 1fr; gap: 13px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.assistant-features span { font-family: Georgia, serif; opacity: .7; }
.assistant-features p { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.77); }
.assistant-features strong { color: white; }
.safety-note { margin: 16px 0 0; font-size: 11px; color: rgba(255,255,255,.6); }

.appointment { background: var(--ivory); }
.appointment-grid { display: grid; grid-template-columns: 1fr .78fr; gap: 100px; align-items: center; }
.appointment-copy > p:not(.eyebrow) { max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.appointment-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.request-card { padding: 28px; border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.form-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.form-head span { color: var(--forest); font-family: Georgia, serif; font-size: 24px; }
.form-head small { color: var(--terracotta-deep); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.request-card label { display: block; margin-top: 15px; color: var(--forest); font-size: 12px; font-weight: 750; }
.request-card select, .request-card input { width: 100%; height: 48px; margin-top: 7px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--charcoal); }
.request-card .button { margin-top: 20px; }
.request-card > p { margin: 12px 5px 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }

.visit-section { padding: 0 0 120px; background: var(--ivory); }
.visit-grid { display: grid; grid-template-columns: .78fr 1.22fr; min-height: 600px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.visit-card { padding: 65px; background: var(--forest); color: white; }
.visit-card h2 { color: white; font-size: 52px; }
.visit-card address { margin: 24px 0 15px; color: rgba(255,255,255,.75); font-style: normal; font-size: 16px; line-height: 1.6; }
.visit-card > a { display: inline-block; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.55); font-size: 13px; font-weight: 750; }
.hours { margin-top: 40px; }
.hours > div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.16); }
.hours strong { font-size: 12px; }
.hours span { color: rgba(255,255,255,.67); font-size: 12px; line-height: 1.55; }
.map-card { position: relative; overflow: hidden; background: #e6e5f0; }
.map-card iframe, .map-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; }

.footer { padding: 75px 0 24px; background: var(--forest-deep); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 50px; }
.footer-brand { margin-bottom: 18px; }
.footer-grid > div:first-child > p { max-width: 320px; color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.6; }
.footer-grid h3 { margin: 0 0 18px; color: rgba(255,255,255,.5); font-size: 10px; text-transform: uppercase; letter-spacing: .16em; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 11px; }
.footer-grid a, .footer-grid span { color: rgba(255,255,255,.73); font-size: 13px; }
.footer-grid a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 62px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.38); font-size: 10px; }

.floating-chat { position: fixed; z-index: 40; right: 22px; bottom: 22px; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: 1fr 1fr; column-gap: 10px; align-items: center; padding: 10px 18px 10px 10px; border: 0; border-radius: 99px; background: var(--forest-deep); color: white; box-shadow: 0 18px 45px rgba(50,48,79,.3); cursor: pointer; }
.floating-chat > span { grid-row: 1/3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--terracotta); }
.floating-chat strong { align-self: end; font-size: 13px; text-align: left; }
.floating-chat small { align-self: start; font-size: 9px; opacity: .65; text-align: left; }
.chat-panel { position: fixed; inset: 0 0 0 auto; margin: 0; border: 0; padding: 0; width: min(430px, 100%); max-width: 100%; height: 100dvh; max-height: 100%; color: var(--charcoal); background: #f8f5ef; box-shadow: -20px 0 60px rgba(0,0,0,.18); }
.chat-panel[open] { display: flex; flex-direction: column; }
.chat-panel::backdrop { background: rgba(4,19,16,.42); backdrop-filter: blur(3px); }
.chat-panel > header { display: flex; align-items: center; justify-content: space-between; padding: 20px; background: var(--forest); color: white; }
.assistant-id { display: flex; align-items: center; gap: 11px; }
.assistant-id > div { display: flex; flex-direction: column; }
.assistant-id small { color: rgba(255,255,255,.62); }
.chat-panel > header > button { border: 0; background: none; color: white; font-size: 30px; font-weight: 200; cursor: pointer; }
.chat-messages { flex: 1; overflow-y: auto; padding: 24px 20px; }
.message { display: flex; margin-bottom: 10px; }
.message p { max-width: 84%; margin: 0; padding: 13px 15px; border-radius: 16px; font-size: 13px; line-height: 1.5; }
.message.bot p { background: white; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.message.user { justify-content: flex-end; }
.message.user p { background: var(--forest); color: white; border-bottom-right-radius: 5px; }
.message.typing p { color: var(--muted); letter-spacing: .16em; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.quick-replies :is(button, a) { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 13px; border: 1px solid var(--forest); border-radius: 99px; background: transparent; color: var(--forest); font-size: 13px; cursor: pointer; }
.quick-replies :is(button, a):hover { background: var(--sage-pale); }
.chat-disclaimer { margin: 0; padding: 14px 15px; background: white; color: var(--muted); text-align: center; font-size: 13px; }
.chat-disclaimer a, .consent a { text-decoration: underline; }

@media (max-width: 980px) {
  .site-header { top: 40px; }
  .menu-button { display: block; color: white; }
  .main-nav { position: absolute; top: 88px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px; border-radius: 18px; background: white; color: var(--forest); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav > a:not(.button), .nav-chat { padding: 13px; text-align: left; }
  .main-nav .button { margin-top: 8px; }
  .hero { min-height: 780px; }
  .hero-image { background-position: 65% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(54,55,80,.96), rgba(76,81,102,.72) 64%, rgba(76,81,102,.32)); }
  .action-dock { grid-template-columns: 1fr; max-width: 720px; }
  .action-card { min-height: 140px; }
  .split-heading, .legacy-grid, .cat-grid, .assistant-grid, .appointment-grid { grid-template-columns: 1fr; gap: 60px; }
  .legacy-visual { max-width: 600px; width: 100%; margin: 0 auto; }
  .cat-card { max-width: 480px; margin: 0 auto; }
  .assistant-demo { order: 2; }
  .journey-line { grid-template-columns: repeat(2, 1fr); gap: 45px; }
  .journey-line::before { display: none; }
  .visit-grid { grid-template-columns: 1fr; }
  .map-card { min-height: 430px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { display: none; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 26px, 1180px); }
  .section { padding: 84px 0; }
  .topbar-inner { min-height: 48px; }
  .topbar-note { font-size: 10px; }
  .topbar a { font-size: 0; }
  .topbar a::after { content: "Llamar"; font-size: 11px; }
  .site-header { top: 48px; }
  .nav-wrap { min-height: 76px; }
  .brand-copy strong { font-size: 21px; }
  .brand-copy small { font-size: 8px; }
  .brand-logo { width: 54px; height: 54px; }
  .main-nav { top: 75px; left: 13px; right: 13px; }
  .hero { min-height: 800px; align-items: flex-end; }
  .hero-image { background-position: 70% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(54,55,80,.98) 5%, rgba(76,81,102,.76) 58%, rgba(76,81,102,.2)); }
  .hero-content { padding: 150px 0 95px; }
  .hero h1 { font-size: 51px; }
  .hero-lead { margin-top: 20px; font-size: 16px; line-height: 1.55; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-proof { margin-top: 34px; }
  .hero-proof div { padding: 0 11px; }
  .hero-proof strong { font-size: 18px; }
  .hero-proof span { font-size: 9px; }
  .concept-note { display: none; }
  .action-dock { width: calc(100% - 26px); margin-top: -36px; }
  .action-card { min-height: 126px; padding: 20px; }
  .action-card h2 { font-size: 21px; }
  .section-heading h2, .legacy-copy h2, .cat-copy h2, .assistant-copy h2, .appointment-copy h2 { font-size: 42px; }
  .split-heading { gap: 20px; }
  .need-grid { grid-template-columns: 1fr; }
  .need-card { grid-template-columns: 90px 1fr auto; min-height: 122px; padding: 12px 15px 12px 12px; }
  .need-art { height: 95px; }
  .need-copy { padding-left: 15px; }
  .need-copy strong { font-size: 20px; }
  .need-copy > span { display: none; }
  .services-list { grid-template-columns: 1fr; }
  .services-list a:nth-child(odd), .services-list a:nth-child(even) { padding-left: 3px; padding-right: 3px; border-left: 0; }
  .legacy-visual { height: 500px; border-radius: 160px 160px 25px 25px; }
  .year-stamp { left: 35px; top: 118px; }
  .year-stamp strong { font-size: 76px; }
  .quote-card { left: 18px; right: 18px; bottom: 18px; padding: 22px; }
  .quote-card p { font-size: 20px; }
  .cat-section { padding: 84px 0; }
  .cat-grid { gap: 45px; }
  .cat-card { padding: 20px; }
  .cat-illustration { min-height: 235px; }
  .journey-line { grid-template-columns: 1fr; margin-top: 50px; }
  .assistant-section { padding: 84px 0; }
  .assistant-grid { gap: 48px; }
  .assistant-demo { transform: none; }
  .appointment-buttons { flex-direction: column; align-items: stretch; }
  .visit-section { padding-bottom: 60px; }
  .visit-card { padding: 42px 26px; }
  .visit-card h2 { font-size: 42px; }
  .hours > div { grid-template-columns: 1fr 1.4fr; }
  .map-card { min-height: 350px; }
  .footer { padding-top: 55px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:nth-child(n+3) { display: none; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .floating-chat { width: 52px; height: 52px; padding: 7px; }
  .floating-chat > span { grid-row: auto; width: 38px; height: 38px; }
  .floating-chat strong, .floating-chat small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Páginas interiores */
.inner-header { position: relative; top: 0; background: var(--forest-deep); }
.main-nav [aria-current="page"] { color: #fff; opacity: 1; border-bottom: 1px solid var(--terracotta); }
.page-hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; color: white; background: var(--forest); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(54,55,80,.94), rgba(76,81,102,.55) 62%, rgba(76,81,102,.15)); }
.page-hero .shell { position: relative; z-index: 1; padding-block: 100px 75px; }
.page-hero h1 { max-width: 820px; margin: 0; font: 500 clamp(55px,8vw,96px)/.95 Georgia,serif; letter-spacing: -.045em; }
.page-hero p:last-child { max-width: 610px; margin: 24px 0 0; font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.8); }
.page-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.page-intro h2, .content-title { margin: 0; color: var(--forest); font: 500 clamp(40px,5vw,66px)/1.02 Georgia,serif; letter-spacing: -.035em; }
.prose p { margin: 0 0 20px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.feature-band { padding: 44px 0; background: var(--forest); color: white; }
.feature-band .shell { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.feature-band article { padding: 8px 28px 8px 0; border-right: 1px solid rgba(255,255,255,.18); }
.feature-band article:last-child { border: 0; }
.feature-band span { color: #ded0e2; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.feature-band h3 { margin: 9px 0 4px; font: 500 24px Georgia,serif; }
.feature-band p { margin: 0; color: rgba(255,255,255,.66); font-size: 13px; line-height: 1.6; }
.image-feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; background: var(--ivory); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.image-feature img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.image-feature .copy { padding: 65px; align-self: center; }
.image-feature h2 { margin: 0; color: var(--forest); font: 500 clamp(38px,4vw,58px)/1.04 Georgia,serif; }
.image-feature p { color: var(--muted); line-height: 1.75; }
.team-portrait-section { padding: 0 0 120px; }
.team-portrait-heading { display: grid; grid-template-columns: 1.15fr .7fr; gap: 80px; align-items: end; margin-bottom: 42px; }
.team-portrait-heading > p { margin: 0 0 5px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.team-portrait { margin: 0; overflow: hidden; border-radius: 28px; background: var(--ivory); box-shadow: var(--shadow); }
.team-portrait img { display: block; width: 100%; height: auto; }
.service-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 55px; }
.service-card { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.service-card span { color: var(--terracotta-deep); font: 500 14px Georgia,serif; }
.service-card h3 { margin: 12px 0 8px; color: var(--forest); font: 500 27px Georgia,serif; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 42px; }
.gallery figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; border-radius: 18px; background: var(--sage-pale); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery figure:hover img { transform: scale(1.035); }
.faq { max-width: 920px; margin: 50px auto 0; }
.faq details { border-top: 1px solid var(--line); padding: 22px 4px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; color: var(--forest); font: 500 20px Georgia,serif; }
.faq p { margin: 13px 0 0; color: var(--muted); line-height: 1.7; }
.contact-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 70px; }
.contact-form { padding: 36px; border-radius: 24px; background: white; box-shadow: var(--shadow); }
.contact-form label { display: block; margin-bottom: 17px; color: var(--forest); font-size: 12px; font-weight: 750; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 7px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.contact-form textarea { min-height: 135px; resize: vertical; }
.contact-form .consent, .request-card .consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.45; color: var(--muted); }
.contact-form .consent input, .request-card .consent input { width: auto; height: auto; margin: 2px 0 0; }
.form-status { margin: 16px 0 0; padding: 12px; border-radius: 10px; background: var(--sage-pale); color: var(--forest); font-size: 13px; }
.contact-facts { display: grid; gap: 14px; }
.contact-facts article { padding: 27px; border: 1px solid var(--line); border-radius: 18px; }
.contact-facts h3 { margin: 0 0 10px; color: var(--forest); font: 500 24px Georgia,serif; }
.contact-facts p, .contact-facts a { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.legal-wrap { max-width: 900px; }
.legal-wrap h2 { margin: 48px 0 14px; color: var(--forest); font: 500 31px Georgia,serif; }
.legal-wrap h3 { margin: 28px 0 10px; color: var(--forest-deep); font-size: 17px; }
.legal-wrap p, .legal-wrap li { color: var(--muted); font-size: 15px; line-height: 1.8; }
.legal-note { padding: 20px 22px; border-left: 4px solid var(--terracotta); background: var(--ivory); }
.social-links { display: flex !important; flex-direction: row !important; gap: 9px !important; margin-top: 10px; }
.social-links a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; }
.social-links svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 1.7; }
.social-links svg rect, .social-links svg circle:not(.fill-dot) { fill: none; }
.social-links .fill-dot { stroke: none; }
.footer-link { padding: 0; border: 0; background: none; color: rgba(255,255,255,.73); text-align: left; font-size: 13px; cursor: pointer; }
.cookie-banner { position: fixed; z-index: 120; left: 18px; right: 18px; bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.98); box-shadow: 0 24px 70px rgba(50,48,79,.28); }
.cookie-banner.hidden { display: none; }
.cookie-banner strong { color: var(--forest); font: 500 22px Georgia,serif; }
.cookie-banner p { max-width: 680px; margin: 5px 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.cookie-banner a, .cookie-customize { color: var(--forest); font-size: 12px; text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.cookie-actions .button { min-height: 43px; padding-inline: 16px; font-size: 12px; }
.cookie-customize { border: 0; background: none; cursor: pointer; }
.cookie-modal { position: fixed; z-index: 130; inset: 0; display: none; place-items: center; padding: 20px; background: rgba(35,37,52,.58); backdrop-filter: blur(4px); }
.cookie-modal.open { display: grid; }
.cookie-dialog { position: relative; width: min(570px,100%); padding: 34px; border-radius: 24px; background: white; box-shadow: var(--shadow); }
.cookie-dialog h2 { margin: 0 0 22px; color: var(--forest); font: 500 38px Georgia,serif; }
.cookie-dialog label { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.cookie-dialog label span { display: flex; flex-direction: column; gap: 5px; }
.cookie-dialog small { color: var(--muted); line-height: 1.45; }
.cookie-close { position: absolute; top: 16px; right: 17px; border: 0; background: none; font-size: 28px; cursor: pointer; }

@media (max-width: 900px) {
  .page-intro, .image-feature, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .team-portrait-heading { grid-template-columns: 1fr; gap: 18px; }
  .feature-band .shell { grid-template-columns: 1fr; }
  .feature-band article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); padding-bottom: 22px; }
  .service-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .cookie-banner { align-items: flex-start; flex-direction: column; gap: 14px; }
  .cookie-actions { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .page-hero { min-height: 480px; }
  .page-hero .shell { padding-block: 80px 55px; }
  .page-hero h1 { font-size: 52px; }
  .image-feature .copy { padding: 38px 25px; }
  .team-portrait-section { padding-bottom: 84px; }
  .team-portrait { border-radius: 18px; }
  .image-feature img { min-height: 300px; }
  .gallery { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .cookie-banner { left: 9px; right: 9px; bottom: 9px; padding: 17px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .button { flex: 1; }
}
