/* ============================================================
   ORTHOBONE INC. — GLOBAL STYLES
   Fuente: Barlow | Full-width | Fiel al diseño original
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== VARIABLES ===== */
:root {
  --blue:        #0B3D6B;
  --blue-mid:    #1565a8;
  --teal:        #1A9BC1;
  --yellow:      #F5C518;
  --yellow-dark: #d4aa10;
  --green-light: #E9F0F1;
  --white:       #FFFFFF;
  --light-bg:    #EEF2F7;
  --light-blue:  #F1F5F9;
  --dark-navy:   #07203F;
  --gray:        #6B7280;
  --gray-light:  #9CA3AF;
  --text:        #111827;
  --border:      #D9E3EE;
  --nav-h:       68px;
  --shadow-sm:   0 2px 10px rgba(0,0,0,0.07);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.14);
  --radius:      10px;
  --radius-lg:   16px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.13);
}

.nav-inner {
  width: 100%;
  /* max-width: 1400px; */
  margin: 0 auto;
  padding: 5px 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 80px;
  width: auto;
}

.nav-logo-svg {
  display: flex;
  align-items: center;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-links a.active {
  color: var(--teal);
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* Lang */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
}

.nav-lang a {
  color: var(--blue);
  font-weight: 700;
  padding: 2px 4px;
}

.nav-lang a.active {
  color: var(--blue);
}

.nav-lang span {
  color: var(--gray-light);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.25s;
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ===== SECTION BASES ===== */
.section-white  { background: var(--white);    padding: 80px 0; }
.section-light  { background: var(--light-bg); padding: 80px 0; }
.section-navy   { background: var(--dark-navy); padding: 80px 0; }
.section-blue   { background: var(--blue);     padding: 80px 0; }
.section-green  { background: var(--green-light); padding: 80px 0; }

/* ===== INNER (full width con max-width centrado) ===== */
.inner {
  width: 100%;
  max-width: 96%;
  /* max-width: 1400px; */
  margin: 0 auto;
  padding: 0 60px;
}

.inner-narrow {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ===== TIPOGRAFÍA COMPARTIDA ===== */
.heading-xl {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  /* font-size: clamp(2rem, 3.8vw, 4.1rem); */
  font-weight: 800;
  line-height: 1.15;
  color: var(--blue);
}

.heading-lg {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--blue);
}

.heading-md {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.3;
}

.heading-sm {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
}

.text-teal   { color: var(--teal); }
.text-yellow { color: var(--yellow); }
.text-blue   { color: var(--blue); }
.text-blue-mid   { color: var(--blue-mid); }
.text-white  { color: var(--white); }
.text-gray   { color: var(--gray); }

.body-text {
  font-size: 1.125rem; /*18px */
  line-height: 1.6;
  color: var(--navy);
}

.body-text-md {
  font-size: 1rem; /*16px */
  line-height: 1.4;
  color: var(--navy);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 16px;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 13px 28px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.22s;
  /* white-space: nowrap; */
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--blue);
  border-color: var(--yellow);
}
.btn-yellow:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  transform: translateY(-1px);
}

.btn-yellow-outline {
  background: transparent;
  color: var(--yellow);
  border-color: var(--yellow);
}
.btn-yellow-outline:hover {
  background: var(--yellow);
  color: var(--blue);
}

/* ===== MÁS INFO LINK ===== */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal);
  transition: gap 0.2s;
  margin-top: 15px;
}
.link-more:hover { gap: 10px; }
.link-more.yellow { color: var(--yellow); }
.link-more.white  { color: var(--white); }
.link-more.blue  { color: var(--blue-mid); }

.link-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* espacio entre texto e icono */
  line-height: 1; /* evita desalineación vertical */
}

.link-icon .icon-arrow {
  width: 16px;
  height: 16px;
  stroke: currentColor; /* hereda el color del link */
  flex-shrink: 0; /* evita que se deforme */
}


/* ===== ALIADOS STRIP (compartido en múltiples páginas) ===== */
.allies-strip {
  background: var(--light-blue);
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.allies-strip .label {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 28px;
}

.allies-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.allies-logos .ally {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
  cursor: default;
  max-width: 250px;
}
.allies-logos .ally:hover { opacity: 0.65; }

/* ===== CTA BANNER (compartido) ===== */
.cta-banner {
  background: linear-gradient(135deg, #0B3D6B 0%, #071e38 60%, #0a2a4a 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("../assets/bg-banner-tecnomed-orthobone.webp");
  background-size: cover;
  pointer-events: none;
}

.cta-banner .inner { position: relative; }

.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.cta-banner .sub {
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  margin-bottom: 10px;
}

.cta-banner .desc {
  font-size: 1.3rem;
  line-height: 1.2;
  color: rgba(255,255,255,1);
  margin-bottom: 32px;
  margin-top: 32px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--blue-mid);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-text {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1.2;
}

.footer-logo-text span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  letter-spacing: 2px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,1);
  text-align: right;
  line-height: 1.65;
}

/* ===== HERO IMAGE UTIL ===== */
.hero-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-rounded {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ===== CARD BASE ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ===== ANIMACIONES SCROLL ===== */

/* Keyframes */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes revealRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes revealFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes revealScale {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* Estado inicial — ocultos antes de entrar al viewport */
.reveal,
.reveal-left,
.reveal-right,
.reveal-fade,
.reveal-scale {
  opacity: 0;
}

/* Clases que JS agrega al detectar entrada */
.reveal.is-visible        { animation: revealUp    0.65s cubic-bezier(0.22,1,0.36,1) both; }
.reveal-left.is-visible   { animation: revealLeft  0.65s cubic-bezier(0.22,1,0.36,1) both; }
.reveal-right.is-visible  { animation: revealRight 0.65s cubic-bezier(0.22,1,0.36,1) both; }
.reveal-fade.is-visible   { animation: revealFade  0.7s  ease both; }
.reveal-scale.is-visible  { animation: revealScale 0.6s  cubic-bezier(0.22,1,0.36,1) both; }

/* Delays escalonados */
.reveal-d1 { animation-delay: 0.08s !important; }
.reveal-d2 { animation-delay: 0.16s !important; }
.reveal-d3 { animation-delay: 0.24s !important; }
.reveal-d4 { animation-delay: 0.32s !important; }
.reveal-d5 { animation-delay: 0.40s !important; }

/* Compatibilidad con clases antiguas fade-up */
.fade-up         { opacity: 0; }
.fade-up.is-visible { animation: revealUp 0.65s cubic-bezier(0.22,1,0.36,1) both; }
.fade-up-d1 { animation-delay: 0.1s !important; }
.fade-up-d2 { animation-delay: 0.2s !important; }
.fade-up-d3 { animation-delay: 0.3s !important; }

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(11,61,107,0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--teal);
  box-shadow: 0 6px 22px rgba(26,155,193,0.4);
}

.back-to-top svg {
  display: block;
  transition: transform 0.2s;
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

/* ===== RESPONSIVE BASE ===== */
@media (max-width: 1024px) {
  .inner, .inner-narrow {
    padding: 0 32px;
  }
}

@media (max-width: 900px) {
  .inner, .inner-narrow {
    padding: 0 20px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 12px; }
  .nav-lang { margin: 10px 12px 0; }
  .nav-hamburger { display: flex; }

  .section-white, .section-light, .section-navy, .section-blue { padding: 56px 0; }
  .cta-banner { padding: 56px 0; }
  .footer-copy { text-align: left; }
}

@media (max-width: 400px) {
  .inner.hero-home__inner {max-width: 99%;}
  .compras-stats {grid-template-columns: 1fr !important;}
}
