/* CreaDiseño · modo de color de la escuela (amarillo + negro, lila de apoyo).
   Reutiliza componentes de davante.css y de audiovisuales.css. */
.theme-cd {
  --cd-yellow: #f8d034;      /* color diferenciador de la escuela */
  --cd-yellow-2: #f2bd11;
  --cd-tag: #fbe58f;
  --cd-cream: #fdf3cc;
  --cd-lila: #c89fe7;
  --cd-pink: #ff8ce4;
  --cd-ink: #181818;
  --cd-grey: #ededed;
  --cd-num: #fbe58f;
  --av-ink: #181818;
  background: var(--white);
  color: var(--cd-ink);
}
.theme-cd .ico-w { filter: brightness(0) invert(1); }
.theme-cd .ico-d { filter: brightness(0); }

/* cabecera */
.theme-cd .pre-header { background: var(--cd-grey); }
.theme-cd .pre-header .text-link { color: var(--cd-ink); }
.theme-cd .header__logo img { width: 186px; height: auto; }
.theme-cd .menu a { color: var(--cd-ink); }
.theme-cd .menu a::after { background: var(--cd-yellow); }
.btn--ink { background: var(--cd-ink, #181818); color: var(--white); }
.btn--ink:hover { background: #3a3a3a; }
.theme-cd .btn--light:hover { background: var(--cd-yellow); }
.theme-cd .burger span { background: var(--cd-ink); }
.d-only-flex { display: flex; }

/* hero */
.cd-hero { background: var(--white); padding-bottom: var(--s400); }
.cd-hero__container { position: relative; height: 626px; display: flex; align-items: flex-start; padding: 56px; overflow: hidden; }
.cd-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cd-hero__box { position: relative; width: 456px; background: rgba(66, 66, 66, .9); color: var(--white); padding: 40px 32px; display: flex; flex-direction: column; gap: var(--s200); }
.cd-hero__box h1 { font-size: 58px; line-height: 65px; }
.cd-hero__premios { margin-top: var(--s300); height: auto; }
.cd-symbol { position: absolute; right: -56px; bottom: -62px; color: var(--cd-yellow); }

/* secciones */
.cd-yellow { background: var(--cd-yellow); }
.cd-white { background: var(--white); }
.cd-cream { background: var(--cd-cream); }
.cd-dark { background: var(--cd-ink); color: var(--white); }
.cd-flush { padding-top: var(--s500); }
.cd-maxw { max-width: 920px; }
.theme-cd .pretitle { color: #424242; }
.theme-cd .btn-stroke, .cd-stroke { color: var(--cd-ink); border-bottom-color: var(--cd-ink); }

/* áreas (tarjetas con foto) */
.cd-areas { display: flex; gap: var(--s200); margin-top: var(--s500); }
.cd-areas .access-card { color: var(--cd-ink); }
.cd-areas .access-card__tit { color: var(--cd-ink); }
.cd-areas .access-card:hover { box-shadow: inset 0 0 0 3px var(--cd-ink); }

/* titulaciones */
.cd-sub { margin-top: 96px; font-weight: 500; }
.cd-degrees { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s200); margin-top: var(--s500); }
.cd-degree { background: var(--white); padding: var(--s300); display: flex; align-items: center; justify-content: space-between; gap: var(--s200); transition: box-shadow .25s ease; }
.cd-degree > span { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cd-degree .headline-s { font-weight: 400; }
.cd-degree:hover { box-shadow: inset 0 0 0 3px var(--cd-ink); }
.cd-degree:hover .headline-s { text-decoration: underline; text-underline-offset: 3px; }
.cd-degree > img { transition: transform .25s var(--ease); flex: 0 0 auto; }
.cd-degree:hover > img { transform: translateX(6px); }
.cd-tag { background: var(--cd-cream); color: var(--cd-ink); padding: 2px 4px; border-radius: 4px; font-weight: 700; font-size: 12px; line-height: 16px; text-transform: uppercase; }
.cd-tag--y { background: var(--cd-yellow); align-self: flex-start; }
.cd-flash { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 18px; }
.cd-flash i { width: 28px; height: 28px; border-radius: 50%; background: var(--cd-lila) url("../assets/ico-flash.svg") center/16px no-repeat; }
.cd-outline { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--s500); height: 48px; padding: 0 24px; border: 1px solid var(--cd-ink); border-radius: 100px; font-weight: 700; font-size: 14px; text-transform: uppercase; transition: background-color .2s ease, color .2s ease; }
.cd-outline:hover { background: var(--cd-ink); color: var(--white); }
.cd-outline:hover img { filter: brightness(0) invert(1); }

/* colaboraciones */
.cd-split .body-l { font-weight: 400; color: var(--cd-ink); }
.cd-partners { display: flex; justify-content: space-between; margin: var(--s500) 0; }
.cd-partners img { width: 118px; height: auto; transition: transform .2s ease; }
.cd-partners img:hover { transform: scale(1.06); }

/* en números */
.cd-numbers { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s500); }
.cd-numbers__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px var(--s500); }
.cd-num { font-weight: 500; font-size: 72px; line-height: 80px; color: var(--cd-num); }
.cd-num__lbl { font-weight: 500; font-size: 23px; line-height: 32px; color: var(--cd-num); margin-bottom: var(--s200); }
.cd-numbers .body-m { font-weight: 400; color: #e6e6e6; }

/* equipo */
.cd-sub2 { margin-top: var(--s500); font-weight: 400; }
.cd-team .cd-person { flex: 0 0 213px; display: flex; flex-direction: column; color: var(--cd-ink); }
.cd-person > img { height: 200px; width: 100%; object-fit: cover; object-position: center 20%; }
.cd-person > span { background: var(--cd-grey); min-height: 140px; padding: var(--s200); display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #5e5454; transition: background-color .2s ease; }
.cd-person b { font-weight: 500; font-size: 20px; line-height: 28px; color: var(--cd-ink); }
.cd-person__co { width: 84px; height: auto; margin-top: auto; }
.cd-person:hover > span { background: var(--cd-cream); }

/* por qué */
.cd-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s200); margin-top: var(--s500); }
.cd-why img { width: 100%; height: 250px; object-fit: cover; margin-bottom: var(--s300); }
.cd-why h3 { font-weight: 500; margin-bottom: var(--s200); }
.cd-why .body-m { font-weight: 400; }

/* opiniones (versión clara) */
.cd-review { background: var(--cd-grey); color: var(--cd-ink); }
.cd-review .av-review__foot span { color: #5e5454; }
.cd-ghost { border: 0; background: var(--white); color: var(--cd-ink); }
.cd-ghost:hover { background: var(--cd-ink); color: var(--white); }
.cd-ghost:hover img { filter: brightness(0) invert(1); }

/* proyectos */
.cd-more { background: var(--cd-yellow); color: var(--cd-ink); }
.cd-more:hover { background: var(--cd-yellow-2); }

/* contenido */
.av-posts .cd-post { background: var(--cd-grey); color: var(--cd-ink); }
.av-posts .cd-post:hover { background: var(--cd-cream); }

/* orientación */
.cd-box1 { background: var(--cd-yellow); color: var(--cd-ink); }
.cd-box2 { background: var(--cd-ink); color: var(--white); }

/* eventos */
.cd-events .av-project { color: var(--cd-ink); }
.cd-date { position: absolute; left: 16px; top: 16px; background: var(--cd-yellow); display: flex; flex-direction: column; align-items: center; padding: 6px 10px; font-weight: 700; font-size: 12px; text-transform: uppercase; line-height: 14px; }
.cd-date b { font-size: 26px; line-height: 30px; }
.cd-play { background: #0234ab url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M10 8.5v7l5.5-3.5z' fill='white' stroke='none'/%3E%3C/svg%3E") center/26px no-repeat; }

/* visítanos */
.cd-visit__info { background: var(--cd-ink); color: var(--white); border: 0; }
.cd-visit__info ul { padding-left: 0; }
.cd-visit__info li { display: flex; gap: 12px; align-items: center; }
.cd-visit__info li::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 11px; font-weight: 400; }
.cd-promo { align-self: flex-start; background: var(--cd-pink); color: var(--cd-ink); padding: 4px 8px; font-weight: 500; font-size: 14px; border-radius: 2px; }
.cd-form { background: var(--cd-cream); }

/* footer */
.cd-footer { background: var(--cd-grey); color: var(--cd-ink); border-top: 5px solid var(--cd-yellow); }
.cd-footer .av-footer__cols { padding-bottom: var(--s500); }
.cd-footer .av-footer__h { color: var(--cd-ink); }
.cd-footer .av-footer__cols a, .cd-footer .av-footer__about p { color: var(--cd-ink); }
.cd-circle { background: var(--cd-ink); }
.cd-circle:hover { background: #3a3a3a; }
.cd-footer .av-footer__legal { background: var(--cd-ink); color: var(--white); }
.theme-cd .bottom-bar { background: var(--white); }
.theme-cd .icon-circle--line { background: transparent; border-color: var(--cd-ink); }

/* ═════ móvil · según Home_M de CreaD ═════ */
.cd-premios-m { display: none; }
@media (max-width: 600px) {
  .theme-cd .m-only { display: inline; }
  .d-only-flex { display: none; }
  .theme-cd .pre-header { background: var(--cd-lila); }
  .theme-cd .header { height: 58px; }
  .theme-cd .header__logo { display: none; }
  .cd-brand-m { display: inline-flex !important; }
  .cd-hero { padding-bottom: 0; }
  .cd-hero .wrap { padding: 0; }
  .cd-hero__container { height: 616px; padding: 0 0 56px 14px; align-items: flex-end; }
  .cd-hero__box { width: 259px; padding: 24px 14px; }
  .cd-hero__box h1 { font-size: 36px; line-height: 48px; }
  .cd-hero__box .body-xl { font-size: 18px; line-height: 26px; }
  .cd-tp-m { display: flex !important; font-size: 12px; margin-top: 6px; color: var(--white); }
  .cd-tp-m img { height: 15px; }
  .cd-symbol { display: none; }
  .theme-cd .cd-premios-m { display: flex; justify-content: center; background: var(--cd-yellow); padding: 28px 14px 0; }
  .cd-premios-m img { filter: brightness(0); height: auto; }
  .cd-areas { flex-direction: column; }
  .cd-areas .access-card { flex: 0 0 auto; min-width: 0; height: 347px; }
  .cd-areas .access-card__img { height: 225px; }
  .cd-sub { margin-top: 72px; font-size: 26px; line-height: 34px; }
  .cd-degrees { grid-template-columns: 1fr; }
  .cd-partners { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; }
  .cd-partners img:nth-child(n+3) { display: none; }
  .cd-numbers, .cd-numbers__grid, .cd-why { grid-template-columns: 1fr; }
  .cd-num { font-size: 52px; line-height: 60px; }
  .cd-why img { height: 195px; }
  .cd-team .cd-person { flex: 0 0 213px; scroll-snap-align: start; }
  .theme-cd .carousel__track--testimonials .testimonial { display: none; }
  .cd-gallery .g4 { display: none; }
  .cd-events .av-project, .cd-events .av-project--wide { flex: 0 0 256px; }
  .cd-visit__info { min-height: 0; }
  .cd-footer .av-footer__cols .av-footer__h::after { border-color: var(--cd-ink);
    background: linear-gradient(45deg, transparent 45%, var(--cd-ink) 45% 55%, transparent 55%) 3px 4px/7px 7px no-repeat,
                linear-gradient(-45deg, transparent 45%, var(--cd-ink) 45% 55%, transparent 55%) 8px 4px/7px 7px no-repeat; }
  .cd-footer .av-footer__cols > div:not(.av-footer__about) { border-bottom-color: #c9c9c9; }
}
