:root {
  --color-principal: #219ebc;
  --color-secundario: #ffb703;
  --fondo: #f7fbff;
  --texto: #023047;
  --borde: #e0f2f7;
  --radio: 14px;
}

* { box-sizing: border-box; }


#menu {
  background: rgba(255, 255, 255, 0.60); 
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  padding: 10px 5%;
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.navbar-brand {
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 900;
  color: #4a90e2;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
  margin-right: 10px;
}

.navbar-nav {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.navbar-nav li a {
  text-transform: uppercase;
  color: #333;
  font-size: 13px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-nav li a:hover {
  color: var(--color-secundario);
}

.navbar-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}


@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
    display: none;
    background: rgba(255, 255, 255, 0.95);
    position: absolute;
    top: 60px;
    right: 5%;
    width: 90%;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }

  .navbar-nav.show {
    display: flex;
  }

  .navbar-toggle {
    display: block;
  }
}


body {
  margin: 0;
  font-family: 'Comic Neue', sans-serif;
  background: var(--fondo);
  color: var(--texto);
  line-height: 1.6;
}


header {
  background: var(--color-principal);
  color: white;
  text-align: center;
  padding: 6rem 1rem 3rem;
  border-bottom: 6px solid var(--color-secundario);
  position: relative;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px; 
  background: var(--color-principal); 
  z-index: -1;
}

header h1 {
  font-size: 2.6rem;
  margin: 0;
  padding-top: 1rem;
}


main {
      max-width: 800px;
      margin: 2rem auto;
      background: white;
      border-radius: var(--radio);
      box-shadow: 0 6px 18px rgba(0,0,0,0.08);
      padding: 1.5rem;
    }
    /* ===== Mejorar apariencia y altura de cada sección ===== */
article {
  margin-bottom: 3rem;
  padding: 2rem 2rem 3rem;
  background: #ffffff;
  border-radius: var(--radio);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 550px; /* Aumenta la altura mínima */
}

article:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

article .contenido {
  margin-top: 1.2rem;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #02405c;
  min-height: 250px; /* Aumenta el bloque editable */
}

article .contenido p {
  margin-bottom: 1.2rem;
}

.imagen-evento {
  height: 400px; /* Imagen más grande */
  background: var(--borde);
  border-radius: var(--radio);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

/* Opcional: separar visualmente las secciones */
article:not(:last-child) {
  border-bottom: 4px solid var(--color-secundario);
  padding-bottom: 4rem;
}


.imagen-evento {
      width: 100%;
      height: 350px;
      background: var(--borde);
      border-radius: var(--radio);
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      cursor: pointer;
    }

.imagen-evento img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }



h2.titulo {
      margin-top: 1.5rem;
      color: var(--color-principal);
      font-size: 1.8rem;
      border-bottom: 3px solid var(--color-secundario);
      padding-bottom: 0.5rem;
    }

.contenido {
      margin-top: 1rem;
      font-size: 1.1rem;
      min-height: 150px;
      background: #f7fbff;
      padding: 1rem;
      border-radius: 10px;
      border-left: 5px solid var(--color-secundario);
    }


footer {
      text-align: center;
      color: #666;
      font-size: 0.9rem;
      padding: 1rem;
      margin-top: 3rem;
      background: #eaf6ff;
      border-top: 2px solid var(--borde);
    }

@media (max-width: 600px) {
      header h1 { font-size: 1.6rem; }
      h2.titulo { font-size: 1.4rem; }
      .imagen-evento { height: 220px; }
    }
    
.back-button {
    text-align: center;
    margin: 30px 0;
}

.back-button button {
    background-color: #0073e6;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}