/* FICHAS CLARAS. Aquí se ajusta la búsqueda; el menú y los iconos de los alumnos
   se conservan. Cambia espacios o colores sin tocar el motor de precios. */
.revision #results-section { margin-top: 36px; }
.revision #results-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 10px; }
.revision #search-status { margin: 0 0 20px; }
.revision .filter-disclosure { border: 1px solid #8ca9d4; border-radius: 12px; padding: 12px 18px; color: white; }
.revision .filter-disclosure > summary { min-height: 24px; font-size: .94rem; }
.revision .filter-disclosure .filters { padding: 18px 0 4px; }
.revision .price-explanation { color: white; margin-top: 24px; border-color: #829bc3; font-size: .9rem; line-height: 1.65; }
.revision .price-explanation p { max-width: 760px; }
.revision .results { gap: 24px; padding-top: 24px; }
.revision .product-card { border: 1px solid #d5deec; background: white; border-radius: 18px; box-shadow: 0 8px 24px #08234c12; }
.revision .product-image { height: 190px; border: 0; }
.revision .product-image img { padding: 24px; }
.revision .product-image .image-fallback,.revision .detail-image .image-fallback { padding: 8px; font-size: .72rem; line-height: 1.5; }
.revision .card-body { padding: 22px; }
.revision .card-body h3 { font: 650 1.03rem/1.5 system-ui,sans-serif; color: #17243b; margin: 0 0 20px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.revision .card-body .price-caption { color: #5a677b; font-size: .77rem; line-height: 1.5; margin: auto 0 4px; }
.revision .card-body .price { font: 750 1.7rem/1.3 system-ui,sans-serif; color: #101d34; letter-spacing: -.04em; margin: 0; overflow-wrap: anywhere; }
.revision .review-date { font: 500 .76rem/1.5 system-ui,sans-serif; color: #58677d; margin: 9px 0 20px; }
.revision .review-date::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7a8698; margin: 0 7px 1px 0; }
.revision .review-recent::before { background: #257353; }
.revision .review-stale::before { background: #bb641c; }
.revision .product-card .button { width: 100%; background: #f0f4fa; color: #19365f; border: 1px solid #c8d5e7; border-radius: 9px; font-weight: 650; }
.revision .product-card .button:hover { background: #e1eaf7; border-color: #8da4c6; }
.revision .results-more { grid-column: 1 / -1; justify-self: center; margin: 8px 0; padding-inline: 32px; background: #ffbc7d; color: #14213a; border-color: transparent; }
.revision #detail { background: #fff; max-width: 880px; }
.revision .dialog-head { border-bottom: 2px solid #ed9b50; align-items: start; }
.revision .dialog-head h2 { font: 650 clamp(1.15rem,2.2vw,1.55rem)/1.45 system-ui,sans-serif; color: #17243b; }
.revision .product-intro { display: flex; gap: 24px; align-items: center; margin-bottom: 24px; }
.revision .product-intro .detail-image { width: 180px; height: 180px; flex: 0 0 180px; margin: 0; }
.revision .product-overview { min-width: 0; }
.revision #detail .intro-follow { display: inline-flex; margin: 0 0 12px; background: #ffbc7d; color: #14213a; border: 1px solid #e3a060; font-size: .85rem; border-radius: 9px; }
.revision .detail-price { font: 750 clamp(1.8rem,3vw,2.3rem)/1.3 system-ui,sans-serif; color: #14213a; margin: 4px 0; letter-spacing: -.04em; overflow-wrap: anywhere; }
.revision .product-intro .meta { margin: 0; color: #566379; font-size: .9rem; line-height: 1.7; max-width: 460px; }
.revision #detail h3 { color: #17243b; font-size: 1.1rem; margin: 24px 0 16px; }
.revision .offers { margin-bottom: 12px; gap: 16px; }
.revision .offers .offer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px 24px; border: 1px solid #d9e1ee; padding: 22px; background: #f9fbfe; }
.revision .offer h4 { margin: 0; color: #17243b; font-size: 1rem; }
.revision .offer .review-date { margin: 8px 0 0; }
.revision .offer-price { font: 750 1.45rem/1.4 system-ui,sans-serif; color: #17243b; margin: 0; overflow-wrap: anywhere; }
.revision .offer-actions { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; }
.revision #detail .offer a.secondary { background: #fff; border: 1px solid #a7b9d3; color: #19365f; }
.revision #detail .offer a.follow-price { background: #ffbc7d; color: #14213a; border-color: #e3a060; }
.revision .offer-caution { color: #59667b; font-size: .78rem; line-height: 1.6; margin-bottom: 26px; }
.revision .history-preview { color: #59667b; font-size: .87rem; line-height: 1.6; margin: 18px 0 12px; }
.revision .history-disclosure { color: #19365f; border-top: 1px solid #d2dceb; }
.revision .history-disclosure > summary { font-size: 1rem; padding: 4px 0; }
.revision .history-chart figcaption { color: #516078; }
.revision .history-chart .meta { color: #59667b; line-height: 1.65; }
/* SEMÁFORO: círculos hechos con CSS. Los iconos de los alumnos no se modifican.
   Los colores siempre van acompañados por una explicación escrita. */
.revision .price-history-panel { border: 1px solid #d9e3f0; border-radius: 18px; padding: 24px; margin: 24px 0 30px; color: #25364f; background: #fff; }
.revision #detail .price-history-panel > h3 { font-size: 1.25rem; margin: 0 0 20px; }
.revision .price-signal { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 12px; background: #f1f4f8; border: 1px solid #dbe2ec; }
.revision .traffic-lights { display: flex; gap: 6px; padding: 8px; flex: 0 0 auto; background: #fff; border-radius: 24px; border: 1px solid #d2dce9; }
.revision .traffic-light { display: block; width: 13px; height: 13px; border-radius: 50%; background: #e0e6ee; border: 1px solid #c9d2df; }
.revision .light-low.is-on { background: #14804f; border-color: #08683c; box-shadow: 0 0 0 3px #c9ead9; }
.revision .light-near.is-on { background: #e9a700; border-color: #a57100; box-shadow: 0 0 0 3px #ffedba; }
.revision .light-high.is-on { background: #c83945; border-color: #a82632; box-shadow: 0 0 0 3px #f9d9dd; }
.revision .signal-low { background: #eef9f3; border-color: #b6ddc9; }
.revision .signal-near { background: #fff9e9; border-color: #edd9a1; }
.revision .signal-high { background: #fff2f3; border-color: #efc6ca; }
.revision .signal-label { margin: 0 0 5px; color: #172b46; font: 750 1.05rem/1.4 system-ui,sans-serif; }
.revision .signal-description { color: #46586f; margin: 0; font: 400 .84rem/1.6 system-ui,sans-serif; }
.revision .history-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 24px 0; }
.revision .history-stat { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.revision .history-stat + .history-stat { border-left: 1px solid #e0e6ef; padding-left: 22px; }
.revision .stat-label { font-size: .78rem; color: #62728b; }
.revision .history-stat strong { font-size: clamp(1.15rem,2.5vw,1.65rem); letter-spacing: -.03em; color: #142b48; overflow-wrap: anywhere; }
.revision .stat-caption { font-size: .72rem; color: #64728a; line-height: 1.5; }
.revision .price-timeline { margin: 0; padding: 18px 16px 14px; border: 1px solid #e0e8f2; border-radius: 14px; background: linear-gradient(180deg,#f7faff 0%,#fff 80%); }
.revision .timeline-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.revision .timeline-toolbar figcaption { font-size: .83rem; font-weight: 650; }
.revision .history-periods { display: flex; gap: 4px; background: #eaf0f8; border-radius: 8px; padding: 3px; }
.revision .history-periods button { background: transparent; border: 0; border-radius: 6px; font: 600 .72rem/1.4 system-ui,sans-serif; padding: 8px 10px; color: #52657f; cursor: pointer; min-height: 36px; }
.revision .history-periods button[aria-pressed=true] { background: white; color: #174b91; box-shadow: 0 1px 4px #1734591a; }
.revision .timeline-readout { display: flex; gap: 7px 14px; align-items: baseline; flex-wrap: wrap; margin: 20px 0 0; min-height: 40px; color: #52657f; font-size: .75rem; }
.revision .timeline-readout strong { font-size: 1.15rem; color: #19365f; }
.revision .timeline-readout span { line-height: 1.5; }
.revision .timeline-plot { width: 100%; min-width: 0; }
.revision .timeline-plot canvas { display: block; width: 100%; max-width: 100%; }
.revision .timeline-explorer { display: flex; align-items: center; gap: 14px; color: #586a82; font-size: .72rem; }
.revision .timeline-explorer span { flex: 0 0 auto; }
.revision .timeline-explorer input { width: 100%; min-width: 0; min-height: 30px; accent-color: #2765bc; cursor: pointer; }
.revision .timeline-caption { color: #65758c; font-size: .71rem; line-height: 1.6; margin: 12px 0 0; }
.revision .history-data,.revision .signal-method { border-top: 1px solid #e1e7ef; margin-top: 18px; padding-top: 12px; color: #536780; }
.revision .history-data summary,.revision .signal-method summary { font-size: .8rem; min-height: 30px; }
.revision .signal-method p { font-size: .79rem; line-height: 1.7; }
.revision .history-data table { width: 100%; font-size: .78rem; }
.revision .history-market-title { color: #19365f; margin: 24px 0 12px; }
.revision .history-market + .history-market-title { border-top: 1px solid #dce4ef; padding-top: 24px; }
.revision .history-empty { font-size: .9rem; color: #596b82; line-height: 1.7; }
.revision .deal-badge { align-self: flex-start; padding: 6px 10px; border-radius: 6px; background: #eaf7f0; color: #11683e; font-size: .78rem; font-weight: 750; margin: 0 0 14px; }
.revision .deal-previous { color: #68778e; font-size: .74rem; line-height: 1.5; margin: 8px 0 0; }
.revision .product-card .deal-follow { margin-top: 9px; background: #ffddbd; border-color: #eab989; color: #25344d; font-size: .8rem; }
.revision .promotion-link { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 10px; margin-top: 18px; background: #ffbc7d; color: #182940; font-weight: 700; text-decoration: none; }
.revision .promo-how { display: flex; gap: 12px 24px; flex-wrap: wrap; list-style: none; padding: 0; margin: 24px 0 0; font-size: .83rem; color: #d9e6ff; }
.revision .promo-how li { border-left: 3px solid #ffbc7d; padding-left: 12px; }
.revision .promotion-intro { max-width: 700px; font-size: 1rem; line-height: 1.7; color: #e2ecfc; }
.revision .promotion-empty-cta { margin-top: 12px; }
@media (max-width: 760px) {
  .revision .results { grid-template-columns: 1fr; gap: 16px; }
  .revision .product-card { display: grid; grid-template-columns: 104px minmax(0,1fr); border-radius: 14px; }
  .revision .product-image { height: auto; min-height: 180px; }
  .revision .product-image img { padding: 12px; }
  .revision .card-body { padding: 18px 16px 18px 0; }
  .revision .card-body h3 { font-size: .94rem; line-height: 1.45; margin-bottom: 14px; }
  .revision .card-body .price { font-size: 1.35rem; }
  .revision .product-card .button { font-size: .8rem; padding: 10px; }
  .revision .review-date { font-size: .71rem; margin: 8px 0 14px; }
  .revision .product-intro { gap: 16px; }
  .revision .product-intro .detail-image { width: 92px; height: 110px; flex-basis: 92px; }
  .revision .detail-price { font-size: 1.55rem; }
  .revision .product-intro .meta { font-size: .82rem; }
  .revision .offers .offer { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
  .revision .offer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .revision .offer-actions .button { padding: 10px 8px; font-size: .8rem; }
  .revision .price-history-panel { padding: 16px; margin: 20px 0; border-radius: 14px; }
  .revision .price-signal { padding: 14px; flex-direction: column; gap: 12px; }
  .revision .signal-label { font-size: .98rem; }
  .revision .history-stats { gap: 14px; padding: 20px 0; }
  .revision .history-stat + .history-stat { padding-left: 14px; }
  .revision .price-timeline { padding: 14px 10px; }
  .revision .timeline-toolbar { align-items: flex-start; gap: 10px; }
  .revision .timeline-readout { margin-top: 16px; }
  .revision .timeline-explorer { flex-direction: column; align-items: stretch; gap: 2px; }
  .revision .timeline-caption { font-size: .7rem; }
}
@media (max-width: 350px) {
  .revision .product-card { grid-template-columns: 80px minmax(0,1fr); }
  .revision .card-body .price { font-size: 1.2rem; }
  .revision .product-image img { padding: 8px; }
  .revision .offer-actions { grid-template-columns: 1fr; }
}
