:root {
  --fuente-heading: 'PT Sans', sans-serif;
  --fuente-parrafos: 'Open Sans', sans-serif;
  --primario: #ffd5003f;
  --claro: #e1e1e1;
  --blanco: #fff;
  --negro: #000000;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--fuente-parrafos);
  font-size: 1.6rem;
  line-height: 2;
}

main {
  display: block;
}

a {
  background-color: transparent;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--fuente-heading);
  line-height: 1.3;
}

h1 {
  font-size: 4.8rem;
}

h2 {
  font-size: 4rem;
}

h3 {
  font-size: 3.2rem;
}

h4 {
  font-size: 2.8rem;
}

.contenedor {
  width: min(90%, 120rem);
  margin: 0 auto;
}

.sombra,
.card {
  background-color: var(--blanco);
  border-radius: 1rem;
  box-shadow: 0 5px 15px 0 rgba(112, 112, 122, 0.54);
}

.sombra {
  padding: 3rem;
}

.centrar-texto {
  text-align: center;
}

.justify {
  text-align: justify;
}

.btn-principal {
  display: inline-block;
  font-size: 4rem;
  background-color: var(--primario);
  padding: 1rem 3rem;
  color: var(--negro);
  font-weight: 700;
}

.header {
  background-color: var(--negro);
  padding: 2rem 0;
  position: relative;
}

.header__logo {
  display: inline-block;
}

.header__corner-brand {
  position: absolute;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--blanco);
  text-align: left;
  z-index: 2;
}

.header__logo-combo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__logo img {
  max-width: min(56vw, 38rem);
  margin: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--blanco);
  text-align: left;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.brand-wordmark__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.03em;
  font-family: var(--fuente-heading);
  font-size: clamp(2rem, 3.2vw, 3.45rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.07em;
  color: #ffffff;
}

.brand-wordmark__title span {
  display: inline-block;
  color: #ffffff;
  opacity: 0;
  transform: translateY(12px);
  animation: headerLetterReveal 0.42s ease forwards;
}

.brand-wordmark__title span:nth-child(-n+5) {
  color: #ffffff;
}

.brand-wordmark__title span:nth-child(1) { animation-delay: 1.4s; }
.brand-wordmark__title span:nth-child(2) { animation-delay: 1.48s; }
.brand-wordmark__title span:nth-child(3) { animation-delay: 1.56s; }
.brand-wordmark__title span:nth-child(4) { animation-delay: 1.64s; }
.brand-wordmark__title span:nth-child(5) { animation-delay: 1.72s; }
.brand-wordmark__title span:nth-child(6) { animation-delay: 1.8s; }
.brand-wordmark__title span:nth-child(7) { animation-delay: 1.88s; }
.brand-wordmark__title span:nth-child(8) { animation-delay: 1.96s; }
.brand-wordmark__title span:nth-child(9) { animation-delay: 2.04s; }
.brand-wordmark__title span:nth-child(10) { animation-delay: 2.12s; }

.brand-wordmark__space {
  width: 0.28em;
}

.brand-wordmark__meta {
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  color: #ffffff;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  animation: headerLetterReveal 0.5s ease forwards;
  animation-delay: 2.18s;
  text-transform: uppercase;
}

.animatronic-logo {
  position: relative;
  display: block;
  width: min(100%, 360px);
  padding: 4.2rem 2.4rem 2.4rem;
  transform-style: preserve-3d;
  animation: logoFloat 5s ease-in-out infinite;
}

.animatronic-logo img {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 28px 48px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 28px rgba(77, 208, 225, 0.28));
  animation: logoTilt 6s ease-in-out infinite;
}

.logo-glow {
  position: absolute;
  inset: 18% 16% 14%;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 208, 225, 0.34) 0%, rgba(30, 64, 175, 0.16) 45%, transparent 72%);
  filter: blur(14px);
  animation: logoPulse 2.8s ease-in-out infinite;
}

.logo-eyes {
  position: absolute;
  top: 17%;
  left: 50%;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.logo-eye {
  position: relative;
  width: 11px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f9fbff 0%, #dce5ef 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45),
    0 0 0 1px rgba(15, 23, 42, 0.18),
    0 4px 10px rgba(15, 23, 42, 0.18);
  animation: eyeBlink 4.6s ease-in-out infinite;
}

.logo-eye::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 5px;
  height: 7px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 45% 35%, #60a5fa 0%, #1d4ed8 55%, #0f172a 100%);
}

.robot-arm {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 132px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b6573 0%, #b6c2d3 30%, #edf5ff 50%, #8e9bab 72%, #4c5563 100%);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.28),
    inset 0 2px 2px rgba(255, 255, 255, 0.55);
}

.robot-arm::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 30% 30%, #f8fbff 0%, #8f9aa9 48%, #414955 100%);
  box-shadow: 0 0 0 3px rgba(18, 26, 38, 0.18);
}

.robot-arm__joint,
.robot-arm__forearm {
  position: absolute;
  display: block;
}

.robot-arm__joint {
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 35% 35%, #f3f7fb 0%, #97a5b6 45%, #44505e 100%);
}

.robot-arm__forearm {
  top: 50%;
  width: 54px;
  height: 14px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, #4b5563 0%, #d7e2f0 50%, #6d7886 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55);
}

.robot-arm--left {
  left: -78px;
  transform-origin: right center;
  animation: leftWave 1.15s ease-in-out 0.35s 3 both;
}

.robot-arm--left::before {
  right: -10px;
}

.robot-arm--left .robot-arm__joint {
  left: 14px;
}

.robot-arm--left .robot-arm__forearm {
  left: 28px;
}

.robot-arm--right {
  right: -78px;
  transform-origin: left center;
  animation: rightWave 1.15s ease-in-out 0.35s 3 both;
}

.robot-arm--right::before {
  left: -10px;
}

.robot-arm--right .robot-arm__joint {
  right: 14px;
}

.robot-arm--right .robot-arm__forearm {
  right: 28px;
}

.animatronic-logo--header {
  width: 104px !important;
  height: 104px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  opacity: 0;
  transform: translateY(12px);
  animation: headerLetterReveal 0.5s ease 1.05s forwards;
}

.animatronic-logo--header img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 4px !important;
  animation: none !important;
  filter: none !important;
  transform: none !important;
}

.nav-bg,
nav {
  background-color: var(--negro);
}

.navegacion {
  display: flex;
  flex-direction: column;
}

.navegacion__enlace {
  display: block;
  color: var(--blanco);
  padding: 1rem 3rem;
  font-size: 2rem;
  text-align: center;
}

.navegacion__enlace:hover {
  color: var(--negro);
  background-color: var(--primario);
  transition: all 0.6s ease;
  border-radius: 999px;
}

.navegacion__enlace--activo {
  background-color: var(--primario);
  color: var(--negro);
  border-radius:999px;
}

.hero {
  background-image: url('ref-assets/hero.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-color: rgb(40, 40, 40);
  background-blend-mode: soft-light;
  height: 80vh;
}

.hero__contenido {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero__contenido h2 {
  margin: 0;
  font-size: clamp(4rem, 8vw, 7rem);
  text-align: center;
  color: var(--blanco);
}

.hero__contenido span {
  color: var(--primario);
}

.presentacion {
  display: grid;
  grid-template-rows: 1fr 1fr;
  margin: 5rem 0;
}

.presentacion__img {
  background-image: url('ref-assets/presentacion.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  min-height: 32rem;
}

.presentacion__texto {
  text-align: justify;
}

.banner {
  margin: 4rem 0;
  background-image: url('ref-assets/banner.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-color: rgb(25, 25, 25);
  background-blend-mode: soft-light;
  min-height: 70vh;
}

.banner__texto {
  color: var(--blanco);
  font-size: 1.7rem;
  padding-top: 2rem;
}

.vision,
.mision,
.objetivos,
.valores,
.satisfaccion,
.tableros,
.semola,
.montaje,
.aire,
.mapa__img,
.clientes__img,
.mail,
.phone,
.whatsapp {
  margin-bottom: 4rem;
}

.div section {
  margin-bottom: 3rem;
}

.quienes-somos {
  margin: 5rem auto;
}

.quienes-somos__texto {
  padding: 3rem;
}

.quienes-somos__img {
  background-image: url('img/10.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 32rem;
}

.proyectos__img {
  background-image: url('img/25.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 32rem;
}

.personal__elemento {
  background-color: var(--negro);
  color: var(--primario);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.tableros img,
.semola img,
.montaje img,
.aire img,
.clientes img,
.mapa__img img:not(.mapa__pin) {
  width: 100%;
}

.mapa__img {
  position: relative;
  display: inline-block;
  width: 100%;
}

.mapa__pin {
  position: absolute;
  left: 18.3%;
  top: 48.2%;
  display: block;
  width: 2.4rem;
  height: auto;
  transform: translate(-50%, -100%);
  pointer-events: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 2rem;
  margin: 4rem 0 0;
}

.gallery-grid img {
  width: 100%;
  height: 24rem;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 8px 10px -4px rgba(0, 0, 0, 0.6);
}

.footer {
  background-color: var(--negro);
  padding: 4rem 0;
  margin-top: 5rem;
}

.barra {
  text-align: center;
}

.enlaces a {
  color: var(--negro);
  font-weight: 700;
}

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

@keyframes logoTilt {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(1.5deg); }
}

@keyframes logoPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes eyeBlink {
  0%, 44%, 48%, 100% { transform: scaleY(1); }
  46% { transform: scaleY(0.12); }
}

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

@keyframes leftWave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-10deg); }
}

@keyframes rightWave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(10deg); }
}

@media (min-width: 768px) {
  .btn-principal {
    padding: 2rem 4rem;
  }

  .navegacion {
    flex-direction: row;
    justify-content: space-around;
  }

  .presentacion {
    grid-template-rows: 1fr;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 6rem;
  }

  .flex {
    display: flex;
    align-items: center;
    gap: 10rem;
  }

  .banner__texto {
    padding-top: 5rem;
    font-size: 2.5rem;
    font-weight: 700;
  }

  .div,
  .objetivos-valores,
  .enlaces {
    display: grid;
    gap: 4rem;
  }

  .div,
  .objetivos-valores,
  .enlaces {
    grid-template-columns: repeat(2, 1fr);
  }

  .quienes-somos {
    display: grid;
    grid-template-columns: 2fr 1fr;
  }

  .proyectos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10rem;
  }

  .personal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3rem;
    margin-bottom: 5rem;
  }

  .tableros__imagenes,
  .semola__imagenes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .semola__1 {
    grid-column: 1 / 4;
    height: 50rem;
  }

  .montaje__imagenes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
  }

  .montaje__1 {
    grid-column: 1 / 3;
  }

  .montaje__2 {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
  }

  .montaje__3 {
    grid-row: 1 / 3;
  }

  .aire__imagenes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .clientes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    margin: 10rem 0;
    align-items: center;
    justify-items: center;
  }

  .barra {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .header {
    padding-top: 8.5rem;
  }

  .header__corner-brand {
    position: static;
    display: inline-flex;
    margin-bottom: 1.2rem;
  }

  .brand-wordmark__meta {
    letter-spacing: 0.14em;
  }
}
