/* Dedicated product pages: readable, source-led detail with the Capital.ec palette. */
.product-detail-page { margin: 0; background: #f5f8fc; color: #102e57; font-family: Inter, Arial, sans-serif; line-height: 1.65; }
.product-detail-page * { box-sizing: border-box; }
.product-detail-page .pd-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px max(24px, calc((100% - 1240px)/2)); background: white; border-bottom: 1px solid #dae4ee; position: sticky; top: 0; z-index: 30; }
.pd-brand { color: #082b5b; text-decoration: none; font-weight: 800; font-size: 32px; letter-spacing: -1.5px; white-space: nowrap; }
.pd-brand span { color: #087bff; }
.pd-desktop-nav { display: flex; gap: 6px; align-items: center; }
.pd-desktop-nav a { color: #102e57; font-weight: 650; font-size: 14px; padding: 10px 12px; text-decoration: none; border-radius: 12px; }
.pd-desktop-nav a[aria-current], .pd-desktop-nav a:hover { background: #dceeff; }
.pd-mobile-nav { display: none; }
.product-detail-page .pd-main { width: min(1160px, calc(100% - 40px)); max-width: 1160px; margin: 0 auto; padding: 24px 0 60px; border: 0; background: transparent; box-shadow: none; }
.pd-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; color: #60758d; font-size: 12px; margin-bottom: 22px; }
.pd-breadcrumb a { color: #0868bc; }
.pd-hero { padding: 40px; border: 1px solid #c9def3; background: #e5f1ff; border-radius: 20px; }
.pd-eyebrow { display: block; color: #4c6b8c; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 10px; }
.product-detail-page h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -.035em; margin: 0 0 20px; max-width: 900px; color: #082b5b; }
.product-detail-page h2 { font-size: clamp(23px, 2.5vw, 31px); line-height: 1.25; letter-spacing: -.025em; margin: 0 0 18px; color: #102e57; }
.product-detail-page h3 { font-size: 18px; line-height: 1.4; margin: 20px 0 10px; }
.product-detail-page p { margin: 0 0 16px; }
.pd-hero > p { max-width: 850px; font-size: 16px; }
.pd-hero .pd-small { font-size: 12px; color: #536d88; margin: 16px 0 0; }
.pd-button, .pd-filter button { display: inline-block; border: 1px solid #0864bb; border-radius: 10px; padding: 11px 18px; background: #0864bb; color: #fff; text-decoration: none; font: 650 14px/1.5 Inter,Arial,sans-serif; cursor: pointer; }
.pd-button.pd-secondary, .pd-filter .pd-secondary { background: white; color: #0868bc; border-color: #b8cce2; }
.pd-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; }
.pd-jump a { padding: 9px 15px; border: 1px solid #cadbea; border-radius: 99px; background: white; color: #155887; font-size: 13px; text-decoration: none; }
.pd-section { background: white; padding: 32px; margin: 24px 0; border: 1px solid #dce5ef; border-radius: 18px; min-width: 0; }
.product-detail-page [id] { scroll-margin-top: 110px; }
.pd-notice { padding: 14px 16px; background: #edf5ff; border: 1px solid #c9e0fa; border-radius: 10px; font-size: 13px; color: #375c81; }
.pd-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 18px; margin: 20px 0 14px; border: 1px solid #dce5ef; background: #f6f9fd; border-radius: 12px; }
.pd-filter label { flex: 1 1 180px; display: grid; gap: 7px; font-size: 14px; font-weight: 650; }
.pd-filter input { width: 100%; min-width: 0; padding: 10px 12px; background: white; border: 1px solid #b8cce2; border-radius: 8px; font: inherit; font-size: 16px; min-height: 44px; color: #102e57; }
#deposit-filter-result { color: #52708e; font-size: 13px; }
.pd-group { border: 1px solid #d5e2ee; border-radius: 12px; margin-top: 14px; overflow: hidden; }
.pd-group > summary { padding: 16px 18px; font-size: 15px; font-weight: 650; cursor: pointer; background: #f7faff; }
.pd-group > summary > span { font-size: 12px; color: #60758d; margin-left: 8px; font-weight: 500; }
.pd-group-body { padding: 20px; min-width: 0; }
.pd-product { padding: 20px 0; border-bottom: 1px solid #dce5ef; }
.pd-product:first-child { padding-top: 0; }
.pd-product:last-child { border-bottom: 0; }
.pd-product > h3 { margin-top: 0; }
.pd-table-wrap { width: 100%; overflow-x: auto; margin: 16px 0; border: 1px solid #d8e3ee; border-radius: 10px; }
.pd-table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; line-height: 1.5; background: white; }
.pd-table-wrap caption { text-align: left; padding: 12px 14px; font-size: 12px; color: #60758d; background: #f8fbff; }
.pd-table-wrap th, .pd-table-wrap td { padding: 13px 14px; border-bottom: 1px solid #e1e9f1; vertical-align: top; text-align: left; }
.pd-table-wrap thead th { color: #516f8f; background: #edf4fb; font-size: 12px; font-weight: 700; }
.pd-table-wrap tbody th { font-weight: 550; }
.pd-table-wrap tbody tr:last-child > * { border-bottom: 0; }
.pd-table-wrap tbody tr:nth-child(even) { background: #fafcff; }
.pd-table-wrap tr:target { background: #e5f2ff; outline: 2px solid #2186eb; outline-offset: -2px; }
.pd-source, .pd-footnote { color: #5c7289; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.pd-source a, .pd-footnote a { color: #0868bc; }
.pd-warning { display: block; color: #845917; font-size: 12px; margin-top: 5px; }
.pd-stats, .pd-explain-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 14px; margin: 20px 0; }
.pd-stat, .pd-explain-grid article { background: #f5f9fe; border: 1px solid #dce7f2; border-radius: 12px; padding: 18px; min-width: 0; }
.pd-stat > span { display: block; font-size: 12px; color: #617b96; text-transform: uppercase; letter-spacing: .04em; }
.pd-stat > strong { display: block; font-size: 23px; line-height: 1.4; margin: 10px 0 6px; overflow-wrap: anywhere; }
.pd-stat small { display: block; font-size: 12px; color: #617b96; }
.pd-explain-grid h3 { margin-top: 0; }
.pd-explain-grid p { margin-bottom: 0; font-size: 14px; }
.pd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-facts > div { padding: 14px; border: 1px solid #dce5ef; border-radius: 10px; }
.pd-facts dt { color: #60758d; font-size: 12px; margin-bottom: 6px; }
.pd-facts dd { margin: 0; font-size: 14px; }
.pd-footer { padding: 12px 8px; color: #617b96; font-size: 12px; }
.product-detail-page :is(a, button, input, select, summary):focus-visible { outline: 2px solid #0864bb; outline-offset: 3px; }
@media (max-width: 1000px) { .pd-desktop-nav { display: none; } .pd-mobile-nav { display: block; } .pd-mobile-nav > summary { padding: 8px 14px; border: 1px solid #c9d9e9; border-radius: 10px; cursor: pointer; } .pd-mobile-nav nav { position: absolute; right: 20px; top: 75px; width: 230px; padding: 12px; display: grid; background: white; border: 1px solid #dce5ef; border-radius: 12px; box-shadow: 0 12px 35px #102e571c; } .pd-mobile-nav nav a { padding: 10px; color: #102e57; text-decoration: none; } }
@media (max-width: 600px) { .product-detail-page .pd-topbar { padding: 14px 18px; } .pd-brand { font-size: 27px; } .product-detail-page .pd-main { width: calc(100% - 24px); padding-top: 16px; } .pd-hero { padding: 24px 18px; } .pd-section { padding: 22px 16px; } .pd-group-body { padding: 14px; } .pd-group > summary { padding: 14px; } .pd-stats, .pd-facts { grid-template-columns: minmax(0,1fr); } .pd-filter { padding: 12px; } .pd-filter label { flex-basis: 100%; } .pd-filter button { flex: 1; } .pd-table-wrap::before { content: 'Desliza la tabla para ver todas las columnas →'; display: block; padding: 8px 12px; font-size: 12px; color: #60758d; } .pd-table-wrap table { font-size: 12px; } .pd-jump a { padding: 8px 12px; font-size: 12px; } }

@media (max-width: 600px) {
  .pd-table-wrap.pd-compact::before { display: none; }
  .pd-table-wrap.pd-compact table { min-width: 0; table-layout: fixed; }
  .pd-table-wrap.pd-compact th, .pd-table-wrap.pd-compact td { padding: 11px 7px; overflow-wrap: anywhere; }
  .pd-table-wrap.pd-compact thead th { font-size: 12px; }
}

/* Accessible controls and supporting information; no layout change. */
.pd-button, .pd-filter button, .pd-mobile-nav > summary { min-height: 44px; }
.pd-button:hover, .pd-filter button:not(.pd-secondary):hover { background: #084f94; }
.pd-button.pd-secondary:hover { background: #edf5ff; }
.pd-source, .pd-footnote, .pd-notice, .pd-hero .pd-small, #deposit-filter-result { font-size: 14px; }
.pd-filter input { border-color: #657c94; }
.pd-filter input:focus-visible { outline: 2px solid #0864bb; outline-offset: 3px; }

.pd-breadcrumb, .pd-stat > span, .pd-stat small, .pd-footer { color: #52657a; }
/* Product families share the compact Pichincha layout. */
.product-detail-page .pd-topbar { min-height: 78px; padding: 13px max(24px, calc((100% - 1192px)/2)); }
.product-detail-page .pd-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.product-detail-page .pd-desktop-nav { gap: 4px; }
.product-detail-page .pd-desktop-nav a { padding: 11px 15px; border-radius: 10px; }
.product-detail-page .pd-main { width: min(1240px, calc(100% - 32px)); max-width: 1240px; padding-top: 16px; }
.product-detail-page .pd-breadcrumb { margin-bottom: 16px; font-size: .875rem; }
.product-detail-page .pd-hero { padding: 24px; border-radius: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; }
.product-detail-page .pd-hero > :is(h1, p, .pd-eyebrow) { grid-column: 1; margin: 0; }
.product-detail-page .pd-hero h1 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.15; }
.product-detail-page .pd-hero > .pd-button { grid-column: 2; grid-row: 1 / 3; align-self: start; background: white; color: #0864bb; }
.product-detail-page .pd-hero .pd-small { font-size: .875rem; line-height: 1.5; }
.product-detail-page .pd-jump { gap: 8px; margin: 16px 0; }
.product-detail-page .pd-jump a { border-radius: 10px; font-size: .875rem; min-height: 44px; display: inline-flex; align-items: center; }
.product-detail-page .pd-jump a:first-child { background: #0864bb; border-color: #0864bb; color: white; }
.product-detail-page .pd-section { margin: 16px 0; padding: 24px; border-radius: 16px; }
.product-detail-page .pd-section h2 { margin-bottom: 12px; }
.product-detail-page .pd-reading-help { margin: 12px 0; }
.product-detail-page .pd-reading-help > summary { min-height: 44px; padding: 12px 16px; }
.product-detail-page .pd-filter { margin-top: 12px; }
.product-detail-page :is(.pd-table-wrap, .pd-stat) { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .product-detail-page .pd-topbar { padding: 13px 16px; }
  .product-detail-page .pd-hero { display: flex; flex-direction: column; padding: 20px 16px; gap: 12px; }
  .product-detail-page .pd-hero > .pd-button { order: -1; align-self: flex-start; }
  .product-detail-page .pd-section { padding: 20px 16px; }
  .product-detail-page .pd-jump { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail-page .pd-jump a { padding: 10px 12px; }
}

.product-detail-page .pd-intro-help { grid-column: 1; font-size: 1rem; }
.product-detail-page .pd-intro-help summary { min-height: 44px; align-content: center; cursor: pointer; font-size: .875rem; font-weight: 600; }
.product-detail-page .pd-intro-help p { margin: 8px 0 0; max-width: 75ch; }
