:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
input::placeholder { color: #aebdca; opacity: 1; }

[class^="hover-effect-"] { will-change: transform; }
.hover-effect-1:hover,
.hover-effect-2:hover,
.hover-effect-3:hover,
.hover-effect-4:hover,
.hover-effect-5:hover,
.hover-effect-6:hover,
.hover-effect-7:hover,
.hover-effect-8:hover,
.hover-effect-9:hover,
.hover-effect-10:hover,
.hover-effect-11:hover,
.hover-effect-12:hover,
.hover-effect-13:hover,
.hover-effect-14:hover,
.hover-effect-15:hover,
.hover-effect-16:hover,
.hover-effect-17:hover,
.hover-effect-18:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(14, 36, 56, 0.12) !important;
}
.hover-effect-19:hover { background: rgba(255,255,255,0.12) !important; }

@media (max-width: 900px) {
  header nav { gap: 12px !important; }
  header nav a:not(:last-child) { display: none; }
}

@media (max-width: 560px) {
  header > div { padding: 10px 16px !important; }
  header nav a:last-child { padding: 9px 12px !important; font-size: 12px !important; }
  section[id="top"] > div:last-child { grid-template-columns: 1fr !important; }
  #contacto > div:last-child { grid-template-columns: 1fr !important; }
  a[aria-label="Escríbenos por WhatsApp"] {
    right: 16px !important;
    bottom: 16px !important;
    width: 56px !important;
    height: 56px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* --- Ajustes de experiencia OESVICA --- */
@media (max-width: 1080px) {
  section[id="top"] > div:last-child {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  section[id="top"] > div:last-child > div:last-child {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
  section[id="top"] > div:last-child > div:last-child > img {
    width: 100% !important;
    max-width: 580px !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center top !important;
    margin: 0 auto !important;
  }
}

.oesvica-fab-row {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 12px;
}
.oesvica-fab {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.3);
  transition: transform .18s ease, width .22s ease, box-shadow .18s ease;
}
.oesvica-fab:hover,
.oesvica-fab:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.34);
}
.oesvica-fab__icon {
  min-width: 62px;
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.oesvica-fab__label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding-right: 0;
  transition: max-width .22s ease, opacity .16s ease, padding-right .22s ease;
}
.oesvica-fab--assistant {
  background: #2563EB;
  color: #fff;
  justify-content: flex-start;
  padding: 0;
}
.oesvica-fab--assistant:hover,
.oesvica-fab--assistant:focus-visible {
  width: 190px;
  outline: none;
}
.oesvica-fab--assistant:hover .oesvica-fab__label,
.oesvica-fab--assistant:focus-visible .oesvica-fab__label {
  max-width: 128px;
  opacity: 1;
  padding-right: 18px;
}
.oesvica-fab--whatsapp {
  background: #25D366;
  color: #fff;
}

@media (max-width: 560px) {
  .oesvica-fab-row {
    right: 16px;
    bottom: 16px;
    gap: 10px;
  }
  .oesvica-fab,
  .oesvica-fab__icon {
    width: 56px;
    height: 56px;
  }
  .oesvica-fab__icon {
    min-width: 56px;
  }
  .oesvica-fab--assistant:hover,
  .oesvica-fab--assistant:focus-visible {
    width: 172px;
  }
  .oesvica-fab--assistant:hover .oesvica-fab__label,
  .oesvica-fab--assistant:focus-visible .oesvica-fab__label {
    max-width: 110px;
    padding-right: 16px;
  }
}

/* --- Ajuste solicitado: mostrar completa la imagen compuesta del hero --- */
section[id="top"] > div:last-child > div:last-child {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
section[id="top"] > div:last-child > div:last-child > img {
  width: 100% !important;
  max-width: 700px !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 auto !important;
}
@media (max-width: 1080px) {
  section[id="top"] > div:last-child > div:last-child > img {
    max-width: 640px !important;
  }
}
@media (max-width: 560px) {
  section[id="top"] > div:last-child > div:last-child > img {
    max-width: 100% !important;
  }
}
