/* Diretec — static rebuild. No frameworks; one stylesheet for every page. */

@font-face {
  font-family: "Segoe";
  src: url("../fonts/segoe-webfont.woff2") format("woff2"), url("../fonts/segoe-webfont.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Segoe Bold";
  src: url("../fonts/segoe-bold-webfont.woff2") format("woff2"), url("../fonts/segoe-bold-webfont.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Segoe Light";
  src: url("../fonts/segoe-light-webfont.woff2") format("woff2"), url("../fonts/segoe-light-webfont.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Intro";
  src: url("../fonts/intro-webfont.woff2") format("woff2"), url("../fonts/intro-webfont.woff") format("woff");
  font-display: swap;
}

:root {
  --red: #e73051;
  --black: #2f2f2f;
  --nav-h: 52px;
  --f-body: "Segoe", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-bold: "Segoe Bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-light: "Segoe Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-display: "Intro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.19, 1, .22, 1); /* Expo.easeOut */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5rem; font-weight: 500; line-height: 1.2; }
h1, h2 { font-family: var(--f-display); }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
p { margin: 0 0 1rem; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.light { font-family: var(--f-light); }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.dash { display: block; }

/* Page-load + scroll reveal (only when JS is running) */
@keyframes page-in { from { opacity: 0; transform: translateY(20px); } }
main { animation: page-in 1.25s var(--ease) both; }
.js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal="left"] { transform: translateX(-60px); }
.js [data-reveal="right"] { transform: translateX(60px); }
.js [data-reveal="corner"] { transform: translate(-10px, -10px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  main { animation: none; }
  .js [data-reveal] { transition: none; transform: none; opacity: 1; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  display: flex; flex-wrap: wrap; align-items: center;
  min-height: var(--nav-h); background: #fff;
}
.nav__logo { display: block; background: var(--red); padding: .625rem 1rem; }
.nav__logo img { width: 146px; height: auto; }
.nav__toggle { display: none; margin-left: auto; padding: .5rem 1rem; }
.js .nav__toggle { display: block; }
.nav__toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: rgba(0,0,0,.6); }
.nav__menu { width: 100%; list-style: none; margin: 0; padding: .5rem 0; }
.js .nav__menu { display: none; }
.js .nav.is-open .nav__menu { display: block; }
.nav__menu a {
  display: block; padding: .5rem 1rem;
  font-family: var(--f-bold); font-size: .8125rem; text-decoration: none; color: rgba(0,0,0,.9);
}
.nav__menu a[aria-current="page"] span { border-bottom: 3px solid #000; padding-bottom: .2rem; }
body.has-nav { padding-top: var(--nav-h); }

@media (min-width: 768px) {
  .nav { flex-wrap: nowrap; }
  .js .nav__toggle { display: none; }
  .nav__menu {
    display: flex !important; justify-content: space-evenly; flex: 1; width: auto; padding: 0 1rem;
  }
  .nav__menu a { white-space: nowrap; padding: .5rem .25rem; }
  .nav__menu a[aria-current="page"] span { padding-bottom: .5rem; }
  .nav__menu a:hover span { border-bottom: 3px solid #000; padding-bottom: .5rem; }
}
@media (min-width: 992px) {
  .nav__menu { justify-content: center; gap: 1.5rem; }
  .nav__menu a { padding: .5rem 1rem; }
}
@media (min-width: 1240px) { .nav__menu { gap: 3rem; } }

/* Home: nav sits under the hero and sticks to the top once scrolled past it */
@media (min-width: 576px) {
  body.page-home { padding-top: 0; }
  .page-home .nav { position: sticky; }
}

/* ---------- Carousel (shared) ---------- */
.carousel { position: relative; overflow: hidden; touch-action: pan-y; }
.carousel__track { display: flex; transition: transform .6s ease-in-out; will-change: transform; }
.carousel__slide { flex: 0 0 100%; min-width: 0; position: relative; }
.carousel__dots {
  position: absolute; left: 2em; bottom: -2.5rem; z-index: 5;
  display: flex; gap: .5rem; margin: 0; padding: 0; list-style: none;
}
.carousel__dots button {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(0,0,0,.2);
}
.carousel__dots button[aria-current="true"] { background: rgba(0,0,0,.8); }
.carousel__arrow {
  position: absolute; top: 0; bottom: 0; z-index: 5; width: 15%;
  display: flex; align-items: center; justify-content: center; color: #000;
}
.carousel__arrow svg { width: 2.25rem; height: 2.25rem; }
.carousel__arrow--prev { left: 0; }
.carousel__arrow--next { right: 0; }

/* ---------- Home hero ---------- */
.hero { height: 100vh; height: 100svh; }
@media (min-width: 576px) { .hero { height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); } }
.hero .carousel__track, .hero .carousel__slide { height: 100%; }
.hero__bg { position: absolute; inset: 0; background-repeat: no-repeat; }
.hero__bg--1 { background: #eee url("../images/transformando-ideas-en-exitos.jpg") no-repeat 60% center / cover; }
.hero__bg--2 { background: #f2f2f2 url("../images/marketing-universitario.jpg") no-repeat center / cover; }
@media (min-width: 1400px) {
  .hero__bg--1 { background-image: url("../images/transformando-ideas-en-exitos-1920.jpg"); }
  .hero__bg--2 { background-image: url("../images/marketing-universitario-1920.jpg"); }
}
.hero__video { position: absolute; inset: 0; overflow: hidden; background: #fff; }
.hero__video video { width: 100%; height: 100%; object-fit: cover; }
.hero__video::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.85); }
.hero__caption { position: absolute; z-index: 2; color: #000; left: 6%; right: 6%; top: 50%; transform: translateY(-50%); }
.hero__caption h1, .hero__caption .h1-like { font-size: 2rem; }
.hero__caption p { font-size: 1.33rem; }
.hero__caption--2 .h1-like { font-size: 1.3rem; text-decoration: underline; }
.hero__line { width: 227px; margin-bottom: 1rem; }
@media (min-width: 576px) {
  .hero__bg--1 { background-size: contain; background-position: 30% center; }
  .hero__caption { left: 17%; right: auto; width: 40%; }
  .hero__caption h1, .hero__caption .h1-like { font-size: 2.76rem; }
  .hero__caption--2 .h1-like { font-size: 2rem; }
  .hero__caption--2 { left: 25%; width: 50%; }
  .hero__caption--3 { left: 7.5%; width: 50%; }
}

/* Fixed social rail + slide controls (desktop home) */
.rail { display: none; }
@media (min-width: 576px) {
  .rail { display: block; position: fixed; right: 35px; top: 3.5rem; z-index: 1031; width: 35px; }
  .rail__btn { display: block; width: 35px; height: 35px; margin: 5px 0; background: no-repeat center / cover; }
  .rail__btn--next { background-image: url("../images/back-next.png"); }
  .rail__btn--prev { background-image: url("../images/back-prev.png"); }
  .rail__social a {
    display: flex; align-items: center; justify-content: center;
    border: 2px solid rgba(0,0,0,.8); border-bottom: 0; padding: 1.1rem 0; background: rgba(255,255,255,.6);
  }
  .rail__social a:last-child { border-bottom: 2px solid rgba(0,0,0,.8); padding: .7rem 0; }
}
.scroll-cue { display: none; }
@media (min-width: 576px) {
  .scroll-cue {
    display: block; position: absolute; right: 115px; bottom: 1.5rem; z-index: 6; text-align: center; text-decoration: none;
    font-family: var(--f-display); color: var(--red);
  }
  .scroll-cue img { margin: .25rem auto 0; }
}

/* ---------- Home sections ---------- */
.nosotros { padding: 2rem 15px 0; }
.nosotros__grid { max-width: 1000px; margin: 0 auto; display: grid; gap: 1rem; }
.nosotros h1 { font-size: 2.3rem; padding-top: .5rem; }
.nosotros ul { font-size: .8rem; margin: 0; padding: 0 0 0 1.25rem; }
.nosotros li { border-bottom: thin solid #d9d9d9; padding: .15rem 0; }
@media (min-width: 576px) {
  .nosotros { background: url("../images/back-nosotros.png") no-repeat left 5.25rem; padding-top: 8.5rem; }
  .nosotros__grid { grid-template-columns: 5fr 6fr; column-gap: 2rem; }
  .nosotros h1 { font-size: 4rem; padding-top: 17.5rem; }
  .nosotros__img { grid-column: 2; grid-row: 1; }
  .nosotros__title { grid-column: 1; grid-row: 1; }
  .nosotros ul { grid-column: 1 / -1; font-size: 1.22rem; padding-right: 3.125rem; }
  .nosotros li { padding-right: 3.125rem; }
}

.historia {
  background: #f4f4f4 url("../images/back-history.jpg") no-repeat left bottom / 400px;
  padding: 3.5rem 15px 20rem; margin-top: 2rem;
}
.historia h1 { font-size: 2rem; }
.historia p { font-size: .9rem; text-align: justify; }
@media (min-width: 576px) {
  .historia { background-position: 100% 35%; background-size: 500px; padding-top: 11rem; padding-bottom: 6rem; }
  .historia h1 { font-size: 2.76rem; }
  .historia p { font-size: 1.22rem; margin-top: 3rem; max-width: 66%; padding-right: 2.5rem; }
}

.mercado { background: #e9e9e9; display: grid; }
.mercado__text { padding: 4rem 1rem 2.5rem; }
.mercado h1 { font-size: 2rem; }
.mercado ul { font-size: .8rem; padding-left: 1.25rem; }
.mercado__map { display: none; }
@media (min-width: 576px) {
  .mercado { grid-template-columns: 1fr 2fr; padding: 0 15px; }
  .mercado__text { padding: 15rem 0 12.5rem; width: 60%; margin: 0 auto; }
  .mercado h1 { font-size: 2.76rem; }
  .mercado ul { font-size: 1.22rem; }
  .mercado__map { display: block; background: #fff url("../images/mapa80.jpg") no-repeat right 2rem / 95%; }
  .mercado__img-mobile { display: none; }
}

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #fff; font-family: var(--f-display); font-size: .8rem; }
.footer__inner { display: grid; gap: 1.5rem; padding: 2rem 1.5rem; max-width: 1400px; margin: 0 auto; align-items: center; }
.footer__logo { justify-self: center; }
.footer__label { text-decoration: underline; margin-bottom: .75rem; }
.footer__services { line-height: 2; }
.footer__social { display: flex; gap: 1rem; align-items: center; }
.footer__copy { font-size: .6rem; color: #aaa; margin: 0; }
@media (min-width: 576px) {
  .footer__inner { grid-template-columns: 6fr 2fr 3fr; min-height: 11.5rem; }
  .footer__services { padding-right: 3rem; }
  .footer__logo { grid-column: 3; grid-row: 1 / span 2; }
  .footer__copy { grid-column: 1 / span 2; }
}

/* ---------- Inner page headers ---------- */
.page-title { padding: 2.5rem 15px; }
.page-title h1 { font-size: 2.3rem; }
@media (min-width: 576px) { .page-title h1 { font-size: 2.7rem; } }

/* ---------- Servicios ---------- */
.page-servicios .page-title { text-align: right; max-width: 1140px; margin: 0 auto; }
@media (min-width: 576px) { .page-servicios .page-title { padding-top: 5rem; } .page-servicios .page-title h1 { font-size: 3.4rem; } }
.svc-intro { display: grid; }
.svc-intro__img {
  min-height: 21rem; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: url("../images/marketing-integral.jpg") no-repeat center / cover; color: #ededed; text-align: center;
}
.svc-intro__img img { margin: 0 auto .5rem; }
.svc-intro__text {
  min-height: 21rem; display: flex; align-items: center; justify-content: center;
  background: #e3e3e3; color: var(--black); padding: 2rem;
}
.svc-intro__text p, .svc-tile p { font-family: var(--f-light); margin: 0; }
.svc-intro__text p { max-width: 66%; }
@media (min-width: 576px) { .svc-intro { grid-template-columns: 1fr 1fr; } }

.svc-grid { display: none; }
@media (min-width: 576px) {
  .svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 21rem; }
}
.svc-tile { display: flex; align-items: center; justify-content: center; padding: 1.25rem; overflow: hidden; }
.svc-tile h2 { text-align: center; color: #000; margin: 0; }
.svc-tile p { color: var(--black); font-size: 1rem; }
.svc-tile--wide { grid-column: span 2; }
.svc-tile--img { background: no-repeat center / cover; padding: 0; }
.bg-fff { background: #fff; } .bg-e3 { background: #e3e3e3; } .bg-ef { background: #efefef; } .bg-d4 { background: #d4d4d4; } .bg-ec { background: #ececec; }

.svc-accordion { display: grid; gap: 2px; margin-top: 2px; }
.svc-accordion details { background: #efefef; }
.svc-accordion summary {
  list-style: none; cursor: pointer; position: relative; padding: 2rem 3.5rem; text-align: center;
  font-family: var(--f-display); font-size: 1.6rem; color: #303030;
}
.svc-accordion summary::-webkit-details-marker { display: none; }
.svc-accordion summary svg { position: absolute; right: 1.25rem; top: 50%; width: 2rem; height: 2rem; margin-top: -1rem; color: #bebebe; transition: transform .3s; }
.svc-accordion details[open] summary svg { transform: rotate(180deg); }
.svc-accordion p { background: #fff; margin: 0; padding: 2.5rem 15px; font-family: var(--f-light); color: var(--black); }
@media (min-width: 576px) { .svc-accordion { display: none; } }

/* ---------- Clientes / Universidades ---------- */
.logos-title { display: block; }
@media (min-width: 576px) {
  .page-clientes .page-title, .page-universidades .page-title { padding-top: 8.5rem; padding-bottom: 5rem; }
  .page-clientes .page-title { background: url("../images/background-clientes.png") no-repeat right 60%; }
  .page-clientes .page-title .wrap { padding-left: 100px; }
  .page-universidades .page-title { background: url("../images/background-universidades.png") no-repeat right 60%; }
  .page-universidades .page-title .wrap { padding-left: 12rem; }
}
.logo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 1rem; align-items: center; justify-items: center;
  max-width: 1140px; margin: 0 auto; padding: 0 40px;
}
.logo-grid img { max-width: 85%; max-height: 90px; width: auto; }
@media (min-width: 576px) { .logo-grid { grid-template-columns: repeat(5, 1fr); gap: 2rem 1rem; } .logo-grid img { max-width: 100%; } }
.page-universidades .logo-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 4rem; }
@media (min-width: 576px) { .page-universidades .logo-grid { grid-template-columns: repeat(5, 1fr); } }
.logos-carousel { margin-bottom: 6rem; overflow: visible; }
.logos-carousel .carousel__track-wrap { overflow: hidden; }
.logos-carousel .carousel__arrow { width: 40px; }
.logos-carousel .carousel__dots { left: 50%; transform: translateX(-50%); bottom: -3rem; }
@media (min-width: 576px) { .logos-carousel { margin-bottom: 8rem; } }

/* ---------- Portafolio ---------- */
.page-portafolio .page-title { display: grid; gap: 1rem; max-width: 1140px; margin: 0 auto; padding-top: 2rem; }
.page-portafolio .page-title p { font-family: var(--f-light); color: var(--black); font-size: .96rem; line-height: 1.2; margin: 0; }
@media (min-width: 576px) {
  .page-portafolio .page-title { grid-template-columns: 5fr 2fr 4fr; padding-top: 4rem; padding-bottom: 10rem; }
  .page-portafolio .page-title__line { background: url("../images/back-header-portafolio.png") no-repeat left 78px / contain; }
  .page-portafolio .page-title p { align-self: center; padding-top: 5rem; }
}
.video-card { position: relative; display: block; width: 100%; text-align: left; color: #fff; overflow: hidden; cursor: pointer; }
.video-card img { width: 100%; }
.video-card__caption { position: absolute; left: 5%; right: 5%; bottom: 8%; }
.video-card__title { display: block; font-family: var(--f-display); font-size: 1.28rem; line-height: 1.2; color: #fff; }
.video-card__sub { display: block; }
.video-card::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  background: rgba(231,48,81,.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat 55% center / 32px;
  border-radius: 50%; opacity: 0; transition: opacity .3s;
}
.video-card:hover::after, .video-card:focus-visible::after { opacity: 1; }

.pf-hero { max-width: 1040px; margin: 0 auto 3rem; }
.pf-hero .carousel__dots { bottom: -2rem; }
.pf-hero .video-card__title { font-size: 1.6rem; }
.pf-hero .carousel__arrow { color: #fff; width: 10%; }
@media (min-width: 576px) {
  .pf-hero .video-card__caption { left: 10%; bottom: 12%; }
  .pf-hero .video-card__title { font-size: 2.57rem; }
  .pf-hero .video-card__sub { font-size: 1.17rem; }
}
@media (min-width: 1240px) {
  .pf-hero { overflow: visible; }
  .pf-hero .carousel__track-wrap { overflow: hidden; }
  .pf-hero .carousel__arrow { color: #000; width: 80px; }
  .pf-hero .carousel__arrow--prev { left: -90px; }
  .pf-hero .carousel__arrow--next { right: -90px; }
}

.pf-body { background: url("../images/back-body-portafolio.png") no-repeat left 10% / contain; padding: 1rem 15px 3rem; }
.pf-body__inner { max-width: 1040px; margin: 0 auto; display: grid; gap: 1rem; }
.pf-top { display: grid; gap: 1rem; }
@media (min-width: 576px) { .pf-top { grid-template-columns: 1fr 1fr; } }
.pf-top .carousel { height: 273px; }
.pf-top .carousel__track, .pf-top .carousel__slide, .pf-top .carousel .video-card { height: 100%; }
.pf-top .carousel .video-card img { height: 100%; object-fit: cover; }
.pf-top .carousel__dots { left: auto; right: 1rem; bottom: 1rem; }
.pf-top .carousel__dots button { background: rgba(255,255,255,.4); }
.pf-top .carousel__dots button[aria-current="true"] { background: #fff; }
.pf-tile {
  height: 273px; background: no-repeat center / cover;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.pf-tile .video-card__caption { position: static; }
.pf-top .pf-tile { align-items: flex-end; justify-content: flex-start; text-align: left; padding: 0 5% 8%; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pf-grid .pf-tile { height: 182px; }
@media (min-width: 576px) { .pf-grid { grid-template-columns: repeat(3, 1fr); } .pf-grid .pf-tile { height: 273px; } }
.pf-tile--static { cursor: default; }
.pf-tile--static::after { display: none; }

/* ---------- Contact call-to-action ---------- */
.contact-band { background: #ececec; padding: 5rem 15px; }
.contact-band__inner { max-width: 1140px; margin: 0 auto; }
.contact-band__head { display: grid; gap: 1rem; padding-bottom: 1rem; }
.contact-band__head p { font-family: var(--f-light); }
@media (min-width: 576px) { .contact-band__head { grid-template-columns: 1fr 1fr; } }
.contact-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; justify-content: flex-end; margin: 0; }
.btn-red {
  display: inline-block; text-decoration: none; background: var(--red); color: #fff; padding: .375rem 1.5rem; border-radius: .25rem;
  font-family: var(--f-body); font-size: 1rem;
}
.btn-red:hover { background: #cf2343; }

/* ---------- Contacto ---------- */
.page-contacto .page-title { max-width: 1140px; margin: 0 auto; }
@media (min-width: 576px) { .page-contacto .page-title { padding-top: 7rem; padding-bottom: 3rem; } .page-contacto .page-title h1 { font-size: 2.9rem; } }
.office { max-width: 1140px; margin: 0 auto 4rem; padding: 0 15px; display: grid; gap: 1.5rem; }
@media (min-width: 576px) { .office { grid-template-columns: 1fr 1fr; margin-bottom: 6.5rem; } }
.office h2 { font-family: var(--f-bold); font-size: 1rem; padding-bottom: 2rem; margin: 0; }
.office__info { display: grid; gap: 1rem; font-family: var(--f-light); }
.office__info p { margin: 0; }
@media (min-width: 576px) { .office__info { grid-template-columns: 1fr 1fr; } }
.btn-link { font-family: var(--f-bold); color: var(--black); padding: .5rem 0; text-decoration: none; }
.btn-link:hover { color: var(--red); }
.office__map { min-height: 300px; }
.office__map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; filter: grayscale(1); }

/* ---------- Video / message dialog ---------- */
.dialog {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0;
  border: 0; background: transparent; color: #fff;
}
.dialog::backdrop { background: rgba(0,0,0,.85); }
.dialog[open] { display: flex; align-items: center; justify-content: center; }
.dialog__close { position: fixed; top: 1.5rem; right: 1.5rem; color: #fff; z-index: 2; }
.dialog__close svg { width: 2rem; height: 2rem; }
.dialog__frame { width: min(900px, 100% - 30px); aspect-ratio: 16 / 9; }
.dialog__frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; max-width: 1140px; margin: 0 auto; padding: 4rem 15px; }
.notfound a { color: var(--red); }
