/* === ESTILOS GENERALES DEL BODY === */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url('../img/fondoGeneral1.jpg') no-repeat center/cover fixed; /* Combinado propiedades background */
    height: 70vh;
    display: block;
  }
  
  /* === HEADER ESTILOS GENERALES === */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
  }
  
  /* === NAVBAR === */
  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 30px;
    height: 90px;
  }
  
  .logo {
    display: flex;
    align-items: center;
  }
  
  .logo img {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  }
  
  /* === MENÚ NORMAL (ESCRITORIO) === */
  nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  nav ul li {
    margin: 0 25px;
    position: relative;
  }
  
  nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 8px rgba(255, 255, 255, 0.3);
    transition: color 0.3s, text-shadow 0.3s; /* Combinado transiciones */
  }
  
  nav ul li a:hover {
    color: #ffcc00;
    text-shadow: 5px 5px 15px rgba(255, 204, 0, 0.8);
  }
  
  /* Línea decorativa debajo de cada enlace */
  nav ul li::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: #ffcc00;
    margin-top: 5px;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; /* Combinado transiciones */
  }
  
  nav ul li:hover::after {
    opacity: 1;
    transform: scaleX(1);
  }
  
  /* === MENÚ HAMBURGUESA === */
  .menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 30px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1500;
  }
  
  .menu-toggle div {
    width: 100%;
    height: 5px;
    background: #000;
    border-radius: 5px;
    transition: all 0.4s ease;
  }
  
  /* Animación para convertir en "X" */
  .menu-toggle.active div:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  
  .menu-toggle.active div:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active div:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  
  /* === ÍCONO DEL MENÚ === */
  .menu-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    transition: transform 0.3s ease;
  }
  
  .menu-icon:hover {
    transform: scale(1.1);
  }
  
  .icon-item {
    margin-top: 20px;
  }
  
  /* === RESPONSIVIDAD MENÚ E ÍCONOS === */
  @media (max-width: 768px) {
    nav ul {
      display: flex;
      flex-direction: column;
      position: fixed;
      top: 0;
      right: -1000vw;
      width: 70%;
      height: 100vh;
      background: rgba(0, 0, 0, 0.8);
      text-align: center;
      padding-top: 80px;
      z-index: 1000;
      transition: right 0.5s ease-in-out;
    }
  
    nav ul.active {
      right: -77vw;
    }
  
    nav ul li {
      margin: 20px 0;
      list-style: none;
    }
  
    nav ul li a {
      color: #fff;
      font-size: 18px;
      font-weight: bold;
      transition: color 0.3s ease;
    }
  
    nav ul li a:hover {
      color: #f8b400;
    }
  
    .menu-toggle {
      display: flex;
    }
  
    .menu-icon {
      width: 40px;
      height: 40px;
    }
  
    .icon-item {
      margin: 30px 0;
    }
  }
  
  /* === VIDEO CONTAINER === */
  .container40 {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }
  
  .container40 video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  /* Texto superpuesto */
  .overlay1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 50px;
    text-align: center;
    font-size: 25px;
    font-weight: bold;
    color: #fff;
    font-family: Arial, sans-serif;
  }
  
  /* Líneas decorativas alrededor del texto */
  .overlay1::before,
  .overlay1::after {
    content: "===================";
    display: block;
    font-size: 28px;
    margin: 2px 0;
    color: #000;
  }
  
  /* RESPONSIVIDAD VIDEO */
  @media (max-width: 768px) {
    .container40 {
      height: 70vh;
    }
  
    .overlay1 {
      font-size: 20px;
      padding: 30px;
    }
  }
  
  @media (max-width: 480px) {
    .container40 {
      height: 70vh;
    }
  
    .overlay1 {
      font-size: 18px;
      padding: 20px;
    }
  }
  
  /* === FORMULARIO Y CONTACTO === */
  .container10 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 20px;
  }
  
  .contact-box {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    max-width: 1000px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
  }
  
  .contact-form, .contact-info {
    flex: 1;
    padding: 30px;
    min-width: 300px;
    box-sizing: border-box;
  }
  
  .contact-form {
    background: #fff;
    width: 100%;
  }
  
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: calc(100% - 20px);
    max-width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #000;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
  }
  
  .contact-form button {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s, color 0.3s; /* Combinado transiciones */
  }
  
  .contact-form button:hover {
    background: #ff8400;
    color: #000;
  }
  
  .contact-info {
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
  }
  
  .contact-info h2, .contact-info h3 {
    margin-bottom: 10px;
    text-transform: uppercase;
  }
  
  .contact-info a {
    color: #fff;
    text-decoration: none;
  }
  
  .contact-info a:hover {
    text-decoration: underline;
  }
  
  /* RESPONSIVIDAD FORMULARIO */
  @media (max-width: 768px) {
    .contact-box {
      flex-direction: column;
      align-items: center;
      width: 100%;
      max-width: 95%;
    }
  
    .contact-form, .contact-info {
      width: auto;
      padding: 20px;
    }
  
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
      font-size: 14px;
      padding: 10px;
      width: calc(100% - 10px);
    }
  
    .contact-form textarea {
      height: 100px;
    }
  
    .contact-form button {
      font-size: 14px;
      padding: 10px;
    }
  }
  
  /* === MAPAS === */
  .map-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
  }
  
  .map-item {
    width: 45%;
    max-width: 700px;
    text-align: center;
  }
  
  .map-item h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  .map-item iframe {
    width: 100%;
    height: 350px;
    border: 0;
  }
  
  @media (max-width: 768px) {
    .map-container {
      flex-direction: column;
      align-items: center;
    }
  
    .map-item {
      width: 100%;
    }
  
    .map-item iframe {
      height: 250px;
    }
  }
  
  /* === SECCIÓN GALERÍA === */
  .section1 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: 100vh;
    background: #111;
    padding: 20px;
  }
  
  section {
    display: flex;
    gap: 5px;
    width: 90%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  }
  
  section img {
    width: 0;
    flex-grow: 1;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.5s ease-in-out;
    min-height: 100%;
    border-radius: 10px;
    border: 3px solid rgba(255, 255, 255, 0.2);
  }
  
  section img:hover {
    cursor: pointer;
    width: 300px;
    opacity: 1;
    filter: contrast(120%) brightness(1.1);
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
  }
  
  @media (max-width: 768px) {
    section {
      width: 100%;
      height: 350px;
    }
  
    section img {
      flex-grow: 1;
      width: 0;
      min-height: 100%;
    }
  
    section img:hover {
      width: 200px;
    }
  }