/* Exploración del portafolio: identidad Codifica, navegación por objetivos y cursos. */
:root { --surface: #FFFFFF; --header-height: 138px; }
html { scroll-padding-top: calc(var(--header-height) + 82px); }
.site-header { background: var(--paper); backdrop-filter: blur(18px); }
.header-inner { height: 94px; min-height: 94px; gap: 44px; }
.header-inner .brand-logo { width: 64px; }
.header-search { flex: 1; position: relative; max-width: 660px; min-width: 0; }
.header-search-control { display: flex; align-items: center; gap: 14px; padding: 4px 5px 4px 19px; border: 1px solid var(--line); background: var(--pale); border-radius: 50px; }
.header-search-control > .icon { width: 21px; flex-shrink: 0; color: var(--muted); }
.header-search-control input { border: 0; outline: 0; background: transparent; color: var(--ink); width: 100%; min-width: 0; height: 40px; font-size: .94rem; }
.header-search-control input::placeholder { color: var(--muted); opacity: 1; }
.header-search-control:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; }
.header-search-control button { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; border: 0; background: var(--navy); color: white; flex-shrink: 0; }
.header-search-control button .icon { width: 19px; }
.header-actions { gap: 22px; }
.consultation-link { border: 0; border-radius: 0; width: auto; gap: 9px; padding: 7px 4px; }
.consultation-label { font-size: .82rem; white-space: nowrap; }
.cart-count { position: static; display: inline-grid; place-items: center; height: 21px; min-width: 21px; padding-inline: 4px; font-size: .68rem; line-height: 1; }
.header-nav-shell { border-top: 1px solid var(--line); }
.header-nav-inner { display: flex; align-items: center; gap: 36px; min-height: 44px; position: relative; }
.main-nav { gap: 31px; }
.main-nav a { font-size: .74rem; padding-block: 12px; }
.main-nav a::after { bottom: 0; height: 2px; }
.header-portfolio { font-size: .75rem; color: var(--muted); margin-left: auto; }
.explore-menu > summary { display: flex; align-items: center; gap: 11px; font: 500 .74rem/1.5 var(--heading); padding-block: 11px; list-style: none; }
.explore-menu > summary::-webkit-details-marker { display: none; }
.explore-menu > summary .icon:first-child { width: 18px; }
.explore-menu > summary .icon:last-child { width: 14px; transition: transform .2s; }
.explore-menu[open] > summary .icon:last-child { transform: rotate(180deg); }
.explore-dropdown { position: absolute; top: calc(100% + 1px); left: 0; right: 0; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 20px 20px; box-shadow: 0 20px 45px #00000020; max-height: 70vh; overflow-y: auto; }
.explore-dropdown-title { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.explore-dropdown-title > strong { font: 500 1rem var(--heading); }
.explore-dropdown-title > a { display: flex; align-items: center; gap: 12px; font-size: .85rem; }
.explore-area-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px 24px; margin-top: 15px; }
.explore-area-grid a { position: relative; padding: 14px 32px 14px 12px; border-radius: 9px; }
.explore-area-grid a:hover { background: var(--pale); }
.explore-area-grid span { display: block; font-size: .93rem; }
.explore-area-grid small { color: var(--muted); font-size: .78rem; }
.explore-area-grid .icon { position: absolute; right: 10px; top: 20px; width: 17px; }
.search-suggestions { position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; padding: 12px; box-shadow: 0 20px 45px #00000020; }
.suggestions-label { font-size: .76rem; padding: 6px 8px; margin: 0; }
[data-search-matches] > a { display: flex; align-items: center; gap: 14px; padding: 10px 8px; border-radius: 9px; }
[data-search-matches] > a:hover, [data-search-matches] > a.is-highlighted { background: var(--pale); }
[data-search-matches] img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
[data-search-matches] strong { display: block; font-size: .88rem; font-weight: 700; line-height: 1.35; }
[data-search-matches] small { color: var(--muted); font-size: .73rem; }
.search-all { padding: 12px 8px 3px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); font-size: .83rem; margin-top: 7px; }
.search-all .icon { width: 18px; }
.brand-hero { padding-block: 55px 0; }
.brand-hero .hero-grid { grid-template-columns: 1.12fr 1fr; gap: 60px; }
.brand-hero .hero-copy { padding-top: 0; }
.brand-hero .hero-copy > .eyebrow { font-size: .69rem; border: 0; background: transparent; padding: 0; margin-bottom: 23px; }
html .brand-hero .hero-copy h1 { font-size: clamp(2.3rem,3.7vw,3.35rem); line-height: 1.2; letter-spacing: -.035em; font-weight: 600; }
html .brand-hero .hero-copy h1 span { text-decoration: none; }
.brand-hero .hero-copy > p { font-size: 1.05rem; line-height: 1.6; max-width: 520px; margin-block: 22px; }
.brand-hero .hero-actions { margin-bottom: 22px; }
.brand-hero .hero-search { width: 100%; max-width: 520px; border-radius: 12px; margin-top: 22px; }
.hero-topics { display: flex; flex-wrap: wrap; gap: 6px 11px; margin-top: 13px; align-items: center; font-size: .75rem; color: var(--muted); }
.hero-topics a { text-decoration: underline; text-underline-offset: 3px; }
.hero-topics a:hover { color: var(--teal); }
.hero-note { margin-top: 23px; }
.brand-hero .hero-visual::after { background: linear-gradient(transparent 30%,#142B50E6 100%); }
.brand-hero .visual-label { top: 24px; left: 28px; font-size: .65rem; padding: 9px 15px; }
.hero-photo-note { bottom: 82px; left: 30px; right: 30px; }
.hero-photo-note > span { font-size: 1.45rem; line-height: 1.3; }
.hero-stats-card strong { font-size: 2.1rem; }
.hero-floating-tag { bottom: -26px; right: 18px; }
.hero-orbit { width: 260px; height: 260px; right: -45px; top: -25px; border-width: 9px; border-color: #0AD6DE33; }
.hero-orbit::after { border-width: 18px; border-color: #0AD6DE12; }
.hero-bottom { margin-top: 36px; padding-block: 18px; }
.expertise-strip .container { min-height: 73px; }
.goal-section { padding-block: 45px 5px; }
.goal-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.goal-heading h2 { font-size: 1.15rem; }
.goal-heading .eyebrow { color: var(--muted); font-size: .72rem; }
.goal-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.goal-grid > a { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 13px; padding: 21px 18px; background: var(--surface); transition: border-color .2s, transform .2s; }
.goal-grid > a:hover { border-color: var(--cyan); transform: translateY(-3px); }
.goal-grid > a > .icon:first-child { width: 32px; height: 32px; padding: 5px; box-sizing: content-box; border-radius: 11px; background: var(--pale); flex-shrink: 0; }
.goal-grid h3 { font-size: .81rem; line-height: 1.4; margin-bottom: 5px; }
.goal-grid p { font-size: .81rem; line-height: 1.35; margin: 0; }
.goal-grid > a > .icon:last-child { width: 19px; flex-shrink: 0; margin-left: auto; }
.discovery-section { padding-block: 72px 82px; }
.discovery-section .section-head { margin-bottom: 25px; }
.discovery-section .section-head h2 { font-size: clamp(1.65rem,2.7vw,2.25rem); }
.discovery-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; scrollbar-width: thin; }
.discovery-tabs > button { font: 500 .77rem/1.5 var(--heading); padding: 0 0 15px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); white-space: nowrap; }
.discovery-tabs > button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--cyan); }
.discovery-tabs > button:hover { color: var(--ink); }
.discovery-tabs > button:focus-visible { outline-offset: -4px; }
.discovery-section .carousel-track { grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; }
.course-card { border-radius: 13px; box-shadow: none; }
.course-card-content { padding: 19px 18px 17px; }
.course-card h3 { font-size: .96rem; line-height: 1.4; min-height: 4.2em; -webkit-line-clamp: 3; }
.course-card p { font-size: .87rem; line-height: 1.45; min-height: 2.9em; -webkit-line-clamp: 2; margin-bottom: 14px; }
.course-category { font-size: .62rem; color: var(--muted); margin-bottom: 10px; }
.course-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; color: var(--muted); font-size: .73rem; margin-bottom: 14px; }
.course-meta .icon { width: 15px; height: 15px; }
.meta-divider { padding-inline: 3px; }
.course-more { font-size: .76rem; margin-bottom: 15px; color: var(--ink); }
.course-card-bottom { padding-top: 12px; }
.course-card-bottom .text-link { font-size: .79rem; }
.course-card-bottom .icon-button { min-width: 42px; width: 42px; min-height: 42px; height: 42px; }
.collection-more { display: inline-flex; gap: 10px; align-items: center; margin-top: 18px; font-size: .8rem; }
.discovery-section .carousel-bottom { margin-top: 10px; }
.catalog-intro { padding-top: 50px; padding-bottom: 84px; }
.catalog-intro h1 { font-size: clamp(2rem,3.5vw,3rem); line-height: 1.18; letter-spacing: -.025em; }
.catalog-intro p { max-width: 660px; font-size: 1.05rem; }
.catalog-categories { padding-top: 35px; }
.category-chips { gap: 9px; }
.category-chip { border-radius: 9px; padding: 9px 12px; font-size: .76rem; }
.results-bar { gap: 20px; flex-wrap: wrap; padding-block: 24px; }
.results-actions { display: flex; align-items: center; gap: 24px; }
.catalog-order { display: flex; align-items: center; position: relative; gap: 12px; color: var(--muted); font-size: .78rem; }
.catalog-order select { border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); padding: 11px 32px 11px 12px; appearance: none; font-size: .82rem; }
.catalog-order > .icon { position: absolute; right: 10px; width: 14px; pointer-events: none; }
.course-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px 20px; }
.course-hero { padding-top: 28px; }
.course-hero-grid { gap: 52px; }
.course-hero h1 { line-height: 1.22; letter-spacing: -.025em; }
.course-tabs { top: var(--header-height); }
.course-tabs a[aria-current] { box-shadow: inset 0 -3px var(--cyan); }
.course-quick-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 21px; margin-top: 25px; font-size: .87rem; }
.course-quick-facts > span, .course-quick-facts > a { display: flex; gap: 7px; align-items: center; }
.course-quick-facts .icon { width: 17px; height: 17px; }
.course-quick-facts > a { text-decoration: underline; text-underline-offset: 3px; }
.course-consult-label { font-size: 1.4rem; color: var(--ink); font-weight: 700; margin: 18px 0; }
.course-info { position: sticky; top: calc(var(--header-height) + 85px); }
.program-overview { font-size: .88rem; margin-bottom: 22px; }
.program-title { align-items: center; flex-wrap: wrap; gap: 14px; }
.program-title > .text-link { display: flex; gap: 8px; align-items: center; font-size: .74rem; }
.program-title > .text-link .icon { width: 16px; }
html[data-theme=dark] .site-header { background: #0D1218; }
html[data-theme=dark] .header-search-control { background: #151E29; }
html[data-theme=dark] .header-search-control button { background: var(--cyan); color: var(--navy); }
html[data-theme=dark] .hero-orbit { opacity: 1; }
html[data-theme=dark] .brand-hero .hero-visual::after { background: linear-gradient(transparent 30%,#080A0DF0 100%); }
html[data-theme=dark] .goal-grid > a { background: var(--surface); }
html[data-theme=dark] .goal-grid > a > .icon:first-child { color: var(--cyan); }
html[data-theme=dark] .explore-dropdown-title > a { color: var(--cyan); }
@media (max-width: 1150px) {
  .header-inner { gap: 28px; }
  .header-actions { gap: 17px; }
  .main-nav { gap: 24px; }
  .header-portfolio { display: none; }
  .brand-hero .hero-grid { gap: 40px; }
  .goal-grid > a { gap: 10px; padding: 18px 13px; }
  .goal-grid > a > .icon:last-child { display: none; }
  .course-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .discovery-section .carousel-track { grid-auto-columns: calc((100% - 40px) / 3); }
}
@media (max-width: 960px) {
  .header-inner { min-height: 88px; height: 88px; }
  .header-inner .brand-logo { width: 57px; }
  .main-nav { display: flex; position: static; flex-direction: row; background: transparent; border: 0; padding: 0; gap: 22px; }
  .main-nav a { font-size: .7rem; padding-block: 12px; border: 0; }
  .main-nav a::after { display: block; }
  .header-nav-inner { gap: 30px; }
  .menu-toggle { display: none; }
  .header-cta { padding-inline: 13px; }
  .consultation-label { display: none; }
  .brand-hero .hero-grid { gap: 32px; }
  html .brand-hero .hero-copy h1 { font-size: 2.35rem; }
  .brand-hero .hero-copy > p { font-size: .98rem; }
  .brand-hero .hero-actions .button { padding-inline: 14px; font-size: .73rem; }
  .goal-grid { grid-template-columns: 1fr; gap: 10px; }
  .goal-grid > a { padding: 17px 20px; }
  .goal-grid > a > .icon:last-child { display: block; }
  .goal-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
}
@media (max-width: 800px) {
  .site-header .header-inner { height: auto; min-height: 124px; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; padding-block: 12px; }
  .header-inner .brand-logo { width: 46px; }
  .header-actions { grid-column: 2; grid-row: 1; justify-content: flex-end; gap: 18px; }
  .header-search { grid-column: 1/-1; grid-row: 2; max-width: none; width: 100%; }
  .header-search-control { padding-left: 14px; }
  .header-search-control input { height: 34px; font-size: 16px; }
  .header-search-control button { width: 33px; height: 33px; }
  .header-nav-shell { border-top: 0; }
  .header-nav-inner { position: static; min-height: 0; }
  .explore-menu { display: none; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 9px 24px 18px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 20px 35px #00000012; }
  .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding-block: 13px; font-size: .87rem; }
  .main-nav a::after { display: none; }
  .menu-toggle { display: inline-flex; }
  .consultation-label { display: inline; }
  .brand-hero .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .brand-hero { padding-top: 35px; }
  html .brand-hero .hero-copy h1 { font-size: clamp(2.1rem,6vw,3rem); }
  .brand-hero .hero-copy > p, .brand-hero .hero-search { max-width: 580px; }
  .brand-hero .hero-composition { max-width: 580px; width: 100%; margin-inline: auto; }
  .hero-stats-card strong { font-size: 1.9rem; }
  .hero-photo-note { bottom: 65px; }
  .hero-orbit { right: -15px; }
  .hero-bottom { margin-top: 34px; }
  .course-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .discovery-section .carousel-track { grid-auto-columns: calc((100% - 20px) / 2); }
  .results-actions { justify-content: space-between; width: 100%; flex-wrap: wrap; gap: 15px; }
  .course-hero-grid { grid-template-columns: 1fr; }
  .course-body-grid { grid-template-columns: 1fr; }
  .course-aside { margin-top: 0; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }
  .topline .container { min-height: 30px; justify-content: center; }
  .topline .container > span { display: none; }
  .header-cta { display: none; }
  .consultation-label { font-size: .78rem; }
  .brand-hero .hero-copy > .eyebrow { font-size: .62rem; margin-bottom: 16px; }
  html .brand-hero .hero-copy h1 { font-size: clamp(1.85rem,7vw,2.6rem); }
  .brand-hero .hero-copy > p { margin-block: 20px; font-size: 1.01rem; }
  .brand-hero .hero-actions { gap: 9px; }
  .brand-hero .hero-actions .button { font-size: .72rem; min-height: 48px; }
  .brand-hero .hero-search { margin-top: 20px; }
  .hero-topics { font-size: .73rem; }
  .hero-note { font-size: .76rem; }
  .brand-hero .visual-label { left: 22px; top: 20px; }
  .hero-photo-note { left: 22px; right: 22px; bottom: 74px; }
  .hero-photo-note > span { font-size: 1.2rem; }
  .hero-stats-card div > span { font-size: .78rem; }
  .hero-floating-tag { font-size: .72rem; right: 0; bottom: -18px; }
  .hero-bottom { padding-block: 20px; flex-wrap: wrap; gap: 13px; }
  .expertise-strip .container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 10px; padding-block: 22px; }
  .expertise-strip a { font-size: .65rem; gap: 9px; }
  .expertise-strip .icon { width: 20px; flex-shrink: 0; }
  .goal-section { padding-top: 33px; }
  .goal-heading h2 { font-size: 1.2rem; }
  .goal-grid > a { padding: 17px 14px; gap: 12px; }
  .goal-grid h3 { font-size: .8rem; }
  .goal-grid p { font-size: .83rem; }
  .discovery-section { padding-block: 50px; }
  .discovery-section .section-head { align-items: flex-start; gap: 19px; }
  .discovery-section .section-head h2 { font-size: 1.7rem; line-height: 1.3; }
  .discovery-tabs { gap: 23px; margin-bottom: 19px; }
  .discovery-tabs > button { font-size: .75rem; }
  .discovery-section .carousel-track { grid-auto-columns: 85%; gap: 16px; }
  .course-card-content { padding: 19px; }
  .course-card h3, .course-grid .course-card h3 { font-size: 1.02rem; min-height: 0; line-height: 1.4; }
  .course-card p, .course-grid .course-card p { font-size: .93rem; min-height: 0; line-height: 1.5; }
  .course-category { font-size: .68rem; }
  .course-meta { font-size: .8rem; }
  .course-more { font-size: .82rem; }
  .course-card-bottom .text-link { font-size: .86rem; }
  .discovery-section .carousel-bottom > span { max-width: 145px; font-size: .72rem; }
  .collection-more { margin-top: 23px; }
  .catalog-intro { padding-top: 35px; padding-bottom: 68px; }
  .catalog-intro h1 { font-size: 2rem; }
  .catalog-intro p { font-size: 1rem; }
  .category-chips { flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px 12px; }
  .category-chip { white-space: nowrap; font-size: .76rem; flex-shrink: 0; }
  .catalog-order { width: 100%; }
  .catalog-order select { flex: 1; min-width: 0; }
  .course-grid { grid-template-columns: 1fr; }
  .course-quick-facts { font-size: .84rem; gap: 12px 18px; }
  .course-hero-grid { gap: 28px; }
  .course-info { position: static; }
  .course-tabs .container { gap: 20px; }
  .course-tabs a { font-size: .69rem; }
  .program-title { align-items: flex-start; }
  .program-title h2 { font-size: 1.65rem; }
  .program-title > .text-link { font-size: .78rem; padding-block: 7px; }
  .search-suggestions { max-height: 58vh; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .goal-grid > a { transition: none; }
  .goal-grid > a:hover { transform: none; }
}
/* Sistema tipográfico humanista, con archivos locales y licencia OFL. */
@font-face { font-family: 'Source Sans 3'; font-weight: 300; font-style: normal; font-display: swap; src: url('/assets/fonts/SourceSans3-Light.woff') format('woff'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/SourceSans3-Regular.woff') format('woff'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/SourceSans3-Medium.woff') format('woff'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/SourceSans3-SemiBold.woff') format('woff'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/fonts/SourceSans3-Bold.woff') format('woff'); }
:root { --font: 'Source Sans 3', Arial, sans-serif; --heading: 'Source Sans 3', Arial, sans-serif; }
body { font-size: 17px; }
h1, h2, h3, .section-head h2, .course-hero h1, .page-intro h1, .services-home h2, .about-inline h2, .enterprise-hero h1, .cta-inner h2 { font-weight: 500; letter-spacing: -.025em; line-height: 1.16; }
.button, .text-link, .eyebrow, .main-nav a { font-family: var(--font); }
.eyebrow { font-size: .8rem; font-weight: 600; }
.button { font-size: .91rem; border-radius: 50px; font-weight: 600; min-height: 50px; }
.button-small { font-size: .86rem; }
.text-link { font-size: .91rem; }
.main-nav a { font-size: .86rem; }
.site-header { transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px #00000012; }
html .brand-hero .hero-copy h1 { font-family: var(--font); font-size: clamp(2.65rem,4.3vw,3.85rem); font-weight: 400; letter-spacing: -.04em; line-height: 1.08; }
html .brand-hero .hero-copy h1 span { font-weight: 600; }
html:not([data-theme=dark]) .brand-hero .hero-copy h1 span { color: var(--navy); }
.brand-hero .hero-copy > p { font-size: 1.13rem; line-height: 1.5; }
.brand-hero .hero-copy > .eyebrow { font-size: .79rem; font-weight: 600; }
.hero-copy .button { font-size: .93rem; }
.hero-orbit { display: none; }
.hero-photo-note { bottom: 100px; }
.hero-floating-tag { font-size: .84rem; }
html .section-head h2 { font-weight: 500; font-size: clamp(2rem,3vw,2.7rem); line-height: 1.15; }
.section-head p { font-size: 1.05rem; }
.goal-heading h2 { font-size: 1.45rem; }
.goal-grid h3 { font-size: 1rem; font-weight: 600; }
.goal-grid p { font-size: .95rem; }
.discovery-tabs > button { font-size: .96rem; font-family: var(--font); }
.course-card h3 { font-size: 1.1rem; font-family: var(--font); font-weight: 600; letter-spacing: -.01em; }
.course-category { font-size: .8rem; font-family: var(--font); font-weight: 500; }
.course-card p { font-size: .96rem; }
.course-meta { font-size: .82rem; }
.course-card-bottom .text-link { font-size: .96rem; }
.course-more { font-size: .86rem; }
.collection-more { font-size: .95rem; }
.category-overlay strong { font-family: var(--font); font-size: 1.75rem; font-weight: 500; line-height: 1.17; letter-spacing: -.015em; }
.services-showcase .section-head { max-width: 800px; margin-bottom: 30px; }
.service-tablist { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.service-tablist > button { display: flex; align-items: center; justify-content: flex-start; gap: 13px; padding: 21px 23px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); font-size: 1rem; font-weight: 500; transition: background .2s, border-color .2s; text-align: left; }
.service-tablist > button > .icon:last-child { margin-left: auto; width: 20px; }
.service-tablist > button[aria-selected=true] { background: var(--navy); color: white; border-color: var(--navy); }
.service-tablist > button[aria-selected=true] > .icon:first-child { color: var(--cyan); }
.service-tablist > button:hover { border-color: var(--cyan); }
.service-showcase-panel { display: grid; grid-template-columns: 1.08fr 1fr; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); animation: panel-arrive .3s ease both; }
.showcase-copy { padding: 45px 40px; }
.showcase-copy > h3 { font-size: clamp(1.8rem,2.5vw,2.4rem); line-height: 1.1; font-weight: 500; margin-block: 17px; }
.showcase-copy > p { font-size: 1.07rem; line-height: 1.5; max-width: 470px; }
.showcase-links { display: flex; flex-direction: column; margin-block: 24px 30px; }
.showcase-links > a { display: flex; gap: 11px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 1.01rem; }
.showcase-links > a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.showcase-links > a > .icon:first-child { color: var(--teal); width: 17px; flex-shrink: 0; }
.showcase-links > a > .icon:last-child { width: 17px; flex-shrink: 0; margin-left: auto; }
.showcase-image { position: relative; min-height: 100%; overflow: hidden; background: var(--navy); }
.showcase-image > img { width: 100%; height: 100%; object-fit: cover; position: absolute; }
.showcase-image > span { display: flex; gap: 10px; align-items: center; position: absolute; left: 25px; bottom: 25px; background: #FFFFFFF0; color: var(--navy); padding: 12px 20px; border-radius: 50px; font-size: .93rem; }
.showcase-image > span .icon { width: 19px; }
.home-faq { background: var(--pale); }
.home-faq h2 { font-size: clamp(2rem,3vw,2.7rem); margin-block: 18px; }
.home-faq p { font-size: 1.08rem; }
.faq-list summary { font-family: var(--font); font-size: 1.12rem; font-weight: 500; }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details .icon { transition: transform .2s; }
.faq-list details p { font-size: 1.05rem; }
.expert-panel h2 { font-weight: 500; line-height: 1.15; }
.catalog-intro h1 { font-weight: 500; font-size: clamp(2.5rem,4vw,3.65rem); line-height: 1.07; }
.catalog-intro p { font-size: 1.17rem; }
.category-chip { font-size: .92rem; }
.category-chip span { font-size: .8rem; }
.course-hero h1 { font-weight: 500; font-size: clamp(2rem,3.1vw,3rem); line-height: 1.13; }
.course-section h2 { font-size: 2rem; font-weight: 500; }
.course-hero p, .course-section p { font-size: 1.1rem; }
.course-tabs a { font-family: var(--font); font-size: .97rem; }
.course-info h2 { font-size: 1.7rem; }
.module summary { font-family: var(--font); font-size: 1.04rem; font-weight: 500; }
.program-title > .text-link { font-size: .9rem; }
.consultation-link { transition: color .2s; }
.consultation-link:hover { color: var(--teal); }
.can-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.can-reveal .reveal.is-revealed { opacity: 1; transform: none; }
@keyframes panel-arrive { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (max-width: 1150px) { .main-nav a { font-size: .83rem; } .service-tablist > button { padding: 18px; } }
@media (max-width: 960px) { html .brand-hero .hero-copy h1 { font-size: 2.9rem; } .brand-hero .hero-copy > p { font-size: 1.07rem; } .showcase-copy { padding: 35px 28px; } }
@media (max-width: 800px) {
  .service-showcase-panel { grid-template-columns: 1fr; }
  .showcase-image { min-height: 290px; }
  .service-tablist { gap: 9px; }
  .service-tablist > button { padding: 17px 13px; font-size: .93rem; gap: 9px; }
  .service-tablist > button > .icon:last-child { display: none; }
  html .brand-hero .hero-copy h1 { font-size: clamp(2.7rem,6.5vw,3.7rem); }
  .main-nav a { font-size: 1.05rem; }
}
@media (max-width: 640px) {
  html .brand-hero .hero-copy h1 { font-size: clamp(2.1rem,9.3vw,3rem); }
  .brand-hero .hero-copy > .eyebrow { font-size: .77rem; }
  .brand-hero .hero-copy > p { font-size: 1.1rem; }
  .brand-hero .hero-actions .button { font-size: .89rem; }
  .hero-photo-note { bottom: 90px; }
  html .section-head h2 { font-size: 2rem; }
  .goal-heading h2 { font-size: 1.4rem; }
  .goal-grid h3 { font-size: 1.03rem; }
  .goal-grid p { font-size: .97rem; }
  .discovery-tabs > button { font-size: .94rem; }
  .course-card h3, .course-grid .course-card h3 { font-size: 1.24rem; line-height: 1.25; }
  .course-card p, .course-grid .course-card p { font-size: 1rem; }
  .course-category { font-size: .84rem; }
  .hero-floating-tag { font-size: .8rem; }
  .hero-topics { font-size: .86rem; }
  .service-tablist { display: flex; overflow-x: auto; padding: 3px 2px 10px; }
  .service-tablist > button { flex: 0 0 auto; font-size: 1rem; padding: 16px; }
  .showcase-copy { padding: 30px 24px; }
  .showcase-copy > h3 { font-size: 2rem; }
  .showcase-image { min-height: 250px; }
  .catalog-intro h1 { font-size: 2.5rem; }
  .catalog-intro p { font-size: 1.1rem; }
  .category-chip { font-size: .91rem; }
  .course-tabs a { font-size: .95rem; }
  .program-title h2 { font-size: 2rem; }
  .course-hero h1 { font-size: 2.2rem; }
  .course-section h2 { font-size: 1.9rem; }
  .home-faq h2 { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .service-showcase-panel { animation: none; }
  .can-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .site-header { transition: none; }
}
/* Igual jerarquía en los dos horarios. */
html[data-theme] .brand-hero .hero-copy h1 { font-family: var(--font); font-size: clamp(2.65rem,4.3vw,3.85rem); font-weight: 400; letter-spacing: -.04em; line-height: 1.08; }
html[data-theme] .brand-hero .hero-copy h1 span { font-weight: 600; }
@media (max-width: 960px) { html[data-theme] .brand-hero .hero-copy h1 { font-size: 2.9rem; } }
@media (max-width: 800px) { html[data-theme] .brand-hero .hero-copy h1 { font-size: clamp(2.7rem,6.5vw,3.7rem); } }
@media (max-width: 640px) {
  html[data-theme] .brand-hero .hero-copy h1 { font-size: clamp(2.1rem,9.3vw,3rem); }
}

/* Foto principal cuadrada, con contenido legible en todo tamaño y horario. */
.brand-hero .hero-composition { padding: 0; width: 100%; max-width: 520px; margin-inline: auto; }
.hero-composition::before { content: none; }
html[data-theme] .brand-hero .hero-visual { width: 100%; height: auto; min-height: 0; aspect-ratio: 1 / 1; border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 15px 42px #21406F12; }
.brand-hero .hero-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
html[data-theme] .brand-hero .visual-label { top: 20px; left: 20px; right: 20px; max-width: calc(100% - 40px); width: fit-content; font-size: .8rem; }
.brand-hero .hero-photo-note { bottom: 70px; left: 24px; right: 24px; }
.brand-hero .hero-photo-note > span { font: 500 1.55rem/1.2 var(--font); text-shadow: 0 2px 12px #00000055; }
.hero-stats-card { position: relative; inset: auto; width: calc(100% - 32px); margin: -42px auto 0; padding: 18px 22px; gap: 18px; border-radius: 16px; }
.hero-floating-tag { position: static; justify-content: flex-end; padding: 0 12px; margin-top: 12px; font-size: .85rem; }
.reviews-heading-side { align-self: flex-end; }
@media (max-width: 640px) {
  html[data-theme] .brand-hero .hero-visual { border-radius: 20px; }
  .hero-stats-card { width: calc(100% - 24px); padding: 15px 16px; gap: 14px; }
  .brand-hero .hero-photo-note { left: 20px; right: 20px; bottom: 65px; }
  .brand-hero .hero-photo-note > span { font-size: 1.25rem; }
  html[data-theme] .brand-hero .visual-label { left: 17px; top: 17px; max-width: calc(100% - 34px); font-size: .76rem; }
  .hero-floating-tag { font-size: .8rem; }
}
/* En móvil, el buscador del encabezado acompaña toda la navegación. */
@media (max-width: 640px) {
  .topline { display: none; }
  .brand-hero .hero-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .brand-hero .hero-actions .button { width: 100%; padding-inline: 10px; font-size: .85rem; gap: 8px; }
  .brand-hero .hero-actions .icon { width: 17px; height: 17px; }
  .brand-hero .hero-search { display: none; }
  .hero-topics { margin-top: 18px; }
}
/* Jerarquía más limpia y controles cómodos al tacto. */
html:not([data-theme="dark"]) .brand-hero .hero-copy h1 span { text-decoration: none; }
.page-intro h1 span, .enterprise-hero h1 span { text-decoration: none; }
.icon-button { min-width: 44px; min-height: 44px; }
@media (max-width: 640px) {
  .carousel-bottom { gap: 12px; }
  .carousel-bottom > span { max-width: 140px; }
  .carousel-controls .carousel-pause { margin-right: 0; }
}
