* {
  box-sizing: border-box;
}

:root {
  --primary-color: #d4af37;
  --primary-dark: #b8941f;
  --primary-metallic: #c9b037;
  --secondary-color: #ffd700;
  --accent-gold: #f4d03f;
  --bg-black: #0a0a0a;
  --bg-dark: #1a1a1a;
  --bg-darker: #2a2a2a;
  --text-dark: #1a1a1a;
  --text-light: #4a4a4a;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --border-color: #d4af37;
  --border-dark: #333;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 8px rgba(212, 175, 55, 0.2);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.4), 0 0 12px rgba(212, 175, 55, 0.3);
  --shadow-xl: 0 8px 16px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.4);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  padding: 0;
  margin: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 50%, #2a2a2a 100%);
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.5;
}

#content {
  scroll-behavior: smooth;
  margin-top: 50px;
  font-family: inherit;
}

nav {
  background: var(--bg-black);
  backdrop-filter: blur(10px);
  color: var(--text-dark);
  padding: 0;
  text-align: center;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  border-bottom: 2px solid var(--border-color);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

nav ul li {
  display: inline-block;
  margin: 0 5px;
}

nav ul li:last-child {
  margin-right: 0;
}

.active a {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--bg-black);
  border-radius: 2px;
  font-weight: 600;
}

nav a {
  text-decoration: none;
  display: inline-block;
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  transition: all 0.3s ease;
  border-radius: 2px;
  position: relative;
}

nav a:hover {
  background-color: var(--bg-darker);
  color: var(--secondary-color);
}

video {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

video:not(:hover) {
  /* display: none; */
}

.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 25px auto;
  padding: 0 20px;
}

.video-thumbnail {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-thumbnail:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.video-thumbnail:hover video {
  transform: scale(1.05);
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 30px 20px 20px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.video-thumbnail:hover .video-overlay {
  transform: translateY(0);
}

.video-overlay h3 {
  margin: 0 0 5px 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
}

.video-overlay p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

section {
  max-width: 1000px;
  padding: 30px 30px;
  margin: 20px auto;
  background: var(--bg-white);
  border-radius: 2px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h2 {
  width: auto;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 8px;
  margin-bottom: 20px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--secondary-color);
}

#section1 {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 50%, #2a2a2a 100%);
  color: white;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  padding: 50px 30px;
  border: 2px solid var(--border-color);
}

#section1::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url(img/yo.png) no-repeat;
  background-size: contain;
  background-position: center right;
  opacity: 0.15;
  z-index: 0;
}

#section1 > * {
  position: relative;
  z-index: 1;
}

#section1 h2 {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

#section1 h2::after {
  background: var(--secondary-color);
}

#section1 span {
  display: inline-block;
  width: 100px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

#section1 .hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#section1 .subtitle {
  text-align: left;
  padding-top: 0;
  padding-right: 0;
  margin-bottom: 0;
}

#section1 .subtitle h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

#section1 .subtitle p {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

#section1 .contact-info {
  background: rgba(212, 175, 55, 0.1);
  backdrop-filter: blur(10px);
  padding: 15px;
  border-radius: 2px;
  border: 1px solid var(--border-color);
}

#section1 img {
  display: none;
}

#section1 p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

#section1 a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

#section1 a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.bloque {
  padding: 15px 0;
  border-bottom: 1px solid var(--border-dark);
  transition: all 0.3s ease;
}

.bloque:hover {
  background: var(--bg-light);
  margin: 0 -15px;
  padding: 15px 15px;
  border-radius: 2px;
  border-left: 3px solid var(--primary-color);
}

.bloque:last-child {
  border-bottom: none;
}

.bloque h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.bloque h3::before {
  content: '▸';
  color: var(--secondary-color);
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.bloque p {
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 8px;
  padding-left: 20px;
  font-size: 0.95rem;
}

.bloque > *:not(h3) {
  padding-left: 20px;
}

#video1modal, 
#video2modal, 
#video3modal {
  border-radius: 2px;
  padding: 0;
  max-width: 900px;
  height: 90%;
  overflow: hidden;
  position: fixed;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  background: var(--bg-white);
}

.modal .content {
  overflow-y: auto;
  box-sizing: border-box;
  height: calc(100% - 70px);
  padding: 20px;
}

.modal .content video {
  width: 100%;
  border-radius: 2px;
  margin-bottom: 15px;
  border: 1px solid var(--border-dark);
}

.modal .content p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 15px;
}

#video1modal button, 
#video2modal button , 
#video3modal button  {
  transition: all 0.3s ease;
  cursor: pointer;
  position: absolute;
  top: 12px;
  right: 12px;
  border: 2px solid var(--border-color) !important;
  background: var(--primary-color);
  color: var(--bg-black);
  border-radius: 2px;
  width: 35px;
  height: 35px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: var(--shadow-md);
  font-weight: bold;
}

#video1modal button:hover, 
#video2modal button:hover , 
#video3modal button:hover {
  background: var(--secondary-color);
  color: var(--bg-black);
  transform: rotate(90deg);
  border: 2px solid var(--secondary-color) !important;
}

#video1modal h2, 
#video2modal h2, 
#video3modal h2 {
  border: none;
  padding: 20px 20px 0 20px;
  margin: 0;
  background: linear-gradient(135deg, var(--bg-black) 0%, var(--bg-darker) 100%);
  color: var(--primary-color);
  border-bottom: 2px solid var(--border-color);
}

#video1modal h2 a, 
#video2modal h2 a, 
#video3modal h2 a {
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  color: var(--primary-color);
  padding: 0;
  margin: 0;
  width: auto;
  border-radius: 0;
}

#video1modal h2 a:hover, 
#video2modal h2 a:hover , 
#video3modal h2 a:hover  {
  color: var(--secondary-color);
  text-decoration: underline;
}

#backdrop {
  display: none;
  position: fixed;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 2;
}

#section5 h3 a {
  text-decoration: none;
  color: var(--bg-black);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  margin-top: 0px;
  padding: 6px 12px;
  border-radius: 2px;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  font-weight: 600;
}

#section5 h3 a:hover {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  box-shadow: var(--shadow-md);
}

#section5 .item { 
  clear: both;
  margin-bottom: 20px;
  padding: 15px;
  background: var(--bg-light);
  border-radius: 2px;
  border: 1px solid var(--border-dark);
  transition: all 0.3s ease;
}

#section5 .item:hover {
  background: white;
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
  transform: translateX(3px);
}

.bloque {
  clear: both;
}

#section5 .item img {
  width: 200px;
  height: auto;
  margin: 0 15px 15px 0;
  float: left;
  border-radius: 2px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-dark);
  transition: transform 0.3s ease;
}

#section5 .item:hover img {
  transform: scale(1.05);
}

#section5 .item h3 {
  margin-top: 0;
  color: var(--text-dark);
}

  #section5 .item iframe {
  border-radius: 2px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-dark);
  width: 100%;
  max-width: 640px;
  height: auto;
  min-height: 360px;
}

/* Mejoras adicionales */
a {
  transition: all 0.3s ease;
}

section p {
  color: var(--text-dark);
  line-height: 1.8;
}

section hr {
  border: none;
  border-top: 1px solid var(--border-dark);
  margin: 20px 0;
}

/* Small screens (e.g., mobile phones) */
@media (max-width: 767px) {
  body {
    width: 100%;
    font-size: 16px;
  }

  #section1 {
    padding: 40px 20px;
    text-align: center;
  }

  #section1 span {
    display: block;
    width: auto;
    font-weight: bold;
    margin-bottom: 5px;
  }

  #section1 .subtitle {
    text-align: center;
    font-size: 1.2rem;
  }
  
  #content {
    width: 100%;
    padding: 0;
  }

  section {
    padding: 20px 15px;
    margin: 15px 10px;
    border-radius: 2px;
  }

  h2 {
    font-size: 1.5rem;
  }

  nav ul {
    padding: 10px 0;
  }

  nav ul li {
    margin: 5px 2px;
  }

  nav a {
    padding: 8px 12px;
    font-size: 12px;
  }

  .video-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .bloque {
    padding: 20px 0;
  }

  .bloque:hover {
    margin: 0 -10px;
    padding: 20px 10px;
  }

  #section5 .item {
    padding: 15px;
  }

  #section5 .item img {
    width: 100%;
    float: none;
    margin: 0 0 15px 0;
  }

  #section1 .subtitle h1 {
    font-size: 2rem;
  }

  #section1 .subtitle p {
    font-size: 1.2rem;
  }

  .bloque h3::before {
    display: none;
  }

  .bloque > *:not(h3) {
    padding-left: 0;
  }

  #vimeo {
    width: 100%;
    min-height: 200px;
  }

  #video1modal, 
  #video2modal, 
  #video3modal {
    width: 95%;
    height: 85%;
    margin: auto;
  }

  .modal .content {
    padding: 20px;
  }
}
