/* Fondos para los títulos de etapa */
.etapa-titulo {
    text-align: center;
    padding: 18px 0 18px 0;
    margin: 32px 0 24px 0;
    font-size: 2.1rem;
    color: #fff;
    border-radius: 16px;
    letter-spacing: 1px;
}
.etapa1 {
    background: linear-gradient(90deg, #3b7b6c 60%, #5bbd92 100%);
}
.etapa2 {
    background: linear-gradient(90deg, #5bbd92 0%, #3b7b6c 100%);
}
.etapa2-wrapper {
    margin-top: 48px;
    margin-bottom: 24px;
}
/* Tooltip para integrantes */
.miembro-card {
        position: relative;
}
.miembro-tooltip {
    display: none;
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(16px);
    background: #fff;
    color: #222;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(59,123,108,0.15);
    padding: 14px 18px;
    min-width: 220px;
    z-index: 10;
    font-size: 1rem;
    pointer-events: none;
}
.miembro-card:hover .miembro-tooltip,
.miembro-card:focus-within .miembro-tooltip {
        display: block;
        pointer-events: auto;
}
@media (hover: none) and (pointer: coarse) {
    .miembro-card:active .miembro-tooltip {
        display: block;
        pointer-events: auto;
    }
}
/* Estilos para la página de equipo */
.equipos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    justify-items: stretch;
    grid-auto-flow: row;
}
.equipo-card {
    background: #f4f4f4;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(59,123,108,0.10);
    padding: 24px 18px;
    min-width: 220px;
    max-width: 300px;
    flex: 1 1 220px;
    margin-bottom: 20px;
}
.equipo-card h3 {
    color: #3b7b6c;
    font-size: 1.4rem;
    margin-bottom: 18px;
    text-align: center;
}
.miembros-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.miembro-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(59,123,108,0.08);
    padding: 12px 10px;
    gap: 18px;
}
.miembro-foto {
    width: 64px;
    height: 64px;
    background: #e6f7f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #3b7b6c;
    box-shadow: 0 1px 4px rgba(59,123,108,0.10);
}
.miembro-info {
    flex: 1;
}
.miembro-info strong {
    font-size: 1.1rem;
    color: #3b7b6c;
}
.h3-caja-equipo {
    flex: 1;
    max-width: 50%;
    margin: auto;
    text-align: center;
}
/* Enlace que envuelve toda la caja del artículo */



html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #f4f4f4; 
    color: #333;
}


.contenido {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}


.top {
    background-color: #3b7b6c; 
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top .contenido {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top h1 {
    margin: 0;
        font-size: 3rem;
}

.top nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.top nav a:hover {
    background-color: #4a9a88; 
}

section {
    padding: 60px 0;
    min-height: 80vh; 
    align-items: center;
    scroll-margin-top: 80px;
}

.fondo {
    background-color: #ffffff;
}



.orden {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.caja-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.articulos {
    cursor: pointer;
}

.imagen {
    max-width: 250px;
    border: 1px solid #ddd;
    padding: 5px;
}

.textos h2 {
    font-size: 2rem;
    color: #333;
}

.articulos {
    background: #f9f9f9;
    border: 0 solid #ddd;
    padding: 0;
    margin-bottom: 20px;
    border-radius: 5px;
}

.articulos:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(59,123,108,0.12);
}

.h3-flex {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 20px;
}

.h3-flex {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 20px;
}

.h3-caja {
    background: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(59,123,108,0.12);
    padding: 25px 20px;
    flex: 1;
    text-align: center;
    transition: transform 0.2s;
}
.h3-caja:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(59,123,108,0.18);
}
.h3-caja h3 {
    color: #3b7b6c;
    font-size: 2rem;
    margin-bottom: 10px;
    
}
.h3-caja {
    border: 2px solid #3b7b6c;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background-color: #3b7b6c;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}
/* Hamburger and mobile navigation */
#menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.9rem;
  color: #ffffff;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}
#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.15);
  z-index: 998;
  opacity: 0;
  transition: opacity 220ms ease;
}
#nav-overlay.visible { display:block; opacity:1; }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #ffffff;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 999;
  overflow: hidden;
  max-height: 0;
  transition: max-height 300ms ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.mobile-nav a {
  padding: 14px 18px;
  text-align: center;
  text-decoration: none;
  color: #3b7b6c;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-nav.open { display:flex; }

/* Responsive adjustments updated */
@media (max-width: 768px) {
  .top .contenido { flex-direction: row; justify-content: space-between; align-items: center; gap: 8px; }
  .top h1 { font-size: 1.4rem; }
  .top nav { display: none; }
  #menu-toggle { display: block; }
  #nav-overlay { display: none; }
  .contenido { padding: 0 12px; }
  section { padding: 28px 0; }
  .equipos-grid, .fila-estudiantes, .fila-redaccion { grid-template-columns: 1fr !important; gap: 18px; }
  .equipo-card { max-width: 100% !important; margin: 0 auto; }
  .orden { flex-direction: column; text-align: center; gap: 18px; padding: 20px; }
  .imagen { max-width: 100%; height: auto; }
  .h3-flex { flex-direction: column; gap: 16px; }
  .h3-caja { width: 100%; margin: 0; }
  .etapa-titulo { font-size: 1.5rem; margin: 18px 0; padding: 12px 10px; }
  .miembro-foto { width: 56px; height: 56px; }
  .miembro-card { padding: 10px; gap: 12px; }
  form div[style] { width: 100% !important; }
}
