/* ================================
   VARIABLES Y BASE GENERAL
================================ */
:root {
  --color-primary: #000;
  --color-secondary: #555;
  --bg-light: #fafafa;
  --border: #ddd;
  --font-main: 'Poppins', sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-primary);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--color-primary);
}

h3 {
  color: #111;
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

/* ================================
   PRESENTACIÓN DEL MÓDULO
================================ */
.module-intro {
  background: linear-gradient(180deg, #000000c7 0%, #000000d3 100%);
  color: #fff;
  text-align: center;
  padding: 120px 20px 100px;
  margin-bottom: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.module-intro h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.module-intro p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  color: #eee;
}

/* ================================
   TÍTULO DEL MÓDULO
================================ */
.module-title {
  text-align: center;
  font-size: 2.6rem;
  font-weight: 700;
  margin: 3rem auto 2rem;
  letter-spacing: 0.5px;
}

.module-title .size {
  font-size: 0.45em;
  margin-left: 6px;
  display: inline-block;
  transform: translateY(-3px);
  color: #000;
}

.module-title .unit {
  font-size: 0.7em;
  vertical-align: super;
  opacity: 0.8;
}

/* ================================
   GALERÍA
================================ */

.gallery {
  position: relative;
}

.gallery-wrapper {
  width: 100%;
  overflow: hidden;
}

.gallery-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.gallery-container::-webkit-scrollbar {
  display: none;
}

/* ⭐ OPCIÓN 1 (RECOMENDADA) – FOTOS MEDIANAS */
.gallery-container img {
  flex: 0 0 70%;
  width: 70%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #fff;
  scroll-snap-align: center;
  border-radius: 12px;
}

/* Flechas */
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  border: none;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.gallery-btn.prev { left: 10px; }
.gallery-btn.next { right: 10px; }

/* ================================
   FICHA TÉCNICA
================================ */
.info {
  max-width: 1300px;
  margin: 120px auto 0;
  padding: 0 50px 80px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}

.info-item {
  border-radius: 18px;
  padding: 25px 30px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.info-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* ================================
   CARACTERÍSTICAS PRINCIPALES
================================ */
.features {
  max-width: 1000px;
  margin: 100px auto 140px;
  padding: 70px 30px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  background: linear-gradient(90deg, #000, #555);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 25px;
}

.feature-list li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 35px;
  line-height: 1.8;
  font-size: 1.1rem;
  color: var(--color-secondary);
}

.feature-list li::before {
  content: "◆";
  position: absolute;
  left: 10px;
  color: #000;
  font-size: 0.8rem;
  opacity: 0.8;
}

.feature-description {
  font-size: 1.15rem;
  line-height: 1.9;
  text-align: center;
  max-width: 800px;
  margin: 50px auto 0;
  color: var(--color-primary);
}

/* ================================
   VIDEOS
================================ */
.video-gallery {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #fff;
  color: #000;
}

.video-gallery h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  border: none;
}

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  justify-items: center;
}

.video-card {
  background: #000;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.video-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0,0,0,0.5);
}

.video-card video {
  width: 100%;
  display: block;
}

/* ================================
   LIGHTBOX
================================ */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(50,50,50,0);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.4s ease, background-color 0.6s ease;
}

.lightbox.show {
  display: flex;
  opacity: 1;
  background: rgba(0,0,0,0.9);
}

.lightbox video {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(255,255,255,0.3);
  transition: transform 0.4s ease;
}

.lightbox.show video {
  transform: scale(1);
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s;
}

.close:hover {
  color: #ccc;
}

/* ================================
   CONTACTO
================================ */
.contacto {
  max-width: var(--container);
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.intro {
  text-align: center;
  margin-bottom: 3.5rem;
}

.intro h1 {
  font-size: 2.8rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.intro p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* FORMULARIO */
.form-section {
  display: flex;
  flex-wrap: wrap;
  gap: 3.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.form {
  flex: 1 1 500px;
  background: var(--light-gray);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: box-shadow var(--transition);
}

.form:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.field {
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

input,
textarea {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--black);
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border var(--transition), box-shadow var(--transition);
}

input:focus,
textarea:focus {
  border-color: var(--black);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

/* BOTÓN NEGRO LETRA BLANCA */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 240px;
  margin-top: 1.2rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  border: 2px solid #000;
  background-color: #2c2c2c;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #fff;
  color: #181818;
  border-color: #000;
}

.btn:active {
  transform: scale(0.98);
}

/* ================================
   ANIMACIONES DE APARICIÓN
================================ */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-hidden {
  opacity: 0;
  transform: translateY(40px);
}

.fade-visible {
  animation: fadeUp 1s ease-out forwards;
}
