* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
  color: #333;
  display: flex;
  flex-direction: column;
}

/* ---------- NAV ---------- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #333;
  padding: 15px 30px;
}

nav h1 {
  color: white;
  font-size: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #ffcc00;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
  overflow: hidden;
}

.hero h2 {
  font-size: 54px; 
  text-align: center;
  transform: translateY(-80px); 
}



.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.resaltado {
  color: #ffcc00; 
}



/* ---------- CARDS ---------- */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px;
  background-color: #e6f2ff;
}

.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 300px;
  overflow: hidden;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  margin-bottom: 10px;
}

.card-content p {
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- ASIDE ---------- */
.aside-container {
  display: flex;
  gap: 20px;
  margin: 40px 20px 68px 20px;
  flex-wrap: wrap;
}

.aside-box {
  flex: 1;
  padding: 20px;
  background-color: #f3f3f3;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 250px;
}

/* ---------- GALERÍA ---------- */
.gallery {
  padding: 40px;
  text-align: center;
}

.gallery h2 {
  margin-bottom: 20px;
}

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
}

.gallery-container img {
  width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.gallery-container img:hover {
  transform: scale(1.1);
}

/* ---------- BOTÓN VER MÁS ---------- */
.btn-ver-mas {
  display: inline-block;
  position: relative;
  padding: 14px 35px;
  background: linear-gradient(135deg, #ffcc00, #ff9900);
  color: #1a1a1a;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  overflow: hidden;
}

.btn-ver-mas:hover {
  background: linear-gradient(135deg, #ff9900, #ffcc00);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.btn-ver-mas:active {
  transform: scale(0.95);
}

.btn-ver-mas::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.4);
  transform: skewX(-25deg);
}

.btn-ver-mas:hover::before {
  animation: shine 0.75s forwards;
}

@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}

/* ---------- CONTACTO ---------- */
.contacto {
  padding: 40px 20px 80px 20px; 
  text-align: center;
}


.contacto h2 {
  margin-bottom: 15px;
}

.contacto p {
  margin-bottom: 25px;
}

.formulario {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
  gap: 15px;
}

.formulario label {
  font-weight: bold;
  text-align: left;
}

.formulario input,
.formulario textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.formulario button {
  margin-top: 10px;
  align-self: center;
}

/* ---------- FOOTER ---------- */
footer {
  background-color: #1a1a1a;
  color: white;
  padding: 40px 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1 1 200px;
  margin: 10px;
}

.footer-section h4 {
  margin-bottom: 15px;
  color: #ffcc00;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}


.footer-section ul li a {
  color: white;
  font-size: 14px; 
  text-decoration: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #ffcc00;
  text-decoration: underline;
}




.footer-bottom {
  text-align: center;
  margin-top: 20px;
  color: #ccc;
  font-size: 14px;
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  nav ul {
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95); 
    position: absolute;
    top: 60px;
    right: -220px; 
    width: 200px;
    border-radius: 8px;
    padding: 15px;
    text-align: right; 
    gap: 10px;
    transition: right 0.3s ease;
    z-index: 1000; 
  }

  nav.active ul {
    right: 20px; 
  }

  nav ul li a {
    display: block;
    text-align: right;
    color: white; 
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
  }

  nav ul li a:hover {
    color: yellow; 
  }

  nav ul li a.active {
    color: white; 
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    z-index: 1100; 
  }

  .hero {
    height: 100vh; 
    padding: 0 15px;
  }

  .hero h2 {
    font-size: 32px; 
    text-align: center;
    transform: translateY(-50px); 
  }

  .gallery-container img {
    width: 90%;
    height: auto;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }

  .formulario {
    width: 90%;
  }
  .contacto {
    height: 100vh;        
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    padding: 60px 20px 20px 20px; 
    box-sizing: border-box;
  }

  .contacto h2 {
    margin-bottom: 10px; 
  }
  .contacto p {
    margin-bottom: 20px; 
  }
}
