/* The portrait artwork is framed independently from the editable section content. */
.chico-section.section {
    min-height: 100svh;
    padding: calc(var(--header-height) + 24px) 3.5% 32px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    isolation: isolate;
}
.chico-section::before,
.chico-section::after { display: none; }
.chico-section.schedule-section {
    background-image: linear-gradient(#98263188, #a6252b99), url('../assets/chico/programacion.webp');
}
.chico-section.artists-section {
    background-image: url('../assets/home-octubre/fondo.webp');
    background-size: cover;
}
.chico-section .schedule-logo,
.chico-section .artists-logo {
    display: block;
    width: 210px;
    height: 155px;
    object-fit: contain;
    margin: 0 auto 12px;
    filter: drop-shadow(0 3px 3px #19334e55);
}
.chico-section .schedule-sponsors,
.chico-section .artists-sponsors {
    position: absolute;
    top: calc(var(--header-height) + 28px);
    right: 6%;
    bottom: auto;
    left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
    max-width: 410px;
    gap: 20px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}
.chico-section .schedule-sponsors img,
.chico-section .artists-sponsors img,
.chico-section .location-sponsors img {
    width: calc((100% - 40px) / 3);
    max-width: none;
    height: 72px;
    margin: 0;
    object-fit: contain;
    filter: none;
}
.chico-section .schedule-grid { width: min(1600px, 100%); margin: 0 auto; align-items: stretch; }
.chico-section .schedule-logo { width: 180px; height: 132px; margin-bottom: 0; }
.chico-section .schedule-day { display: flex; flex-direction: column; }
.chico-section .schedule-day h2 { font-size: 40px; margin-bottom: 14px; }
.chico-section .schedule-day ul {
    flex: 1;
    min-height: 430px;
    padding: 0 0 16px;
    border: 2px solid white;
    border-radius: 16px;
    background: #ffffff0a;
}
.chico-section .schedule-day li { padding-top: 6px; }
.chico-section .schedule-day li + li { margin-top: 8px; }
.chico-section .schedule-day span { font-size: 20px; padding: 2px 12px; }
.chico-section .schedule-day strong { padding: 3px 12px; font-size: 19px; line-height: 1.25; }
.chico-section .section-script { margin: 24px auto 0; font-size: 30px; }
.chico-section .artists-grid { width: min(1060px, 80%); margin: 0 auto; align-items: end; }
.chico-section .artist-card { min-height: 0; gap: 0; max-width: 300px; }
.chico-section .artist-visual {
    width: 100%;
    height: 325px;
    display: flex;
    align-items: end;
    justify-content: center;
}
.chico-section .artist-visual img {
    width: 100%;
    max-width: 300px;
    height: 325px;
    object-fit: contain;
    object-position: bottom;
    border-radius: 0;
    filter: drop-shadow(0 3px 3px #18354d55);
}
.chico-section .artist-visual.is-legacy { width: 210px; height: 205px; overflow: hidden; display: block; }
.chico-section .artist-visual.is-legacy img { width: 100%; height: auto; max-width: none; filter: none; }
.chico-section .artist-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(210px, 100%);
    padding: 10px;
    border-radius: 0 0 8px 8px;
    gap: 4px 8px;
    box-shadow: none;
    background: white;
}
.chico-section .artist-info span { grid-column: 1 / -1; font-size: 36px; }
.chico-section .artist-info strong { font-size: 76px; }
.chico-section .artist-info em { align-self: center; font-size: 24px; border-left: 2px solid #2848af; padding-left: 8px; }
.chico-section .artist-info small { grid-column: 1 / -1; font-size: 13px; }
.chico-section .artists-cta { margin-top: 28px; max-width: 100%; font-size: 22px; text-align: center; }
.chico-section .artists-kite { top: 28%; left: 3%; right: auto; bottom: auto; width: 190px; z-index: 1; }
.chico-wheel { position: absolute; pointer-events: none; width: 220px; animation: chico-wheel-spin 26s linear infinite; transform-origin: 44% 51.4%; z-index: 1; }
.artists-wheel { right: 4%; top: 48%; }
.chico-section.live-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url('../assets/envivo/FOND VIVO.webp');
    background-size: cover;
}
.chico-section .live-masthead { display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; align-items: center; gap: 20px; width: min(1300px, 100%); margin-bottom: 22px; }
.chico-section .live-logo { display: block; position: static; grid-column: 3; grid-row: 1; width: 220px; max-width: 100%; margin: 0; }
.chico-section.live-section .script-heading { grid-column: 2; grid-row: 1; font-size: 38px; margin: 0; text-align: center; }
.chico-section .video-frame { width: min(1120px, 80%); aspect-ratio: 16 / 9; margin: 0 auto; border-radius: 8px; flex-shrink: 0; }
.chico-section .video-placeholder { height: 100%; }
.chico-section .top-toy { width: 150px; left: 4%; bottom: 7%; z-index: 3; }
.chico-section.pampilla-animadores {
    display: block;
    min-height: max(760px, 100svh);
    background-image: url('../assets/chico/pampilla.webp');
}
/* Keep the original hosts' faces and lettering, masking the reference's baked-in body copy. */
.chico-hosts-frame {
    position: absolute;
    inset: var(--header-height) 0 0;
    overflow: hidden;
    pointer-events: none;
}
.chico-hosts {
    width: 100%;
    height: 100%;
    object-fit: fill;
    mask-image: linear-gradient(90deg, transparent 58%, black 61%), radial-gradient(ellipse 8% 24% at 62% 70%, black 85%, transparent 100%);
    clip-path: inset(0 .7% 1% 0);
    pointer-events: none;
}
.chico-section .pampilla-animadores-copy {
    left: var(--pampilla-text-left, 6%);
    top: max(calc(var(--header-height) + 75px), var(--pampilla-text-top, 15%));
    width: min(var(--pampilla-text-width, 42%), 760px);
    color: white;
    text-shadow: 0 2px 4px #1b354c;
}
.chico-section .pampilla-animadores-copy p { color: inherit; font-size: 26px; line-height: 1.45; font-style: italic; font-weight: 700; padding: 0; border: 0; background: none; box-shadow: none; }
.chico-history-brand { position: absolute; left: 10%; bottom: 8%; width: 46%; display: grid; justify-items: center; gap: 20px; z-index: 2; }
.chico-history-logo { width: 310px; max-width: 64%; }
.chico-activities { display: flex; gap: 16px; width: 100%; justify-content: center; }
.chico-activities img {
    width: calc((100% - 64px) / 5);
    max-width: 110px;
    aspect-ratio: 1;
    object-fit: contain;
    transform-origin: center;
    animation: chico-activity-pulse 5s ease-in-out infinite;
}
.chico-activities img:nth-child(2) { animation-delay: .65s; }
.chico-activities img:nth-child(3) { animation-delay: 1.3s; }
.chico-activities img:nth-child(4) { animation-delay: 1.95s; }
.chico-activities img:nth-child(5) { animation-delay: 2.6s; }
@keyframes chico-activity-pulse {
    0%, 36%, 100% { transform: scale(1); filter: drop-shadow(0 2px 3px #14325944); }
    18% { transform: scale(1.08); filter: drop-shadow(0 5px 7px #14325988); }
}
.chico-section.location-section {
    background-image: linear-gradient(#183d9a77, #192c9c88), url('../assets/chico/ubicacion.webp');
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    padding-inline: 9%;
    gap: 5%;
}
.chico-section .location-copy { text-align: center; width: 100%; }
.chico-section .location-copy > img { width: 320px; max-width: 85%; margin: 0 auto 24px; }
.chico-section .location-copy h1 { font-size: 48px; }
.chico-section .location-copy p { font-size: 21px; line-height: 1.5; }
.chico-section .location-sponsors { position: static; display: flex; width: 100%; margin-top: 36px; gap: 20px; }
.chico-section .map-wrap { width: 100%; gap: 0; }
.chico-section .map-frame { width: 100%; border-radius: 12px; }
.chico-section .map-actions { width: 100%; margin-top: 26px; gap: 24px; }
.chico-section .map-actions a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 210px;
    min-height: 58px;
    padding: 10px 16px;
    color: white;
    background: #bd202c;
    border: 2px solid white;
    border-radius: 20px;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
}
.chico-section .map-actions svg { width: 25px; height: 25px; flex-shrink: 0; }
.chico-section .location-kite { left: 2%; top: calc(var(--header-height) + 20px); bottom: auto; right: auto; width: 175px; z-index: 1; }
.location-wheel { bottom: -50px; right: -60px; width: 240px; }
@keyframes chico-wheel-spin { to { transform: rotate(360deg); } }
@media (min-width: 1800px) {
    .chico-section .schedule-logo, .chico-section .artists-logo { width: 250px; height: 185px; }
    .chico-section .schedule-day strong { font-size: 22px; }
    .chico-section .artist-visual, .chico-section .artist-visual img { height: 400px; }
    .chico-section .artist-visual.is-legacy { height: 205px; }
    .chico-section .artist-visual.is-legacy img { height: auto; }
    .chico-section .pampilla-animadores-copy p { font-size: 30px; }
}
@media (max-width: 1000px) {
    .chico-section .live-masthead { grid-template-columns: 160px minmax(0, 1fr) 160px; gap: 16px; }
    .chico-section .live-logo { width: 160px; }
    .chico-section .schedule-logo, .chico-section .artists-logo { width: 180px; height: 132px; margin-bottom: 0; }
    .chico-section .schedule-sponsors, .chico-section .artists-sponsors { position: relative; top: auto; right: auto; width: 330px; max-width: 90%; margin: 12px auto 24px; }
    .chico-section .schedule-sponsors img, .chico-section .artists-sponsors img { height: 54px; }
    .chico-section .artists-grid { width: 90%; }
    .chico-section .artists-kite, .artists-wheel { display: none; }
    .chico-section .pampilla-animadores-copy p { font-size: 21px; }
    .chico-section .location-copy h1 { font-size: 38px; }
    .chico-section .location-kite { width: 110px; }
    .chico-section .map-actions { gap: 12px; }
    .chico-section .map-actions a { width: auto; font-size: 17px; }
}
@media (max-width: 700px) {
    .chico-section.section { min-height: 0; padding: calc(var(--header-height) + 24px) 18px 40px; background-size: cover; }
    .chico-section .schedule-grid, .chico-section .artists-grid { width: min(440px, 100%); gap: 28px; }
    .chico-section .schedule-day, .chico-section .artist-card { flex-basis: 100%; max-width: 100%; }
    .chico-section .schedule-day h2 { font-size: 34px; }
    .chico-section .schedule-day ul { min-height: 0; background: #69182666; }
    .chico-section .schedule-day strong { font-size: 18px; }
    .chico-section .artist-visual, .chico-section .artist-visual img { height: 350px; max-width: 290px; }
    .chico-section .artist-visual.is-legacy { width: 210px; height: 205px; }
    .chico-section .artist-visual.is-legacy img { height: auto; }
    .chico-section .artists-cta { font-size: 18px; padding: 10px 12px; }
    .chico-section .section-script { font-size: 26px; }
    .chico-section.live-section { min-height: 650px; }
    .chico-section .live-masthead { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
    .chico-section .live-logo { width: 220px; margin: 0 auto; }
    .chico-section.live-section .script-heading { font-size: 30px; margin: 0; }
    .chico-section .video-frame { width: 100%; }
    .chico-section .top-toy { width: 74px; bottom: 12px; left: 0; }
    .chico-section.pampilla-animadores { display: flex; flex-direction: column; min-height: 0; background-image: linear-gradient(#153b7955, #183164bb), url('../assets/chico/pampilla.webp'); }
    .chico-hosts-frame { position: relative; inset: auto; width: calc(100% + 36px); aspect-ratio: .84; order: 3; margin: 0 -18px -40px; }
    .chico-hosts { position: absolute; inset: 0 auto 0 -130%; width: 233%; max-width: none; height: 100%; object-fit: fill; }
    .chico-section .pampilla-animadores-copy { position: relative; top: auto; left: auto; width: 100%; margin: 0; order: 1; }
    .chico-section .pampilla-animadores-copy p { font-size: 21px; line-height: 1.6; margin: 0; }
    .chico-history-brand { position: relative; left: auto; bottom: auto; width: 100%; margin: 24px 0; gap: 18px; order: 2; }
    .chico-history-logo { width: 230px; max-width: 80%; }
    .chico-activities { gap: 8px; }
    .chico-activities img { width: calc((100% - 32px) / 5); }
    .chico-section.location-section { display: flex; flex-direction: column; gap: 28px; }
    .chico-section .location-copy > img { width: 240px; margin-bottom: 20px; }
    .chico-section .location-copy h1 { font-size: 40px; }
    .chico-section .location-copy p { font-size: 19px; }
    .chico-section .location-sponsors { width: min(350px, 100%); margin: 24px auto 0; }
    .chico-section .location-sponsors img { height: 55px; }
    .chico-section .map-actions { gap: 10px; margin-top: 24px; }
    .chico-section .map-actions a { flex: 1; min-width: 0; padding: 10px 8px; font-size: 16px; border-radius: 16px; }
    .chico-section .location-kite, .location-wheel { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .chico-wheel, .chico-activities img { animation: none; }
}
