:root {
  --gris: #545a5a;
  --azul-oscuro: #0b3c6e;
  --rojo: #b12e2e;
  --azul-profundo: #093d73;
  --blanco: #ffffff;
  --negro: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--blanco);
  color: var(--negro);
  text-align: center;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: rgba(10,19,60, 0.85);
  backdrop-filter: blur(10px);
  padding: 0.8rem 2rem;
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 60px;
}

/* MENÚ A LA DERECHA */
.menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin-left: auto;
}

.menu li a {
  color: var(--blanco);
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  padding-bottom: 4px;
}

.menu li a:hover,
.menu li a.active {
  color: var(--rojo);
  border-bottom: 2px solid var(--rojo);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--blanco);
  cursor: pointer;
}

@media (max-width: 768px) {
  nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px;
    right: 0;
    z-index: 999;
    background-color: #0b3c6e; /* azul oscuro */
    padding: 1rem 0;
    border-radius: 0 0 10px 10px;
  }

  .menu li a {
    color: white;
    padding: 0.8rem 1rem;
    display: block;
    font-weight: bold;
  }

  .menu li a:hover {
    background-color: var(--rojo);
    color: white;
  }

  .menu.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1001;
  }

  .nav {
    position: relative;
  }
}



/* INICIO */
#inicio {
  position: relative;
  height: 100vh;
  color: var(--blanco);
  display: flex;
  justify-content: center;
  align-items: center;
--  background-color: var(--azul-profundo);
}

#inicio video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.inicio-texto {
  --background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
}

.inicio-texto h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.inicio-texto p {
  font-size: 1.2rem;
}

/* SERVICIOS */
#servicios {
  background-color: #f8f8f8;
  padding: 100px 5% 60px;
}

.subtexto {
  margin-bottom: 2rem;
  color: var(--gris);
}

.servicios-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 2rem;
}

.servicio {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: var(--blanco);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  width: 250px;
  min-height: 150px;
  text-align: center;
}

.servicio i {
  font-size: 2rem;
  color: var(--azul-oscuro);
  margin-bottom: 0.5rem;
}

.servicio h3 {
  font-size: 1rem;
  margin-bottom: auto;
}

.boton-vermas {
  margin-top: auto;
  display: flex;
  justify-content: center;
  width: 100%;
}

.boton-vermas button {
  background: var(--rojo);
  color: var(--blanco);
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
}


/* NOSOTROS */
#nosotros {
  background-color: var(--azul-oscuro);
  color: var(--blanco);
  padding: 100px 5% 100px;

}

.texto-nosotros {
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--blanco);
}

.empleados-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.empleado {
  background: var(--blanco);
  color: var(--negro);
  padding: 1rem;
  border-radius: 10px;
  width: 230px;
}

.empleado img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

/* CONTACTO */
#contacto {
  background-color: var(--gris);
  color: var(--blanco);
  padding: 100px 5% 60px;
}

.contacto-contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.contacto-contenedor iframe,
.formulario {
  flex: 1;
  min-width: 300px;
  height: 350px;
}

.formulario form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formulario input,
.formulario textarea {
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
}

.formulario button {
  background-color: var(--rojo);
  color: var(--blanco);
  padding: 0.75rem;
  border: none;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

.info-extra {
  margin-top: 2rem;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-contenido {
  background: var(--blanco);
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  text-align: left;
  position: relative;
}

.modal-contenido img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.modal-contenido h3 {
  margin-bottom: 0.5rem;
  color: var(--azul-oscuro);
}

.modal-contenido p {
  color: var(--gris);
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--rojo);
}

/* ICONOS FLOTANTES */

.instagram,
.whatsapp {

    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.instagram,
.whatsapp {
    padding: 15px;
    background-color: #0142FE; /* Azul */
    color: white;
    border-radius: 50%;
    font-size: 1.8em; /* Tamaño del icono */
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;

}


.instagram:hover,
.whatsapp:hover {
  background: var(--rojo);
  color: var(--blanco);
}

.instagram {
  bottom: 110px;
}

.whatsapp {
  bottom: 40px;
}

/* TITULOS */
h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-left: 0;
    margin-top: 1rem;
  }

  .empleados-grid,
  .contacto-contenedor {
    flex-direction: column;
    align-items: center;
  }

  .empleado {
    width: 90%;
  }

  .inicio-texto h1 {
    font-size: 2rem;
  }

  .inicio-texto p {
    font-size: 1rem;
  }
}

/* MODAL DE GRACIAS (formulario de contacto) */
#modal-gracias {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#modal-gracias .modal-contenido {
  background: var(--blanco);
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
}

#modal-gracias h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--azul-oscuro);
}

#modal-gracias p {
  color: var(--gris);
}

#modal-gracias .cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--rojo);
}