/* =======================================
   RESET Y CONFIGURACIÓN GLOBAL
======================================= */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: rgb(98, 135, 181);
  height: 100%;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* =======================================
   ESTILOS GENERALES
======================================= */
a {
  text-decoration: none;
  color: white;
  text-decoration: underline;
}

h1 {
  font-size: 3.5rem;
  text-align: center;
  text-transform: uppercase;
  color: #6e6e6e;
}

h3 {
  text-decoration: underline;
}

.grey {
  color: #494949;
}

.azul {
  color: #626262;
}

.white {
  color: white;
}

.tc {
  text-align: center;
}

.up {
  text-transform: uppercase;
  font-weight: bold;
  color: #000000;
}

.t1 { font-size: 1.5rem; }
.t2 { font-size: 2rem; }
.t3 { font-size: 3rem; }
.t4 { font-size: 4rem; }

.pad1 { width: 200px; padding-left: 3rem; }
.pad2 { width: 500px; padding-top: 2rem; padding-right: 2rem; }
.padin { padding-top: 3rem; }

.backazul { font-family: inherit; }

.backcolor {
  background-color: #dfdfde;
  padding: 2rem;
  width: 80%;
  margin: 0 auto;
}

.twocol {
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
}

.cont { width: 800px; }

.video_fondo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =======================================
   NAV
======================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 96%;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.4);
  color: white;
  z-index: 10;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav a:hover {
  color: #ffcc00;
}

.logo {
  width: 90px;
  height: 50px;
}

/* HAMBURGUESA */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 25px;
  justify-content: space-between;
}
.hamburger span {
  display: block;
  height: 4px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* =======================================
   CARRUSEL
======================================= */
.carrusel {
  width: 100%;
  max-width: 1200px;
  height: 700px;
  margin: 50px auto;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  position: relative;
}

.carrusel-inner {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.carrusel-inner img {
  width: 300px;
  height: 700px;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.imagen-fija {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  z-index: 10;
}

/* =======================================
   SECCIONES
======================================= */
.sec1 { background-color: rgb(248, 248, 248); padding: 1rem; }
.sec2 { background-color: rgb(248, 248, 248); display: flex; justify-content: center; align-items: center; flex-direction: column; padding-top: 1rem; }
.sec3 { background-color: #737373; width: 80%; margin: 0 auto; }
.secbrow { background-color: #6C6D76; padding-top: 2rem; }

/* =======================================
   CUBOS Y PARALELOGRAMO
======================================= */
.cubo1 {
  background-color: rgb(76, 154, 214);
  background: linear-gradient(45deg, #2a8db0, #2a8db0);
  height: auto;
  width: 75%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  color: white;
}

.paralelogramo {
  background-color: #2E6BE3;
  display: inline-block;
  padding: 20px 60px;
  transform: skew(-60deg);
  color: white;
  width: 80%;
  text-align: center;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.paralelogramo p {
  margin: 0;
  transform: skew(60deg);
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
}

.line {
  width: 100%;
  height: 4px;
  margin: 60px auto;
  background: repeating-linear-gradient(to right, #2E6BE3 0 30px, transparent 30px 50px);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* =======================================
   CARDS
======================================= */
.card {
  width: 410px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  color: white;
  border: 1px solid #a7bfcb;
  margin-left: 1rem;
  margin-bottom: 2rem;
  justify-content: space-evenly;
}

.img_card { padding: 1rem 1rem 0 1rem; }
.trecard { display: flex; flex-wrap: wrap; justify-content: center; }

/* =======================================
   FOOTER
======================================= */
.footer {
  background-color: #494949;
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: white;
  flex-wrap: wrap;
}

.logof { width: 300px; height: auto; margin-top: 1rem; }

.fot {
  color: white;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  padding-right: 8rem;
  justify-content: space-between;
}

.redes {
  width: 300px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-right: 1rem;
}

.sep { padding-right: 3rem; }
.icon { width: 50px; height: 50px; }

/* =======================================
   RESPONSIVE
======================================= */
@media screen and (max-width: 992px) {

  .nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(0,0,0,0.9);
    padding: 20px;
    border-radius: 10px;
    gap: 15px;
    z-index: 15;
  }

  .nav ul.active {
    display: flex;
  }

  .hamburger { display: flex; }

  .twocol, .trecard { flex-direction: column; align-items: center; }

  .card { width: 90%; flex-direction: column; text-align: center; }

  .carrusel { height: auto; }

  .carrusel-inner img, .imagen-fija { width: 80vw; height: auto; }

  .pad1, .pad2, .cont { width: 90%; padding: 1rem; }

  .sec3 { width: 95%; }

  .footer { flex-direction: column; align-items: center; height: auto; gap: 1rem; padding: 2rem 0; }

  .redes { width: 70%; justify-content: space-around; margin: 0; }
}
