:root {
  --duriva-blue: #1685a7;
  --duriva-cyan: #36c4d8;
  --duriva-gold: #e5b84c;
  --duriva-ink: #172b3d;
  --duriva-muted: #52687d;
  --duriva-paper: #f3f6f9;
  --duriva-line: rgba(49, 78, 104, .18);
}

html { scroll-padding-top: 112px; overflow-x: clip; }
body { min-height: 100dvh; background: var(--duriva-paper); color: var(--duriva-ink); overflow-x: clip; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--duriva-cyan); outline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 12px 18px; background: #fff; color: #111; border-radius: 6px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.tf-header.header2 .header-inner { max-width: 1100px; padding-left: 18px; }
.logo-site { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo-site img { display: block; width: auto; height: 46px; object-fit: contain; }
.tf-header .nav-menu-main { gap: 19px; }
.tf-header .item-link { font-size: 14px; white-space: nowrap; }
.submenu-toggle { position: relative; z-index: 2; width: 24px; min-height: 36px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.menu-item.has-child.is-open .sub-menu { pointer-events: all; transform: translateY(0); opacity: 1; visibility: visible; }
.offcanvas-menu .logo-site img { height: 44px; }
.offcanvas-menu .btn-mobile-menu { border: 0; background: transparent; cursor: pointer; }
.offcanvas-menu .mb-menu-link { min-height: 44px; pointer-events: auto; }
.offcanvas-menu .mb-menu-link .text { pointer-events: auto; }
.offcanvas-content_wrapin { display: flex; flex-direction: column; }
.offcanvas-menu .canvas_center { flex: 1; min-height: 0; overflow-y: auto; }
.offcanvas-menu .canvas_head, .offcanvas-menu .canvas_foot { flex-shrink: 0; }

.section-hero .content-wrap .title h1 { max-width: 1100px; margin-inline: auto; font-size: clamp(2.55rem, 6.2vw, 6.5rem); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.section-hero .content-wrap .text { max-width: 720px; margin-inline: auto; font-size: 18px; }
.section-hero .scroll-more { text-decoration: none; }
.section-page-title { padding: 168px 24px 72px; background: #dfe9f1; }
.section-page-title .page-title { max-width: 1000px; margin: 12px auto 0; font-size: clamp(2.35rem, 5.4vw, 4.8rem); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.page-title-subtitle { margin-top: 18px; color: var(--duriva-muted); font-size: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.section-hero.v1 .content-wrap, .section-hero.v2 .content-wrap { padding-top: 160px; }

.home-video { padding-block: 24px 0; }
.home-video .external-media, .content-body .external-media { margin: 24px 0; overflow: hidden; border-radius: 12px; background: #071a2c; }
.home-video iframe, .content-body .external-media iframe, .content-body .external-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.content-body .external-embed iframe[title="Formulario de contacto"] { min-height: 790px; aspect-ratio: auto; }
.box-quotes .application-image { overflow: hidden; border-radius: 12px; }
.application-image img, .accordion-content .image img, .featured-works-item .image > img, .blog-image img, .top-image img, .application-card > img, .service-card > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.top-image { margin: 0 0 40px; overflow: hidden; border-radius: 12px; background: #0b1726; }
.top-image img { aspect-ratio: 16 / 9; object-fit: contain; }
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.section-featured-works .featured-works-list { display: grid; gap: 24px; }
.featured-works-item .image { position: relative; overflow: hidden; border-radius: 12px; background: #0b1726; }
.featured-works-item .view-project { position: absolute; right: 16px; bottom: 16px; padding: 10px 14px; border-radius: 6px; background: #fff; color: #172b3d; }
.featured-works-item .content .grid-text { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.featured-works-item .content .grid-text .item:nth-child(n) { width: auto; min-width: 0; }
@media (max-width: 639px) {
  .featured-works-item .content .grid-text { grid-template-columns: 1fr; }
}
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat-counter { padding: 24px; border: 1px solid var(--duriva-line); border-radius: 12px; background: #fff; text-align: center; }
.stat-counter strong { display: block; color: var(--duriva-blue); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; }
.stat-counter span { display: block; margin-top: 8px; color: var(--duriva-muted); }
.application-grid { display: grid; gap: 20px; }
.application-card { margin: 0; overflow: hidden; border: 1px solid var(--duriva-line); border-radius: 12px; background: #fff; }
.application-card figcaption { padding: 16px 18px; font-weight: 700; line-height: 1.4; }
.contact-cta-grid { display: grid; gap: 16px; }
.contact-cta-grid .contact-item { padding: 20px; border: 1px solid var(--duriva-line); border-radius: 12px; background: #fff; }

.record-layout { display: grid; gap: 48px; }
.record-main { min-width: 0; }
.content-body { min-width: 0; font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.content-body p, .content-body li { max-width: 75ch; }
.content-body p { margin: 0 0 22px; }
.content-body h2, .content-body h3, .content-body h4, .content-body h5 { max-width: 34ch; margin: 44px 0 18px; color: var(--duriva-ink); line-height: 1.18; text-wrap: balance; }
.content-body h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.content-body h3 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
.content-body h4, .content-body h5 { font-size: 1.3rem; }
.content-body h2:first-child, .content-body h3:first-child, .content-body figure:first-child { margin-top: 0; }
.content-body a { color: #146b91; text-underline-offset: 3px; }
.content-body a:hover { color: #0d4d6c; }
.content-body ul, .content-body ol { margin-bottom: 24px; padding-left: 24px; }
.content-body blockquote { margin: 32px 0; padding: 24px; background: #e4edf4; border-radius: 12px; }
.content-body pre { max-width: 100%; padding: 20px; overflow-x: auto; border-radius: 8px; background: #071a2c; color: #f4f8fb; }
.content-body table { display: block; max-width: 100%; margin-bottom: 24px; overflow-x: auto; border-collapse: collapse; }
.content-body th, .content-body td { min-width: 140px; padding: 12px; border: 1px solid var(--duriva-line); text-align: left; }
.content-body .figure-image { margin: 28px 0; }
.content-body .figure-image img { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; object-fit: contain; }
.content-body figcaption { margin-top: 10px; color: var(--duriva-muted); font-size: 14px; text-align: center; }
.content-body .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin: 8px 8px 8px 0; padding: 11px 19px; border-radius: 6px; background: var(--duriva-cyan); color: #071a2c; font-weight: 700; text-decoration: none; }
.content-body .cta { margin: 36px 0; padding: 26px; border-radius: 12px; background: #071a2c; color: #f4f8fb; }
.content-body .cta h4 { margin-top: 0; color: #fff; }
.content-body details { padding: 18px 0; border-top: 1px solid var(--duriva-line); }
.content-body details:last-of-type { border-bottom: 1px solid var(--duriva-line); }
.content-body summary { min-height: 44px; font-size: 18px; font-weight: 700; }
.content-body video { display: block; width: 100%; height: auto; margin: 28px 0; background: #071a2c; }
.content-body .service-grid, .content-body .image-gallery { display: grid; gap: 22px; margin: 28px 0; }
.content-body .icon-box { padding: 22px 0; border-bottom: 1px solid var(--duriva-line); }
.content-body .icon-box h3 { margin-top: 0; }
.content-body .round-chart { display: grid; gap: 10px; padding: 0; list-style: none; }
.content-body .round-chart li { display: flex; justify-content: space-between; gap: 20px; max-width: none; padding: 14px 0; border-bottom: 1px solid var(--duriva-line); }
.content-body .project-details dl { display: grid; gap: 0; margin: 0; overflow: hidden; border-radius: 12px; background: #e4edf4; }
.content-body .project-details dl > div { padding: 18px; border-bottom: 1px solid var(--duriva-line); }
.content-body .project-details dt { color: var(--duriva-blue); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.content-body .project-details dd { margin: 6px 0 0; }

.related-sidebar { align-self: start; }
.related-sidebar h2 { margin-bottom: 16px; font-size: 20px; }
.related-card { display: block; padding: 18px 0; border-top: 1px solid var(--duriva-line); color: inherit; text-decoration: none; }
.related-card > span { color: var(--duriva-blue); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.related-card h3 { margin-top: 8px; font-size: 17px; line-height: 1.4; }
.related-card:hover h3 { color: #146b91; }
.related-sidebar .tf-btn { margin-top: 20px; }
.blog-excerpt { display: -webkit-box; margin: 10px 0 0; overflow: hidden; color: var(--duriva-muted); font-size: 14px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.archive-original { padding-top: 40px; }
.archive-list { padding-block: 48px 72px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--duriva-line); border-radius: 6px; }
.pagination span { background: #172b3d; color: #fff; }
.not-found { display: flex; min-height: 64dvh; flex-direction: column; justify-content: center; padding-block: 72px; }
.not-found h1 { max-width: 15ch; margin: 14px 0 22px; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.08; }
.not-found > span { color: var(--duriva-blue); font-weight: 700; text-transform: uppercase; }
.not-found > div { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
footer .footer-logo img { width: auto; height: 62px; }

@media (min-width: 640px) {
  .application-grid, .contact-cta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-body .service-grid, .content-body .image-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-featured-works .featured-works-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .record-layout { grid-template-columns: minmax(0, 1fr) 290px; }
  .related-sidebar { position: sticky; top: 126px; }
  .application-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-cta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .content-body .service-grid, .content-body .image-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .tf-header { padding-top: 20px; }
  .tf-header .header-inner { margin-inline: 16px; padding-left: 14px; }
  .section-hero { min-height: 100dvh; }
  .section-hero .hero-image { background-attachment: scroll; }
  .section-hero .content-wrap { padding: 142px 0 130px; }
  .section-page-title { padding-top: 128px; }
}
@media (max-width: 639px) {
  .section-hero .content-wrap .title h1 { font-size: clamp(2.35rem, 11vw, 4.2rem); }
  .section-hero .content-wrap .text { font-size: 16px; }
  .section-hero .content-wrap .bot-btns { flex-direction: column; }
  .section-hero .content-wrap .bot-btns .tf-btn, .section-hero .content-wrap .bot-btns .tf-btn-2 { width: 100%; }
  .section-page-title { padding-bottom: 52px; }
  .record-layout { gap: 40px; }
  .content-body { font-size: 16px; }
  .content-body h2 { margin-top: 36px; }
  .content-body .cta { padding: 20px; }
  .application-grid, .contact-cta-grid { grid-template-columns: 1fr; }
  .stat-grid { gap: 12px; }
  .stat-counter { padding: 18px 12px; }
  .contact-cta-grid .contact-item { padding: 16px; }
  .footer-bottom { gap: 20px; }
  .footer-links { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .section-hero .hero-image { background-attachment: scroll; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Mejoras únicamente visuales: no modifican el contenido de las páginas. */
.section-hero .hero-image {
  background-image: linear-gradient(90deg, rgba(4, 17, 30, .72), rgba(4, 17, 30, .34)), url("../images/section/hero-1.jpg");
  background-position: center;
}
.section-hero .content-wrap .title h1 {
  color: #f5f7fb;
  -webkit-text-fill-color: #f5f7fb;
  background-image: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .82);
}
.section-hero .content-wrap .text {
  color: #dce7f1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .75);
}
.offcanvas-menu:not(.show) { visibility: hidden; pointer-events: none; }
.offcanvas-menu.show { visibility: visible; pointer-events: auto; }
.application-card { display: flex; align-items: center; gap: 14px; padding: 16px; }
.application-card > img { width: 56px; height: 56px; flex: 0 0 56px; aspect-ratio: 1; object-fit: contain; }
.application-card figcaption { padding: 0; }
.blog-image { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #0b1726; }
.blog-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 639px) {
  .application-card > img { width: 48px; height: 48px; flex-basis: 48px; }
  .section-hero .hero-image { background-position: 58% center; }
}

/* El CTA y el formulario conservan su contenido; solo cambia su presentación. */
.section-contact > .container { display: flex; flex-direction: column; }
.section-contact > .container > .heading-section { order: 0; }
.section-contact .contact-cta-grid { order: 1; }
.section-contact .dynamic-content.external-embed {
  display: block;
  order: 2;
  width: 100%;
  max-width: 100%;
  flex: 1 0 100%;
  margin: 28px 0 0;
  overflow: hidden;
  border-radius: 12px;
}
.section-contact .dynamic-content.external-embed iframe[title="Formulario de contacto"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: clamp(860px, 68vw, 1120px);
  aspect-ratio: auto;
  border: 0;
}
@media (max-width: 639px) {
  .section-contact .dynamic-content.external-embed { margin-top: 20px; }
  .section-contact .dynamic-content.external-embed iframe[title="Formulario de contacto"] { height: 980px; }
}

/* Ampliación visual y estructural, sin cambiar el contenido editorial. */
.tf-header.header2 .header-inner { max-width: 1240px; }
.tf-header .nav-menu-main { gap: 12px; }
.tf-header .item-link { font-size: 13px; }
.tf-header .sub-menu { max-width: min(88vw, 420px); max-height: 70vh; overflow-y: auto; }
.section-hero .hero-image {
  background-image: linear-gradient(90deg, rgba(4, 17, 30, .82) 0%, rgba(4, 17, 30, .55) 42%, rgba(4, 17, 30, .12) 76%), url("../images/section/hero-ejecutivo.jpg");
  background-position: center;
}
.section-hero .content-wrap { width: 56%; max-width: 780px; margin-left: 0 !important; text-align: left !important; }
.section-hero .content-wrap .title h1 { max-width: 760px; margin-inline: 0; font-size: clamp(2.5rem, 4.8vw, 5.3rem); }
.section-hero .content-wrap .text { max-width: 600px; margin-inline: 0; }
.section-hero .content-wrap .bot-btns { justify-content: flex-start; }
.duriva-hero-guide { position: absolute; right: 3%; bottom: 12%; z-index: 4; display: grid; gap: 4px; max-width: 280px; padding: 16px 20px; border: 1px solid rgba(54, 196, 216, .5); border-radius: 12px; background: rgba(5, 23, 38, .9); color: #f4f8fb; box-shadow: 0 12px 40px rgba(0, 0, 0, .22); }
.duriva-hero-guide span { color: #8fdae5; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.duriva-hero-guide strong { font-size: 20px; line-height: 1.3; }
.content-body .figure-image.duriva-internal-visual img, .content-body .figure-image img[src^="/assets/images/"] { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }

.social-showcase { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); margin: 32px 0 44px; overflow: hidden; border-radius: 16px; background: #071a2c; color: #f4f8fb; }
.social-showcase-image { min-height: 100%; }
.social-showcase-image img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.social-showcase-copy { display: flex; flex-direction: column; justify-content: center; padding: 32px; }
.social-showcase-copy p { max-width: 44ch; color: #dce7f1; }
.social-showcase-copy .social-question { margin-bottom: 12px; color: #f4f8fb; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.15; }
.social-showcase-copy nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.social-showcase-copy nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 16px; border: 1px solid rgba(143, 218, 229, .45); border-radius: 8px; color: #f4f8fb; font-weight: 700; text-decoration: none; }
.social-showcase-copy nav a:hover { background: #123b52; }
.home-reference-services { margin: 28px 0 48px; }
.home-reference-intro { margin-bottom: 24px; }
.home-reference-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.home-reference-service-grid article { padding: 22px; border: 1px solid var(--duriva-line); border-radius: 12px; background: #fff; }
.home-reference-service-grid article h4 { margin: 0 0 12px; color: var(--duriva-blue); }
.home-reference-service-grid article p { max-width: none; font-size: 15px; }
.home-reference-service-grid article a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }

.footer-cloud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; width: 100%; margin: 32px 0; text-align: left; }
.footer-cloud h2 { margin-bottom: 12px; color: inherit; font-size: 14px; }
.footer-cloud ul { margin: 0; padding: 0; list-style: none; }
.footer-cloud a { display: inline-flex; align-items: center; min-height: 32px; font-size: 12px; }

.profile-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); overflow: hidden; border-radius: 18px; background: #071a2c; color: #f4f8fb; }
.profile-hero-media img { display: block; width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.profile-hero-copy { align-self: center; padding: clamp(28px, 4vw, 56px); }
.profile-hero-copy h2 { margin: 8px 0 22px; color: #f4f8fb; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.08; }
.profile-hero-copy p { max-width: 60ch; color: #dce7f1; }
.profile-kicker { color: #8fdae5 !important; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.profile-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0 48px; }
.profile-facts > div { padding: 24px; border: 1px solid var(--duriva-line); border-radius: 12px; background: #fff; text-align: center; }
.profile-facts strong { display: block; color: var(--duriva-blue); font-size: clamp(1.8rem, 3.4vw, 3rem); }
.profile-facts span { display: block; margin-top: 8px; color: var(--duriva-muted); }
.profile-editorial { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.profile-editorial > section { padding: 28px; border: 1px solid var(--duriva-line); border-radius: 12px; background: #fff; }
.profile-editorial h2 { margin: 0 0 18px; font-size: clamp(1.55rem, 2.4vw, 2.1rem); }
.profile-editorial p { max-width: 70ch; font-size: 17px; line-height: 1.75; }
.profile-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.profile-links a { display: inline-flex; min-height: 44px; align-items: center; color: #146b91; font-weight: 700; }

.resource-intro { max-width: 78ch; margin-bottom: 32px; }
.resource-intro h2 { margin-bottom: 16px; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.resource-intro p { font-size: 17px; line-height: 1.7; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.resource-card { min-width: 0; overflow: hidden; border: 1px solid var(--duriva-line); border-radius: 12px; background: #fff; }
.resource-card > img { display: block; width: 100%; height: 170px; object-fit: cover; }
.resource-card > div { padding: 22px; }
.resource-card span { display: block; margin-bottom: 10px; color: var(--duriva-blue); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.resource-card h2 { margin: 0 0 14px; font-size: 20px; line-height: 1.35; overflow-wrap: anywhere; }
.resource-card p { color: var(--duriva-muted); font-size: 15px; line-height: 1.6; }
.resource-card a { display: inline-flex; min-height: 44px; align-items: center; color: #146b91; font-weight: 700; }
.resource-card[hidden] { display: none; }
.case-tools { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 12px 20px; align-items: end; margin-bottom: 28px; padding: 20px; border-radius: 12px; background: #e4edf4; }
.case-tools label { grid-column: 1; font-weight: 700; }
.case-tools input { grid-column: 1; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--duriva-line); border-radius: 8px; font: inherit; }
.case-tools [role="group"] { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; gap: 8px; }
.case-filter { min-height: 44px; padding: 9px 15px; border: 1px solid var(--duriva-line); border-radius: 8px; background: #fff; color: var(--duriva-ink); cursor: pointer; }
.case-filter.is-active { background: var(--duriva-ink); color: #f4f8fb; }
#case-count { grid-column: 1 / -1; margin: 0; color: var(--duriva-muted); }

@media (max-width: 1100px) {
  .tf-header .nav-menu-main { gap: 8px; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cloud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-hero { grid-template-columns: 1fr; }
  .profile-hero-media img { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) {
  .section-hero .content-wrap { width: 100%; max-width: 100%; }
  .section-hero .content-wrap .title h1 { max-width: 100%; }
  .section-hero .hero-image { background-image: linear-gradient(90deg, rgba(4, 17, 30, .88), rgba(4, 17, 30, .62)), url("../images/section/hero-ejecutivo.jpg"); background-position: 62% center; }
  .duriva-hero-guide { display: none; }
  .social-showcase, .profile-editorial { grid-template-columns: 1fr; }
  .home-reference-service-grid { grid-template-columns: 1fr; }
  .case-tools { grid-template-columns: 1fr; }
  .case-tools [role="group"] { grid-column: 1; grid-row: auto; }
}
@media (max-width: 639px) {
  .social-showcase-copy { padding: 24px; }
  .social-showcase-image img { min-height: 0; aspect-ratio: 16 / 10; }
  .profile-facts { grid-template-columns: 1fr; }
  .profile-editorial > section { padding: 22px; }
  .resource-grid { grid-template-columns: 1fr; }
  .footer-cloud { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .footer-cloud a { min-height: 40px; }
}

@media (min-width: 992px) {
  .tf-header .box-navigation { flex: 1 1 auto; min-width: 0; }
  .tf-header .nav-menu-main { flex-wrap: nowrap; justify-content: center; gap: 10px; margin-bottom: 0; padding-left: 0; }
  .tf-header .menu-item { display: flex; flex: 0 0 auto; align-items: center; }
  .tf-header .item-link { font-size: 12px; white-space: nowrap; }
  .tf-header .submenu-toggle { width: 14px; flex: 0 0 14px; }
  .tf-header .header-inner > .tf-btn { flex-shrink: 0; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .tf-header .nav-menu-main { gap: 6px; }
  .tf-header .item-link { font-size: 11px; }
  .tf-header .header-inner > .tf-btn { padding-inline: 14px; }
}
.profile-hero-media { position: relative; margin: 0; }
.profile-hero-media figcaption { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 7px 10px; border-radius: 6px; background: rgba(5, 23, 38, .86); color: #dce7f1; font-size: 12px; line-height: 1.45; }

/* Contenido migrado: conserva el texto y las fotografías, sin depender de WPBakery. */
.migration-content { min-width: 0; font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.migration-content .migration-section { min-width: 0; margin-bottom: 32px; }
.migration-content .migration-panel { height: 100%; min-width: 0; padding: 24px; border-radius: 12px; }
.migration-content .migration-dark { background: #071a2c; color: #f4f8fb; }
.migration-content .migration-dark :is(h1,h2,h3,h4,h5,h6,p,span,a) { color: #f4f8fb !important; }
.migration-content h1, .migration-content h2, .migration-content h3, .migration-content h4 { margin: 0 0 18px; line-height: 1.25; overflow-wrap: anywhere; }
.migration-content h1 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.migration-content h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.migration-content h3 { font-size: 1.35rem; }
.migration-content p { max-width: 75ch; }
.migration-content img { max-width: 100% !important; height: auto !important; }
.migration-content .vc_single_image-wrapper { display: block; max-width: 100%; }
.migration-content .attachment-large, .migration-content .attachment-medium { display: block; width: 100%; object-fit: cover; border-radius: 10px; }
.migration-content .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 6px; background: var(--duriva-cyan); color: #071a2c; font-weight: 700; }
.migration-content iframe { display: block; width: 100%; max-width: 100%; border: 0; }
.migration-content .external-embed { min-width: 0; overflow: hidden; border-radius: 12px; background: #fff; }
.migration-content .external-embed iframe[title="Formulario de contacto"] { height: 960px; }
.migration-content table { max-width: 100%; border-collapse: collapse; }
.migration-content pre { max-width: 100%; overflow-x: auto; }
@media (max-width: 767px) {
  .migration-content { font-size: 16px; }
  .migration-content .migration-panel { padding: 20px; }
  .migration-content .external-embed iframe[title="Formulario de contacto"] { height: 1020px; }
}

/* Másteres locales: se cargan solo cuando el usuario decide reproducirlos. */
.duriva-service-video { width: 100%; max-width: 880px; margin: 28px auto; overflow: hidden; border-radius: 14px; background: #071a2c; }
.duriva-service-video video { display: block; width: 100%; height: auto; aspect-ratio: 1; margin: 0; background: #071a2c; object-fit: contain; }
.duriva-service-video .video-download { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0 18px 14px; color: #8fdae5; font-size: 14px; font-weight: 700; text-underline-offset: 3px; }
.home-video .duriva-service-video { max-width: 960px; }


/* Revisión integral 2026-11-14: recursos visibles y sin repeticiones técnicas. */
.video-service-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; color: #f4f8fb; background: #071a2c; font-size: 15px; }
.video-service-heading span { font-weight: 700; }
.video-service-heading strong { color: #a9dce6; font-size: 13px; font-weight: 600; white-space: nowrap; }
.duriva-service-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 620px; margin: 0; object-fit: contain; background: #071a2c; }
.duriva-service-video .video-download { min-height: 44px; margin: 0 18px 14px; color: #b8e8ef; }
.vimeo-responsive { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #071a2c; }
.vimeo-responsive iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.services-catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 28px 0; }
.services-catalog-card { overflow: hidden; border: 1px solid var(--duriva-line, #d8e2e7); border-radius: 12px; background: #fff; }
.services-catalog-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.services-catalog-card h2 { padding: 18px 18px 8px; font-size: 20px; line-height: 1.3; }
.services-catalog-card span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px 14px; font-weight: 700; }
.services-catalog-card a { display: block; height: 100%; }
.course-instructor-cover { display: grid; grid-template-columns: minmax(180px, 32%) 1fr; align-items: center; gap: 28px; margin: 24px 0 32px; overflow: hidden; border-radius: 14px; background: #071a2c; color: #f4f8fb; }
.course-instructor-cover img { display: block; width: 100%; height: 320px; object-fit: cover; object-position: 50% 22%; }
.course-instructor-cover div { padding: 24px 24px 24px 0; }
.course-instructor-cover span, .course-instructor-cover strong { display: block; }
.course-instructor-cover span { margin-bottom: 8px; color: #a9dce6; font-size: 14px; font-weight: 700; }
.course-instructor-cover strong { font-size: clamp(24px, 3vw, 38px); line-height: 1.15; }
.course-instructor-cover p { margin: 12px 0 0; color: #f4f8fb; }
@media (max-width: 900px) { .services-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services-catalog-grid { grid-template-columns: 1fr; } .video-service-heading { align-items: flex-start; flex-direction: column; gap: 4px; } .course-instructor-cover { grid-template-columns: 1fr; gap: 0; } .course-instructor-cover img { height: 360px; } .course-instructor-cover div { padding: 24px; } }


/* Identidad institucional: fotografía real y franja azul en páginas internas. */
:root {
  --duriva-blue-700: oklch(34% .075 240);
  --duriva-blue-900: oklch(24% .055 240);
  --duriva-blue-band: var(--duriva-blue-700);
  --duriva-on-band: oklch(97% .01 220);
  --duriva-on-band-muted: oklch(89% .025 220);
}
.section-page-title {
  padding: 148px 24px 56px;
  background: var(--duriva-blue-band);
  color: var(--duriva-on-band);
}
.section-page-title :is(.page-title, .page-title-subtitle, .breadcrumbs, .breadcrumbs a, .breadcrumbs div) {
  color: var(--duriva-on-band);
  -webkit-text-fill-color: var(--duriva-on-band);
  background-image: none;
  text-shadow: none;
}
.section-page-title .page-title-subtitle { color: var(--duriva-on-band-muted); -webkit-text-fill-color: var(--duriva-on-band-muted); }
.section-page-title .breadcrumbs a:hover, .section-page-title .breadcrumbs a:focus-visible { color: #8fdae5; -webkit-text-fill-color: #8fdae5; }
.section-hero .hero-image { overflow: hidden; background: var(--duriva-blue-900); }
.section-hero .hero-image picture { position: absolute; inset: 0 0 0 10%; display: block; }
.section-hero .hero-image picture img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.section-hero .hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 40px;
  background: linear-gradient(90deg, rgba(4, 17, 30, .97) 0%, rgba(4, 17, 30, .86) 36%, rgba(4, 17, 30, .35) 62%, rgba(4, 17, 30, .08) 100%);
  pointer-events: none;
}
.section-hero .content-wrap { position: relative; z-index: 2; }
@media (max-width: 991px) {
  .section-page-title { padding-top: 126px; }
}
@media (max-width: 767px) {
  .section-hero .hero-image picture { inset: 0; }
  .section-hero .hero-image picture img { object-position: 59% center; }
  .section-hero .hero-image::after { background: linear-gradient(90deg, rgba(4, 17, 30, .91), rgba(4, 17, 30, .68)); }
}
@media (max-width: 639px) {
  .section-page-title { padding: 112px 20px 42px; }
}
