:root {
  --navy-900: #000135;
  --navy-800: #000177;
  --navy-700: #0a208f;
  --sky-500: #2f4dff;
  --sky-300: #86a2ff;
  --sand-100: #f5f7fb;
  --white: #ffffff;
  --ink: #0b132b;
  --muted: #5c6b82;
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-strong: 0 24px 60px rgba(7, 24, 51, 0.28);
  --shadow-soft: 0 16px 40px rgba(7, 24, 51, 0.12);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #eff4ff 0%, #ffffff 100%);
  min-height: 100vh;
  font-size: 18px;
}

p {
  font-family: "Newsreader", "Times New Roman", serif;
}

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

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

.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 24px;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(7, 24, 51, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--navy-800);
  text-transform: uppercase;
  font-size: 30px;
}

.brand__mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #8fd3ff, #2a8cff);
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 700;
}

.nav__links {
  display: flex;
  gap: 22px;
  font-size: 17px;
  align-items: center;
  margin-left: auto;
  line-height: 1;
}

.nav__links a,
.nav__link,
.nav__caret {
  position: relative;
  padding: 6px 8px;
  transition: color 0.2s ease;
}

.nav__links a::after,
.nav__link::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -6px;
  height: 2px;
  background: var(--navy-800);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav__links a:hover,
.nav__link:hover {
  color: var(--navy-800);
}

.nav__links a:hover::after,
.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__caret {
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  margin-left: -6px;
  color: inherit;
}


.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
}

.nav__item::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  top: 100%;
  height: 10px;
}

.nav__toggle {
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.nav__submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 10px;
  min-width: 200px;
  display: none;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(0, 1, 119, 0.12);
  margin-top: 6px;
}

.nav__submenu a {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
}

.nav__submenu a:hover {
  background: #eef2ff;
}

.nav__item--open .nav__submenu {
  display: flex;
}

.nav__item:hover .nav__submenu {
  display: flex;
}

.hero {
  position: relative;
  padding: 64px 0 40px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

.hero__image {
  border-radius: var(--radius-xl);
  background: url("../images/Ortopedia.jpg") center/cover no-repeat;
  min-height: 520px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(7, 24, 51, 0.78), rgba(7, 24, 51, 0));
}

.hero__content {
  position: absolute;
  left: 48px;
  bottom: 48px;
  max-width: 420px;
  color: var(--white);
}

.hero__content h1 {
  font-size: clamp(36px, 4.6vw, 54px);
  margin: 0 0 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero__content p {
  margin: 0 0 18px;
  line-height: 1.7;
  color: #e8f0ff;
  font-size: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  background: var(--navy-800);
  color: var(--white);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 1, 119, 0.25);
  background: #0a23a0;
}

.hero__panel {
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-strong);
}

.hero__panel h3 {
  margin-top: 0;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 22px;
}

.cards {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 20px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  box-shadow: 0 10px 24px rgba(7, 24, 51, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card--compact {
  grid-template-columns: 84px 1fr;
  gap: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.card--compact.card--blue {
  background: #0a2aa8;
}

.card--compact.card--green {
  background: #1a7f3c;
  border-color: rgba(255, 255, 255, 0.2);
}

.card--compact.card--sky {
  background: #66b8ff !important;
  border-color: rgba(255, 255, 255, 0.2);
}

.card--compact.card--orange {
  background: #d96a00;
  border-color: rgba(255, 255, 255, 0.2);
}

.card__media {
  width: 120px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  background: #e5edff;
}

.card--green .card__media,
.card--green .card__media--compact {
  background: rgba(255, 255, 255, 0.12);
}

.card--orange .card__media,
.card--orange .card__media--compact {
  background: rgba(255, 255, 255, 0.14);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card__title {
  margin: 0 0 4px;
  font-size: 18px;
}

.card__text {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.card--blue .card__text,
.card--green .card__text,
.card--sky .card__text,
.card--orange .card__text {
  color: rgba(255, 255, 255, 0.85);
}

.card--compact .card__title {
  color: var(--white);
  font-size: 20px;
}

.card--compact .card__text {
  color: #cfe3ff;
  font-size: 16px;
}

.card--compact.card--green .card__text {
  color: #e5f6ea;
}

.card--compact.card--sky .card__text {
  color: #e9f3ff;
}

.card--compact.card--orange .card__text {
  color: #fff0df;
}

.card__media--compact {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  display: grid;
  place-items: center;
}

.card__media--compact img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.card--compact:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0, 1, 119, 0.3);
  border-color: rgba(255, 255, 255, 0.28);
}

.card--compact::after {
  content: "";
  position: absolute;
  inset: -60% -20%;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-40%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card--compact:hover::after {
  opacity: 1;
  animation: sheen 1.2s ease forwards;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(7, 24, 51, 0.18);
}

.band {
  margin: 40px auto 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
  border-radius: 999px;
  padding: 22px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(18, 62, 138, 0.08);
  width: 100%;
  max-width: 1100px;
}

.band__title {
  font-weight: 600;
  color: var(--navy-700);
  font-size: clamp(17px, 2.1vw, 20px);
  text-align: center;
}

.band__cta {
  border: 2px solid var(--navy-700);
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--navy-800);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(7, 24, 51, 0.12);
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.band__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0, 1, 119, 0.22);
}

.section {
  padding: 32px 0 60px;
}

.section__title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--navy-800);
  margin: 0 0 24px;
  font-size: clamp(22px, 2.8vw, 28px);
}

.store {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-strong);
}

.store__image {
  border-radius: 8px;
  overflow: hidden;
  min-height: 280px;
  background: url("../images/foto-tienda.jpeg") center/contain no-repeat;
  background-color: #ffffff;
}

.store__content p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 18px;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.testimonials-slider {
  display: grid;
  gap: 16px;
}

.testimonials__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.testimonial {
  background: #f7f8fb;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(7, 24, 51, 0.08);
}

.testimonial__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4f46e5;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  overflow: hidden;
}

.testimonial__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial__name {
  font-size: 16px;
  display: block;
}

.testimonial__date {
  color: var(--muted);
  font-size: 13px;
  display: block;
  margin-top: 4px;
}

.testimonial__source {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.testimonial__source-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.testimonial__stars {
  color: #f5b301;
  font-size: 16px;
  margin-bottom: 8px;
}

.testimonial__text {
  margin: 0;
  color: #3b4b66;
}



.brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  align-items: center;
}

.brand {
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 1;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  align-items: center;
  justify-items: center;
  padding: 12px 6px 6px;
}

.brand-strip img {
  scroll-snap-align: center;
  animation: float 3.8s ease-in-out infinite;
  max-width: 160px;
  max-height: 70px;
  width: 100%;
  height: auto;
}

.brand-strip img:nth-child(2n) {
  animation-delay: 0.4s;
}

.brand-strip img:nth-child(3n) {
  animation-delay: 0.8s;
}

.contact {
  background: var(--navy-900);
  color: var(--white);
  border-radius: 0;
  padding: 60px clamp(24px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.contact__stack {
  display: grid;
  gap: 16px;
}

.contact__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 20px;
}

.contact__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
}

.contact-hero {
  padding: 60px 0 20px;
}

.contact-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-hero__content h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 0 0 12px;
  text-transform: uppercase;
  color: var(--navy-800);
}

.contact-hero__content p {
  font-size: 18px;
  color: var(--muted);
}

.contact-hero__cards {
  display: grid;
  gap: 18px;
}

.contact-card {
  background: #0a1c45;
  color: #ffffff;
  border-radius: 18px;
  padding: 20px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  box-shadow: 0 18px 38px rgba(0, 1, 119, 0.2);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.contact-card h3 {
  margin: 0 0 6px;
}

.contact-card p {
  margin: 0 0 6px;
  color: #d7e3ff;
}

.contact-cta {
  padding: 20px 0 10px;
}

.contact-cta__grid {
  background: #eef2ff;
  border-radius: 16px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.btn--ghost {
  background: var(--navy-800);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.contact-form {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.contact-form h2,
.contact-faq h2 {
  margin-top: 0;
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  border-radius: 12px;
  border: 1px solid #d9e2f5;
  padding: 12px 14px;
  font: inherit;
}

.contact-form__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}

.contact-faq {
  background: #0a1c45;
  color: #ffffff;
  border-radius: 18px;
  padding: 24px;
}

.contact-faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 0;
}

.contact-faq summary {
  cursor: pointer;
  font-weight: 600;
}

.contact-faq p {
  color: #d7e3ff;
  margin: 10px 0 0;
}

.map-embed iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.kitdigital {
  display: grid;
  place-items: center;
}

.kitdigital img {
  max-width: 520px;
  width: 100%;
  height: auto;
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.08);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.social-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 700;
}

.social-btn__icon-img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
}

footer {
  padding: 28px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
  font-size: 13px;
}

.page-hero {
  padding: 48px 0 30px;
}

.page-hero h1 {
  margin: 0;
  text-transform: uppercase;
  color: var(--navy-800);
  letter-spacing: 2px;
}

.legal {
  max-width: 920px;
  margin: 0 auto;
  color: #1b2234;
  line-height: 1.75;
  font-size: 16px;
}

.legal h2 {
  margin: 28px 0 12px;
  font-size: 22px;
  color: var(--navy-800);
}

.legal h3 {
  margin: 22px 0 10px;
  font-size: 18px;
  color: var(--navy-800);
}

.legal p {
  margin: 0 0 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: stretch;
}

.product-grid .card {
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 26px;
  align-items: center;
  aspect-ratio: auto;
  background: #000177;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 1, 119, 0.2);
  transition: transform 1.05s ease, box-shadow 1.05s ease, border-color 1.05s ease;
  position: relative;
  overflow: hidden;
}

.product-grid .card.card--green {
  background: #1a7f3c;
  box-shadow: 0 18px 40px rgba(26, 127, 60, 0.25);
}

.product-grid .card.card--sky {
  background: #66b8ff !important;
  box-shadow: 0 18px 40px rgba(102, 184, 255, 0.25);
}

.product-grid .card.card--orange {
  background: #d96a00;
  box-shadow: 0 18px 40px rgba(217, 106, 0, 0.25);
}

.product-grid .card__media {
  width: 100%;
  height: 140px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.product-grid .card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 1.2s ease;
}

.product-grid .card__title {
  font-size: 24px;
  color: #ffffff;
}

.product-grid .card__text {
  font-size: 17px;
  color: #d7e3ff;
}

.product-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 1, 119, 0.35);
  border-color: rgba(255, 255, 255, 0.28);
}

.product-grid .card:hover .card__media img {
  transform: scale(1.05);
}

.product-grid .card::after {
  content: "";
  position: absolute;
  inset: -60% -20%;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
  transform: translateX(-40%);
  opacity: 0;
  transition: opacity 1.05s ease;
}

.product-grid .card:hover::after {
  opacity: 1;
  animation: sheen 3s ease forwards;
}

@keyframes sheen {
  to { transform: translateX(40%); }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.gallery__item {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-rows: 220px auto;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f4f7ff;
  display: block;
}

 .gallery__label {
  padding: 12px 16px;
  min-height: 44px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  color: var(--navy-700);
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__image {
    min-height: 420px;
  }

  .store {
    grid-template-columns: 1fr;
  }

  .band {
    text-align: center;
    border-radius: var(--radius-lg);
    padding: 18px 22px;
  }

  .nav__links {
    display: none;
  }

  .contact-hero__grid,
  .contact-form-grid,
  .contact-cta__grid {
    grid-template-columns: 1fr;
  }

  .testimonials__track {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.fade-in {
  animation: fadeIn 1s ease both;
}

.slide-up {
  animation: slideUp 1s ease both;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
