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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

header {
  background: #000;
  color: #fff;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo {
  height: 50px;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: url('../img/banner.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  color: #fff;
  padding: 2rem 18%;
  opacity: 0;
  animation: fadeIn 2s ease-in forwards;
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: #007BFF;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background 0.3s;
}

.btn:hover {
  background: #0056b3;
}

.section {
  padding: 3rem 0;
}

.bg-light {
  background: #f9f9f9;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

form {
  display: grid;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}

form input, form textarea {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
}

form button {
  cursor: pointer;
  border: none;
}

footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

/* Extra style if you want button with banner background */
.btn-banner {
  display: inline-block;
  background: url('../img/banner.jpg') no-repeat center center/cover;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
}

/* Fade-in effect for hero */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll to Top Button */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  background-color: orange;
  color: white;
  border: none;
  outline: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: darkorange;
}

/* Highlight Section */
.highlight {
  background: #f0f0f0;
  padding: 3rem 1rem;
  text-align: center;
}

.highlight h2 {
  font-size: 3.5rem;
  color: #0a2a66;
  font-weight: bold;
}

/* About Section - Split Layout */
.about-section {
  display: flex;
  flex-wrap: wrap;
  min-height: 500px;
}

.about-left,
.about-right {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #fff;
  overflow: hidden;
}

/* Background images for each side */
.about-left {
  background: url('../img/gallery2.jpg') no-repeat center center/cover;
  text-align: left;
}

.about-right {
  background: url('../img/gallery1.jpg') no-repeat center center/cover;
}

/* Solo oscurecer fondo */
.about-left::before,
.about-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
  pointer-events: none;
}

/* Contenido encima del fondo oscuro */
.about-left .about-text,
.about-right .about-video {
  position: relative;
  z-index: 1;
}

/* Text styling */
.about-left h2,
.about-right h2 {
  font-size: 1.8rem;
  line-height: 1.6;
  color: #fff;
  margin: 0;
  max-width: 600px;
}

/* Video styling */
.about-video {
  max-width: 90%;
}

.about-video video {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0px 5px 20px rgba(0,0,0,0.4);
}

/* Animaciones de entrada */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1s ease, transform 1s ease;
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Estado inicial oculto */
.about-left,
.about-right {
  opacity: 0;
}

/* Animación izquierda */
.fade-in-left {
  animation: fadeInLeft 1.2s ease-out forwards;
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animación derecha */
.jump-in {
  animation: jumpIn 1.3s ease-out forwards;
}

@keyframes jumpIn {
  60% {
    opacity: 1;
    transform: translateY(-20px) scale(1.05);
  }
  80% {
    transform: translateY(10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Posiciones iniciales antes del trigger */
.about-left {
  transform: translateX(-100px);
}

.about-right {
  transform: translateY(100px) scale(0.9);
}
/* About2 Section */
#about2 {
  display: flex;
  flex-wrap: wrap;
  min-height: 500px; /* igual que about */
}

/* Reaprovechamos las clases generales */
#about2 .about-left,
#about2 .about-right {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
  color: #fff;
}

/* About2 Section */
#about2 {
  display: flex;
  flex-wrap: wrap;
  min-height: 500px; /* altura mínima */
}

/* Lados izquierdo y derecho */
#about2 .about-left,
#about2 .about-right {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
  color: #fff;
  min-height: 500px; /* asegura que ambos lados tengan la misma altura */
}

/* About2 Section */
#about2 {
  display: flex;
  flex-wrap: wrap;
  min-height: 500px;
}

/* Lados izquierdo y derecho de About2 */
#about2 .about2-left,
#about2 .about2-right {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
  color: #fff;
  min-height: 500px;
  opacity: 1; /* Se asegura que sea visible */
  transform: none; /* Se quitan los desplazamientos iniciales */
}

/* Fondos */
#about2 .about2-left {
  background: url('../img/gallery2.jpg') no-repeat center center/cover;
}

#about2 .about2-right {
  background: url('../img/gallery1.jpg') no-repeat center center/cover;
}

/* Overlay */
#about2 .about2-left .background-overlay,
#about2 .about2-right .background-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5); 
  z-index: 0;
}

/* Contenido encima del overlay */
#about2 .about2-left video,
#about2 .about2-right h2 {
  position: relative;
  z-index: 1;
}

/* Video */
#about2 .about-video video {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0px 5px 20px rgba(0,0,0,0.4);
}

/* Texto */
#about2 .about-text h2 {
  font-size: 1.8rem;
  line-height: 1.6;
  max-width: 600px;
  color: #fff;
  margin: 0;
  text-align: center;
}

/* About2 animaciones */
#about2 .slide-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 1s ease, transform 1s ease;
}

#about2 .slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

#about2 .slide-right {
  opacity: 0;
  transform: translateY(100px) scale(0.9);
  transition: opacity 1s ease, transform 1s ease;
}

#about2 .slide-right.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.about-video-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center; /* centra el texto y video */
}

.about-caption {
  margin-top: 12px;
  font-size: 22px;
  font-style: italic;
  color: #fff;
  font-weight: bold;
  text-align: center;
  background: rgba(0, 0, 0, 0.6); /* fondo oscuro semitransparente para resaltar */
  padding: 8px 12px;
  border-radius: 6px;
  position: relative; /* evita heredar opacidad */
  z-index: 2; /* lo pone por encima del overlay */
}
