* {
  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.webp');
  background-size: inherit;
  background-position: calc(30% + 0px) calc(20% + 0px);
  background-repeat: no-repeat;
  z-index: -1;
}

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

/* Móviles pequeños */
@media (max-width: 767px) {
  .background-fallback {
    background-position: calc(50% - -20px) 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 {
  text-align: center;
  margin-bottom: 40px;
}

.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; /* tamaÃ±o por defecto */
      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; /* tamaÃ±o por defecto */
      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 (tablets y mayores) */
@media (min-width: 768px) {
    h1.titulo_home {
        font-size: 1.5em; /* tamaÃ±o aumentado */
    }

    h2.titulo_home {
        font-size: 1.1em; /* tamaÃ±o aumentado */
    }
}

/* Dispositivos con un ancho mÃ­nimo de 1024px (desktops y mayores) */
@media (min-width: 1024px) {
    h1.titulo_home {
        font-size: 1.5em; /* tamaÃ±o mÃ¡s grande */
    }

    h2.titulo_home {
        font-size: 1.15em; /* tamaÃ±o mÃ¡s grande */
    }
}

/* Dispositivos con un ancho mÃ­nimo de 1440px (desktops grandes) */
@media (min-width: 1440px) {
    h1.titulo_home {
        font-size: 1.5em; /* tamaÃ±o aÃºn mÃ¡s grande */
    }

    h2.titulo_home {
        font-size: 1.1em; /* tamaÃ±o aÃºn mÃ¡s grande */
    }
}

.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;/* width: fit-content; */box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);}

/* Estilo de cada bloque de servicio */
.service {
    background-color: #17234b;
    background-image: 
        /* Brillo central (reflejo como en un tubo pulido) */
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.15) 5%,
            rgba(255, 215, 0, 0.1) 10%,
            transparent 25%
        ),
        /* Fondo base reforzado */
        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: hidden;
}

.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: 2 columnas */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

.shorts-container {
height: auto !important;

}
