* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fondo fijo que no se rompe en móvil */
.background-fallback {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('inicio_io.webp');
  background-size: inherit;
  background-position: calc(50% + 0px) calc(30% + 0px);
  background-repeat: no-repeat;
  z-index: -1;
}

/* Tu contenido normal */
body {
  background: transparent;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  padding: 20px;
  margin: 0;
}

/* Móviles pequeños */
@media (max-width: 767px) {
  .background-fallback {
    background-position: calc(50% - 50px) calc(50% + 0px);
    background-size: cover !important;
  }
}

/* Tablets (iPad, etc.) */
@media (min-width: 768px) and (max-width: 1024px) {
  .background-fallback {
    background-position: calc(50% - 6px) calc(50% + 0px);
    background-size: cover !important;
  }
}

/* HEADER */
header {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  max-width: 1400px;   /* mismo eje que títulos */
  margin-left: auto;
  margin-right: auto;
  justify-content: center; /* móvil */
}

/* Tablets, desktop y superiores */
@media (min-width: 768px) {
  header {
    justify-content: flex-start; /* izquierda */
  }
}

.logo {
  max-width: 200px;
  border-radius: 50%;
}

.titulo_home {
  text-align: center;
  background-color: #dba47b1f;
  border-radius: 16px;
  padding: 10px;
  max-width: 1400px;
  display: grid;
  margin: auto;
  text-shadow: 0 2px 3px rgb(0 0 0);
  justify-content: space-around;
  justify-items: end;
}

/* Estilo por defecto */
h1.titulo_home {
  font-size: 1em;
  text-shadow:
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;
}

h2.titulo_home {
  font-size: 0.9em;
  text-shadow:
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;
}

h2.sub {
  color: #fff !important;
}

/* Dispositivos con un ancho mínimo de 768px */
@media (min-width: 768px) {
  h1.titulo_home {
    font-size: 1.5em;
  }

  h2.titulo_home {
    font-size: 1.1em;
  }
}

/* Dispositivos con un ancho mínimo de 1024px */
@media (min-width: 1024px) {
  h1.titulo_home {
    font-size: 1.5em;
  }

  h2.titulo_home {
    font-size: 1.15em;
  }
}

/* Dispositivos con un ancho mínimo de 1440px */
@media (min-width: 1440px) {
  h1.titulo_home {
    font-size: 1.5em;
  }

  h2.titulo_home {
    font-size: 1.1em;
  }
}

.services {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: auto;
  padding: 10px;
}

.services .btn {
  display: block;
  margin: 40px auto 0;
  background-color: #ffd700;
  color: #17234b;
  padding: 12px 24px;
  text-align: center;
  margin-top: auto;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Estilo de cada bloque de servicio */
.service {
  background-color: #17234b;
  background-image:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.15) 5%,
      rgba(255, 215, 0, 0.1) 10%,
      transparent 25%
    ),
    linear-gradient(#17234b, #17234b);
  background-blend-mode: normal;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  color: white;
  position: relative;
  overflow: visible;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.service img {
  max-width: 150px;
  margin-bottom: 15px;
  align-self: center;
}

.service h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #ffd700;
}

.service p {
  font-size: 0.9rem;
  color: #ccc;
  text-align: left;
}

/* FOOTER */
footer {
  text-align: center;
  margin-top: 60px;
  font-size: 1.2rem;
  color: #777;
}

/* Tablets en posición vertical */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets horizontal y pantallas medianas */
@media (min-width: 768px) and (orientation: landscape),
       (min-width: 1024px) {
  .services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.short-video {
  box-shadow: 0 4px 8px rgb(0 0 0 / 42%) !important;
  border: solid 3px #fff;
}

.shorts-container {
  height: auto !important;
}

.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: auto;
  padding: 20px;
  flex-direction: column-reverse;
}

.hero-text {
  max-width: 600px;
  background: rgba(0,0,0,0.45);
  padding: 24px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
}

.hero h1 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.hero h1 span {
  font-weight: 400;
  font-size: 1rem;
}

.hero h2 {
  font-size: 1rem;
  font-weight: 400;
}
.service:nth-child(1)::after {
  content: "CONNECTION";
}
.service:nth-child(2)::after {
  content: "IDENTITY";
}
.service:nth-child(3)::after {
  content: "STUCKNESS";
}

/* ===============================
   ETIQUETA METÁLICA VERTICAL 3D
=============================== */

.service::after {
    position: absolute;
    top: 61px;
    right: -38px;
    width: 140px;
    padding: 0px 12px 0px 8px;
    text-align: center;
    color: #17234b;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #5f4a14 0%, #d0a53b 15%, #fff6c9 45%, #d0a53b 80%, #7a5d18 100%);
    transform: rotate(90deg);
    z-index: 5;
    clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%);
    box-shadow: -6px 0 10px rgba(0, 0, 0, 0.35), inset 3px 0 4px rgba(255, 255, 255, 0.45);
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-switch img {
  height: 20px;
}
