:root {
  --ink: #10232b;
  --ink-2: #18333c;
  --paper: #fffdf8;
  --soft: #f3f0e8;
  --line: #dce4e0;
  --muted: #65747a;
  --teal: #0e7880;
  --teal-dark: #0a535c;
  --aqua: #6eced0;
  --coral: #d7654f;
  --gold: #dca83c;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(16, 35, 43, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 35, 43, 0.94);
  color: var(--white);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
}

.site-nav a {
  padding: 10px 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--aqua);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: transparent;
  color: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(720px, 78vh);
  padding: clamp(70px, 10vw, 120px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 24, 31, 0.96) 0%, rgba(5, 24, 31, 0.87) 32%, rgba(5, 24, 31, 0.32) 66%),
    url("assets/hero-anestesia-veterinaria.png") center / cover no-repeat;
  color: var(--white);
}

.hero__content {
  width: min(690px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--aqua);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.hero__lead {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero__actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--coral);
  color: var(--white);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.button--outline {
  border-color: rgba(16, 35, 43, 0.2);
  background: transparent;
  color: var(--ink);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.signal-strip div {
  padding: clamp(20px, 4vw, 34px) clamp(18px, 4vw, 56px);
  background: var(--white);
}

.signal-strip strong,
.signal-strip span {
  display: block;
}

.signal-strip strong {
  margin-bottom: 6px;
  font-size: 1rem;
}

.signal-strip span,
.copy,
.section-heading p,
.technology p,
.process p,
.service-card p,
.contact p {
  color: var(--muted);
}

.section {
  padding: clamp(68px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.section--light {
  background: var(--soft);
}

.section--ink {
  background: var(--ink);
  color: var(--white);
}

.section--ink .eyebrow {
  color: var(--gold);
}

.section--ink p,
.section--ink span {
  color: rgba(255, 255, 255, 0.72);
}

.section__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.split,
.technology,
.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}

.copy {
  font-size: 1.08rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

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

.service-card,
.scheduler-panel,
.booking-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(16, 35, 43, 0.06);
}

.service-card {
  min-height: 230px;
  padding: 24px;
}

.service-card span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: rgba(14, 120, 128, 0.1);
  color: var(--teal-dark);
  font-weight: 900;
}

.equipment-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.equipment-list div {
  padding: 24px;
  background: var(--ink-2);
}

.equipment-list strong,
.equipment-list span {
  display: block;
}

.equipment-list strong {
  margin-bottom: 8px;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.process div {
  border-top: 3px solid var(--teal);
  padding-top: 18px;
}

.process span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

.agenda-section {
  background: #f8fbfa;
}

.agenda-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.scheduler-panel,
.booking-panel {
  padding: clamp(18px, 3vw, 28px);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.status-pill {
  display: inline-flex;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(220, 168, 60, 0.15);
  color: #7b5b11;
  font-size: 0.86rem;
  font-weight: 800;
}

.status-pill.is-live {
  background: rgba(14, 120, 128, 0.12);
  color: var(--teal-dark);
}

.status-pill.is-error {
  background: rgba(215, 101, 79, 0.13);
  color: #9a3826;
}

.icon-button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.date-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(82px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.date-button {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.date-button strong,
.date-button span {
  display: block;
}

.date-button strong {
  font-size: 0.98rem;
}

.date-button span {
  color: var(--muted);
  font-size: 0.78rem;
}

.date-button.is-active {
  border-color: var(--teal);
  background: rgba(14, 120, 128, 0.09);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-height: 118px;
}

.slot-button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.slot-button.is-active {
  border-color: var(--coral);
  background: rgba(215, 101, 79, 0.1);
  box-shadow: inset 0 0 0 1px var(--coral);
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 118px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.selected-slot {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(14, 120, 128, 0.09);
  color: var(--teal-dark);
  font-weight: 800;
}

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

.booking-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 120, 128, 0.12);
}

.booking-form__full,
.form-message {
  grid-column: 1 / -1;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.contact-section {
  background: var(--white);
}

.contact-actions {
  margin-top: 0;
  justify-content: flex-start;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    inset: 74px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 12px;
  }

  .nav-toggle {
    display: block;
  }

  .signal-strip,
  .service-grid,
  .process,
  .agenda-layout,
  .split,
  .technology,
  .contact {
    grid-template-columns: 1fr;
  }

  .date-rail {
    grid-template-columns: repeat(4, minmax(82px, 1fr));
  }

  .slot-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
  }

  .site-nav {
    top: 66px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: min(620px, 76vh);
    padding-top: 76px;
    background:
      linear-gradient(90deg, rgba(5, 24, 31, 0.96) 0%, rgba(5, 24, 31, 0.84) 56%, rgba(5, 24, 31, 0.42) 100%),
      url("assets/hero-anestesia-veterinaria.png") 60% center / cover no-repeat;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero__actions,
  .contact-actions,
  .button {
    width: 100%;
  }

  .signal-strip div {
    padding: 20px 18px;
  }

  .section {
    padding: 56px 18px;
  }

  .equipment-list,
  .date-rail,
  .slot-list,
  .booking-form {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    display: grid;
  }

  .site-footer {
    display: grid;
  }
}
