/**
 * Ashford Medical — Design system
 * Custom one-page identity. Independent from the original template.
 * Brand: blue and white predominance · #4765a0 (clinical blue)
 */

:root {
  --ink: #16305c;
  --ink-soft: #1d4076;
  --brand: #4765a0;
  --brand-deep: #355184;
  --brand-soft: #e7edf6;
  --paper: #f4f7fc;
  --white: #ffffff;
  --muted: #51617c;
  --line: rgba(22, 48, 92, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 60px rgba(22, 48, 92, 0.14);
  --radius: 1.25rem;
  --radius-sm: 0.85rem;
  --header-h: 5.25rem;
  --font-sans: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

section[id],
#top {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-deep);
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
}

.display-title {
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--ink);
}

.lead-copy {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
}

.section {
  padding: 6.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 3.2rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 0.7rem 0 1rem;
}

/* Buttons */
.btn-ashford {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-deep);
  --bs-btn-hover-border-color: var(--brand-deep);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--ink);
  --bs-btn-active-border-color: var(--ink);
  --bs-btn-padding-x: 1.45rem;
  --bs-btn-padding-y: 0.78rem;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 999px;
  letter-spacing: 0.01em;
}

.btn-ghost {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(255, 255, 255, 0.28);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-border-color: #fff;
  --bs-btn-padding-x: 1.45rem;
  --bs-btn-padding-y: 0.78rem;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 999px;
}

.btn-outline-ink {
  --bs-btn-color: var(--ink);
  --bs-btn-border-color: var(--line);
  --bs-btn-hover-bg: var(--ink);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: var(--ink);
  --bs-btn-padding-x: 1.3rem;
  --bs-btn-padding-y: 0.72rem;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 999px;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1040;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(22, 48, 92, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(22, 48, 92, 0.28);
}



.brand-logo img {
  width: 140px;
}

.nav-link-ashford {
  color: rgba(255, 255, 255, 0.86) !important;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.4rem 0.7rem !important;
}

.nav-link-ashford:hover,
.nav-link-ashford.active {
  color: #fff !important;
}

.navbar-toggler {
  border: 0;
  padding: 0.35rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.menu-icon {
  width: 1.5rem;
  height: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-icon span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.offcanvas {
  background: var(--ink);
  color: #fff;
}

.offcanvas .nav-link-ashford {
  font-size: 1.2rem;
  padding: 0.7rem 0 !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(255, 255, 255, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(22, 48, 92, 0.25), rgba(22, 48, 92, 0.78));
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: grayscale(0.15) contrast(1.05);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero .eyebrow {
  color: #c9d6ee;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
  max-width: 18ch;
  margin: 1rem 0 1.4rem;
}

.hero .lead-copy {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.hero-panel {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.hero-panel h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.hero-stat {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-light);
}

.hero-stat:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hero-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

/* Trust strip */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 1.35rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.trust-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* About */
.about {
  background: var(--white);
}

.about-visual {
  position: relative;
  min-height: 100%;
}

.about-visual img {
  width: 100%;
  height: 100%;
  min-height: 36rem;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-badge {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
  max-width: 16rem;
  box-shadow: var(--shadow);
}

.about-badge span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fb0d0;
  margin-bottom: 0.3rem;
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.fact-card {
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.2rem;
}

.fact-card strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.fact-card span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Portfolio */
.portfolio {
  background: var(--paper);
}

.product-card {
  position: relative;
  display: block;
  height: 100%;
  min-height: 22rem;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.product-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 48, 92, 0.05) 20%, rgba(22, 48, 92, 0.9) 100%);
  z-index: 1;
}

.product-card:hover img {
  transform: scale(1.06);
}

.product-card-body {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.product-card .index {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c5d2ea;
  margin-bottom: 0.35rem;
}

.product-card h3 {
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.product-card p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  font-size: 0.95rem;
}

.product-card.featured {
  min-height: 28rem;
}

.product-card.featured h3 {
  font-size: 1.85rem;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.chip {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}

/* Quality */
.quality {
  background: var(--ink);
  color: #fff;
}

.quality .eyebrow {
  color: #9fb4d8;
}

.quality h2,
.quality .lead-copy {
  color: #fff;
}

.quality .lead-copy {
  color: rgba(255, 255, 255, 0.72);
}

.cred-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  height: 100%;
}

.cred-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 1.1rem;
}

.cred-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.cred-card p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.95rem;
}

.note-box {
  border-left: 3px solid var(--brand);
  padding: 1.2rem 1.3rem;
  background: rgba(71, 101, 160, 0.12);
  border-radius: 0 0.9rem 0.9rem 0;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2.4rem;
}

/* Commitment */
.commitment {
  background: var(--white);
}

.split-quote {
  background: var(--brand-soft);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
}

.split-quote p {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

/* Contact */
.contact {
  background: var(--paper);
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-card > .row {
  min-height: 100%;
}

.contact-card > .row > [class*="col-"] {
  display: flex;
}

.contact-aside {
  background: var(--ink);
  color: #fff;
  width: 100%;
  min-height: 100%;
  padding: 2.4rem 2rem;
}

.contact-aside a {
  color: #fff;
  overflow-wrap: anywhere;
}

.contact-aside a:hover {
  color: #c9d6ee;
}

.contact-channels {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
}

.contact-channel {
  display: flex;
  gap: 0.85rem;
  min-width: 0;
}

.contact-channel > div:last-child {
  min-width: 0;
}

.contact-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  background: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.form-wrap {
  padding: 2.4rem 2rem;
}

.form-control,
.form-select {
  border-radius: 0.8rem;
  border-color: var(--line);
  padding: 0.78rem 0.95rem;
  background: var(--paper);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(71, 101, 160, 0.18);
  background: #fff;
}

.form-label {
  font-weight: 600;
  font-size: 0.86rem;
}

.form-success {
  display: none;
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  color: var(--brand-deep);
  font-weight: 500;
}

.form-success.is-visible {
  display: block;
}

.form-error {
  display: none;
  background: #fdecec;
  border: 1px solid #f3c1c1;
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  color: #8f1f1f;
  font-weight: 500;
}

.form-error.is-visible {
  display: block;
}

/* Honeypot anti-spam: fuera de pantalla para personas, visible para bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 3.2rem 0 1.6rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: #fff;
}


.footer-logo img {
  height: 3.0rem;
  width: auto;
}

.footer-meta {
  border-top: 1px solid var(--line-light);
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  font-size: 0.88rem;
}

.lucuo-credit {
  color: #fff;
  font-weight: 600;
}

/* Utilities */
.bg-cross {
  position: relative;
}

@media (max-width: 991.98px) {
  .section {
    padding: 4.5rem 0;
  }

  .about-visual img {
    height: 22rem;
    margin-bottom: 1.5rem;
  }

  .hero-panel {
    margin-top: 2.4rem;
  }

  .product-card,
  .product-card.featured {
    min-height: 20rem;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding-top: calc(var(--header-h) + 1.5rem);
  }

  .contact-aside {
    padding: 1.75rem 1.25rem;
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    justify-content: center;
    margin-bottom: 0.6rem;
  }

  .contact-aside {
    padding: 1.75rem 1.25rem;
  }
}
