@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

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

:root {
  --color-rojo: #ec1d27;
  --color-blanco: #fff;
  --color-gris: #4b5159;
  --color-gris-claro: #e5e4e4;
  --color-negro: #14130f;
}

body {
  font-family: "Montserrat", sans-serif;
}

/* Smooth Scroll */
html {
  scroll-behavior: auto; /* Desactiva cualquier scroll nativo suave que interfiera */
}

.js-cont {
  position: relative;
}

.js-scroll {
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  width: 100%;
  will-change: transform;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.container-fluid {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 100px 0;
}

h1.titulo-seccion {
  color: var(--color-negro);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0px;
  line-height: 30px;
  margin-bottom: 20px;
}

.bg-negro h1 {
  font-weight: 500;
  font-size: 45px;
}

.bg-negro h2 {
  font-size: 30px;
  letter-spacing: 5px;
  font-weight: 500;
}

h2 {
  color: var(--color-rojo);
  font-weight: 700;
  letter-spacing: 5px;
  line-height: 30px;
  margin-bottom: 20px;
}

h3 {
  letter-spacing: 5px;
}

p {
  font-size: 19px;
  line-height: 30px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--color-negro);
  text-align: justify;
  margin-bottom: 10px;
}

.contenedor-negro {
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-negro);
  position: relative;
  padding: 0px;
  margin: 0px;
}

.container-portada {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 1100px;
  margin: auto;
}

.mascara {
  overflow: hidden;
}

.img-responsive-portada {
  opacity: 0;
  will-change: transform;
  object-fit: cover;
}

.rectangulo-rojo {
  background-color: var(--color-rojo);
  height: 300px;
  width: 180px;
  position: absolute;
  right: -120px;
  bottom: -100px; /* Valor negativo para que sobrepase hacia abajo */
  z-index: 0;
}

/* Versión responsive para dispositivos móviles */
@media (max-width: 768px) {
  .rectangulo-rojo {
    height: 300px;
    width: 180px;
    right: -100px;
    bottom: -50px; /* Ajuste proporcional para móviles */
  }
}

@media (max-width: 480px) {
  .rectangulo-rojo {
    height: 300px;
    width: 180px;
    right: -100px;
    bottom: -50px; /* Ajuste proporcional para móviles pequeños */
  }
}

/* Efecto parallax container */
.container-parallax {
  position: relative;
  overflow: hidden;
  height: 500px;
}

.container-parallax .parallax {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: translateY(0);
  will-change: transform;
}

/* Efecto parallax para imagenes */
.container-fluid-parallax {
  position: relative;
  overflow: hidden; /* Para que la imagen no se salga */
  height: 400px; /* Ajustá según tu diseño */
}

@media (max-width: 768px) {
  .container-fluid-parallax {
    height: 200px;
    position: relative;
  }
}

.parallax {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
  transition: transform 0.5s linear;
  -webkit-transition: transform 0.5s linear;
  -moz-transition: transform 0.5s linear;
  -ms-transition: transform 0.5s linear;
  -o-transition: transform 0.5s linear;
  transform: translateY(0);
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
}

/* Ley 3338 */
.imagen-ley {
  opacity: 0;
  will-change: opacity, transform;
  transform: translateY(30px);
  -webkit-transform: translateY(30px);
  -moz-transform: translateY(30px);
  -ms-transform: translateY(30px);
  -o-transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  -webkit-transition: opacity 0.8s ease, transform 0.8s ease;
  -moz-transition: opacity 0.8s ease, transform 0.8s ease;
  -ms-transition: opacity 0.8s ease, transform 0.8s ease;
  -o-transition: opacity 0.8s ease, transform 0.8s ease;
}

.imagen-ley.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Paralax para container */
.container-parallax {
  position: relative;
  overflow: hidden;
  height: 600px;
}

.container-parallax .parallax-imagen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: translateY(0);
  will-change: transform;
}

/* Grid de cuatro columnas */
.grid-cols-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Grid nosotros */
.grid-nosotros {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .grid-nosotros {
    grid-template-columns: 1fr; /* Se apilan en pantallas chicas */
  }

  .grid-nosotros > div:last-child {
    order: 1; /* Muestra la imagen arriba si querés */
    text-align: center;
  }

  .grid-nosotros img {
    max-width: 100%;
    height: auto;
  }
}

/* Grid de dos columnas */
.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.columnas-2 {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columnas */
  align-items: stretch; /* que se estiren a la misma altura */
}

.columnas-2 > div {
  display: flex;
  flex-direction: column;
  justify-content: center; /* centra verticalmente */
  height: 100%;
}

.columna-izquierda {
  padding: 40px;
}

@media screen and (max-width: 750px) {
  .grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
  }
  .columnas-2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }
  .columna-izquierda {
    padding: 40px 10px;
  }
}

.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.holding-logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Estado inicial antes de mostrarse */
.holding-logos img {
  max-height: 140px;
  max-width: 100%;
  opacity: 0;
  transition: opacity 0.75s ease, transform 0.75s ease, filter 0.75s ease;
  -webkit-transition: opacity 0.75s ease, transform 0.75s ease,
    filter 0.75s ease;
  -moz-transition: opacity 0.75s ease, transform 0.75s ease, filter 0.75s ease;
  -ms-transition: opacity 0.75s ease, transform 0.75s ease, filter 0.75s ease;
  -o-transition: opacity 0.75s ease, transform 0.75s ease, filter 0.75s ease;
  transform: translateY(30px);
  -webkit-transform: translateY(30px);
  -moz-transform: translateY(30px);
  -ms-transform: translateY(30px);
  -o-transform: translateY(30px);
}

/* Efecto al estar visibles */
.holding-logos img.visible {
  opacity: 1;
  transform: translateY(0);
  max-width: 100%;
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
}

/* Hover (como ya tenías) */
.holding-logos img:hover {
  cursor: pointer;
  opacity: 0.7;
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
}

.grid-cols-3-imagenes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.item {
  position: relative;
  height: 1000px; /* altura fija del contenedor */
  overflow: hidden;
}

.item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* la imagen es más alta que el contenedor para permitir el movimiento */
  object-fit: cover;
  will-change: transform;
  transform-origin: center center;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background-color: var(--color-gris-claro);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loader svg {
  width: 120px;
  height: 120px;
}

/* Oculta inicialmente todas las partes */
#loader path {
  opacity: 0;
  transform-origin: center;
  transition: opacity 0.3s ease, transform 0.5s ease;
  -webkit-transition: opacity 0.3s ease, transform 0.5s ease;
  -moz-transition: opacity 0.3s ease, transform 0.5s ease;
  -ms-transition: opacity 0.3s ease, transform 0.5s ease;
  -o-transition: opacity 0.3s ease, transform 0.5s ease;
  transform: scale(0.8);
  -webkit-transform: scale(0.8);
  -moz-transform: scale(0.8);
  -ms-transform: scale(0.8);
  -o-transform: scale(0.8);
}

/* Animaciones con delay */
#loader .semicirculo {
  animation: aparecer 0.5s ease forwards;
}

#loader .linea1 {
  animation: aparecer 0.5s ease 0.6s forwards;
}

#loader .linea2 {
  animation: aparecer 0.5s ease 0.9s forwards;
}

@keyframes aparecer {
  to {
    opacity: 1;
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
  }
}

@keyframes aparecer {
  to {
    opacity: 1;
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
  }
}

/* Encabezados */
.encabezados {
  position: relative;
  height: 750px;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  z-index: 1;
}

.encabezados::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(236, 29, 39, 0.2); /* rojo con opacidad */
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.5) 0.1px,
    transparent 0.5px
  ); /* puntitos blancos */
  background-size: 7px 7px; /* tamaño de los puntos */
  z-index: 0;
}

.encabezados .video-fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.encabezados .video-fondo video {
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: translateY(0);
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.triangulo-rojo {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background-color: var(--color-blanco);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  z-index: 0;
  pointer-events: none;
  transform: translateX(100%);
  animation: entrarTriangulo 0.95s ease forwards;
  -webkit-animation: entrarTriangulo 0.95s ease forwards;
  animation-delay: 2s;
}

/* Borde blanco simulado */
.triangulo-rojo::before {
  content: "";
  position: absolute;
  top: 0;
  right: -20px; /* el grosor del borde */
  width: 300px; /* un poco más ancho para sobresalir */
  height: 100%;
  background-color: var(--color-rojo);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  z-index: -1;
}

@media (min-width: 1100px) {
  .triangulo-rojo {
    width: 400px;
    transition: width 0.5s ease, right 0.5s ease;
    -webkit-transition: width 0.5s ease, right 0.5s ease;
    -moz-transition: width 0.5s ease, right 0.5s ease;
    -ms-transition: width 0.5s ease, right 0.5s ease;
    -o-transition: width 0.5s ease, right 0.5s ease;
  }

  .triangulo-rojo::before {
    width: 400px; /* también más ancho para simular el borde rojo */
    right: -30px; /* mantenemos el borde de 30px */
    transition: width 0.5s ease, right 0.5s ease;
    -webkit-transition: width 0.5s ease, right 0.5s ease;
    -moz-transition: width 0.5s ease, right 0.5s ease;
    -ms-transition: width 0.5s ease, right 0.5s ease;
    -o-transition: width 0.5s ease, right 0.5s ease;
  }
}

@keyframes entrarTriangulo {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.parallax-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0); /* Mejora rendimiento */
  z-index: -1;
  will-change: transform;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 20px;
}

.encabezados img.imagen {
  max-width: 180px;
  margin: auto;
  z-index: 1;
  margin-bottom: 10px;
}

.encabezados h1 {
  color: var(--color-blanco);
  font-size: 3rem;
  line-height: 3.5rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.encabezados h4 {
  color: var(--color-blanco);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 5px;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  padding: 0 20px;
}

a.btn-encabezados {
  background-color: var(--color-rojo);
  color: var(--color-blanco);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 15px 30px;
}

a.btn-encabezados:hover {
  background-color: var(--color-negro);
  color: var(--color-blanco);
  cursor: pointer;
  transition: background-color 0.75s ease, color 0.75s ease;
  -webkit-transition: background-color 0.75s ease, color 0.75s ease;
  -moz-transition: background-color 0.75s ease, color 0.75s ease;
  -ms-transition: background-color 0.75s ease, color 0.75s ease;
  -o-transition: background-color 0.75s ease, color 0.75s ease;
}

.content-button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 10px;
}

.btn-encabezados {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 10px;
}

/* Animación de textos */
.texto-observable {
  font-size: 30px;
  letter-spacing: 3px;
  font-weight: 300;
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
  -webkit-transform: translateY(30px);
  -moz-transform: translateY(30px);
  -ms-transform: translateY(30px);
  -o-transform: translateY(30px);
}

.texto-observable.visible {
  opacity: 1;
  transform: translateY(0);
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
}

/* El video que simula el background */
.video-fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none; /* Para que no interfiera con clicks */
}

/* Contenido sobre el video */
.encabezados h1,
.encabezados .content-button {
  position: relative;
  z-index: 2;
}

.encabezados h1 {
  font-size: 70px;
}

/* Animacion para encabezados */
.animado {
  opacity: 0;
  transform: translateY(15px);
  -webkit-transform: translateY(15px);
  -moz-transform: translateY(15px);
  -ms-transform: translateY(15px);
  -o-transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  -webkit-transition: opacity 0.6s ease, transform 0.6s ease;
  -moz-transition: opacity 0.6s ease, transform 0.6s ease;
  -ms-transition: opacity 0.6s ease, transform 0.6s ease;
  -o-transition: opacity 0.6s ease, transform 0.6s ease;
}

.animado.visible {
  opacity: 1;
  transform: translateY(0);
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
}

/* Hide scroll */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: auto;
  background-color: var(--color-rojo);
  z-index: 9999;
  transition: top 0.8s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  -webkit-transition: top 0.8s ease;
  -moz-transition: top 0.8s ease;
  -ms-transition: top 0.8s ease;
  -o-transition: top 0.8s ease;
}

/* Cabecera */
.logo {
  width: 200px;
  height: auto;
  transition: opacity 0.75s ease;
  -webkit-transition: opacity 0.75s ease;
  -moz-transition: opacity 0.75s ease;
  -ms-transition: opacity 0.75s ease;
  -o-transition: opacity 0.75s ease;
}

.logo:hover {
  cursor: pointer;
  opacity: 0.7;
}

.logo img {
  max-width: 200px;
  height: auto;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.menu ul,
.menu-mobile ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  gap: 10px;
}

.menu ul li a.activo,
.menu-mobile ul li a.activo {
  color: var(--color-blanco) !important;
}

.menu ul li a {
  cursor: pointer;
  color: var(--color-blanco) !important;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  display: initial;
  transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  -ms-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
}

.menu ul li a:hover {
  cursor: pointer;
  color: var(--color-negro);
}

.menu-mobile ul {
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 10px;
}

@media screen and (max-width: 1100px) {
  .menu {
    display: none;
  }
}

/* Icono hamburguesa */
.menu-toggle {
  display: none;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-blanco);
  transition: 0.35s;
}

/* Estilos para la cruz */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: var(--color-blanco);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background-color: var(--color-blanco);
  -webkit-transform: rotate(-45deg) translate(5px, -5px);
  -moz-transform: rotate(-45deg) translate(5px, -5px);
  -ms-transform: rotate(-45deg) translate(5px, -5px);
  -o-transform: rotate(-45deg) translate(5px, -5px);
}

/* Mostrar botón hamburguesa en mobile */
@media (max-width: 1100px) {
  #menu {
    display: none;
  }
  .menu-toggle {
    display: block;
    margin-top: -14px;
  }
}

/* Menú Mobile */
.menu-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: var(--color-rojo);
  padding: 80px 30px;
  z-index: 999;
  transition: right 0.5s ease;
  -webkit-transition: right 0.5s ease;
  -moz-transition: right 0.5s ease;
  -ms-transition: right 0.5s ease;
  -o-transition: right 0.5s ease;
}

.menu-mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 20px;
}

.menu-mobile li {
  opacity: 0;
  margin-bottom: 5px;
  transform: translateY(12px);
  -webkit-transform: translateY(12px);
  -moz-transform: translateY(12px);
  -ms-transform: translateY(12px);
  -o-transform: translateY(12px);
  transition: all 0.75s ease;
  -webkit-transition: all 0.75s ease;
  -moz-transition: all 0.75s ease;
  -ms-transition: all 0.75s ease;
  -o-transition: all 0.75s ease;
}

.menu-mobile ul li a {
  cursor: pointer;
  color: var(--color-blanco) !important;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  -ms-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
}

/* Mostrar menú */
.menu-mobile.active {
  right: 0;
}

.menu-mobile.active li {
  opacity: 1;
  transform: translateY(0);
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
}

/* Delay de aparicion Menú Mobile */
.menu-mobile.active li:nth-child(1) {
  transition-delay: 0.075s;
  margin-top: 5px;
}
.menu-mobile.active li:nth-child(2) {
  transition-delay: 0.15s;
}
.menu-mobile.active li:nth-child(3) {
  transition-delay: 0.225s;
}
.menu-mobile.active li:nth-child(4) {
  transition-delay: 0.3s;
}
.menu-mobile.active li:nth-child(5) {
  transition-delay: 0.375s;
}
.menu-mobile.active li:nth-child(6) {
  transition-delay: 0.45s;
}
.menu-mobile.active li:nth-child(7) {
  transition-delay: 0.5225s;
}
.menu-mobile.active li:nth-child(8) {
  transition-delay: 0.6s;
}

/* Overlay negro */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(236, 29, 39, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease;
  z-index: 998;
  -webkit-transition: opacity 0.7s ease;
  -moz-transition: opacity 0.7s ease;
  -ms-transition: opacity 0.7s ease;
  -o-transition: opacity 0.7s ease;
}

/* Mostrar overlay */
#overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Servicios */
.servicios h1 {
  color: var(--color-negro);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-align: center;
}

.servicios h2 {
  color: var(--color-negro);
  font-size: 3rem;
  line-height: 3rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  text-align: center;
}

.servicios img {
  padding: 50px;
  object-fit: cover;
}

.servicios-iranzi img {
  position: relative;
  margin: auto;
  object-fit: cover;
  height: 600px;
  min-height: 900px;
}

.item-servicios {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
  transform: translateY(30px);
  -webkit-transform: translateY(30px);
  -moz-transform: translateY(30px);
  -ms-transform: translateY(30px);
  -o-transform: translateY(30px);
}

/* Clase activa que aplica la animación */
.item-servicios.visible {
  opacity: 1;
  transform: translateY(0);
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
}

/* Formulatio de contacto */
form {
  width: 90%;
  max-width: 400px;
  margin: auto;
  gap: 10px;
  color: var(--color-negro);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.1px;
}

form label {
  display: block;
  margin-bottom: 5px;
}

input:focus,
textarea:focus {
  color: var(--color-negro);
  font-weight: 400;
  outline: none;
  box-shadow: none;
  border: 1.5px solid var(--color-rojo);
  border-color: var(--color-rojo);
  transition: box-shadow 0.35s ease, border 0.35s ease;
  -webkit-transition: box-shadow 0.35s ease, border 0.35s ease;
  -moz-transition: box-shadow 0.35s ease, border 0.35s ease;
  -ms-transition: box-shadow 0.35s ease, border 0.35s ease;
  -o-transition: box-shadow 0.35s ease, border 0.35s ease;
}

form input,
textarea {
  font-family: "Montserrat", sans-serif;
  color: var(--color-negro);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.3px;
  width: 100%;
  padding: 10px;
  background: var(--color-blanco);
  border: 1.5px solid rgba(25, 25, 25, 0.15);
  resize: vertical;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

form button {
  width: 100%;
  padding: 20px 0px;
  margin-top: 10px;
  background-color: var(--color-rojo);
  color: var(--color-blanco);
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: background-color 0.5s ease, color 0.5s ease;
  -webkit-transition: background-color 0.5s ease, color 0.5s ease;
  -moz-transition: background-color 0.5s ease, color 0.5s ease;
  -ms-transition: background-color 0.5s ease, color 0.5s ease;
  -o-transition: background-color 0.5s ease, color 0.5s ease;
  border: none;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

form button:hover {
  background-color: var(--color-negro);
  color: var(--color-blanco);
}

/* Swiper */
.swiper-img img {
  max-width: 100%;
  padding: 20px;
}

/* Efecto underline para los items del menu */
a.btn-gral-underline {
  color: var(--color-blanco);
  text-decoration: none;
  position: relative;
  font-size: 1rem;
  letter-spacing: 1px;
  font-weight: 500;
  overflow: hidden;
}

a.btn-gral-underline:hover {
  cursor: pointer;
  color: var(--color-blanco);
}

a.btn-gral-underline::after {
  content: "";
  position: absolute;
  height: 1.5px;
  background-color: var(--color-blanco);
  bottom: 0;
  left: 0;
  right: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.15s ease-in-out;
  -webkit-transition: transform 0.15s ease-in-out;
  -moz-transition: transform 0.15s ease-in-out;
  -ms-transition: transform 0.15s ease-in-out;
  -o-transition: transform 0.15s ease-in-out;
}

a.btn-gral-underline:hover::after {
  transform-origin: left;
  transform: scaleX(1);
  -webkit-transform: scaleX(1);
  -moz-transform: scaleX(1);
  -ms-transform: scaleX(1);
  -o-transform: scaleX(1);
}

a.btn-gral-underline:not(:hover)::after {
  transform-origin: right;
  transform: scaleX(0);
  -webkit-transform: scaleX(0);
  -moz-transform: scaleX(0);
  -ms-transform: scaleX(0);
  -o-transform: scaleX(0);
}

a.btn-gral-underline.activo {
  color: var(--color-blanco);
}

a.btn-gral-underline.activo::after {
  transform-origin: left;
  transform: scaleX(1);
  -webkit-transform: scaleX(1);
  -moz-transform: scaleX(1);
  -ms-transform: scaleX(1);
  -o-transform: scaleX(1);
}

/* Boton whatsapp */
.btn-whatsapp {
  position: fixed;
  bottom: 10px;
  left: 10px;
  opacity: 0;
  z-index: 10000;
  transition: transform 0.75s ease, opacity 0.4s ease;
  -webkit-transition: transform 0.75s ease, opacity 0.4s ease;
  -moz-transition: transform 0.75s ease, opacity 0.4s ease;
  -ms-transition: transform 0.75s ease, opacity 0.4s ease;
  -o-transition: transform 0.75s ease, opacity 0.4s ease;
  transform: translateY(30px) scale(0);
  -webkit-transform: translateY(30px) scale(0);
  -moz-transform: translateY(30px) scale(0);
  -ms-transform: translateY(30px) scale(0);
  -o-transform: translateY(30px) scale(0);
}

.btn-whatsapp.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Boton top */
button.btn-scroll {
  margin-top: 15px;
}

#btn-top {
  position: fixed;
  bottom: 15px;
  right: 10px;
  width: 45px;
  height: 45px;
  padding: 5px;
  font-size: 20px;
  color: var(--color-blanco);
  border: 1px solid var(--color-rojo);
  background-color: var(--color-rojo);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.5s ease,
    border 0.5s ease, background-color 0.5s ease;
  -webkit-transition: opacity 0.5s ease, transform 0.5s ease, color 0.5s ease,
    border 0.5s ease, background-color 0.5s ease;
  -moz-transition: opacity 0.5s ease, transform 0.5s ease, color 0.5s ease,
    border 0.5s ease, background-color 0.5s ease;
  -ms-transition: opacity 0.5s ease, transform 0.5s ease, color 0.5s ease,
    border 0.5s ease, background-color 0.5s ease;
  -o-transition: opacity 0.5s ease, transform 0.5s ease, color 0.5s ease,
    border 0.5s ease, background-color 0.5s ease;
  border-radius: 50px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
}

#btn-top:hover {
  color: var(--color-blanco);
  border: 1px solid var(--color-negro);
  background-color: var(--color-negro) !important;
}

/* Estado inicial (oculto) */
.btn-top-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%) scale(0);
  -webkit-transform: translateY(100%) scale(0);
  -moz-transform: translateY(100%) scale(0);
  -ms-transform: translateY(100%) scale(0);
  -o-transform: translateY(100%) scale(0);
}

/* Estado visible con animación */
.btn-top-visible {
  opacity: 1;
  pointer-events: auto;
  padding: 5px;
  transform: translateY(0%) scale(1);
  -webkit-transform: translateY(0%) scale(1);
  -moz-transform: translateY(0%) scale(1);
  -ms-transform: translateY(0%) scale(1);
  -o-transform: translateY(0%) scale(1);
}

/* Mapa */
.map-container {
  max-width: 100%;
  height: 450px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: scale(1);
  transition: transform 0.5s ease;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%) contrast(1.2) brightness(0.9);
  transition: filter 0.75s ease;
  -webkit-transition: filter 0.75s ease;
  -moz-transition: filter 0.75s ease;
  -ms-transition: filter 0.75s ease;
  -o-transition: filter 0.75s ease;
}

.map-container:hover iframe {
  filter: grayscale(0%) contrast(1) brightness(1); /* vuelve a color al hacer hover */
}

#formularioContacto a {
  color: var(--color-rojo) !important;
  transition: color 0.75s ease;
  -webkit-transition: color 0.75s ease;
  -moz-transition: color 0.75s ease;
  -ms-transition: color 0.75s ease;
  -o-transition: color 0.75s ease;
}

#formularioContacto a:hover {
  color: var(--color-negro) !important;
}

.info-item {
  opacity: 0;
  display: flex;
  gap: 20px;
  margin: 15px 0;
  align-items: start;
  font-size: 14px;
  color: var(--color-gris);
  transition: transform 0.6s ease, opacity 0.6s ease, color 0.75s ease;
  -webkit-transition: transform 0.6s ease, opacity 0.6s ease, color 0.75s ease;
  -moz-transition: transform 0.6s ease, opacity 0.6s ease, color 0.75s ease;
  -ms-transition: transform 0.6s ease, opacity 0.6s ease, color 0.75s ease;
  -o-transition: transform 0.6s ease, opacity 0.6s ease, color 0.75s ease;
  transform: translateY(20px);
  -webkit-transform: translateY(20px);
  -moz-transform: translateY(20px);
  -ms-transform: translateY(20px);
  -o-transform: translateY(20px);
}

.info-item.visible {
  opacity: 1;
  transform: translateY(0);
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
}

.datos p {
  text-align: left !important;
}

/* Frase */
.frase {
  background-color: var(--color-blanco);
}

.frase h1 {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 7px;
  font-weight: 300;
  line-height: 2.5rem;
}

.frase h2 {
  font-size: 3.5rem;
  letter-spacing: 1px;
  font-weight: 600;
  line-height: 3.5rem;
}

footer {
  background-image: url("../../Vistas/imagenes/bg_footer.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--color-gris);
  background-position-x: right;
  text-align: center;
  padding: 50px 0;
  font-size: 14px;
}

footer p {
  font-size: 14px;
  color: var(--color-blanco);
  text-align: center;
}

footer img {
  width: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

footer a img {
  opacity: 1;
  transition: transform 0.35s ease, opacity 0.35s ease;
  -webkit-transition: transform 0.35s ease, opacity 0.35s ease;
  -moz-transition: transform 0.35s ease, opacity 0.35s ease;
  -ms-transition: transform 0.35s ease, opacity 0.35s ease;
  -o-transition: transform 0.35s ease, opacity 0.35s ease;
}

footer a img:hover {
  opacity: 0.7;
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
}

/* Swiper */
.swiper-button-next,
.swiper-button-prev {
  color: var(--color-rojo) !important;
  transition: color 0.75s ease;
  -webkit-transition: color 0.75s ease;
  -moz-transition: color 0.75s ease;
  -ms-transition: color 0.75s ease;
  -o-transition: color 0.75s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: var(--color-gris) !important;
}

.swal2-container {
  z-index: 99999 !important;
}

/* Animación fade */
.animacion-fade {
  opacity: 0;
  will-change: opacity, transform;
  transform: translateY(25px);
  -webkit-transform: translateY(25px);
  -moz-transform: translateY(25px);
  -ms-transform: translateY(25px);
  -o-transform: translateY(25px);
  transition: opacity 0.75s ease, transform 0.75s ease;
  -webkit-transition: opacity 0.75s ease, transform 0.75s ease;
  -moz-transition: opacity 0.75s ease, transform 0.75s ease;
  -ms-transition: opacity 0.75s ease, transform 0.75s ease;
  -o-transition: opacity 0.75s ease, transform 0.75s ease;
}

.animacion-fade.visible {
  opacity: 1;
  transform: translateY(0);
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
}

/* Transicion entre paginas */
.transition-pages {
  animation: fade 1.75s backwards;
  animation-delay: 2s; /* esperar a que termine el loader */
  -webkit-animation: fade 2s backwards;
  -webkit-animation-delay: 2s;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Utilidades */
.img-responsive {
  width: 100%;
  max-width: 100%;
}

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

.m-0 {
  margin: 0px;
}

.mb-20 {
  margin-bottom: 20px;
}

.p-0 {
  padding: 0px;
}

.p-20 {
  padding: 20px;
}

.py-100 {
  padding: 100px 0px;
}

.mr-10 {
  margin-right: 10px;
}

.my-20 {
  margin-top: 20px;
  margin-bottom: 20px;
}

.my-50 {
  margin-top: 50px;
  margin-bottom: 50px;
}

.my-100 {
  margin-top: 100px;
  margin-bottom: 100px;
}

.d-flex {
  display: flex;
}

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

.align-items-center {
  align-items: center;
}

.align-items-stretch {
  align-items: stretch;
}

.align-content-center {
  align-content: center;
}

.justify-content-center {
  justify-content: center;
}

.bg-blanco {
  background-color: var(--color-blanco);
  padding: 100px 60px;
}

.bg-gris {
  background-color: var(--color-gris-claro);
}

.bg-gris-claro {
  background-color: var(--color-gris-claro);
}

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

.text-blanco {
  color: var(--color-blanco);
}

.text-uppercase {
  text-transform: uppercase;
}

.w-60 {
  width: 60%;
  margin: auto;
}

.w-70 {
  width: 70%;
  margin: auto;
}
