@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&display=swap');

/* ----------------------------- RESET ----------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --celeste: #295D97;;
  --verde: #00cba4;
}


body {
  font-family: 'Montserrat', sans-serif;
  background-color: #0f0f1a;
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-behavior: smooth;
}

h1, h2, h3, p, a, li {
  margin: 0;
  padding: 0;
  color: inherit;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/* ----------------------------- HEADER ----------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 1rem 2rem;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 80px;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-list li a {
  font-weight: 600;
  font-size: 1rem;
  color: white;
  transition: opacity 0.3s ease;
}

.nav-list li a:hover {
  opacity: 0.6;
}

.contact-button {
  background-color: var(--celeste);
  color: #0f0f1a;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--celeste);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #0f0f1a;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0 0 0.5rem 0.5rem;
    width: max-content;
  }

  .nav-list.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}

/* ----------------------------- INICIO ----------------------------- */
.inicio {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
  background-color: #0f0f1a; /* fallback por si no carga el video */
  max-width: 1920px;
}

.inicio-video {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  z-index: 0;
}

.inicio-video iframe {
  min-width: 100vw;
  min-height: 100vh;
  pointer-events: none;
  border: none;
}

.inicio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #0f0f1a;
  opacity: 0.65;
  z-index: 1;
}

.inicio-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 960px;
  padding: 2rem;
}

.inicio-inner h1 {
  font-size: 3.5rem;
  color: #ffffff;
}

.inicio-inner h3 {
  font-size: 1.25rem;
  color: #cccccc;
  animation: aparecerAbajo 2s ease-out forwards;
  opacity: 0;
  transform: translateY(50px);
}

@keyframes aparecerAbajo {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .inicio-inner h1 {
    font-size: 2.4rem;
  }
  .inicio-inner h3 {
    font-size: 1rem;
  }
}

/* ----------------------------- SECCIONES GENERALES ----------------------------- */
section {
  padding-block: 3rem;
  width: 100%;
  max-width: 1280px;
  text-align: center;
}

section h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--celeste);
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.card {
  background-color: #1b1b2f;
  border-radius: 1rem;
  padding: 2rem;
  flex: 1 1 280px;
  max-width: 380px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.card h2 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.card h2 span {
  color: var(--verde);
}

.card h3 {
  font-size: 1rem;
  color: #cccccc;
  line-height: 1.4;
}

.top {
  margin-bottom: 1rem;
}

/* ----------------------------- LISTAS Y CONTACTO ----------------------------- */
.elegirnos ul li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #f5f5f5;
  position: relative;
  padding-inline: .5rem;
}

.elegirnos ul li span {
  color: var(--verde);
  font-weight: bold;
  margin-right: 5%;
}

.contacto p, .contacto a {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.mapa {
  margin-top: 1rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.qr {
  margin-top: 1rem;
  text-align: center;
}

/* ----------------------------- FOOTER ----------------------------- */
footer {
  background-color: #0d0d17;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #888;
  width: 100%;
}

/* ----------------------------- RESPONSIVE ----------------------------- */
@media (max-width: 768px) {
  .inicio-inner h1 {
    font-size: 2.4rem;
  }
  .inicio-inner h3 {
    font-size: 1rem;
  }
}

/* Modifica tu CSS existente para el video */
.fullscreen-video iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ajusta estos valores para cambiar el enfoque */
  object-position: 75% center; /* 75% desplaza el enfoque hacia la derecha */
}

@media (max-width: 768px) {
  .fullscreen-video iframe {
    object-position: right center; /* En móviles, enfoca completamente a la derecha */
    /* O puedes usar un valor porcentual más preciso si necesitas */
    /* object-position: 85% center; */
  }
}

/* Para dispositivos móviles */
@media (max-width: 1024px) {
  .inicio-video iframe {
      /* Añade estas propiedades */
  position: absolute;
  left: 50%; /* Centra inicialmente */
  transform: translateX(-50%); /* Desplaza a la derecha (ajusta este valor) */
  object-fit: cover; /* Asegura que cubra todo el espacio */
    /* O puedes usar un valor fijo si prefieres */
    /* left: 30%; */
    /* transform: translateX(0); */
  }
}