@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url("/assets/fonts/lato-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url("/assets/fonts/lato-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --pale: #f4f9fc;
  --cyan: #009fd9;
  --navy: #003b71;
  --slate: #334155;
  --green: #10b981;
  --orange: #ff6d00;
  --heading: "Plus Jakarta Sans", Arial, sans-serif;
  --subheading: Inter, "Helvetica Neue", sans-serif;
  --body: Lato, Arial, sans-serif;
}

.medicom-home {
  --pale: #f4f9fc;
  --cyan: #009fd9;
  --navy: #003b71;
  --slate: #334155;
  --green: #10b981;
  --orange: #ff6d00;
  --heading: "Plus Jakarta Sans", Arial, sans-serif;
  --subheading: Inter, "Helvetica Neue", sans-serif;
  --body: Lato, Arial, sans-serif;
  margin: 0;
  color: var(--slate);
  background: white;
  font: 400 1rem/1.5 var(--body);
}

.home-wrap {
  width: min(81.5%, 1170px);
  margin-inline: auto;
}
.medicom-home :focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}
.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 10;
  padding: 0.7rem;
  background: white;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 2;
  background: white;
  box-shadow: 0 2px 9px #003b7114;
  width: 100%;
}
.header-inner,
.main-nav,
.header-actions {
  display: flex;
  align-items: center;
}
.site-header .header-inner {
  min-height: clamp(76px, 8.35vw, 118px);
  gap: 1.25rem;
  justify-content: space-between;
  width: auto;
  margin-inline: clamp(0.75rem, 2vw, 1.5rem);
}
.brand-link {
  display: inline-flex;
  flex: none;
}
.brand-link img {
  display: block;
  width: clamp(145px, 16.2vw, 225px);
  height: auto;
}
.main-nav {
  gap: clamp(1rem, 2.1vw, 2.25rem);
  margin-inline: auto;
  justify-content: center;
}
.mobile-auth-action {
  display: none;
}
.main-nav a,
.main-nav button,
.home-footer nav a,
.home-footer nav button {
  text-decoration: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0.35em 0;
}
.main-nav {
  color: #153447;
  font: 500 clamp(0.95rem, 1.26vw, 1.12rem)/1.4 var(--subheading);
}
.main-nav :is(a, button):hover,
.home-footer nav :is(a, button):hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.book-button {
  color: #232b36;
  background: var(--orange);
  border: 0;
  border-radius: 2rem;
  padding: 0.8em 1.5em;
  font: 700 clamp(0.95rem, 1.3vw, 1.125rem)/1.35 var(--subheading);
  white-space: nowrap;
}
.book-button:hover,
.specialty-search button:hover {
  background: #ff8426;
}
.header-actions {
  gap: 0.65rem;
}
.menu-toggle {
  display: none;
  border: 0;
  border-radius: 0.4rem;
  background: var(--pale);
  color: var(--navy);
  width: 44px;
  height: 44px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(115deg, #043259, var(--navy));
  color: white;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  pointer-events: none;
}
.hero::before {
  background: linear-gradient(60deg, #0a4270 49.7%, #105689 50%);
  inset: 0 26% auto 45%;
  height: 45%;
  clip-path: polygon(0 0, 100% 0, 56% 100%, 40% 43%, 29% 74%);
}
.hero::after {
  bottom: -8%;
  left: -2%;
  width: 20%;
  height: 49%;
  transform: skewX(29deg);
  border-radius: 0 2rem 0 0;
  background: linear-gradient(75deg, #0a4a7a, #07416b);
}
.hero-team {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
.hero-inner {
  min-height: clamp(390px, 40.55vw, 600px);
  display: flex;
  align-items: center;
  padding-block: clamp(30px, 4vw, 65px);
}
.hero-copy {
  width: 53%;
}
.hero h1 {
  font: 800 clamp(2.05rem, 3.98vw, 3.72rem)/1.14 var(--heading);
  letter-spacing: -0.032em;
  margin: 0;
}
.hero h1 span {
  color: var(--orange);
}
.hero p {
  max-width: 44ch;
  font-size: clamp(1rem, 1.47vw, 1.32rem);
  line-height: 1.4;
  margin: clamp(14px, 1.6vw, 24px) 0;
  color: #edf6fc;
}
.specialty-search {
  width: min(100%, 530px);
  display: flex;
  align-items: stretch;
  padding: 5px;
  background: white;
  border-radius: 0.72rem;
}
.specialty-search:focus-within {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}
.specialty-search input {
  min-width: 0;
  flex: 1;
  color: var(--slate);
  border: 0;
  background: transparent;
  padding: 0.6rem 0.85rem;
  outline: none;
}
.specialty-search input::placeholder {
  color: #576673;
  opacity: 1;
}
.specialty-search button {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  min-height: 44px;
  border: 0;
  border-radius: 0.5rem;
  background: var(--orange);
  color: #262e35;
}
.specialty-search input:focus-visible {
  outline: none;
}

home-footer,
patient-reviews {
  display: block;
}
.home-footer {
  background: var(--slate);
  color: #f6fbff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1.08fr 1.36fr auto;
  gap: clamp(1rem, 2vw, 2rem);
  padding-block: clamp(28px, 3.1vw, 48px);
}
.footer-intro img {
  width: clamp(145px, 16.5vw, 225px);
}
.footer-intro p {
  max-width: 24ch;
  margin: 0.7rem 0 0;
}
.home-footer h2 {
  margin: 0.25rem 0 0.55rem;
  color: white;
  font: 700 clamp(1rem, 1.32vw, 1.25rem)/1.3 var(--subheading);
}
.home-footer nav a,
.home-footer nav button {
  display: block;
  width: fit-content;
  text-align: start;
  padding: 0.15rem 0;
}
.home-footer p,
.home-footer nav,
.home-footer small {
  font-size: clamp(0.92rem, 1.13vw, 1.03rem);
  line-height: 1.45;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  overflow-wrap: anywhere;
}
.contact-line svg,
.social-icons svg {
  width: 1.2em;
  height: 1.2em;
  flex: none;
}
.contact-column small {
  color: #c6d7e2;
  font-size: 0.84rem;
}
.social-icons {
  display: flex;
}
.social-icons button {
  border: 0;
  border-radius: 0.25rem;
  width: 34px;
  height: 34px;
  background: transparent;
  color: white;
  padding: 3px;
}
.social-icons button:hover {
  background: #ffffff24;
}
.home-footer .copyright {
  margin: 0;
  padding: 0.65rem 1rem;
  background: var(--navy);
  text-align: center;
  font-size: 0.85rem;
}
.notice-dialog {
  width: min(24rem, calc(100% - 2rem));
  border: none;
  border-radius: 1rem;
  padding: 2rem;
  color: var(--slate);
  box-shadow: 0 18px 60px #102a4340;
}
.notice-dialog h2 {
  color: var(--navy);
  font: 800 1.6rem/1.25 var(--heading);
}
.notice-dialog::backdrop {
  background: #102a4399;
}

@media (max-width: 1000px) {
  .home-wrap {
    width: 90%;
  }
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .hero-copy {
    width: 50%;
  }
}

@media (max-width: 1280px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .main-nav {
    display: none;
  }
  .main-nav.is-open {
    display: grid;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    gap: 0;
    background: white;
    padding: 0.6rem 5%;
    box-shadow: 0 6px 10px #003b711c;
  }
  .main-nav :is(a, button) {
    min-height: 44px;
    text-align: start;
    padding: 0.7rem 0;
  }
  .main-nav {
    margin-inline: 0;
  }
}
@media (max-width: 700px) {
  .main-nav .mobile-auth-action {
    display: block;
  }
  .header-actions :is(.profile-button, .auth-logout-button) {
    display: none;
  }
}
@media (max-width: 680px) {
  .hero {
    display: flex;
    flex-direction: column;
  }
  .hero-inner {
    order: -1;
    min-height: 0;
    padding-block: 2rem 1rem;
  }
  .hero-copy {
    width: 100%;
  }
  .hero h1 {
    max-width: 19ch;
    font-size: clamp(2.05rem, 7.5vw, 2.6rem);
  }
  .hero-team {
    position: relative;
    align-self: flex-end;
    width: min(80%, 345px);
    height: auto;
  }
  .hero::before {
    inset: 0 0 auto 40%;
  }
  .hero::after {
    width: 35%;
    height: 30%;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }
  .footer-intro {
    grid-column: 1 / -1;
  }
  .footer-intro p {
    max-width: 34ch;
  }
  .about-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .about-copy {
    border-left-width: 3px;
  }
  .blog-grid article {
    min-height: 0;
  }
}
@media (max-width: 420px) {
  .brand-link img {
    width: 122px;
  }
  .site-header .brand-link img {
    width: 112px;
  }
  .site-header .header-inner {
    gap: 0.5rem;
    min-height: 70px;
  }
  .header-actions {
    gap: 0.35rem;
  }
  .header-actions .book-button {
    font-size: 0.88rem;
    padding-inline: 0.65rem;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .contact-column {
    grid-column: 1 / -1;
  }
}

.about-section,
.blog-section {
  scroll-margin-top: 100px;
  padding-block: clamp(48px, 5vw, 72px);
}
.about-section {
  background: white;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.section-kicker {
  margin: 0 0 0.35rem;
  color: var(--cyan);
  font: 800 0.95rem/1.3 var(--subheading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.about-grid h2,
.blog-section h2 {
  margin: 0;
  color: var(--navy);
  font: 800 clamp(1.8rem, 3vw, 2.55rem)/1.15 var(--heading);
  letter-spacing: -0.04em;
}
.about-copy {
  border-left: 4px solid var(--orange);
  padding-left: clamp(20px, 3vw, 36px);
}
.about-copy p {
  margin: 0;
  line-height: 1.75;
}
.about-copy p + p {
  margin-top: 0.8rem;
}
.blog-section {
  background: var(--pale);
}
.blog-section h2 {
  margin-bottom: clamp(24px, 3vw, 36px);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}
.blog-grid article {
  min-height: 220px;
  border: 1px solid #dde7ed;
  border-radius: 14px;
  background: white;
  padding: clamp(20px, 2.4vw, 32px);
  box-shadow: 0 8px 24px #003b710d;
}
.blog-grid article span {
  color: var(--cyan);
  font: 800 0.82rem/1.2 var(--subheading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.blog-grid article h3 {
  margin: 0.8rem 0 0.55rem;
  color: var(--navy);
  font: 750 1.22rem/1.35 var(--heading);
}
.blog-grid article p {
  margin: 0;
  color: var(--slate);
}
#servicios,
#nosotros,
#blog {
  scroll-margin-top: 100px;
}
