/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #222;
  background: #fafafa;
  line-height: 1.6;
}
a {
  text-decoration: none;
  font-weight: 600;
  color: #95883dc3
}
.mail {
    text-decoration: none;
  font-weight: 400;
  color: #95883dc3;
}
/* HEADER */
header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 20px 10%;
  border-bottom: 1px solid #ddd;
  z-index: 100;
}
/* === MENU BURGER === */
.burger {
  display: none; /* oculto por defecto */
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: black;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Estado activo (transformar en X) */
.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== NAV MOBILE ===== */
@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    display: none; /* oculto en móvil por defecto */
  }
p {
  hyphens: auto;
}
  nav.show {
    display: flex; /* visible cuando se abre */
  }

  .burger {
    display: flex; /* visible en móvil */
  }
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 60px;
  
}
.hero-texto {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(80%, 700px);
  padding: 18px 22px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  z-index: 20;
  font-size: 1.35rem;
  line-height: 1.6;
  font-weight: 300;
  text-align: left;
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}
nav a {
    position: relative;
    padding-bottom: 4px;
    margin-left: 20px;
    text-decoration: none;
    color: #000;
    font-weight: 400;
    transition: color 0.3s;
    letter-spacing: 1px;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: black;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* CARRUSEL */
.carrusel {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  height: calc(100vh - 200px);
  padding: 0 !important;
  margin-top:0 !important;

}


.carrusel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.separa {
  position:relative;
  width:100%;
  height:50px;
  background-color: white;
}
#la-red {
  margin-top: 0 !important;
}
.slide {
  display: none;
  position: relative;
    height: 100%;
  width: 100%;

}

.slide.active {
  display: flex;
    position: relative;
}
.slides {
  height: 100%;
}

.caption {
  position: absolute;
  bottom: 0;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px 10%;
  font-size: 1.2rem;
  width:100%;
}

/* Botones del carrusel */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 50%;
}
.credito-imagen {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 0.6rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 3px 6px;
    z-index: 10;
}

.credito-imagen a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 400;
}

.credito-imagen a:hover {
  text-decoration: underline;
}

.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* SECCIONES */
section {
  padding: 60px 20%;
  background: white;
  margin-top: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  scroll-margin-top: 100px;
  text-align:justify;
}


 h1 {
  margin-bottom: 40px;
  color: black;
  font-weight: 200;
  font-variant: all-petite-caps;
  letter-spacing: 0.8em;
  font-size: 1em;
  text-align: center;
  transition-duration: 0.5s;
}
#miembros {
  padding-left: 6%;
  padding-right: 6%;
}
.grid-miembros {
  max-width: 1200px;
  margin: 0 auto;
}
.grid-coordinadoras {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.grid-miembros-listado {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  justify-items: center;
}



.miembro {
  width: 100%;
  max-width: 180px;
  text-align: center;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.miembro img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto 10px;
  filter: grayscale(1);
}

.miembro:hover {
  transform: translateY(-5px);
  border: 1px solid #b4b4b4;
}


.contenedor-ver-mas-miembros {
  text-align: center;
  margin-top: 24px;
}

.ver-mas-miembros {
    padding: 10px 18px;
    border: 1px solid #222;
    background: white;
    cursor: pointer;
    font: inherit;
    font-weight: 400;
    font-size: 0.8em;
    font-variant: all-petite-caps;
}
.miembro h3 {
  font-size: 0.7em;
}

.miembro p {
  font-size: 0.7em;
}
.ver-mas-miembros:hover {
  background: #f3f3f3;
}
@media (max-width: 850px) {
  #miembros {
    padding-left: 8%;
    padding-right: 8%;
  }

  .grid-miembros-listado {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .grid-miembros-listado {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-coordinadoras {
    gap: 20px;
  }
}
/* ACTIVIDADES */
.grid-actividades {
  display: grid;
  gap: 30px;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.actividad {
  text-align: center;
  border: 1px solid black;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.actividad:hover {
  transform: translateY(-5px);
}

.actividad img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(100%) contrast(1.1);
  flex-shrink: 0;
}

/* ---- FICHA ---- */
.ficha {
  padding: 10px;
  text-align: left;
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* overlay base */
.ficha::after {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

/* contenido por encima del overlay */
.ficha > * {
  position: relative;
  z-index: 1;
}

/* Colores por tarjeta */
.grid-actividades .actividad:nth-child(4n + 1) {
  --ficha-color: rgba(126, 191, 207, 0.8);
  --ficha-fade: rgba(126, 191, 207, 0.96);
}

.grid-actividades .actividad:nth-child(4n + 2) {
  --ficha-color: rgba(239, 148, 136, 0.8);
  --ficha-fade: rgba(239, 148, 136, 0.96);
}

.grid-actividades .actividad:nth-child(4n + 3) {
  --ficha-color: rgba(201, 178, 46, 0.8);
  --ficha-fade: rgba(201, 178, 46, 0.96);
}

.grid-actividades .actividad:nth-child(4n + 4) {
  --ficha-color: rgba(236, 167, 202, 0.8);
  --ficha-fade: rgba(236, 167, 202, 0.96);
}

.grid-actividades .actividad .ficha::after {
  background: var(--ficha-color);
}

/* ---- TEXTOS ---- */
.actividad h3 {
  margin-bottom: 5px;
}

.miembro h3 {
  font-size: 0.8em;
}

.miembro p {
  font-size: 0.8em;
}

.etiqueta-coordinadora {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #786E2C;
  letter-spacing: 1px;
}

.actividad .fecha {
    color: #ffffff;
    font-size: 0.8rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.actividad p {
  color: #444;
  font-size: 0.95rem;
}

.evento-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
/* ---- DESCRIPCIÓN ---- */
.actividad-descripcion {
  max-height: 3.8em;
  overflow: hidden;
  position: relative;
  line-height: 1.4;
}

.actividad-descripcion .texto-fade {
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.actividad-descripcion.expandida {
  max-height: none;
}

.actividad-descripcion.expandida .texto-fade {
  -webkit-mask-image: none;
  mask-image: none;
}

.ver-mas {
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  align-self: flex-start;
}

/* PORTADA FULL WIDTH */
.evento-portada img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* BLOQUE DE TEXTO */
.evento-info {
  padding: 20px;
}

.evento-fecha {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #666;
}

.evento-info h3 {
  margin: 0 0 10px;
  line-height: 1.3;
}

.evento-descripcion {
  margin: 0;
  line-height: 1.6;
}

/* PARTICIPANTES */
.evento-participantes {
  margin-top: 10px;
  padding-left: 18px;
  font-size: 0.95rem;
}
/* GALERÍA */
.evento-galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px 20px 20px;
}

.evento-galeria img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}
.evento-portada {
  position: relative;
}

.evento-portada::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.6));
}
/* CONTACTO */
.form-contacto {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  margin: 20px auto;
}

.form-contacto input,
.form-contacto textarea {
  padding: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.form-contacto button {
  background: black;
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.form-contacto button:hover {
  background: #363636;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px 10px;
  font-size: 0.9rem;
  color: #666;
  background: #f1f1f1;
}

