/* La Experiencia WOPE */
.ch .w3-section { scroll-margin-top: calc(var(--nav-h) + 20px); }
.ch-hero { position: relative; overflow: hidden; min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; }
.ch-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .38; filter: grayscale(.15); }
.ch-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--w3-bg) 10%, rgba(22,22,22,.55) 60%, rgba(22,22,22,.2)), linear-gradient(0deg, var(--w3-bg) 0%, transparent 35%); }
.ch-hero-in { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; width: 100%; padding-top: 56px; padding-bottom: 72px; box-sizing: border-box; }
.ch-hero-text { flex: 999 1 560px; }
.ch-title { font-size: calc(clamp(60px, 9.5vw, 140px) * var(--w3-tscale, 1)); line-height: .86; margin-top: 24px; }
.ch-hero-text .w3-lead { max-width: 640px; margin-top: 28px; }
.ch-ticket { flex: 1 1 300px; max-width: 380px; background: var(--w3-text); color: var(--w3-bg); padding: 24px; border-radius: 10px; transform: rotate(1.5deg); box-shadow: 0 20px 50px rgba(0,0,0,.5); position: relative; }
.ch-ticket::before, .ch-ticket::after { content: ""; position: absolute; left: -12px; top: 50%; width: 24px; height: 24px; border-radius: 50%; background: var(--w3-bg); }
.ch-ticket::after { left: auto; right: -12px; }
.ch-ticket-k { color: var(--w3-violet); margin: 0; font-size: 13px; }
.ch-ticket-f { font-size: 46px; margin: 8px 0 14px; color: var(--w3-bg); }
.ch-ticket-l { list-style: none; margin: 0 0 14px; padding: 14px 0 0; border-top: 2px dashed rgba(0,0,0,.25); display: grid; gap: 8px; }
.ch-ticket-l li { display: grid; grid-template-columns: 70px 1fr; gap: 8px; font-size: 15px; }
.ch-ticket-l b { font: 600 12px var(--w3-mono); text-transform: uppercase; color: #6b6b6b; padding-top: 2px; }
.ch-ticket-l small { display: block; color: var(--w3-muted); font-size: 13px; }
.ch-ticket-n { font-size: 14px; color: var(--w3-line); margin: 0 0 14px; }
.ch-ticket .w3-link { color: var(--w3-violet); }
.ch-ticket .w3-btn { width: 100%; justify-content: center; box-sizing: border-box; }

.ch-words { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.ch-word { padding: 22px; border-radius: 8px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; }
.ch-word .w3-display { font-size: 40px; margin: 0 0 12px; }
.ch-word p:last-child { margin: 0; }
.ch-word.c0 { background: var(--w3-orange); color: var(--w3-bg); }
.ch-word.c1 { background: #e5484d; color: var(--w3-tinta); }
.ch-word.c2 { background: #2f80ed; color: var(--w3-tinta); }
.ch-word.c3 { background: var(--w3-violet); color: var(--w3-tinta); }

.ch-steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.ch-steps li { position: relative; border: 2px solid var(--w3-line); border-radius: 8px; padding: 26px 22px 22px; background: var(--w3-card); }
.ch-steps li + li::before { content: "→"; position: absolute; left: -16px; top: 40px; color: var(--w3-orange); font-size: 22px; }
.ch-steps-n { position: absolute; right: 18px; top: 8px; font-size: 80px; color: rgba(240,164,24,.18); line-height: 1; }
.ch-steps h3 { font-size: 34px; margin: 4px 0 10px; }

.ch-band { background: var(--w3-bg); border-top: 2px dashed var(--w3-line); border-bottom: 2px dashed var(--w3-line); margin: 40px 0; }
.ch-band.is-violet { background: linear-gradient(160deg, #2a0a7a, #160640 60%, var(--w3-bg)); border: 0; }
.ch-ice { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.ch-ice-i { padding: 20px; border-radius: 8px; background: color-mix(in srgb, #2f80ed calc(15% + var(--d) * 12%), var(--w3-bg)); border: 1px solid rgb(var(--w3-tinte) / .08); min-height: 150px; }
.ch-ice-i .w3-display { font-size: 34px; margin: 0 0 8px; }

/* dinámicas */
.ch-dins { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 36px; }
.ch-din { text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 10px; border: 2px solid var(--w3-line); background: var(--w3-card); color: var(--w3-text); cursor: pointer; font: inherit; transition: transform .2s var(--w3-ease), border-color .2s; min-height: 220px; }
.ch-din:hover, .ch-din.is-on { transform: translateY(-4px); border-color: var(--w3-orange); }
.ch-din.is-done { border-color: #3fbf6a; }
.ch-din.is-done .ch-din-go::after { content: " ✓ hecha"; color: #3fbf6a; }
.ch-din-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-tag { font: 600 11px var(--w3-mono); text-transform: uppercase; background: var(--w3-violet); color: var(--w3-tinta); padding: 3px 8px; border-radius: 3px; }
.ch-tag.is-light { background: var(--w3-line); color: var(--w3-soft); }
.ch-din-t { font-size: 32px; line-height: .95; }
.ch-din-d { color: var(--w3-muted); font-size: 15px; flex: 1; }
.ch-din-go { color: var(--w3-orange); font-size: 13px; }
.ch-panel { margin-top: 24px; border: 2px solid var(--w3-orange); border-radius: 12px; background: #121212; padding: clamp(20px, 4vw, 40px); scroll-margin-top: calc(var(--nav-h) + 16px); }
.ch-panel h3 { font-size: clamp(36px, 5vw, 60px); margin: 6px 0 12px; }
.ch-panel-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.ch-x { background: none; border: 1px solid var(--w3-line); color: var(--w3-text); border-radius: 50%; width: 40px; height: 40px; cursor: pointer; font-size: 16px; flex: 0 0 auto; }
.ch-stage { margin-top: 18px; }
.ch-stage[hidden] { display: none; }
.ch-pasos { counter-reset: p; list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.ch-pasos li { counter-increment: p; display: flex; gap: 14px; align-items: flex-start; font-size: 18px; line-height: 1.45; }
.ch-pasos li::before { content: counter(p); flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--w3-orange); color: var(--w3-bg); font: 700 16px/34px var(--w3-mono); text-align: center; }
.ch-clock { font-family: var(--w3-display); font-size: clamp(90px, 18vw, 180px); line-height: 1; text-align: center; font-variant-numeric: tabular-nums; margin: 10px 0; }
.ch-clock.is-run { color: var(--w3-orange); }
.ch-word-big { font-family: var(--w3-display); font-size: clamp(64px, 13vw, 140px); text-align: center; line-height: 1; min-height: 1.1em; margin: 10px 0; color: var(--w3-orange); }
.ch-tap { display: block; width: 100%; min-height: 160px; border-radius: 12px; border: 0; background: var(--w3-violet); color: var(--w3-tinta); font: var(--w3-dw, 900) 64px var(--w3-display); cursor: pointer; margin: 10px 0; }
.ch-rate { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 18px; }
.ch-rate button { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--w3-line); background: transparent; color: var(--w3-text); font: 700 16px var(--w3-mono); cursor: pointer; }
.ch-rate button.on { background: var(--w3-orange); border-color: var(--w3-orange); color: var(--w3-bg); }
.ch-q { font-size: clamp(22px, 3vw, 30px); font-weight: 700; line-height: 1.25; margin: 0 0 16px; }
.ch-reveal { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.ch-reveal > div { border-radius: 10px; padding: 20px; background: var(--w3-card); border: 1px solid var(--w3-line); }
.ch-reveal h4 { font: 600 13px var(--w3-mono); text-transform: uppercase; color: var(--w3-orange); margin: 0 0 8px; }
.ch-reveal p { margin: 0 0 10px; }
.ch-capa { display: inline-block; font: 600 11px var(--w3-mono); text-transform: uppercase; padding: 3px 8px; border-radius: 3px; margin-bottom: 10px; }
.ch-capa.ciencia { background: #1f5c3a; color: #b9f0c8; }
.ch-capa.mixta { background: #4a3410; color: #ffd27a; }
.ch-capa.sugestion { background: #2c1a5c; color: #d8c8ff; }
.ch-fuente { font-size: 13px; color: var(--w3-muted); }
.ch-delta { font: 700 20px var(--w3-mono); color: #3fbf6a; }
.ch-cuidado { font-size: 14px; color: var(--w3-muted); border-left: 3px solid #e5484d; padding-left: 10px; margin-top: 14px; }

/* llevas / socios / galería / faq */
.ch-llevas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ch-socios { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 32px 0 20px; }
.ch-socio { padding: 20px; border-radius: 8px; background: rgb(var(--w3-tinte) / .06); border: 1px solid rgb(var(--w3-tinte) / .14); }
.ch-socio h3 { font-size: 30px; margin: 0 0 8px; }
.ch-socios-n { max-width: 820px; color: var(--w3-violet-text); margin-bottom: 24px; }
.ch-gal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ch-gal img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.ch-gal img:nth-child(1), .ch-gal img:nth-child(4) { grid-column: span 2; aspect-ratio: auto; height: 100%; }
.ch-faq details { border-bottom: 1px dashed var(--w3-line); padding: 16px 0; max-width: 860px; }
.ch-faq summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ch-faq summary::after { content: "+"; color: var(--w3-orange); font: 700 22px var(--w3-mono); }
.ch-faq details[open] summary::after { content: "−"; }
.ch-faq details p { margin: 10px 0 0; color: var(--w3-soft); }

/* formulario */
.ch-form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.ch-form { background: var(--w3-card); border: 2px solid var(--w3-line); border-radius: 12px; padding: clamp(18px, 3vw, 32px); }
.ch-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.ch-tab { padding: 10px 16px; border-radius: 999px; border: 2px solid var(--w3-line); background: transparent; color: var(--w3-soft); font: 600 13px var(--w3-mono); text-transform: uppercase; cursor: pointer; }
.ch-tab.is-on { background: var(--w3-orange); border-color: var(--w3-orange); color: var(--w3-bg); }
.ch-fs { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.ch-fs[hidden] { display: none; }
.ch-field { display: flex; flex-direction: column; gap: 6px; }
.ch-field > span { font: 500 12px var(--w3-mono); text-transform: uppercase; color: var(--w3-muted); }
.ch-field input, .ch-field select, .ch-field textarea { width: 100%; box-sizing: border-box; background: var(--w3-bg); color: var(--w3-text); border: 1px solid var(--w3-line); border-radius: 6px; padding: 12px; font: 16px var(--w3-sans); }
.ch-field input:focus, .ch-field select:focus, .ch-field textarea:focus { outline: 2px solid var(--w3-orange); border-color: transparent; }
.ch-field .is-bad, .ch-check .is-bad { outline: 2px solid #e5484d; }
.ch-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--w3-soft); cursor: pointer; }
.ch-check input { width: 22px; height: 22px; accent-color: var(--w3-orange); flex: 0 0 auto; margin-top: 2px; }
.ch-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ch-msg { margin: 14px 0 0; font-weight: 600; min-height: 1.4em; }
.ch-msg.ok { color: #3fbf6a; }
.ch-msg.err { color: #ff7a6e; }
.ch-priv { font-size: 13px; margin: 10px 0 0; }
.ch-send[disabled] { opacity: .6; }

@media (max-width: 980px) {
	.ch-words, .ch-ice, .ch-socios, .ch-llevas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ch-steps { grid-template-columns: 1fr; }
	.ch-steps li + li::before { content: "↓"; left: 24px; top: -22px; }
	.ch-form-wrap { grid-template-columns: 1fr; }
	.ch-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ch-ticket { transform: none; max-width: none; }
}
@media (max-width: 560px) {
	.ch-words, .ch-ice, .ch-socios, .ch-llevas { grid-template-columns: 1fr; }
	.ch-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ch-gal img:nth-child(1), .ch-gal img:nth-child(4) { grid-column: span 2; height: auto; aspect-ratio: 16 / 10; }
}
.ch-hero-text { min-width: 0; flex-basis: min(560px, 100%); }
.ch-hero-text .w3-actions { flex-wrap: wrap; }
.ch, .ch-hero { max-width: 100%; overflow-x: hidden; }
@media (max-width: 600px) {
	.ch-title { font-size: calc(clamp(40px, 11.5vw, 64px) * var(--w3-tscale, 1)); overflow-wrap: anywhere; }
	.ch-hero-text .w3-btn-lg { padding: 14px 18px; font-size: 14px; }
	.ch-ticket-f { font-size: 38px; }
	.ch-ticket { flex-basis: 100%; }
}

.ch-modo { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 6px 12px; border-radius: 999px; font: 600 12px var(--w3-mono); text-transform: uppercase; background: #1f9d55; color: var(--w3-tinta); }
.ch-modo.is-presencial { background: var(--w3-violet); }
.ch-modo.is-hibrida { background: #2f80ed; }
.ch-modo.is-online { animation: ch-vivo 2s ease-in-out infinite; }
@keyframes ch-vivo { 50% { box-shadow: 0 0 0 6px rgba(31,157,85,.25); } }
@media (prefers-reduced-motion: reduce) { .ch-modo.is-online { animation: none; } }

/* ---------- El iceberg (todo el recuadro) ---------- */
.ch-iceberg { margin: 40px 0; border-top: 2px dashed var(--w3-line); border-bottom: 2px dashed var(--w3-line); }
.ib-full { position: relative; width: 100%; height: clamp(560px, calc(100vh - 100px), 920px); overflow: hidden; background: #082b52; cursor: crosshair; touch-action: pan-y; }
.ib-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ib-head { position: absolute; left: 3%; top: 3%; width: 55%; z-index: 2; pointer-events: none; }
.ib-head .w3-h2 { color: var(--w3-text); font-size: calc(clamp(28px, min(3.2vw, 5.4vh), 56px) * var(--w3-tscale, 1)); line-height: 1; margin: 4px 0 0; }
.ib-head .w3-kicker { margin: 0; }
.ib-lead { color: #cfe3f2; font-size: clamp(14px, min(1.1vw, 1.9vh), 17px); line-height: 1.45; max-width: 560px; margin: 10px 0 0; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.ib-box { position: absolute; z-index: 3; width: min(30%, 380px); padding: clamp(8px, 1.3vh, 14px) 16px; border-radius: 10px; border-left: 4px solid var(--c); background: rgba(5, 18, 40, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #e8f4ff; outline: none; transition: background .3s, transform .35s var(--w3-ease), box-shadow .3s; }
.ib-box.is-top { border-left-color: var(--w3-tinta); background: rgb(var(--w3-tinte) / .08); width: min(20%, 280px); }
.ib-prof { order: 2; font: 600 11px var(--w3-mono); text-transform: uppercase; letter-spacing: .5px; color: #9fd0f0; }
.ib-box { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
.ib-box-t { order: 1; font-size: clamp(22px, min(2.2vw, 3.6vh), 34px); line-height: 1.05; margin: 2px 0 0; color: var(--w3-tinta); }
.ib-more { order: 3; flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--w3-ease), opacity .35s, margin .35s; }
.ib-more p { margin: 0 0 4px; font-size: clamp(13px, 1.7vh, 15px); line-height: 1.4; }
.ib-time { display: inline-flex; gap: 6px; align-items: center; font: 600 12px var(--w3-mono) !important; line-height: 1.3 !important; color: var(--w3-bg); background: var(--w3-orange); padding: 5px 10px; border-radius: 999px; margin-top: 4px !important; }
.ib-box.is-on { background: rgba(5, 18, 40, .82); transform: translateX(8px); box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.ib-box.is-top.is-on { background: rgba(242,248,252,.95); color: #0b2a55; }
.ib-box.is-top.is-on .ib-box-t { color: #0b2a55; }
.ib-box.is-top.is-on .ib-prof { color: #3480c4; }
.ib-box.is-on .ib-more { max-height: 220px; opacity: 1; margin-top: 4px; }
.ib-box:not(.is-top) .ib-more p:first-child { flex: 1 1 260px; }
.ib-dim .ib-band { transition: opacity .4s; }
.ib-dim .ib-band:not([data-ib="0"]) { opacity: .2; }
.ib-dim .ib-band.is-on { opacity: .95 !important; }
.ib-light { transition: r .35s var(--w3-ease); }
.ib-glow { transition: r .35s var(--w3-ease); pointer-events: none; }
.ib-label { font: var(--w3-dw, 900) 34px var(--w3-display); letter-spacing: 1px; opacity: .18; transition: opacity .35s; pointer-events: none; }
.ib-label[data-ib="0"], .ib-label.is-on { opacity: 1; }
.ib-sea-label { font: 600 13px var(--w3-mono); fill: #bfe3fb; text-transform: uppercase; opacity: .7; }
.ib-wave { animation: ib-wave 5s linear infinite; }
@keyframes ib-wave { to { transform: translateX(40px); } }
.ib-bub { fill: none; stroke: rgba(191,227,251,.5); stroke-width: 1.2; animation: ib-bub 10s linear infinite; }
@keyframes ib-bub { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(-500px); opacity: 0; } }
.ib-rays { animation: ib-rays 7s ease-in-out infinite alternate; }
@keyframes ib-rays { to { opacity: .05; } }
.ib-hint { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; bottom: 1.5%; z-index: 3; margin: 0; font: 500 12px var(--w3-mono); text-transform: uppercase; color: #9fd0f0; opacity: .8; pointer-events: none; }
@media (max-width: 900px) {
	.ib-full { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; padding: 28px var(--w3-gutter) 24px; gap: 12px; cursor: auto; }
	.ib-svg { opacity: .55; }
	.ib-head, .ib-box { position: relative; inset: auto !important; top: auto !important; left: auto !important; width: auto !important; max-width: none; }
	.ib-head .w3-h2 { font-size: calc(clamp(32px, 9vw, 44px) * var(--w3-tscale, 1)); }
	.ib-lead { font-size: 16px; }
	.ib-head { margin-bottom: 40px; }
	.ib-box.is-top { width: auto; margin-bottom: 60px; }
	.ib-more { max-height: none; opacity: 1; margin-top: 8px; }
	.ib-box.is-on { transform: none; }
	.ib-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ib-wave, .ib-bub, .ib-rays { animation: none; } .ib-bub { display: none; } }

body.admin-bar .ib-full { height: clamp(560px, calc(100vh - 132px), 920px); }
@media (max-width: 900px) { body.admin-bar .ib-full { height: auto; } }
.ib-ola-m { display: none; }
@media (max-width: 900px) {
	.ib-full .ib-svg { display: none; }
	.ib-full { background: linear-gradient(180deg, var(--w3-bg) 0, #1d3346 var(--ib-y, 60%), #0f4a7a var(--ib-y, 60%), #082b52 calc(var(--ib-y, 60%) + 35%), #020b1a 100%); }
	.ib-ola-m { display: block; position: absolute; left: 0; right: 0; top: var(--ib-y, 60%); height: 18px; margin-top: -9px; z-index: 1; pointer-events: none;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='18' viewBox='0 0 40 18'%3E%3Cpath d='M0 9 q10 -8 20 0 t20 0' fill='none' stroke='%23bfe3fb' stroke-width='3' opacity='.8'/%3E%3C/svg%3E") repeat-x 0 50% / 40px 18px; animation: ib-ola-m 4s linear infinite; }
	.ib-ola-m::after { content: "nivel del agua"; position: absolute; right: var(--w3-gutter, 16px); top: -16px; font: 600 11px var(--w3-mono); text-transform: uppercase; color: #bfe3fb; opacity: .7; }
	.ib-box.is-top { background: rgb(var(--w3-tinte) / .1); }
}
@keyframes ib-ola-m { to { background-position: 40px 50%; } }
@media (prefers-reduced-motion: reduce) { .ib-ola-m { animation: none; } }
