/* =========================================================
   PERÚ FÁRMACOS - LANDING TEMPORAL
   ========================================================= */

:root {
  --brand-blue-dark: #192c78;
  --brand-blue: #20388e;
  --brand-blue-medium: #4070b4;
  --brand-cyan: #a8dadc;
  --brand-neutral: #dbddce;

  --white: #ffffff;
  --background: #f5f9fc;
  --surface: #ffffff;
  --text: #182033;
  --text-soft: #5d6678;
  --border: rgba(25, 44, 120, 0.14);

  --shadow-sm: 0 10px 30px rgba(25, 44, 120, 0.08);
  --shadow-md: 0 22px 60px rgba(25, 44, 120, 0.14);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;

  --container: 1180px;
  --header-height: 82px;

  --transition: 180ms ease;
}

/* -------------------- Reset -------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family:
    Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
}

section {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 10px 16px;
  color: var(--white);
  background: var(--brand-blue-dark);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* -------------------- Header -------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-content {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 190px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  position: relative;
  color: var(--brand-blue-dark);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--brand-blue-medium);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--brand-blue-dark);
  border-radius: 999px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -------------------- Buttons -------------------- */

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 0.96rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 12px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background-color var(--transition),
    color var(--transition);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--brand-blue);
  box-shadow: 0 12px 28px rgba(32, 56, 142, 0.2);
}

.button-primary:hover {
  background: var(--brand-blue-dark);
}

.button-secondary {
  color: var(--brand-blue-dark);
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(25, 44, 120, 0.22);
}

.button-secondary:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.button-light {
  color: var(--brand-blue-dark);
  background: var(--white);
}

/* -------------------- Hero -------------------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 15%, rgba(168, 218, 220, 0.7), transparent 28%),
    linear-gradient(135deg, #f8fcff 0%, #e8f4f8 58%, #dbeef4 100%);
}

.hero::after {
  position: absolute;
  right: -150px;
  bottom: -180px;
  width: 560px;
  height: 560px;
  content: "";
  border: 84px solid rgba(64, 112, 180, 0.1);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: calc(100svh - var(--header-height));
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
  padding-block: 80px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--brand-blue-medium);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 800px;
  margin-bottom: 24px;
  color: var(--brand-blue-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.hero-copy > p {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-card {
  position: relative;
  padding: clamp(30px, 5vw, 48px);
  color: var(--white);
  background:
    linear-gradient(
      145deg,
      rgba(32, 56, 142, 0.98),
      rgba(25, 44, 120, 0.98)
    );
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-card::before {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 74px;
  height: 74px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  transform: rotate(10deg);
}

.medical-symbol {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 26px;
  place-items: center;
  color: var(--brand-blue-dark);
  background: var(--brand-cyan);
  font-size: 2.2rem;
  font-weight: 400;
  border-radius: 18px;
}

.hero-card h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.hero-card p {
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-card-line {
  width: 100%;
  height: 1px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-card span {
  color: var(--brand-cyan);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-decoration {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-decoration-one {
  top: 10%;
  left: -80px;
  width: 190px;
  height: 190px;
  background: rgba(64, 112, 180, 0.08);
}

.hero-decoration-two {
  bottom: 8%;
  left: 42%;
  width: 90px;
  height: 90px;
  background: rgba(168, 218, 220, 0.48);
}

/* -------------------- General sections -------------------- */

.section {
  padding-block: clamp(72px, 9vw, 118px);
}

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

.section-title {
  margin-bottom: 18px;
  color: var(--brand-blue-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4rem);
  letter-spacing: -0.035em;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 1.06rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(35px, 7vw, 90px);
}

.about-copy {
  max-width: 760px;
}

.about-copy p {
  color: var(--text-soft);
  font-size: 1.05rem;
}

.about-copy .lead {
  margin-bottom: 22px;
  color: var(--text);
  font-size: clamp(1.28rem, 2vw, 1.7rem);
  font-weight: 700;
}

/* -------------------- Product cards -------------------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.info-card {
  min-height: 320px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.info-card:hover {
  border-color: rgba(64, 112, 180, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.card-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 34px;
  place-items: center;
  color: var(--brand-blue-dark);
  background: rgba(168, 218, 220, 0.5);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 800;
  border-radius: 18px;
}

.info-card h3 {
  margin-bottom: 16px;
  color: var(--brand-blue-dark);
  font-size: 1.35rem;
}

.info-card p {
  margin-bottom: 0;
  color: var(--text-soft);
}

/* -------------------- Mission and vision -------------------- */

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.statement-card {
  position: relative;
  min-height: 390px;
  padding: clamp(32px, 5vw, 54px);
  overflow: hidden;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.statement-card-primary {
  color: var(--white);
  background:
    linear-gradient(
      145deg,
      var(--brand-blue),
      var(--brand-blue-dark)
    );
}

.statement-number {
  display: block;
  margin-bottom: 54px;
  color: var(--brand-blue-medium);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.statement-card-primary .statement-number {
  color: var(--brand-cyan);
}

.statement-card h3 {
  margin-bottom: 20px;
  color: var(--brand-blue-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.statement-card-primary h3 {
  color: var(--white);
}

.statement-card p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 1.03rem;
}

.statement-card-primary p {
  color: rgba(255, 255, 255, 0.84);
}

/* -------------------- Values -------------------- */

.values-section {
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0%, rgba(64, 112, 180, 0.4), transparent 30%),
    var(--brand-blue-dark);
}

.section-heading-light .section-title,
.section-heading-light p {
  color: var(--white);
}

.section-heading-light p {
  opacity: 0.76;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.value-card {
  min-height: 260px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.value-card span {
  display: block;
  margin-bottom: 52px;
  color: var(--brand-cyan);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.value-card h3 {
  margin-bottom: 14px;
  font-size: 1.28rem;
}

.value-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

/* -------------------- Location -------------------- */

.location-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.location-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 52px);
}

.location-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 20px;
  padding: 7px 12px;
  color: var(--brand-blue-dark);
  background: rgba(168, 218, 220, 0.5);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
}

.location-info h3 {
  margin-bottom: 28px;
  color: var(--brand-blue-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.location-item {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.location-item strong {
  color: var(--brand-blue-dark);
}

.location-item span,
.location-note {
  color: var(--text-soft);
}

.location-note {
  margin-block: 8px 26px;
  font-size: 0.92rem;
}

.location-info .button {
  width: fit-content;
}

.map-wrapper {
  min-height: 520px;
  background: var(--brand-neutral);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}

/* -------------------- Closing banner -------------------- */

.closing-banner {
  padding-block: 60px;
  color: var(--white);
  background: var(--brand-blue-medium);
}

.closing-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.closing-content .section-label {
  color: rgba(255, 255, 255, 0.72);
}

.closing-content h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

/* -------------------- Footer -------------------- */

.site-footer {
  padding-top: 64px;
  color: rgba(255, 255, 255, 0.76);
  background: #10183c;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 50px;
  padding-bottom: 48px;
}

.footer-logo {
  width: 200px;
  height: 62px;
  margin-bottom: 22px;
  padding: 8px 12px;
  object-fit: contain;
  object-position: left center;
  background: var(--white);
  border-radius: 10px;
}

.footer-brand p {
  max-width: 470px;
}

.footer-links,
.footer-location {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-links strong,
.footer-location strong {
  margin-bottom: 8px;
  color: var(--white);
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand-cyan);
}

.footer-location p {
  margin-bottom: 0;
}

.footer-bottom {
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* -------------------- Focus -------------------- */

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand-cyan);
  outline-offset: 4px;
}

/* -------------------- Tablet -------------------- */

@media (max-width: 960px) {
  :root {
    --header-height: 74px;
  }

  .brand-logo {
    width: 165px;
    height: 48px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    align-items: stretch;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    padding: 13px 14px;
    border-radius: 10px;
  }

  .main-nav a:hover {
    background: var(--background);
  }

  .main-nav a::after {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 90px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero-card {
    max-width: 680px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-card:last-child {
    grid-column: 1 / -1;
  }

  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-card {
    grid-template-columns: 1fr;
  }

  .map-wrapper,
  .map-wrapper iframe {
    min-height: 430px;
  }

  .footer-content {
    grid-template-columns: 1.4fr 0.8fr;
  }

  .footer-location {
    grid-column: 1 / -1;
  }
}

/* -------------------- Mobile -------------------- */

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand-logo {
    width: 148px;
  }

  .hero-grid {
    padding-block: 70px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.6rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-card {
    padding: 30px 24px;
    border-radius: 24px;
  }

  .section {
    padding-block: 72px;
  }

  .about-grid,
  .mission-grid,
  .cards-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .info-card:last-child {
    grid-column: auto;
  }

  .info-card {
    min-height: auto;
  }

  .statement-card {
    min-height: auto;
    padding: 32px 26px;
    border-radius: 24px;
  }

  .statement-number {
    margin-bottom: 38px;
  }

  .value-card {
    min-height: auto;
  }

  .value-card span {
    margin-bottom: 30px;
  }

  .location-card {
    border-radius: 24px;
  }

  .location-info {
    padding: 30px 24px;
  }

  .location-info .button {
    width: 100%;
  }

  .map-wrapper,
  .map-wrapper iframe {
    min-height: 360px;
  }

  .closing-content {
    align-items: stretch;
    flex-direction: column;
  }

  .closing-content .button {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-location {
    grid-column: auto;
  }
}

/* -------------------- Small mobile -------------------- */

@media (max-width: 380px) {
  .brand-logo {
    width: 132px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .button {
    padding-inline: 18px;
  }

  .map-wrapper,
  .map-wrapper iframe {
    min-height: 320px;
  }
}

/* -------------------- Reduced motion -------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
