html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Elimina el scroll horizontal */
  font-family: "Montserrat", sans-serif;
  background: #fafafa;
  color: #000;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  position: absolute; /* Cambia a absolute para que se superponga */
  width: 100%;
  color: white;
  box-sizing: border-box; /* Para que el padding no afecte el tamaño */
  z-index: 10; /* Asegúrate de que esté por encima del carrusel */
  background: transparent; /* Asegúrate de que no haya fondo */
}

.logo {
  cursor: pointer; /* Cambiar el cursor al pasar por encima */
  flex-shrink: 0; /* Evitar que el logo se reduzca */
}

.logo i {
  font-size: 24px!important;
  color: #dd1417;
  cursor: pointer; /* Cambiar el cursor al pasar por encima */
}

h1 {
  font-size: 2em;
  font-weight: normal;
  margin: 0;
  color: #dd1417;
}

.carousel {
  display: flex;
  overflow-x: auto; /* Hace que el carrusel sea scrolleable horizontalmente */
  scroll-snap-type: x mandatory; /* Asegura el ajuste del scroll */
  -webkit-overflow-scrolling: touch; /* Habilita el scroll suave en dispositivos táctiles */
  width: 100%;
  height: 100vh;
  flex-wrap: nowrap;
}

.carousel-item {
  flex: 0 0 100%; /* Esto asegura que cada item ocupe el 100% del ancho */
  height: 100%;
  scroll-snap-align: start; /* Alinea el item al inicio del scroll */
}

.carousel-item.active {
  display: block;
}

.carousel-item img, .carousel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-item .special-align2  {
      
    object-position:bottom;
    }

footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 10px;  
  box-sizing: border-box;
}
footer h2 {
  color: #dd1417;
  font-size: 1.3em;
  font-weight: 600;
}

footer p {
  font-weight: 200;
}

.social-icons {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex: 1;
}

.social-icons i {
  font-size: 24px;
  margin-left: 10px;
  color: #dd1417;
}
.social-icons i:hover {
  color: #000;
}

.social-icons a {
  text-decoration: none;
  color: #000;
}

/* Estilos generales del menú */
/* Estilos para el ícono del menú hamburguesa */
#menu-icon {
  color: #dd1417; /* Color rojo como en el SVG */
  cursor: pointer;
  display: inline-block;
  transition: transform 0.3s ease; /* Animación suave */
}

/* Cambiar tamaño del ícono en pantallas más grandes */
@media (min-width: 768px) {
  #menu-icon {
    font-size: 30px;
  }
}

/* Estilos para el menú de pantalla completa */
.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9); /* Fondo oscuro */
  
  z-index: 9999; /* Asegura que el menú esté por encima de otros elementos */
  align-items: center;
  justify-content: center;
  
}

.fullscreen-menu a{
  text-decoration: none;
}


/* Estilo para el botón de cerrar */
.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  color: #dd1417;
  cursor: pointer;
}

/* Asegúrate de que el SVG se ajuste al tamaño del menú */
.menu_svg {
  max-width: 90%; /* Ajusta el ancho máximo al 90% del contenedor */
  max-height: 90%; /* Ajusta el alto máximo al 90% del contenedor */
  width: auto; /* Ajuste automático */
  height: auto; /* Ajuste automático */
}


.menu_link{
  color: #dd1417;
}

/* Estilo para el menú cuando se hace visible */
.fullscreen-menu.show {
  display: flex;
}


@media (max-width: 768px) {
  
  header h1 {
      font-size: 1.5em;
    }

    .carousel {
      flex-direction: row;
    }

    footer h2 {
      color: #dd1417;
      font-size: 1em;
      font-weight: 600;
    }

    .carousel-item .special-align  {
      
  object-position:right;
    }
   

    
  }

  /* Estilos para cuando no se quiere scrollear, solo para desktop */
@media (min-width: 768px) {
  .carousel {
    overflow: hidden;
  }
}
h1 {
  opacity: 0;
  animation: fadeInText 1.5s ease-out forwards;
}


@keyframes fadeInText {
  to {
    opacity: 1;
  }
}

/* ==== Unificar posición/estilo de redes en INDEX con el resto ==== */

/* Carrusel siempre a pantalla completa */
.carousel {
  width: 100vw;
  min-height: 100vh;  /* fallback */
  height: 100svh;     /* iOS moderno */
  height: 100dvh;     /* Chrome/Android/iOS modernos */
  overflow: hidden;
}

/* Misma “cobertura” de media */
.carousel-item img,
.carousel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Footer superpuesto pero con la MISMA ubicación visual:
   20px desde el borde, como en otras secciones */
footer {
  position: fixed;
  right: max(0px, env(safe-area-inset-right));
  bottom: max(0px, env(safe-area-inset-bottom));
  left: auto;
  top: auto;
  width: auto;
  padding: 20px;              
  background: transparent;    
  z-index: 12;                
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

/* Estilos de íconos iguales a las otras secciones */
.social-icons {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex: 1;
}

.social-icons i {
  font-size: 24px;
  margin-left: 10px;
  color: #dd1417;
}

.social-icons i:hover { color: #000; }

.social-icons a {
  text-decoration: none;
  color: #000;
}

/* === Transiciones menú hamburguesa === */
.fullscreen-menu {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Mostrar */
.fullscreen-menu.show {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

/* Ocultar */
.fullscreen-menu.hide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
}
