/* ANCISSSTE · [ancissste_evento] — videos de un evento por día y salón
   Paleta y tipografías de la plantilla Green Planet: Prata / Lato · #22406F · #ED8B72 */
.avce {
	--n: #22406f;
	--n2: #16294a;
	--c: #ed8b72;
	--c2: #b5543d;
	--red: #d6283a;
	--ink: #2b3445;
	--mu: #6b7486;
	--l: #e3e8f0;
	--bg: #f5f7fb;
	--r: 10px;
	font-family: Lato, Arial, Helvetica, sans-serif;
	color: var(--ink);
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 0 40px;
	line-height: 1.55;
}
.avce *, .avce *::before, .avce *::after { box-sizing: border-box; }
.avce h2, .avce h3, .avce h4 { font-family: Prata, Georgia, serif; color: var(--n); margin: 0; font-weight: 400; }
.avce h5, .avce h6 { font-family: Lato, Arial, sans-serif; margin: 0; }
.avce button { font-family: inherit; }
.avce a { text-decoration: none; }
.avce-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.avce :focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }

/* Encabezado del evento */
.avce-hero { text-align: center; padding: 44px 24px 36px; margin-bottom: 28px; border-radius: var(--r); background: linear-gradient(135deg, var(--n2) 0%, var(--n) 60%, #2d5592 100%); color: #fff; position: relative; overflow: hidden; }
.avce-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 28px solid rgba(237,139,114,.18); }
.avce-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; color: var(--c); margin: 0 0 12px; }
.avce .avce-title { color: #fff; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.25; max-width: 820px; margin: 0 auto; }
.avce-motto { font-style: italic; color: rgba(255,255,255,.85); margin: 12px 0 0; font-size: 17px; }
.avce-when { color: rgba(255,255,255,.75); margin: 6px 0 0; font-size: 15px; }
.avce-stats { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; position: relative; z-index: 1; }
.avce-stats li { margin: 0; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 99px; padding: 6px 16px; font-size: 14px; color: rgba(255,255,255,.85); }
.avce-stats li::before { display: none !important; }
.avce-stats strong { color: #fff; }

/* Buscador */
.avce-searchbar { max-width: 620px; margin: 0 auto 24px; text-align: center; }
.avce-search { width: 100%; border: 1px solid var(--l) !important; border-radius: 99px !important; padding: 13px 22px 13px 46px !important; font-size: 16px !important; color: var(--ink); height: auto !important; margin: 0 !important; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236b7486' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") no-repeat 18px center !important; box-shadow: 0 6px 18px -12px rgba(22,41,74,.35); }
.avce-search:focus { outline: none; border-color: var(--n) !important; }
.avce-search-status { color: var(--mu); font-size: 14px; margin: 8px 0 0; min-height: 1em; }

/* Pestañas de días */
.avce-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 26px; }
.avce-day-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px; border: 1px solid var(--l); border-radius: var(--r); background: #fff; color: var(--n) !important; transition: all .2s; cursor: pointer; }
.avce-day-tab:hover { border-color: var(--n); }
.avce-day-wd { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--c2); }
.avce-day-date { font-family: Prata, Georgia, serif; font-size: 24px; line-height: 1.2; }
.avce-day-n { font-size: 12px; color: var(--mu); }
.avce-day-tab.is-active { background: var(--n); border-color: var(--n); color: #fff !important; box-shadow: 0 12px 24px -14px rgba(22,41,74,.7); }
.avce-day-tab.is-active .avce-day-wd { color: var(--c); }
.avce-day-tab.is-active .avce-day-n { color: rgba(255,255,255,.7); }

/* Día */
.avce-day { margin-bottom: 40px; }
.avce-day-title { font-size: 26px; margin: 0 0 16px !important; padding-bottom: 10px; border-bottom: 2px solid var(--l); }
.avce.is-js .avce-days ~ .avce-day .avce-day-title { display: none; }

/* Pestañas de salones */
.avce-rooms { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.avce-room-tab { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--l); background: #fff; color: var(--n) !important; border-radius: 99px; padding: 9px 18px; font-weight: 700; font-size: 15px; transition: all .2s; }
.avce-room-tab span { background: var(--bg); color: var(--mu); border-radius: 99px; font-size: 12px; padding: 1px 8px; }
.avce-room-tab:hover { border-color: var(--n); }
.avce-room-tab.is-active { background: var(--c); border-color: var(--c); color: #fff !important; }
.avce-room-tab.is-active span { background: rgba(255,255,255,.25); color: #fff; }

/* Salón */
.avce-room { margin-bottom: 30px; }
.avce-room-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.avce-room-head h4 { font-size: 22px; }
.avce-room-head p { margin: 0; color: var(--mu); font-size: 14px; }
.avce-room-head a { color: var(--n); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.avce-share { background: none; border: 0; padding: 0; color: var(--n); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.avce-share.is-done { color: #2e7d4f; text-decoration: none; }

/* Sesiones */
.avce-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: none; }
.avce-item { margin: 0; padding: 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); background: #fff; border: 1px solid var(--l); border-radius: var(--r); overflow: hidden; transition: box-shadow .25s; }
.avce-item::before { display: none !important; }
.avce-item:hover { box-shadow: 0 14px 30px -20px rgba(22,41,74,.5); }
.avce-item[hidden], .avce-room[hidden], .avce-day[hidden] { display: none !important; }
.avce-thumb { position: relative; display: block; background: #0e1a30; aspect-ratio: 16/9; align-self: start; overflow: hidden; }
.avce-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.avce-item:hover .avce-thumb img { transform: scale(1.04); }
.avce-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(10,18,34,.85); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 4px; }
.avce-playicon { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(214,40,58,.92); box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .2s; }
.avce-playicon::after { content: ""; position: absolute; left: 21px; top: 16px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.avce-thumb:hover .avce-playicon { transform: scale(1.1); }
.avce-body { padding: 16px 20px 18px; min-width: 0; }
.avce-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.avce-badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; padding: 3px 8px; background: var(--bg); color: var(--n); }
.avce-k-simposio { background: #e8eef8; color: var(--n); }
.avce-k-taller { background: #e6f4ee; color: #1f6b46; }
.avce-k-caso-en-vivo, .avce-k-casos-en-vivo { background: #fdeaea; color: #a3202f; }
.avce-k-conferencia-magistral, .avce-k-conferencia { background: #f3ecfa; color: #5b3a8a; }
.avce-k-desayuno-con-el-experto, .avce-k-desayuno { background: #fdf0ec; color: var(--c2); }
.avce-k-trabajos-libres { background: #fff6dd; color: #8a6200; }
.avce-part { background: var(--n); color: #fff; }
.avce-where { font-size: 12px; color: var(--mu); display: none; }
.avce.is-searching .avce-where { display: inline; }
.avce .avce-item-title { font-size: 19px; line-height: 1.35; font-weight: 700; margin: 0 0 6px; }
.avce .avce-item-title a { color: var(--ink); }
.avce .avce-item-title a:hover { color: var(--n); }
.avce-summary { margin: 0 0 10px; color: #4a5366; font-size: 15px; }
.avce-people { margin: 0 0 6px; display: grid; gap: 3px; font-size: 14px; }
.avce-people div { display: flex; gap: 8px; }
.avce-people dt { flex: 0 0 auto; font-weight: 700; color: var(--n); min-width: 96px; margin: 0; }
.avce-people dd { margin: 0; color: var(--ink); }
.avce-more { margin-top: 8px; border-top: 1px dashed var(--l); padding-top: 8px; font-size: 14px; }
.avce-more summary { cursor: pointer; color: var(--c2); font-weight: 700; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.avce-more summary::-webkit-details-marker { display: none; }
.avce-more summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--c); color: #fff; font-size: 14px; line-height: 1; }
.avce-more[open] summary::before { content: "−"; }
.avce-more h6 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mu); margin: 12px 0 6px; }
.avce-official { margin: 10px 0 0; color: var(--mu); }
.avce-official span { font-weight: 700; color: var(--ink); }
.avce-talks { margin: 0; padding: 0 0 0 18px; }
.avce-talks li { margin: 0 0 4px; }
.avce-talks em { color: var(--mu); font-style: normal; white-space: normal; }
.avce-talks em::before { content: "— "; }
.avce-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.avce-chapters li { margin: 0; }
.avce-chapters li::before { display: none !important; }
.avce-chapters a { display: flex; gap: 10px; padding: 5px 8px; border-radius: 6px; color: var(--ink); }
.avce-chapters a:hover { background: var(--bg); color: var(--n); }
.avce-ts { flex: 0 0 auto; min-width: 56px; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--red); }
.avce-note { margin: 8px 0 0; color: var(--mu); font-style: italic; }

.avce-noresults { text-align: center; color: var(--mu); padding: 30px 0; }
.avce-foot { text-align: center; color: var(--mu); font-size: 14px; margin-top: 10px; }
.avce-foot a { color: var(--n); font-weight: 700; text-decoration: underline; }
.avce-empty { text-align: center; padding: 30px; background: var(--bg); border-radius: var(--r); }

/* Reproductor */
.avce-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.avce-modal[hidden] { display: none; }
.avce-modal-backdrop { position: absolute; inset: 0; background: rgba(10,18,34,.9); }
.avce-modal-box { position: relative; width: min(1100px, 100%); }
.avce-modal-frame { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; }
.avce-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.avce-modal-title { color: #fff; font-size: 16px; margin: 12px 0 0; }
.avce-modal-close { position: absolute; top: -46px; right: 0; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
body.avce-lock { overflow: hidden; }

/* Responsivo */
@media (max-width: 860px) {
	.avce-item { grid-template-columns: 1fr; }
	.avce-hero { padding: 34px 18px 28px; }
}
@media (max-width: 600px) {
	.avce-days { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.avce-day-tab { padding: 10px 4px; }
	.avce-day-date { font-size: 18px; }
	.avce-day-n { display: none; }
	.avce-rooms { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
	.avce-room-tab { white-space: nowrap; }
	.avce-people div { flex-direction: column; gap: 0; }
	.avce .avce-item-title { font-size: 17px; }
	.avce-body { padding: 14px 16px 16px; }
}
@media (prefers-reduced-motion: reduce) { .avce * { transition: none !important; } }

/* Enlaces directos (#viernes-20--salon-mexico): compensa el encabezado fijo de la plantilla */
.avce-day, .avce-room { scroll-margin-top: 130px; }

/* La plantilla Green Planet aplica Prata a los enlaces: se fija Lato dentro de la sección
   y Prata solo donde corresponde. */
.avce a, .avce button, .avce li, .avce p, .avce span, .avce dt, .avce dd, .avce input, .avce summary, .avce em, .avce strong { font-family: Lato, Arial, Helvetica, sans-serif; }
.avce .avce-day-date { font-family: Prata, Georgia, serif; }
.avce-stats li { display: inline-flex; align-items: baseline; gap: 4px; line-height: 1.4; padding: 6px 16px !important; } /* el tema quita el padding superior al primer <li> */
/* La plantilla fija peso 400 en enlaces y 300 en párrafos */
.avce .avce-item-title a { font-weight: 700; }
.avce-summary, .avce-people dd, .avce-talks li, .avce-chapters a, .avce-room-head p, .avce-when { font-weight: 400; }
