/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fondo de video */
#video-fondo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -2;
    object-fit: cover;
  
}

/* Capa oscura sobre el video */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: -1;
}

/* Contenido */
.contenido {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.795);
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.6);
}

/* Estilos para la imagen */
    .mi-imagen {
      width: 400px;          /* Ancho de la imagen */
      height: auto;          /* Altura automática para mantener proporción */
      border-radius: 15px;   /* Bordes redondeados */
      box-shadow: 0 4px 8px rgba(82, 81, 81, 0.3); /* Sombra */
      border: 2px solid #33333338; /* Borde */
      margin: 20px;          /* Margen alrededor */
     
    }

    .mi-imagen:hover {
      transform: scale(1.0); /* Efecto de zoom al pasar el ratón */
    }

.logo img {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

header h1 {
    font-size: 2rem;
    margin: 10px;
    flex-grow: 1;
    transition: color 0.3s ease;
}

header h1:hover {
    color: #ffcc00;
}

/* Buscador */
.buscador {
    display: flex;
    align-items: center;
}

.buscador input {
    padding: 8px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.buscador input:focus {
    box-shadow: 0 0 5px #ff9800;
}

.buscador button {
    padding: 8px;
    border: none;
    background-color: #ff9800;
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buscador button:hover {
    background-color: #e68a00;
}

/* Navegación */
nav {
    background: rgba(0, 0, 0, 0.87);
    padding: 10px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 10px 30px;
    transition: transform 0.3s ease;
}

nav ul li:hover {
    transform: translateY(-2px);
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #161615;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.9rem;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 40px;
    transition: background 0.3s ease;
}

footer:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* --------------------------
   Responsividad (Responsive)
----------------------------- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .buscador {
        margin-top: 10px;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 8px 0;
    }

    header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 45px;
    }

    header h1 {
        font-size: 1.2rem;
    }

    .buscador input {
        width: 150px;
    }

    .buscador button {
        font-size: 0.9rem;
    }

    nav ul li a {
        font-size: 1rem;
    }
}

/* --- MENÚ HAMBURGUESA --- */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.85);
    margin-top: 10px;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
  }
}

/* --- SECCIONES DEL CONTENIDO --- */
main {
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.4);
  text-align: center;

}

section {
  margin-bottom: 50px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  backdrop-filter: blur(3px);
  width:100%;
   justify-content: center;
      align-items: center;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #ffd700;
}

section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: white;
  
}

/* --- Formulario de contacto --- */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 10px;
  backdrop-filter: blur(3px);
}

.form-grupo {
  display: flex;
  flex-direction: column;
  text-align: left;
}

label {
  margin-bottom: 5px;
  color: #ffcc00;
  font-weight: bold;
}

input, textarea {
  padding: 10px;
  border: none;
  border-radius: 5px;
  outline: none;
  resize: none;
}

input:focus, textarea:focus {
  box-shadow: 0 0 5px #ff9800;
}

button[type="submit"] {
  background-color: #ff9800;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #e68a00;
}

/* --- Redes sociales --- */
.redes-sociales {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.redes-sociales a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.redes-sociales a.facebook {
  background-color: #3b5998;
}

.redes-sociales a.instagram {
  background-color: #e1306c;
}

.redes-sociales a.youtube {
  background-color: #ff0000;
}

.redes-sociales a:hover {
  opacity: 0.8;
}