/* Variables */
:root {
    --primary-color: #b22222; /* Color vino */
    --secondary-color: #f4f4f4;
    --text-color: #333;
    --font-family: 'Poppins', sans-serif;
  }
  
  /* Global Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
  }



  .container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
  }
  
  /* Navbar */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #101010;
    padding: 1rem;
    color: white;
    position: fixed;
    z-index: 4;
    width: 100%;
  }
  
  .navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  .navbar ul {
    display: flex;
    list-style: none;
    gap: 7rem;
    justify-content: center;
  }
  
  .navbar ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .navbar ul li a:hover {
    color: #6d6d6d;
    text-shadow: black;
    transition: 0.5s;
  }
  
  /* Responsive Navbar */
  .navbar .menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    background: #101010;
    border: none;
    color: white;
  }
  
  @media (max-width: 768px) {
    .navbar ul {
      display: none;
      flex-direction: column;
      position: relative;
      top: 25%;
      right: 0;
      padding-top: 1rem;
      width: 100%;
      text-align: center;
      justify-content: center;
      align-items: normal;
      gap: 4rem !important;
      max-width: 100%;
      
    }
    
  
    .navbar ul.active {
      display: flex;
      animation: ease-in .5s;
    }
  
    .navbar .menu-icon {
      display: block;
    }
  }
  
  /* Hero Section */
  .hero {
    height: 100vh;
    color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  /* .hide{
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
  } */

  .fade-in {
    opacity: 1;
  }
  
  video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }
  
  .capa {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #101010;
    opacity: 0.5;
    z-index: 2;
  }
  
 /* Estado oculto */
.hero-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  pointer-events: none;
  z-index: 3;
  position: relative;
}


/* Estado visible con animación */
.hero-content.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

  
  .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-content .btn {
    background: #ad132185;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
    text-decoration: none;
  }
  
  .hero-content .btn:hover {
    background: #9a1c1c;
  }
  
  /* About Section */
  .who-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .who-container p {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: justify;
    font-size: 1rem;
    line-height: 1.8;
  }
  
  .who-container img {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  
  .about {
    padding: 3rem 0;
    background: var(--secondary-color);
    text-align: center;
  }
  
  .about h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .about p {
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: left;
  }
  
  .about img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  /* Events Section */
  .events {
    background-color: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
  }
  
  .events .container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .events h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
  }
  
  .events p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
  }
  
  .calendar {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .calendar-iframe {
    width: 100%;
    max-width: 800px;
    height: 500px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
  }
  
  @media (max-width: 768px) {
    .calendar-iframe {
      height: 400px;
    }
  }
  
  /* Contact Section */
  .contact {
    background-color: var(--secondary-color);
    padding: 60px 20px;
    text-align: center;
  }
  
  .contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  
  .contact p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .social-media i {
    font-size: 2rem;
    color: #333;
    transition: color 0.3s ease;
  }
  
  .social-media i:hover {
    color: var(--primary-color);
  }
  
  .contact-form-iframe {
    width: 100%;
    max-width: 800px;
    height: 500px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
  }
  
  @media (max-width: 768px) {
    .social-media {
      flex-direction: row;
    }
  
    .social-media i {
      margin-bottom: 10px;
    }
  
    .contact-form-iframe {
      height: 400px;
    }
  }


  /* Contacto */

  .formulario-contacto {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  .formulario-contacto input,
  .formulario-contacto textarea {
    padding: 10px;
    border: 1px solid #ccc;
    font-family: inherit;
    border-radius: 5px;
    width: 100%;
    max-width: 600px;
  }
  
  .formulario-contacto button {
    background-color: #7e1f1f;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    width: fit-content;
  }
  
  .formulario-contacto button:hover {
    background-color: #a22828;
  }

  .mensaje-respuesta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 20px;
    background-color: #4CAF50; /* verde por defecto */
    color: white;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 9999;
  }
  
  .mensaje-activo {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0);
  }
  
  
  /* Footer */
  footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: white;
    position: absolute;
    width: 100%;
  }
  