/* ===================================
   ESTILOS GENERALES
=================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #fff;
  color: #222;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===================================
   CONTENEDORES Y SECCIONES
=================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
}

/* ===================================
   HEADER
=================================== */
.header {
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.header .container {
  justify-content: space-between;
}

.logo img {
  height: 60px;
}

/* NAV MENU */
.Menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.Menu li a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  transition: color 0.3s;
}

.Menu li a:hover {
  color: #6161ff;
  transform: perspective(500px) translateZ(5px);
}

/* MENU HAMBURGUESA */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #222;
  cursor: pointer;
}

@media (max-width: 850px) {
  .menu-toggle {
    display: block;
  }
  nav {
    width: 100%;
  }
  .Menu {
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    position: absolute;
    top: 80px;
    left: 0;
    display: none;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }
  .Menu.show {
    display: flex;
  }
}

/* ===================================
   CONTACT INFO HEADER
=================================== */
/* Redes y contacto */
.contact-info {
  text-align: right;
}

.social-icons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.social-icons a {
  width: 45px;
  height: 45px;
  background: #fff;
  color: #6161ff;
  border: 2px solid #6161ff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #6161ff;
  color: #fff;
  transform: scale(1.15);
}

/* Redes y contacto */
.contact-info {
  text-align: right;
  font-size: 0.85rem;
}

.social-icons {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #ffffff;
  color: #000000;
  border-radius: 50%;
  font-size: 16px;
  transition: background 0.3s, transform 0.3s;
  text-decoration: none;
}

.social-icons a:hover {
  background: #6161ff;
  transform: scale(1.2);
  color: #fff;
}

/* ===================================
   HERO BACKGROUND
=================================== */
.hero-bg {
  width: 100%;
  height: 90vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;

  /* Imagen de fondo SIN degradado */
  background-image: url("img/logo montrek.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Animación sutil */
  animation: heroZoom 10s ease-in-out infinite alternate;
}

/* Overlay ligero opcional para legibilidad */
.hero-bg .overlay {
  position: absolute;
  inset: 0;
 
  z-index: 1;
}

.hero-title {
  position: relative;
  margin-top: 115px;
  z-index: 2;
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;

  /* Color base tipo Montrek */
  background: linear-gradient(
    180deg,
    #c7f000,
    #8bd100,
    #5fae00
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  text-transform: uppercase;
}



/* Animación suave de fondo */
@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
    margin-top: 85px;
  }
}


/* ===================================
   INTRO SECCIÓN
=================================== */
.intro-section {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  background-color: #fff;
}

.intro-content {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
}

.intro-text h2 {
  font-size: 4.5rem;
  font-weight: 700;
  color: #222;
}

.intro-text span {
  color: #6161ff;
}

.intro-logo img {
  width: 300px;
}

/* ===================================
   SECCIÓN NOSOTROS
=================================== */
.about-section {
  padding: 100px 40px;
  display: flex;
  justify-content: center;
  background-color: #f8f8ff;
}

.about-content {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.about-img img {
  width: 450px;
  border-radius: 50%20%/10%40%;
}

.about-text {
  max-width: 500px;
}

.about-text h2 {
  color: #000;
  margin-bottom: 15px;
  font-size: 3.5rem;
  font-family: 'Times New Roman', Times, serif;
}
.about-text span {
  color: #000000;
  font-family: 'Times New Roman', Times, serif;
  text-decoration: solid underline;
}

.about-text p {
  line-height: 1.6;
  color: #333;
    font-size: 1.5rem;
}


/* ===================================
   SERVICIOS (CARDS CON EFECTO HOVER)
=================================== */
.services-section {
  position: relative;
  width: 100%;
  min-height: 100vh; /* La sección ocupará toda la altura de la ventana */
  overflow: hidden;
  
}

.services-section .video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Ocupa toda la sección */
  object-fit: cover; /* Mantiene proporción y cubre toda la sección */
  z-index: 0;
}

.services-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.services-section .container {
  position: relative;
  z-index: 2;       /* Para que el contenido quede encima del video */
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra todo horizontalmente */
  justify-content: center;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.services-section {
  padding: 100px 20px;
  background-color: transparent; /* ✅ Deja ver el video */
  text-align: center;
  position: relative;
  z-index: 1;
}

.section-title {
  color: #fff; 
  transform: translateY(-100px);
  font-size:  2.5rem;

  
}



.cards-grid {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 60px; /* Más espacio entre las cards */
  position: relative;
}

/* Contenedor de cada tarjeta */
.card-container {
  position: relative;
  width: 320px;   /* Más grande */
  height: 420px;  /* Más grande */
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
  opacity: 1;
  border-radius: 12px;
  overflow: visible;
  pointer-events: auto;
  will-change: transform;
}

.card-container::before {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(-45deg, #6161ff 0%, #00bfff 100%);
  transform: scale(0.96);
  filter: blur(20px);
}

/* Tarjeta base */
.card {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  position: relative;
  background: rgba(97, 97, 255, 0.656);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease;
  backface-visibility: hidden;
}

/* Título siempre visible */
.title-top {
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  padding: 12px 5px; /* Más espacio vertical */
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  position: relative;
  z-index: 2;
}

/* Imagen de la card */
.card .img-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(-45deg, #7a7aff 0%, #6161ff 100%);
  transition: transform 600ms ease, filter 700ms ease;
  border-radius: 50%20%/10%40%;
}

.card .img-content img {
  width: 75%; /* Imagen un poco más grande */
  height: auto;
  transition: opacity 600ms ease, transform 600ms ease;
}

/* Contenido oculto */
.card .content {
  position: absolute;
  top: 60px; /* Ajuste para que no choque con el título */
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px;
  text-align: center;
  color: #fff;
  opacity: 0;
  transform: translateY(18px);
  transition: all 400ms cubic-bezier(.2,.9,.2,1);
  pointer-events: none;
}

.card .content p {
  font-size: 15.5px;
  line-height: 1.5;
  margin: 0;
}

/* Efectos al pasar el mouse */
.card-container:hover .content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.card-container:hover .img-content {
  transform: scale(2.4) rotate(18deg);
  filter: blur(6px);
}

.card-container:hover .img-content img {
  opacity: 0;
}

/* ===================================
   GALERÍA
=================================== */
/* ==== Collage Section ==== */
.gallery-section {
  width: 100%;
  background-color: #fff;
  color: #000000;
  padding: 60px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.gallery-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.section-title2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1c1c6d
}
/* === Collage 3x3 === */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  width: 80vmin;
  height: 80vmin;
  transition: all 0.3s ease-in-out;
}

.item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.item img,
.item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) blur(0.5px);
  transition: all 0.4s ease;
  cursor: pointer;
  display: block;
}

.item:hover img,
.item:hover video {
  filter: grayscale(0%) blur(0);
  transform: scale(1.1);
}

.item:hover {
  z-index: 10;
  transform: scale(1.5);
  box-shadow: 0 0 20px rgba(50, 145, 183, 0.6);
  border: 2px solid #6161ff;
}

/* Efecto de enfoque */
.gallery:hover .item:not(:hover) {
  opacity: 0.4;
  transform: scale(0.9);
}

/* === CTA === */
.gallery-cta {
  text-align: center;
}

.gallery-cta p {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.gallery-cta span {
  color: #6161ff;
  font-weight: bold;
}

.button {
  background-color: #6161ff; /* Azul */
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.button:hover {
  background-color: #ff4040; /* Rojo más intenso */
  transform: scale(1.05);
  color: #fff;
}

.svg i {
  font-size: 1rem;
  color: #fff;
}

.button .text {
  font-size: 1rem;
  color: #fff;
}


/* === Responsive === */
@media (max-width: 768px) {
  .gallery {
    width: 90vw;
    height: 90vw;
    gap: 6px;
  }

  .item:hover {
    transform: scale(1.2);
  }

  .gallery-cta p {
    font-size: 1.4rem;
  }
}


.button {
  background-color: #6161ff;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s;
}

.button:hover {
  background-color: #ff4c4c;
}

/* ===================================
   FOOTER
=================================== */
.site-footer {
  width: 100%;
  background: #0a2f4f;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

.site-footer small {
  font-size: 13px;
}

/* Texto descriptivo al hover */
.item::after {
  content: attr(data-description);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.9rem;
  text-align: left;
  padding: 8px;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Modal / Lightbox */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.95);
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.modal.active {
  display: flex;
}

.modal-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  max-width: 1000px;
  width: 90%;
}

.modal-media img,
.modal-media video {
  width: 500px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.modal-text {
  flex: 1;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.5;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #ff4040;
}

/* Responsivo */
@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
  }

  .modal-media img,
  .modal-media video {
    width: 100%;
  }
}



/* ===================================
   RESPONSIVE AJUSTES
=================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .about-img img {
    width: 100%;
  }
  .intro-content, .about-content, .cards-grid {
    flex-direction: column;
  }
}

/* ===================================
   AJUSTES PARA PANTALLAS GRANDES
=================================== */

/* Contenedores principales */
.container {
  max-width: 1400px; /* un poco más ancho para pantallas grandes */
  padding: 20px 60px; /* mayor padding lateral */
}

/* Secciones principales */
.intro-section,
.about-section,
.services-section,
.gallery-section {
  padding-left: 60px;
  padding-right: 60px;
}

/* Ajustes hero-video */
.hero-video {
  width: 100vw; /* ancho completo de pantalla */
  max-width: 100%;
}

