/* ============================================================
   ORTHOBONE INC. — GLOBAL STYLES
   ============================================================ */

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

/* ===== VARIABLES ===== */
  :root {
    --blue-deep: #0D1F50;
    --blue-mid: #0078BE;
    --blue-light: #2A5BAD;
    --blue-pale: #EAF0F8;
    --blue-soft: #F0F4FC;
    --gold: #E8B800;
    --gold-light: #FAC518;
    --gold-dark: #CDA300;
    --gold-pale: #FDF5D8;
    --white: #FFFFFF;
    --gray-100: #F5F7FB;
    --gray-200: #EEF2FA;
    --gray-300: #D8E2F0;
    --gray-400: #B0BECC;
    --gray-600: #7080A0;
    --gray-800: #334060;
    --dark-gray: #252f35;
    --dark-gray-soft: #3e4e58;
    --text: #0D1F50;
    --text-soft: #4A5A7A;
    --text-muted: #7080A0;
    --text-muted-dark: #4B5364;
    --text-white: #FFFFFF;
    --font-display: 'Merriweather', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --shadow-sm: 0 1px 3px rgba(13,31,80,0.08);
    --shadow-md: 0 4px 20px rgba(13,31,80,0.10);
    --shadow-lg: 0 12px 40px rgba(13,31,80,0.14);
    --radius: 10px;
    --radius-lg: 16px;
  }

html { scroll-behavior: smooth; }

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

a {text-decoration:none;}


/* ===== NAV BAR ===== */
.navbar {
  width: 100%;
  background: var(--gray-100);
  border-bottom: 1px solid #eee;
  position: sticky;   /* o fixed si lo quieres siempre fijo */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* CONTENEDOR INTERNO */
.nav-inner {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* LOGO */
.logo img {
  height: 80px;
}

/* LINKS DESKTOP */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.18s;
  letter-spacing: 0.1px;
}

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

.nav-links a.active {
  font-weight: 600;
  background: var(--gray-300);
}

/* BOTÓN HAMBURGUESA */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--blue-mid);
  border-radius: 3px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Estado abierto */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

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

/* IDIOMA*/
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px; /* igual que los links */
  margin-top: 2px;
}

.lang-btn {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  padding: 0;
  transition: color .2s ease;
}

.lang-btn:hover {
  color: var(--blue-mid);
}

.lang-active {
  color: var(--blue-mid);
  font-weight: 600;
}

.lang-sep {
  width: 1px;
  height: 14px;
  background: var(--text-soft);
  opacity: .4;
}


/* ========================= */
/* RESPONSIVE                */
/* ========================= */

@media (max-width: 850px) {
  .nav-inner {
    padding: 0 20px 0 2px;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    position: relative;
    z-index: 1100; /* por encima del panel */
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--dark-gray);
    flex-direction: column;
    padding-top: 100px;
    gap: 45px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 12px rgba(0,0,0,0.1);
    z-index: 1000; /* por debajo del toggle */
  }

  .nav-links a {
    font-size: 22px;
    color: var(--white);
    font-weight: 300;
  }

  .nav-links a.active {
    font-weight: 600;
    background: #252f35;
    color: var(--gold);
  }

  .nav-links.open {
    right: 0;
  }

  .lang-toggle {
    padding: 0; /* más limpio en mobile */
    margin-top: 10px;
  }

  .lang-btn {
    font-size: 17px; /* un poco más grande para mobile */
  }

  .lang-sep {
    height: 18px;
  }
}


/* ===== FOOTER ===== */
footer {
  background: #222;
  /* padding: 60px 0 0; */
}
.footer-inner {
  margin: 0 auto;
  padding: 0 80px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.8);
}
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: white; }

@media (max-width: 850px) {
  .footer-inner {
    padding: 0 20px;
  }
  .footer-bottom{
    flex-wrap: wrap;
    gap: 20px;;
  }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== WRAPPER CONTENT ===== */
.section-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 80px;
}

/* ===== GLOBALS UTILITY ===== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 2.5px;
  color: var(--gold-dark); text-transform: uppercase;
  margin-bottom: 10px;
}

.eyebrow-line { width: 20px; height: 2px; background: var(--gold-dark); }

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--blue-deep);
  line-height: 1.15;
  font-weight: 900;
}

/* ===== HERO SECTION ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 700px;
  overflow: hidden;
  background-image: inherit;
  background-size: cover;      /* o contain si quieres que no se recorte */
  background-position: center;
  background-repeat: no-repeat;
}
  
.hero-left {
  padding: 72px 60px 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  max-width: 800px;
}

.hero-left::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 60px solid rgba(232,184,0,0.06);
  bottom: -160px; left: -120px;
}

.hero-left::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 30px solid rgba(255,255,255,0.04);
  top: -60px; right: 60px;
}
  
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}

.kicker-line {
  width: 28px; height: 2px;
  background: var(--gold);
}

.kicker-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--gold);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 52px;
  color: white;
  line-height: 1.1;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-desc {
  font-size: 18px;
  color: var(--white);
  line-height: 1.75;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.4s forwards;
}

.hero-home__img-mobile {
  display: none; /* oculto en desktop */
}

@media (max-width: 850px) {
  .hero {
    background-image: none !important; /* quitamos el fondo */
    padding: 0; /* la imagen ya ocupa espacio */
    height: auto;
    grid-template-columns: 1fr !important;
  }

  .hero-home__img-mobile {
    display: block;
    width: 100%;
    /* height: 280px; */
    overflow: hidden;
  }

  .hero-home__img-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center; /* ← alineación */
    display: block;
  }

  .hero-left {
    background: var(--blue-deep);
    max-width: 100%;
    padding: 40px 20px;
  }

  .hero-left .kicker-line {display: none;}
  .hero-title {font-size: 35px;}
  .hero-desc {font-size: 15px; line-height: 1.5;}
  .kicker-text {font-size: 10px;}
}

/* ========================= */
/* RESPONSIVE                */
/* ========================= */

@media (max-width: 850px) {
   
  .brands-grid, 
  .services-grid,
  .feature-band-grid,
  .delivery-grid,
  .intro-grid,
  .mv-grid,
  .values-grid,
  .team-grid,
  .dept-grid,
  .fb-grid,
  .ov-grid,
  .product-cards.cols2,
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
  .bdb-inner {display: block !important;}

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



/* ========================= */
/* SCROLL TO TOP             */
/* ========================= */
#scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
