:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #1f2933;
  --muted: #667085;
  --line: #e7dfd0;
  --blue: #2c6e8f;
  --blue-soft: #cfe3ee;
  --ochre: #d9822b;
  --ochre-soft: #f7e0c2;
  --rose-soft: #f4d4d0;
  --green-soft: #d6e8d2;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  line-height: 1.5;
}
a { color: var(--blue); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Cabecera con manchas de acuarela */
.hero {
  position: relative;
  padding: 28px 0 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: system-ui, sans-serif; }
.logo {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px dashed var(--muted);
  display: grid; place-items: center;
  font-size: 9px; color: var(--muted); text-align: center; line-height: 1.1;
}
.brand-name { font-weight: 700; letter-spacing: .02em; }
.hero h1 { margin: 0 0 8px; line-height: 1; }
.t-visual {
  margin: 0 0 8px; line-height: 1;
  display: flex; align-items: center; gap: .3em;
  font-size: clamp(1.9rem, 8.2vw, 5.2rem); font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
}
.t-izq { line-height: .95; }
/* Las dos líneas de la derecha suman la misma altura que EVENTOS */
.t-der { display: flex; flex-direction: column; font-size: .44em; line-height: .83; letter-spacing: .04em; }
.hero p { margin: 0; max-width: 60ch; color: var(--muted); }
.pending { background: var(--ochre-soft); padding: 0 .3em; border-radius: 4px; font-family: system-ui, sans-serif; font-size: .9em; }

.por { font-size: 1.05rem; color: var(--muted); }
.hero .intro { margin-top: 10px; font-size: 1.05rem; line-height: 1.4; }
.por a { font-weight: 700; }
.slot { margin-top: 8px; padding: 12px; border: 1px dashed var(--muted); border-radius: 8px; color: var(--muted); font-family: system-ui, sans-serif; font-size: .9rem; }
.etiqueta {
  display: inline-block; margin: 4px 0 0; padding: 2px 9px; border-radius: 999px;
  background: var(--ochre-soft); color: var(--ink);
  font-family: system-ui, sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}

/* Sobre mí y botones */
.sobre { border-top: 1px solid var(--line); padding: 28px 0; background: var(--paper); }
.quien { margin: 0 0 14px; font-size: 1.1rem; font-weight: 700; }
.sobre-grid { display: grid; gap: 14px 22px; }
.sobre-grid .texto { min-width: 0; }
@media (min-width: 640px) {
  .sobre-grid { grid-template-columns: auto 1fr; }
  .sobre-grid .foto { grid-column: 1; grid-row: 1; align-self: stretch; height: auto; width: auto; min-width: 120px; aspect-ratio: 1 / 1; }
  .sobre-grid .texto { grid-column: 2; grid-row: 1; }
  .sobre-grid .botones { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
  .sobre-grid .cta-sub { grid-column: 1 / -1; grid-row: 3; }
  .sobre-grid .redes { grid-column: 1 / -1; grid-row: 4; }
}

.nombre { font-size: 1.35em; font-weight: 800; }
.cta-sub { margin: -4px 0 0; padding-left: 12px; font-family: system-ui, sans-serif; font-size: .92rem; color: var(--muted); }
.cta-sub span { display: inline-block; margin-right: 4px; font-size: 1.15rem; line-height: 1; color: var(--ink); }
.retiros h2 { margin: 0 0 6px; font-size: 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.firma { display: block; width: 150px; height: auto; margin: 0 0 6px; }
.foto {
  width: 132px; height: 132px; border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  background: #fff url("/foto.jpg") center / 100% 100% no-repeat; /* la foto entera: el círculo toca los bordes del cuadrado */
}
.bio { margin: 0 0 4px; max-width: 62ch; }
.botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.boton {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  background: var(--blue); color: #fff; text-decoration: none;
  font-family: system-ui, sans-serif; font-weight: 700; font-size: .95rem;
}
.boton:hover { background: var(--ochre); }
.retiros { padding: 26px 0 8px; border-top: 1px solid var(--line); }
/* Panel legal */
.legal { padding: 4px 0 40px; }
.legal-boton {
  font: inherit; font-family: system-ui, sans-serif; font-size: .9rem; font-weight: 600;
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; color: var(--ink);
}
.legal-boton[aria-expanded="true"] { background: var(--blue-soft); }
.legal-panel { margin-top: 14px; max-width: 760px; font-family: system-ui, sans-serif; font-size: .95rem; line-height: 1.55; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 20px; position: relative; }
.legal-cerrar { position: absolute; top: 12px; right: 14px; font: inherit; font-size: .85rem; background: none; border: 0; cursor: pointer; color: var(--blue); font-weight: 600; }
.legal-titulo { margin: 0 0 4px; font-size: 1.3rem; }
.legal-fecha { margin: 0 0 12px; color: var(--muted); font-size: .85rem; }
.legal-panel h3 { margin: 22px 0 6px; font-size: 1.05rem; scroll-margin-top: 16px; }
.legal-panel p, .legal-panel li { margin: 6px 0; }
.legal-panel ul, .legal-panel ol { padding-left: 22px; }
.legal-enlaces a { color: var(--blue); }
.brevo { display: block; width: 100%; max-width: 560px; height: 560px; border: 0; overflow: hidden; }
@media (max-width: 480px) { .brevo { height: 700px; } }

/* Aviso */
.alert {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: system-ui, sans-serif;
}
.alert .slot { margin-top: 8px; padding: 10px; border: 1px dashed var(--muted); border-radius: 8px; color: var(--muted); font-size: .9rem; }

/* Diseño en dos columnas */
.layout { display: grid; gap: 24px; padding: 20px 16px 40px; }
.legal-nota { margin: 0 0 6px; font-size: .8rem; color: var(--muted); }
.legal-nota a { color: var(--blue); }
@media (min-width: 860px) {
  .layout { grid-template-columns: 1fr 300px; align-items: start; }
  .side { position: sticky; top: 16px; grid-column: 2; grid-row: 1 / span 2; }
  .layout > section { grid-column: 1; grid-row: 1; }
  .layout > .avisos { grid-column: 1; grid-row: 2; }
}
.avisos { display: grid; gap: 10px; }


/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; font-family: system-ui, sans-serif; }
.filters label { display: flex; flex-direction: column; font-size: .75rem; color: var(--muted); gap: 2px; }
.filters select {
  font: inherit; font-size: .95rem; padding: 8px 10px; min-width: 150px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
}

/* Lista de eventos */
.eventos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mes-titulo { margin: 18px 0 6px; font-family: system-ui, sans-serif; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.mes-titulo:first-child { margin-top: 0; }
.evento {
  display: grid; grid-template-columns: 106px 1fr; gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  padding: 6px 12px 7px 10px;
  transition: transform .15s, box-shadow .15s;
}
.fecha { white-space: nowrap; }
.d-corto { display: none; }
@media (max-width: 480px) {
  .eventos { gap: 6px; }
  .evento { grid-template-columns: 92px 1fr; gap: 6px; padding: 5px 10px 6px 9px; }
  .fecha { font-size: .86rem; }
  .fecha small { font-size: .68rem; }
  .titulo { font-size: .93rem; line-height: 1.2; }
  /* Localización en una sola línea: nombres abreviados */
  .d-largo { display: none; }
  .d-corto { display: inline; }
  .donde { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .8rem; }
}
/* Botón «Agendar»: píldora pequeña y azul debajo de la fecha */
.agendar {
  display: inline-block; margin-top: 4px; padding: 1px 9px;
  background: var(--blue); color: #fff; border-radius: 999px;
  font-family: system-ui, sans-serif; font-size: .68rem; font-weight: 600; line-height: 1.5; text-decoration: none;
}
.agendar:hover, .agendar:focus-visible { background: #1f5673; }
.evento:nth-child(3n+2) { border-left-color: var(--ochre); }
.evento:nth-child(3n) { border-left-color: #c0655b; }
.evento.resaltado { box-shadow: 0 0 0 3px var(--blue-soft); transform: translateX(2px); }
.fecha { font-family: system-ui, sans-serif; font-weight: 800; font-size: 1.2rem; line-height: 1.1; padding-top: 1px; }
.fecha small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.titulo { margin: 0; font-size: 1.05rem; line-height: 1.25; }
/* Ciudad a la izquierda y «Más info ↗» a la derecha, en la misma línea */
.fila { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 2px; }
.donde { margin: 0; min-width: 0; font-family: system-ui, sans-serif; font-size: .85rem; color: var(--muted); }
.mas { flex: none; white-space: nowrap; font-family: system-ui, sans-serif; font-size: .88rem; font-weight: 600; text-decoration: none; }
.mas:hover { text-decoration: underline; }
/* Botón con texto largo («Más info e inscripción»): si no cabe junto a la ciudad, pasa a la línea de abajo, a la derecha */
.fila.larga { flex-wrap: wrap; }
.fila.larga .donde { flex: 0 0 auto; }
.fila.larga .mas { margin-left: auto; }
.vacio { padding: 20px; text-align: center; color: var(--muted); font-family: system-ui, sans-serif; }
.pasado-link { margin-top: 24px; font-family: system-ui, sans-serif; font-size: .9rem; }

/* Mini calendario */
.cal {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; font-family: system-ui, sans-serif;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head strong { font-size: .95rem; text-transform: capitalize; }
.cal-head button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 1rem; cursor: pointer;
}
.cal-head button:hover { background: var(--blue-soft); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-size: .65rem; color: var(--muted); padding-bottom: 2px; }
.cal-day {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  font-size: .78rem; border-radius: 8px; color: var(--muted);
}
.cal-day.finde { background: #f4f3f0; }
.cal-day.hoy { outline: 2px solid var(--ink); outline-offset: -2px; color: var(--ink); font-weight: 700; }
.cal-day.ev { background: var(--blue); color: #fff; font-weight: 700; cursor: pointer; }
.cal-day.ev:nth-of-type(odd) { background: var(--blue); }
.cal-day.ev:hover, .cal-day.ev:focus-visible { background: var(--ochre); outline: none; }
@media (max-width: 859px) {
  .cal-day { aspect-ratio: 1.6; font-size: .72rem; }
  .cal { padding: 8px 10px; }
}
/* Texto del calendario: ratón en ordenador, toque en móvil */
.n-tactil { display: none; }
@media (hover: none) { .n-raton { display: none; } .n-tactil { display: inline; } }
.cal-tip {
  position: fixed; z-index: 10; pointer-events: none; max-width: 260px;
  background: var(--ink); color: var(--bg); padding: 8px 10px; border-radius: 8px;
  font-family: system-ui, sans-serif; font-size: .8rem; line-height: 1.3;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: 0; transition: opacity .1s;
}
.cal-tip.visible { opacity: 1; }
.cal-tip div + div { margin-top: 4px; }
.cal-note { margin: 8px 2px 0; font-size: .72rem; color: var(--muted); }

/* Pie */
footer { border-top: 1px solid var(--line); padding: 22px 0 36px; font-family: system-ui, sans-serif; font-size: .9rem; color: var(--muted); }
footer .links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
footer .links a { font-weight: 600; }
footer p { margin: 6px 0; }

/* Bloque «¿Falta algún evento?» */
.falta { margin-top: 0; padding: 9px 12px 10px; border: 1px solid var(--line); border-radius: var(--radius); font-family: system-ui, sans-serif; }
.falta-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.falta h2 { margin: 0; font-size: 1rem; font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif; }
.falta p { margin: 4px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.35; }
.falta .boton { border: 0; cursor: pointer; font-size: .85rem; padding: 5px 14px; }
