:root {
  --am: #E8BA00; --am-osc: #8a6d00; --gr: #3C3C3B; --gr-2: #5d5d5c; --fondo: #fff; --suave: #f7f5ef; --borde: #e4e0d4;
  --error: #b42318; --ok: #1f7a3a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Montserrat', system-ui, sans-serif; color: var(--gr); background: var(--fondo); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--gr); }
.envoltura { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Cabecera */
.cab { background: var(--gr); color: #fff; position: relative; overflow: hidden; }
.cab::after { content: ""; position: absolute; right: -40px; bottom: 0; width: 180px; height: 100%; background: var(--am);
  clip-path: polygon(45% 0, 62% 0, 100% 100%, 75% 100%); opacity: .95; }
.cab .envoltura { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 64px; }
.manuscrita { font-family: 'Dancing Script', cursive; font-weight: 500; font-size: clamp(30px, 5vw, 44px); line-height: 1; margin: 0 0 12px; }
h1 { color: var(--am); font-weight: 800; font-size: clamp(40px, 8vw, 76px); line-height: 1.02; margin: 0; letter-spacing: -.02em; max-width: 12ch; }
.subt { font-size: clamp(19px, 2.6vw, 26px); margin: 16px 0 28px; font-weight: 500; }
.datos { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 32px; padding: 0; list-style: none; font-weight: 600; }
.datos li { display: flex; align-items: center; gap: 8px; }
.datos svg { width: 22px; height: 22px; flex: none; stroke: var(--am); }
.boton { display: inline-block; background: var(--am); color: var(--gr); font-weight: 800; text-decoration: none; text-transform: uppercase;
  letter-spacing: .06em; padding: 15px 30px; border-radius: 40px; border: 0; font-size: 16px; cursor: pointer; font-family: inherit; }
.boton:hover, .boton:focus-visible { background: #ffd21f; }
.boton:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--am); outline-offset: 3px; }
.plazas { margin: 16px 0 0; font-size: 15px; opacity: .9; }

/* Secciones */
section { padding: 64px 0; }
section.suave { background: var(--suave); }
h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px; line-height: 1.15; }
h2::after { content: ""; display: block; width: 56px; height: 5px; background: var(--am); margin-top: 12px; border-radius: 3px; }
.intro { max-width: 68ch; font-size: 19px; }

.ponentes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin-top: 32px; }
.ponente { display: flex; gap: 20px; align-items: center; }
.ponente img { width: 128px; height: 128px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--am); flex: none; }
.ponente h3 { margin: 0 0 4px; font-size: 20px; }
.ponente p { margin: 0; color: var(--gr-2); }

.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 28px; }
.tarjeta { background: #fff; border: 1px solid var(--borde); border-left: 5px solid var(--am); border-radius: 10px; padding: 18px 20px; }
.tarjeta b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--gr-2); }
.tarjeta span { font-size: 18px; font-weight: 600; }
.tarjeta a { font-size: 15px; }

/* Formulario */
.form { max-width: 620px; margin-top: 28px; display: grid; gap: 18px; }
.campo label { display: block; font-weight: 600; margin-bottom: 6px; }
.campo input { width: 100%; font: inherit; padding: 13px 14px; border: 2px solid #c9c4b6; border-radius: 8px; background: #fff; color: var(--gr); }
.campo input:focus { border-color: var(--gr); }
.campo .err { color: var(--error); font-size: 15px; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--gr); }
.miel { position: absolute; left: -9999px; }
.aviso { border-radius: 10px; padding: 18px 20px; margin-top: 24px; max-width: 620px; }
.aviso.ok { background: #e8f5ec; border: 1px solid #a6d8b5; }
.aviso.mal { background: #fdecea; border: 1px solid #f3b4ad; }
.aviso.info { background: #fff7d6; border: 1px solid #ecd16a; }
.aviso p { margin: 0; }
.aviso p + p { margin-top: 8px; }
.letra-pequena { font-size: 14px; color: var(--gr-2); max-width: 620px; }

/* Pie */
footer { background: var(--gr); color: #ddd; padding: 32px 0; font-size: 15px; }
footer a { color: #fff; }
footer .envoltura { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer .credito { flex-basis: 100%; font-size: 14px; border-top: 1px solid #5d5d5c; padding-top: 14px; }

/* Páginas legales */
.legal { padding: 48px 0 64px; max-width: 760px; }
.legal h1 { color: var(--gr); font-size: 36px; max-width: none; margin-bottom: 24px; }
.legal h2 { font-size: 22px; margin-top: 32px; }
.legal h2::after { width: 40px; height: 4px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal td, .legal th { border: 1px solid var(--borde); padding: 8px 10px; text-align: left; vertical-align: top; }
.volver { display: inline-block; margin-top: 24px; font-weight: 600; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cab::after { width: 90px; opacity: .9; }
  .cab .envoltura { padding-top: 40px; padding-bottom: 48px; }
  section { padding: 48px 0; }
  .ponente img { width: 96px; height: 96px; }
  .boton { width: 100%; text-align: center; }
}
