@font-face {
  font-family: 'TWKLausanne';
  src: url('/assets/fonts/TWKLausanne-200.woff2') format('woff2'),
       url('/assets/fonts/TWKLausanne-200.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TWKLausanne';
  src: url('/assets/fonts/TWKLausanne-350.woff2') format('woff2'),
       url('/assets/fonts/TWKLausanne-350.woff') format('woff');
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}

:root { --ink: #151515; --paper: #f6f6f6; --footer: #e4e4e2; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'TWKLausanne', sans-serif; font-weight: 200; }
h1, h2, h3 { font-weight: 350; }
a { color: inherit; text-decoration: none; }
.section-width { width: min(100% - 36px, 1090px); margin-inline: auto; }

.site-header { position: fixed; z-index: 10; top: 0; left: 0; right: 0; color: #111; transition: background .35s ease, box-shadow .35s ease, color .35s ease; }
.site-header.is-scrolled { background: rgba(255,255,255,.94); box-shadow: 0 1px 0 rgba(0,0,0,.08); backdrop-filter: blur(12px); }
.nav-shell { height: 72px; width: min(100% - 36px, 1120px); margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; position: relative; }
.nav-links { display: flex; align-items: center; gap: 27px; font-size: 16.3px; font-weight: 350; line-height: 2.11; letter-spacing: -.93px; }
.nav-links a { transition: opacity .2s ease; }
.nav-left a:first-child { color: #151515; }
.nav-links a:hover { opacity: .5; }
.wordmark, .footer-mark { display: inline-flex; line-height: 0; }
.wordmark img { width: 152px; height: 30px; }
.site-header.is-scrolled .wordmark img, .footer-mark img { filter: invert(1); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 16px; font-size: 16.3px; font-weight: 350; line-height: 2.11; letter-spacing: -.93px; }
.investor-link { padding: 6px 18px; border: 0; border-radius: 100px; background: #dddcdb; box-shadow: none; color: #151515; font-size: inherit; font-weight: inherit; line-height: 1; letter-spacing: inherit; text-shadow: none; -webkit-font-smoothing: antialiased; transition: background .2s ease, color .2s ease; }
.investor-link:hover { background: var(--ink); color: #fff; }
.site-header:not(.is-scrolled) .nav-actions { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.24); }
.site-header:not(.is-scrolled) .nav-links { text-shadow: none; mix-blend-mode: normal; }
.site-header:not(.is-scrolled) .nav-left a:first-child { color: #151515; }
.site-header:not(.is-scrolled) .nav-left a:nth-child(n + 2) { color: #fff; }
.site-header:not(.is-scrolled) .menu-button { color: #fff; }
.site-header:not(.is-scrolled) .investor-link { background: #dddcdb; color: #151515; text-shadow: none; }
.language-picker { position: relative; }
.language-toggle { display: flex; align-items: center; gap: 4px; padding: 4px 0; color: inherit; font: inherit; text-shadow: inherit; border: 0; background: transparent; cursor: pointer; }
.language-chevron { font-size: 14px; transform: translateY(-2px); transition: transform .2s ease; }
.language-toggle[aria-expanded="true"] .language-chevron { transform: translateY(1px) rotate(180deg); }
.language-menu { position: absolute; top: calc(100% + 11px); right: -10px; display: none; min-width: 145px; padding: 5px; background: rgba(255,255,255,.98); color: var(--ink); border: 1px solid rgba(0,0,0,.1); border-radius: 10px; box-shadow: 0 12px 25px rgba(0,0,0,.14); text-shadow: none; }
.language-menu.is-open { display: grid; }
.language-menu button { display: flex; justify-content: space-between; gap: 25px; padding: 9px; color: var(--ink); font: 200 13px 'TWKLausanne', sans-serif; text-align: left; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.language-menu button:hover, .language-menu button[aria-current="true"] { background: #ececeb; }
.language-menu span { color: #777; font-size: 11px; }
.menu-button, .mobile-menu { display: none; }

.hero { position: relative; min-height: min(680px, 92svh); height: 70vw; max-height: 810px; overflow: hidden; background: var(--paper); }
.hero-image { position: absolute; inset: 0; background: url('/assets/images/home/paciente.jpg') center center / cover no-repeat; }
.hero-title { position: absolute; top: 53%; left: 50%; transform: translate(-50%, -50%); display: flex; gap: 7px; margin: 0; white-space: nowrap; font-size: 37.58px; font-weight: 200; line-height: .94; letter-spacing: -.04em; }
.hero-title span, .hero-title strong { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 14px; border-radius: 8px; font: inherit; line-height: 1; text-align: center; }
.hero-title span { background: #dddcdb; }
.hero-title strong { background: rgba(255,255,255,.9); }

.manifesto { padding: clamp(52px, 7.2vw, 105px) 24px; text-align: center; }
.manifesto p { max-width: 1104px; margin: 0 auto; color: #d7d7d7; font-size: 58.55px; font-weight: 200; line-height: 1.06; letter-spacing: -.02em; }
.manifesto em { color: #989696; font-style: normal; }

.story-grid { display: grid; grid-template-columns: .72fr 1.58fr; gap: 20px; }
.product-card, .company-card { height: 350px; min-height: 350px; overflow: hidden; border-radius: 30px; position: relative; background: #ececeb; }
.product-card { padding: 0; border-radius: 30px; background: #ececeb; }
.eyebrow { align-self: flex-start; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #737371; }
.product-card img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: center 60%; }
.product-caption { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.product-caption p { max-width: 190px; margin: 0; font-size: 14px; line-height: 1.12; letter-spacing: -.03em; }
.product-caption a { font-size: 12px; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.product-caption b { font-size: 16px; font-weight: 200; }
.company-card img { width: 100%; height: 100%; position: absolute; border-radius: inherit; object-fit: cover; object-position: center 53%; filter: saturate(.75); }
.company-card::before { content: ''; position: absolute; z-index: 1; top: 32px; left: 40px; width: min(620px, calc(100% - 80px)); height: 2px; background: rgba(255,255,255,.78); }
.company-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.07) 80%); }
.company-overlay { position: relative; z-index: 1; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 88px 40px 0; color: white; }
.company-overlay p { margin: 0; font-size: 37.58px; font-weight: 200; line-height: .94; letter-spacing: -.04em; }
.company-overlay a { position: absolute; left: 40px; bottom: 28px; padding: 9px 17px; background: #fff; color: #141414; border-radius: 99px; font-size: 12.5px; transition: transform .2s ease; }
.company-overlay a:hover { transform: scale(1.04); }

.partners { display: flex; align-items: center; gap: 0; padding: 0 20px 43px; margin-top: 72px; }
.partners h2 { flex: none; margin: 0; padding: 6px 12px 7px; border-radius: 11px; background: #e4e4e2; font-size: 32px; font-weight: 350; line-height: 1; letter-spacing: -.065em; }
.partner-list { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 20px; margin-left: clamp(68px, 8vw, 84px); }
.partner-logo { display: block; min-width: 0; object-fit: cover; mix-blend-mode: multiply; }
.logo-canify { width: 112px; height: 54px; }
.logo-stada { width: 110px; height: 60px; object-fit: contain; }
.logo-grow { width: 116px; height: 54px; }
.logo-easy { width: 190px; height: 54px; object-fit: contain; }

.site-footer { position: relative; min-height: 340px; background: var(--footer); border-radius: 10px 10px 0 0; padding: 30px 36px 24px; }
.footer-top { display: block; }
.footer-mark { margin-top: 5px; }
.footer-mark img { width: 174px; height: auto; }
.footer-intro h2 { max-width: 370px; margin: 28px 0 45px; font-size: 32px; line-height: .94; letter-spacing: -.07em; font-weight: 350; }
.footer-intro p, .footer-credentials p { margin: 0; max-width: 365px; color: #777775; font-size: 17px; line-height: 1.03; letter-spacing: -.045em; }
.footer-credentials-summary { display: none; }
.footer-ctas { position: absolute; top: 25px; right: 28px; display: flex; gap: 10px; }
.footer-ctas a { padding: 8px 11px 9px; border-radius: 9px; font-size: 15px; line-height: 1; letter-spacing: -.05em; }
.button-dark { color: white; background: #151515; }
.footer-ctas .button-dark { color: #151515; background: #a7a6a4; }
.button-light { background: white; }
.footer-credentials { position: absolute; top: 66px; left: 50%; width: 300px; }
.footer-top h3 { margin: 0 0 44px; font-size: 18px; line-height: 1; font-weight: 350; letter-spacing: -.05em; }
.credential-logos { margin: 0 0 52px; }
.aemps-logo { display: block; width: min(100%, 270px); height: auto; }
.bcorp-logo-mobile { display: none; }
.footer-bcorp { position: absolute; top: 83px; left: 78%; width: 100px; text-align: center; }
.bcorp-logo { display: block; width: 100px; height: auto; }
.footer-bottom { position: absolute; bottom: 24px; left: 36px; right: 36px; display: flex; justify-content: space-between; gap: 20px; font-size: 11px; letter-spacing: -.045em; }

@media (min-width: 761px) {
  .site-footer { width: min(100% - 42px, 1090px); min-height: 236px; padding: 0; background: var(--footer); box-shadow: none; }
  .footer-top { position: relative; height: 236px; }
  .footer-intro { position: absolute; top: 30px; left: 34px; }
  .footer-mark { margin-top: 0; }
  .footer-mark img { width: 170px; }
  .footer-intro h2 { display: none; }
  .footer-intro p { max-width: 285px; margin-top: 29px; color: #777775; font-size: 18px; line-height: 1.08; letter-spacing: -.045em; }
  .footer-ctas { top: 25px; right: 28px; }
  .footer-ctas a { padding: 8px 11px 9px; font-size: 15px; }
  .footer-credentials { position: absolute; top: 88px; left: calc(35% + 13px); width: 300px; }
  .footer-top h3 { position: absolute; top: -1px; left: 331px; margin: 0; width: 150px; font-size: 18px; line-height: 1; }
  .credential-logos { position: absolute; top: 15px; left: 331px; display: flex; align-items: flex-start; gap: 18px; margin: 0; width: 240px; }
  .aemps-logo { width: 155px; margin-top: 26px; }
  .bcorp-logo-mobile { display: block; flex: none; width: 76px; height: auto; transform: translateY(-12px); }
  .footer-credentials p { position: static; display: block; width: 300px; max-width: none; margin: 0; color: #777775; font-size: 17px; line-height: 1.08; letter-spacing: -.045em; }
  .footer-bcorp { display: none; }
  .footer-bottom { right: auto; bottom: 17px; left: 34px; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 22px; font-size: 12px; }
}

@media (max-width: 760px) {
  .section-width { width: min(100% - 32px, 1090px); }
  .nav-shell { height: 60px; width: calc(100% - 32px); grid-template-columns: 1fr auto 1fr; }
  .nav-left, .nav-actions .investor-link { display: none; }
  .nav-actions { gap: 14px; }
  .investor-link { padding: 5px 12px; font-size: 11px; }
  .wordmark img { width: 132px; height: auto; }
  .menu-button { display: flex; justify-self: end; width: 24px; height: 24px; flex-direction: column; justify-content: center; gap: 6px; border: 0; background: transparent; padding: 0; cursor: pointer; }
  .menu-button i { display: block; height: 1px; background: currentColor; width: 21px; transition: transform .2s ease; }
  .menu-button.is-open i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button.is-open i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-menu { width: 100%; padding: 9px 16px 17px; background: rgba(255,255,255,.96); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
  .mobile-menu.is-open { display: grid; gap: 13px; }
  .mobile-menu a { font-size: 16px; }
  .hero { min-height: 580px; height: 115vw; max-height: 680px; }
  .hero-image { background-position: 61% center; }
  .hero-title { top: 50%; bottom: auto; left: 50%; transform: translate(-50%, -50%); font-size: 25px; white-space: normal; flex-wrap: wrap; justify-content: center; width: calc(100% - 34px); max-width: 360px; gap: 4px; }
  .hero-title span, .hero-title strong { min-height: 43px; padding: 0 12px; }
  .manifesto { padding: 56px 22px; }
  .manifesto p { font-size: 36px; }
  .story-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-card, .company-card { height: 350px; min-height: 350px; border-radius: 25px; }
  .company-card::before { top: 28px; left: 30px; width: calc(100% - 60px); }
  .company-overlay { padding: 78px 30px 0; justify-content: flex-start; }
  .company-overlay p { font-size: 31px; }
  .company-overlay a { left: 30px; bottom: 28px; }
  .partners { flex-direction: column; align-items: flex-start; gap: 26px; padding: 0 20px 43px; margin-top: 54px; }
  .partner-list { flex-wrap: wrap; justify-content: flex-start; gap: 24px; margin-left: 0; }
  .site-footer { width: calc(100% - 40px); min-height: 0; padding: 33px 20px 24px; }
  .footer-top { display: grid; grid-template-columns: 1fr; gap: 37px; }
  .footer-intro { grid-column: auto; }
  .footer-mark img { width: 185px; }
  .footer-intro h2 { font-size: 29px; }
  .footer-ctas { position: absolute; top: 37px; right: 20px; margin: 0; }
  .footer-intro { padding-bottom: 20px; }
  .footer-credentials { position: static; grid-column: auto; grid-row: auto; width: auto; }
  .footer-top h3 { margin: 0 0 22px; }
  .credential-logos { display: flex; align-items: center; gap: 18px; margin-bottom: 39px; }
  .aemps-logo { width: min(100%, 255px); }
  .bcorp-logo-mobile { display: block; flex: none; width: 88px; height: auto; }
  .footer-bcorp { display: none; }
  .footer-bottom { position: static; margin-top: 45px; flex-direction: column; gap: 8px; }
}

/* Mantener ambas credenciales dentro del ancho disponible en móvil. */
@media (max-width: 760px) {
  .credential-logos { flex-wrap: wrap; max-width: 100%; }
  .credential-logos img { max-width: 100%; height: auto; }
}
