/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
  font-size: 16px;
  /* base para rem */
  max-width: 100vw;
  overflow-x: hidden;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.9);
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  margin: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 150px;
}

.logo img {
  width: 190px;
  height: 50px;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.logo img:hover {
  transform: scale(1.05);
  animation: none;
}




nav ul li a {
  text-decoration: none;
  color: #0a2f4f;
  font-weight: 600;
  transition: color 0.3s, transform 0.3s;
  font-size: 1rem;
}

nav ul li a:hover {
  color: #6161ff;
  transform: translateY(-2px);
}

/* Marquee */
.marquee {
  position: relative;
  top: -15px;
  left: 0;
  width: 100%;
  background: #6161ff;
  color: #fff;
  padding: 0.7rem 5%;
  font-weight: 600;
  overflow: hidden;
  z-index: 2000;
  font-size: 1rem;
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero-video {
  transition: border-radius 0.3s ease;
}

.hero-text {
  position: absolute;
  color: white;
  text-align: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 150px;
  /* para que no tape el video */
}

.hero-overlay h1 {
  font-size: 6vw;
  color: white;
  text-align: center;
  max-width: 90%;
  word-wrap: break-word;
}

.hero-overlay h2 {
  font-size: 3vw;
  color: white;
  text-align: center;
  max-width: 90%;
  word-wrap: break-word;
}

/* HERO 2*/
/* Sección de video en pantalla completa */
.video-container1 {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cards-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cards-wrapper {
  width: min(1100px, 95%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-title {
  color: #fff;
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
}

/* Grid 3x2 alineado perfecto */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 1.5rem;
  justify-content: center;
  place-items: center;
  pointer-events: auto;
}

/* Card base */
.card-container {
  width: 280px;
  height: 280px;
  position: relative;
  border-radius: 12px;
  overflow: visible;
  opacity: 0;
  transform: translateY(40px);
  transition: all 700ms cubic-bezier(.2,.9,.2,1);
  will-change: transform, opacity;
  pointer-events: auto;
}

.card-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-container::before {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(-45deg, #f89b29 0%, #ff0f7b 100%);
  transform: scale(0.96);
  filter: blur(20px);
}

.card {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  position: relative;
}

.title-top {
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  padding: 10px 5px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  position: relative;
  z-index: 2;
}

.card .img-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(-45deg, #f89b29 0%, #ff0f7b 100%);
  transition: transform 600ms ease, filter 700ms ease;
}

.card .img-content img {
  width: 70%;
  height: auto;
  transition: opacity 600ms ease, transform 600ms ease;
}

.card .content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: #fff;
  opacity: 0;
  transform: translateY(18px);
  transition: all 400ms cubic-bezier(.2,.9,.2,1);
  pointer-events: none;
}

.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;
}

/* Responsivo */
@media (max-width: 992px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
}


/* Nosotros */
.about {
  text-align: center;
}

.about h2 {
  font-size: 4vw;
  margin-bottom: 1rem;
  color: #6161ff;
}

.about p {
  max-width: 90%;
  margin: 0 auto;
  font-size: 1rem;
  color: #555;
}

.about .stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3vw;
  flex-wrap: wrap;
}

.about .stats div h3 {
  font-size: 2.2rem;
  color: #6161ff;
  margin-bottom: 0.3rem;
}

.negocio-box ul {
  list-style: disc;
  text-align: left;
  padding-left: 1.5rem;
}

/* Servicios */
.services {
  background: #f9f9f9;
  padding: 6vw 5%;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.services h2 {
  font-size: 3vw;
  color: #6161ff;
  margin-bottom: 3vw;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s, box-shadow 0.4s;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.service-card i {
  font-size: 2rem;
  color: #0001c2;
  margin-bottom: 15px;
  display: block;
}

/* Partners */
.partners {
  padding: 4vw 5%;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.partners h2 {
  font-size: 3vw;
  color: #6161ff;
  margin-bottom: 2.5rem;
}

.partner-logos {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2.5vw;
}

.partner-logos img {
  max-width: 20%;
  height: auto;
  transition: transform 0.3s;
  max-height: 1000px;
  object-fit: contain;
}

.partner-logos img:hover {
  transform: scale(1.05);
}

/* ==== Contacto ==== */
.contact {
  padding: 70px 5%;
  background: #f9f9f9;
  color: #333;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Columna izquierda */
.contact-left h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #6161ff;
  margin-bottom: 25px;
}

.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);
}

/* Columna derecha */
.contact-right {
  flex: 1;
  min-width: 280px;
}

.company-info p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #444;
}

.company-info i {
  color: #6161ff;
  font-size: 1.2rem;
}

/* Google Maps */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* ==== Responsivo ==== */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .social-icons {
    justify-content: center;
  }

  .company-info p {
    justify-content: center;
  }
}


/* Footer */
footer {
  background: #0a2f4f;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  width: 100%;
  font-size: 0.9rem;
}

/* 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;
}

/* Media Queries para móviles y tablets */
@media (max-width: 1024px) {
  .hero-overlay h1 {
    font-size: 8vw;
  }

  .hero-overlay h2 {
    font-size: 4vw;
  }

  .logo img {
    max-width: 180px;
    max-height: 100px;
  }

  .about h2 {
    font-size: 5vw;
  }

  .services h2 {
    font-size: 5vw;
  }

  .partner-logos img {
    max-width: 25%;
    max-height: 70px;
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .header-container {
    padding: 0.5rem 5%;
  }

  .hero-overlay {
    padding-top: 15vh;
    padding-left: 3%;
    padding-right: 3%;
  }

  .about,
  .services,
  .partners,
  .contact {
    padding: 6vw 5%;
  }

  .partner-logos img {
    max-width: 30%;
    max-height: 60px;
  }
}


/* Menú normal en pantallas grandes */
nav ul.Menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav ul.Menu li a {
  text-decoration: none;
  color: #000000;
  font-weight: 500;
}
nav ul.Menu li a:hover {
  color: #6161ff;
  background: #eee;
}

/* Menú hamburguesa - solo en pantallas pequeñas */
@media (max-width: 768px) {
  nav ul.Menu {
    display: none; /* oculto por defecto */
    flex-direction: column;
    gap: 0; /* los elementos sin espacio extra */
    background: #fff;
    position: absolute;
    top: 60px; /* justo debajo del header */
    left: 0;
    width: 100%; /* ocupa todo el ancho */
    padding: 0;
    margin: 0;
    border-top: 1px solid #eee;
    z-index: 1500;
  }

  nav ul.Menu.active {
    display: flex; /* se muestra en forma de lista vertical */
  }

  nav ul.Menu li a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    color: #0a2f4f;
    font-weight: 500;
    text-decoration: none;
  }
  nav ul.Menu li a:hover {
    color: #6161ff;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1600;
  }

  .menu-toggle div {
    width: 100%;
    height: 3px;
    background: #0a2f4f;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Animación "X" */
  .menu-toggle.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active div:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active div:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* Ocultar botón hamburguesa en pantallas grandes */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  nav ul.Menu {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
  }
}
