@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Coiny&family=Krona+One&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
:root {
  --primary: #0800ff;
  --dark: #111;
  --light: #f9f9f9;
  --white: #fff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", sans-serif;
  color: var(--dark);
  line-height: 1.6; /* Mejora la legibilidad */
}
h2 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.7rem;
  text-align: center;
  margin: 3rem 0;
  text-shadow: 0 0 5px rgba(96, 96, 96, 0.7);
}

/* Header - Sección */
header {
  /* Alineación principal del logo (en .header) y el menú (en #mainNav) */
  display: flex;
  flex-direction: column; /* Por defecto apilamos Logo/Toggle y Menú */
  align-items: center;
  padding: 1rem 2rem;
  background: #000;
  color: var(--white);
  position: sticky; /* Sticky para que quede fijo arriba */
  top: 0;
  z-index: 100; /* Asegura que esté por encima de otros elementos */
  width: 100%;
}

/* Contenedor para Logo y Toggle - Asegura que estén alineados y separados */
.header {
  display: flex;
  justify-content: space-between; /* Empuja el logo a la izq y el toggle a la der */
  align-items: center;
  width: 100%; /* Ocupa todo el ancho del header */
  max-width: 1200px; /* Opcional: para centrar el contenido en pantallas muy grandes */
}

#logoAuto {
  max-width: 150px;
}

/* Estilos de Navegación Móvil por Defecto */
#mainNav {
  /* Por defecto en móvil, el menú está oculto (se muestra con JS al añadir .open) */
  display: none;
  flex-direction: column;
  width: 100%;
  text-align: center;
}

#mainNav.open {
  display: flex; /* Mostrar menú al hacer click en el toggle (clase añadida por JS) */
}

#mainNav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
  align-items: center;
}

#mainNav li {
  border-top: 1px solid #333; /* Color más oscuro para el separador */
  width: 100%;
}

#mainNav a {
  display: block;
  padding: 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

#mainNav a:hover {
  background-color: #1a1a1a; /* Cambio de fondo en hover para móvil */
  transition: all 0.3s ease-in-out;
}

/* Botón/Icono del Menú Hamburguesa (Toggle) */
.menu-toggle {
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  display: block; /* Asegura que se muestre en móvil */
  padding: 0; /* Elimina padding por defecto del botón */
}

/* Estilos de botones dentro del Header */
.btn-header {
  background-image: url(/Assets/azulBoton1.jpeg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  padding: 1rem;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block; /* Permite aplicar padding y dimensiones */
  margin: 0.5rem 0; /* Espaciado en móvil */
}
.btn-header:hover {
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
  transform: translateY(-3px);
  transition: all 0.3s ease-in-out;
  text-transform: uppercase;
}

/* ---------------------------------------------------- */
/* Estilos adicionales */
/* ---------------------------------------------------- */

/* Hero - Sección */
#title {
  text-align: center;
  margin: 3rem 1rem 4rem 1rem;
  font-size: 1.5rem;
  font-family: "Krona One", sans-serif;
  font-style: italic;
  transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
}
#title:hover {
  color: var(--light);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.7),
    0 0 10px rgba(255, 255, 255, 0.5), 0 0 15px rgba(255, 255, 255, 0.3);
}
.hero {
  display: flex;
  flex-direction: column; /* Por defecto en móvil, apilados */
  overflow: hidden;
}

.hero-left {
  flex: 1 1 auto;
  position: relative;
  color: var(--white);
  min-width: 100%;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.483);
}
.hero-right {
  flex: 1 1 auto;
  position: relative;
  color: var(--white);
  height: 400px;
  min-width: 80%;
  margin-bottom: 2rem;
  border: solid 2px #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.483);
  margin-top: 0.3rem;
  justify-content: center;
}

/* Imagen de fondo lado izquierdo */
.hero-left img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Overlay oscuro para mejorar contraste del texto */
.hero-left::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}
/* Contenido del lado izquierdo */
.hero-left h1,
.hero-left p,
.hero-left .cta {
  position: relative;
  z-index: 3;
  margin: 1rem;
  text-align: left;
}
.hero-left h1 {
  font-size: 1.8rem;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-align: left;
}
.hero-left p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 80%;
}
.cta {
  display: flex;
  text-align: center;
  align-items: center;
  margin: 0;
}

/* Slideshow lado derecho */
.hero-right .slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}
.slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-right .slideshow img.active {
  opacity: 1;
}
/* Botón */
.btn {
  background-image: url(/Assets/azulBoton1.jpeg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: solid 1px #ccc;
  border-radius: 5px;
  text-decoration: none;
  text-align: center;
}
.btn:hover {
  /*background-image: linear-gradient(to right, #78d6eb, #2863e4);*/
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
  transition: all 0.3s ease-in-out;
  font-weight: bold;
  text-transform: uppercase;
}
/*-*-*-*-*-*-*---*-*-*-**-*--*/
/* Services Section */
/*-*-*--*-*-*-*-**-*--**-*-*-*/
.services {
  padding: 3rem 2rem;
  background: var(--light);
}

.services .grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.281);
}
.card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.284);
  transform: translateY(-10px);
  transition: all 0.3s ease-in-out;
}

/*-*-*-*-*-*-*---*-*-*-**-*--*/
/* Contacto - Sección */
/*-*-*--*-*-*-*-**-*--**-*-*-*/

.contact {
  padding: 3rem 2rem;
  background: #333;
  color: var(--white);
}

/* Formulario de contacto */
form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
form input,
form textarea,
form select {
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
}
form button {
  cursor: pointer;
}

/*-*-*-*-*-*-*---*-*-*-**-*--*/
/* Footer - Sección */
/*-*-*--*-*-*-*-**-*--**-*-*-*/

footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 2rem 2rem 3rem 2rem;
  background: #000;
  color: var(--white);
  gap: 1.5rem;
}
footer h4 {
  margin-bottom: 0.5rem;
}
footer a {
  color: #ccc;
  text-decoration: none;
}
.copy {
  text-align: center;
  padding: 1rem;
  background: #111;
  color: #aaa;
  font-size: 0.9rem;
}
.copy img {
  max-height: 30px; /* Tamaño de los logos */
  max-width: 70px;
  margin-top: 0.5rem;
  transition: opacity 0.3s ease;
}

.copy img:hover {
  opacity: 0.7; /* Efecto al pasar el ratón */
  transform: scale(1.1);
  transition: all 0.3s ease-in-out;
}
/* ---------------------------------------------------- */
/*                  /Media Queries/                     */
/* ---------------------------------------------------- */

/* Estilos para pantallas tablets y desktop */
@media (min-width: 765px) {
  /* El header cambia a alineación horizontal */
  #logoAuto {
    max-width: 200px;
    cursor: auto;
  }
  header {
    flex-direction: row; /* Logo/Toggle y Menú en línea */
    justify-content: space-between; /* Logo a la izquierda, Menú a la derecha */
    align-items: center;
  }

  /* Ocultamos el contenedor de logo y toggle, ya que ahora el header los contiene directamente */
  .header {
    width: auto; /* Permite que el logo ocupe su espacio sin forzar ancho */
    justify-content: flex-start;
  }
  .btn-header {
    border: solid 1px #ccc;
  }

  /* El toggle se oculta en desktop */
  .menu-toggle {
    display: none;
  }

  /* El menú de navegación se muestra siempre en desktop */
  #mainNav {
    display: flex !important; /* !important para forzar la visibilidad sobre .open o base */
    flex-direction: row;
    align-items: center;
    width: auto;
  }

  #mainNav ul {
    flex-direction: row; /* Los elementos del menú en línea */
    gap: 2rem; /* Espacio entre los elementos */
  }

  #mainNav li {
    border: none; /* Quitamos el borde separador de móvil */
    width: auto;
  }

  #mainNav a {
    padding: 0.5rem; /* Ajuste de padding más sutil en desktop */
    color: var(--white);
    font-weight: normal; /* Ya no tan bold */
  }

  #mainNav a:hover {
    background-color: transparent; /* Quitamos el fondo de hover móvil */
    border: solid 1px var(--primary);
    transition: all 0.3s ease-in-out;
    padding: 10px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.762);
    font-weight: bold;
  }

  /* Hero Section: vuelve a ser horizontal */
  .hero {
    flex-direction: row;
    height: 80vh;
    /*display: flex;
    overflow: hidden;*/
  }
  #title {
    font-size: 2rem;
  }
  .hero-left h1 {
    font-size: 2.4rem;
  }
  .hero-left,
  .hero-right {
    height: 100%;
    flex: 1 1 50%;
    min-width: 0;
  }

  /* Quitamos los estilos de "card" para .hero-right */
  .hero-right {
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
}

/* Estilos para pantallas desktop grandes (1024px) */
@media (min-width: 1024px) {
  /* Mejoras visuales para los enlaces del menú */

  #logoAuto {
    max-width: 250px;
  }
  #mainNav a {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
  }

  #title {
    margin: 0.6rem 0 4.8rem 0;
  }

  #mainNav a:hover {
    color: var(--light);
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
  }
  h2 {
    font-size: 2.2rem;
  }
}
/*Estilos para pantallas de escritorio a partir de (1200px)*/
@media (min-width: 1200px) {
  h2 {
    font-size: 2.5rem;
  }
}
