/* Escuela Audiovisual · modo de color de la escuela sobre los componentes de Davante.
   Colores sacados del diseño (export SVG). */
.theme-av {
  --av-bg: #181818;
  --av-panel: #424242;
  --av-light: #eaeaea;
  --av-lila: #dc83ff;        /* color diferenciador de la escuela */
  --av-salmon: #ffa596;      /* tags */
  --av-orange: #ff5b41;      /* DavantePlay */
  --av-yellow: #ffd13d;      /* estrellas */
  --av-green: #00ff7f;       /* promo */
  --av-ink: #181818;
  background: var(--av-bg);
  color: var(--white);
}
.theme-av .ico-w { filter: brightness(0) invert(1); }
.theme-av .ico-d { filter: brightness(0); }

/* cabecera */
.theme-av .pre-header { background: var(--av-panel); }
.theme-av .pre-header .text-link { color: var(--white); }
.theme-av .header { background: var(--av-bg); }
.theme-av .header.is-scrolled { border-bottom-color: var(--av-panel); }
.theme-av .header__logo img { width: 195px; height: auto; }
.theme-av .menu a { color: var(--white); }
.theme-av .menu a:hover { color: var(--av-lila); }
.theme-av .menu a::after { background: var(--av-lila); }
.btn--light { background: var(--white); color: var(--av-ink, #181818); }
.btn--light:hover { background: var(--av-lila); }
.btn--dark { background: var(--av-ink, #181818); color: var(--white); width: 100%; }
.btn--dark:hover { background: #333; }
.theme-av .burger span { background: var(--white); }

/* tipografía por sección */
.av-light { background: var(--av-light); color: var(--av-ink); }
.av-light .pretitle { color: #424242; }
.av-dark { background: var(--av-bg); color: var(--white); }
.av-dark .pretitle { color: #d9d9d9; }
.av-dark--tight { padding-top: var(--s500); }
.av-dark--flush { padding-top: var(--s500); }
.av-orange { background: var(--av-orange); color: var(--av-ink); }
.av-orange .pretitle { color: var(--av-ink); }
.av-maxw { max-width: 720px; }
.av-mt { margin-top: var(--s400); }
.theme-av .btn-stroke, .theme-av .btn-nav-stroke { color: currentColor; border-bottom-color: currentColor; }
.av-dark .btn-stroke, .av-dark .btn-nav-stroke { color: var(--white); }

/* hero */
.av-hero { background: var(--av-bg); padding-bottom: var(--s400); }
.av-hero__container { position: relative; height: 620px; display: flex; align-items: flex-start; padding: 56px 56px; overflow: hidden; }
.av-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av-hero__box { position: relative; width: 456px; background: rgba(66, 66, 66, .9); padding: 40px 32px 40px; display: flex; flex-direction: column; gap: var(--s200); }
.av-hero__box h1 { font-size: 58px; line-height: 65px; color: var(--white); }
.av-hero__fest { display: flex; align-items: center; gap: 40px; margin-top: var(--s300); }
.av-hero__fest img { height: 52px; width: auto; }
.av-hero__malaga { height: 34px !important; }
.av-hero__note { font-size: 12px; line-height: 16px; color: #d9d9d9; }
.av-symbol { position: absolute; right: -56px; bottom: -62px; color: var(--av-lila); }
.av-symbol--white { color: var(--white); }

/* tabs y tarjetas de cursos */
.theme-av .av-light .tab { color: #575757; }
.theme-av .av-light .tab:hover { background: #dedede; }
.theme-av .av-light .tab.is-active { background: #d6d6d6; color: var(--av-ink); border-bottom-color: var(--av-ink); }
.theme-av .av-light .tab-bar { border-bottom-color: var(--av-ink); justify-content: center; }
.av-course {
  flex: 0 0 calc((100% - 2 * var(--s200)) / 3); min-width: 300px; min-height: 420px; position: relative;
  display: flex; flex-direction: column; border: 1px solid var(--av-ink); background: var(--av-light); color: var(--av-ink);
  transition: box-shadow .25s ease;
}
.av-course:hover { box-shadow: inset 0 0 0 3px var(--av-lila); border-color: var(--av-lila); }
.av-course--intro { background: var(--av-lila); border-color: var(--av-lila); padding: var(--s300); justify-content: space-between; }
.av-course--intro:hover { box-shadow: inset 0 0 0 3px var(--av-ink); }
.av-course__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s200); }
.av-course__img { position: relative; height: 230px; overflow: hidden; }
.av-course__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.av-course:hover .av-course__img img { transform: scale(1.04); }
.av-course__img .av-tag { position: absolute; left: var(--s300); top: var(--s300); }
.av-course__body { padding: var(--s300); display: flex; flex-direction: column; gap: var(--s200); }
.av-course__arrow { position: absolute; right: var(--s300); bottom: var(--s300); }
.av-course .arrow { transition: transform .25s var(--ease); }
.av-course:hover .arrow { transform: translateX(6px); }
.av-flash { display: inline-flex; align-items: center; gap: var(--s100); font-size: 14px; line-height: 18px; }
.av-flash i { width: 28px; height: 28px; border-radius: 50%; background: var(--av-ink) url("../assets/ico-flash.svg") center/16px no-repeat; filter: none; }
.av-tag { display: inline-block; align-self: flex-start; background: var(--av-salmon); color: var(--av-ink); border-radius: 4px; padding: 3px 4px; font-weight: 700; font-size: 12px; line-height: 16px; text-transform: uppercase; }

/* instalaciones */
.av-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s500); align-items: start; }
.av-split .body-l { font-weight: 400; color: #e6e6e6; }
.av-gallery { display: grid; grid-template-columns: 286fr 333fr 140fr 244fr; grid-template-rows: 262px 262px; gap: 18px; margin-top: var(--s500); }
.av-gallery figure { margin: 0; overflow: hidden; }
.av-gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.av-gallery figure:hover img { transform: scale(1.04); }
.av-gallery .g1 { grid-column: 1 / 3; } .av-gallery .g2 { grid-column: 3 / 5; }
.av-gallery .g3 { grid-column: 1 / 2; } .av-gallery .g4 { grid-column: 2 / 4; }
.av-gallery .g5 { grid-column: 4 / 5; }
.av-more { background: var(--av-lila); display: flex; align-items: flex-end; padding: var(--s300); color: var(--white); transition: background-color .2s ease; }
.av-more:hover { background: #c96cf0; }
.av-more .btn-stroke { color: var(--white); }

/* certificaciones */
.av-certs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s500); align-items: center; }
.av-certs__logos { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; justify-content: center; }
.av-certs__logos img { height: auto; opacity: .95; transition: opacity .2s ease, transform .2s ease; }
.av-certs__logos img:hover { opacity: 1; transform: scale(1.05); }

/* proyectos */
.av-projects .av-project { flex: 0 0 256px; display: flex; flex-direction: column; gap: var(--s100); color: var(--av-ink); }
.av-projects .av-project--wide { flex-basis: 742px; }
.av-project__img { position: relative; height: 418px; overflow: hidden; margin-bottom: var(--s100); }
.av-project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.av-project:hover .av-project__img img { transform: scale(1.04); }
.av-play { position: absolute; right: 16px; bottom: 16px; width: 56px; height: 56px; background: var(--av-lila) url("../assets/ico-play.svg") center/26px no-repeat; transition: transform .2s ease; }
.av-project:hover .av-play { transform: scale(1.08); }
.av-light .carousel { padding-top: 0; }

/* equipo */
.av-team .av-person { flex: 0 0 212px; display: flex; flex-direction: column; color: var(--white); }
.av-person img { height: 200px; width: 100%; object-fit: cover; object-position: center 20%; }
.av-person span { background: var(--av-panel); min-height: 140px; padding: var(--s200); display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 18px; color: #d9d9d9; transition: background-color .2s ease; }
.av-person b { font-weight: 500; font-size: 20px; line-height: 28px; color: var(--white); }
.av-person:hover span { background: #4f4f4f; }

/* opiniones */
.theme-av .trustpilot { color: currentColor; }
.av-review { flex: 0 0 256px; height: 497px; background: var(--av-panel); border-radius: 8px; padding: var(--s200); display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; }
.av-stars { color: var(--av-yellow, #f2bd11); letter-spacing: 2px; font-size: 16px; }
.av-stars em { font-style: normal; color: #777; }
.av-review p { flex: 1; }
.av-review__foot { display: flex; flex-direction: column; gap: 6px; }
.av-review__foot span { color: #d9d9d9; }
.av-ghost { margin-top: var(--s100); display: flex; align-items: center; justify-content: center; gap: 8px; height: 32px; border: 1px solid var(--white); border-radius: 100px; font-weight: 700; font-size: 12px; text-transform: uppercase; transition: background-color .2s ease, color .2s ease; }
.av-ghost:hover { background: var(--white); color: var(--av-ink); }
.av-ghost:hover img { filter: brightness(0); }

/* DavantePlay */
.av-play-mod { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s500); align-items: center; }
.av-play-mod__text { display: flex; flex-direction: column; gap: var(--s300); align-items: flex-start; }
.av-play-mod__text .body-l { font-weight: 400; }
.av-play-mod__media { position: relative; height: 571px; }
.av-play-mod__media .m1 { position: absolute; left: 22%; top: 0; width: 62%; height: 375px; object-fit: cover; }
.av-play-mod__media .m2 { position: absolute; left: 0; top: 375px; width: 22%; height: 196px; object-fit: cover; }
.av-play-mod__media .av-symbol { right: 6%; bottom: auto; top: 375px; }

/* contenido */
.av-posts .av-post { flex: 0 0 calc((100% - 2 * var(--s200)) / 3); min-width: 320px; height: 185px; display: flex; background: var(--av-panel); color: var(--white); transition: background-color .2s ease; }
.av-post:hover { background: #4f4f4f; }
.av-post > img { width: 120px; height: 100%; object-fit: cover; }
.av-post > span { padding: var(--s300); display: flex; flex-direction: column; justify-content: center; gap: var(--s100); }

/* visítanos */
.av-visit { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s200); }
.av-visit__info { border: 1px solid var(--white); padding: var(--s400); display: flex; flex-direction: column; gap: var(--s300); min-height: 760px; }
.av-visit__info ul { margin: 0; padding-left: 36px; list-style: none; display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 18px; line-height: 26px; }
.av-form { background: var(--av-light); color: var(--av-ink); padding: var(--s400); display: flex; flex-direction: column; gap: var(--s200); align-items: flex-start; }
.av-form__top { display: flex; justify-content: space-between; width: 100%; gap: var(--s200); }
.av-form__top .headline-m { font-weight: 400; }
.av-form__step { font-size: 29px; }
.av-promo { background: var(--av-green); padding: 4px 8px; font-weight: 500; font-size: 14px; }
.av-form__page { display: none; flex-direction: column; gap: 14px; align-items: flex-start; width: 100%; margin-top: var(--s300); }
.av-form__page.is-on { display: flex; }
.av-opt { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #b8b8b8; border-radius: 4px; background: var(--white); padding: 8px 14px 8px 8px; cursor: pointer; font-size: 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.av-opt::after { content: "→"; margin-left: 8px; transition: transform .2s ease; }
.av-opt:hover { border-color: var(--av-ink); }
.av-opt:hover::after { transform: translateX(4px); }
.av-opt input { accent-color: var(--av-ink); margin: 0; }
.av-input { width: 100%; height: 48px; border: 1px solid #b8b8b8; background: var(--white); padding: 0 14px; font: 400 16px "Manrope", sans-serif; }
.av-input:focus { outline: 2px solid var(--av-lila); border-color: transparent; }
.av-back { font-size: 14px; color: #575757; }
.av-back:hover { color: var(--av-ink); }
.av-done { font-weight: 700; }

/* footer */
.av-footer { background: var(--av-panel); border-top: 5px solid var(--av-lila); color: var(--white); }
.av-footer__top { display: flex; justify-content: space-between; align-items: center; padding: var(--s300) 0 var(--s500); }
.av-circle { background: var(--white); }
.av-circle:hover { background: var(--av-lila); }
.av-footer__cols { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: var(--s500); }
.av-footer__cols > div { display: flex; flex-direction: column; gap: 6px; }
.av-footer__cols a { font-size: 14px; line-height: 20px; color: #e6e6e6; }
.av-footer__cols a:hover { color: var(--white); text-decoration: underline; }
.av-footer__about p { font-size: 12px; line-height: 16px; color: #e6e6e6; max-width: 330px; margin-bottom: var(--s200); }
.av-footer__about a { text-decoration: underline; font-size: 12px; }
.av-footer__h { font-weight: 500; font-size: 18px; line-height: 26px; color: var(--white); }
.av-footer__cert { margin-top: var(--s500); font-size: 14px; font-weight: 700; }
.av-footer__logos { display: flex; gap: var(--s500); align-items: center; padding: var(--s200) 0 var(--s500); }
.av-footer__logos img { width: auto; }
.av-footer__legal { background: var(--av-bg); font-size: 12px; }
.av-footer__legal .wrap { display: flex; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.av-footer__legal span { display: flex; gap: var(--s300); }
.av-footer__legal a:hover { text-decoration: underline; }
.theme-av .bottom-bar { background: var(--av-bg); }
.theme-av .icon-circle--line { background: transparent; border-color: var(--white); }

/* ═════ móvil ═════ */
@media (max-width: 600px) {
  .theme-av .header__logo img { width: 150px; }
  .av-hero__container { height: auto; padding: 0; flex-direction: column; }
  .av-hero__bg { position: relative; height: 220px; order: 2; }
  .av-hero__box { width: 100%; padding: var(--s300) var(--margin); background: var(--av-panel); }
  .av-hero__box h1 { font-size: 36px; line-height: 44px; }
  .av-symbol { display: none; }
  .av-hero .wrap { padding: 0; }
  .av-split, .av-certs, .av-play-mod, .av-visit, .av-footer__cols { grid-template-columns: 1fr; }
  .av-course { flex: 0 0 300px; scroll-snap-align: start; min-height: 400px; }
  .av-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 140px 140px; gap: 10px; }
  .av-gallery .g1 { grid-column: 1 / 3; } .av-gallery .g2 { grid-column: 1 / 2; } .av-gallery .g3 { grid-column: 2 / 3; }
  .av-gallery .g4 { grid-column: 1 / 2; } .av-gallery .g5 { grid-column: 2 / 3; }
  .av-projects .av-project, .av-projects .av-project--wide { flex: 0 0 260px; scroll-snap-align: start; }
  .av-project__img { height: 300px; }
  .av-team .av-person { flex: 0 0 200px; scroll-snap-align: start; }
  .av-review { flex: 0 0 256px; scroll-snap-align: start; }
  .av-play-mod__media { height: 360px; }
  .av-play-mod__media .m1 { left: 18%; width: 82%; height: 260px; }
  .av-play-mod__media .m2 { top: 260px; width: 30%; height: 100px; }
  .av-play-mod__media .av-symbol { display: block; top: 270px; }
  .av-posts .av-post { flex: 0 0 300px; min-width: 300px; scroll-snap-align: start; }
  .av-visit__info { min-height: 0; }
  .av-footer__cols > div:not(.av-footer__about) a { display: none; }
  .av-footer__cols > div.is-open a { display: block; }
  .av-footer__h { cursor: pointer; }
  .av-footer__legal .wrap { flex-direction: column; gap: 14px; padding-bottom: calc(68px + 14px); }
}

/* ═════ móvil · ajustado al diseño móvil de Carmen (Home_M) ═════ */
.av-fest-m { display: none; }
@media (max-width: 600px) {
  .theme-av .m-only { display: inline; }
  .theme-av .pre-header { background: var(--av-green); }
  .theme-av .pre-header .text-link { color: var(--av-ink); }
  .theme-av .header { height: 58px; }
  .theme-av .header__logo { display: none; }
  .av-brand-m { display: inline-flex !important; align-items: center; gap: 8px; color: var(--white); font-weight: 500; font-size: 12px; line-height: 13px; }
  /* hero: foto alta con la caja encima, abajo */
  .av-hero { padding-bottom: 0; }
  .av-hero__container { height: 616px; padding: 0 0 56px 14px; flex-direction: row; align-items: flex-end; }
  .av-hero__bg { position: absolute; height: 100%; order: 0; object-position: 45% 50%; }
  .av-hero__box { width: 259px; padding: 24px 14px; background: rgba(66, 66, 66, .92); }
  .av-hero__box h1 { font-size: 36px; line-height: 48px; }
  .av-hero__box .body-xl { font-size: 18px; line-height: 26px; }
  .av-hero__box .av-hero__fest, .av-hero__box .av-hero__note { display: none; }
  .av-tp-m { display: flex !important; font-size: 12px; margin-top: 6px; }
  .av-tp-m img { height: 15px; }
  .theme-av .av-fest-m { display: block; background: var(--av-light); color: var(--av-ink); padding: 24px 14px 0; }
  .av-fest-m .av-hero__fest { margin-top: 0; gap: 32px; }
  .av-fest-m img { filter: brightness(0); }
  .av-fest-m .av-hero__note { color: var(--av-ink); margin-top: 8px; }
  /* cursos: pestañas y tarjetas deslizables, sin barra */
  .theme-av .av-light .tab-bar { justify-content: flex-start; }
  .av-course { flex: 0 0 347px; min-height: 412px; }
  /* galería 2×2 */
  .av-gallery { grid-template-columns: 1.1fr 1fr; grid-template-rows: 174px 131px; gap: 6px; }
  .av-gallery .g1 { grid-column: 1; grid-row: 1; } .av-gallery .g2 { grid-column: 2; grid-row: 1; }
  .av-gallery .g3 { grid-column: 1; grid-row: 2; } .av-gallery .g4 { display: none; }
  .av-gallery .g5 { grid-column: 2; grid-row: 2; }
  .av-certs__logos { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; gap: 40px 20px; }
  .av-certs__logos img:last-child { grid-column: 1 / 3; }
  .av-certs > div:first-child { order: 0; }
  .av-certs .btn-nav-stroke { order: 2; }
  /* proyectos y equipo */
  .av-projects .av-project, .av-projects .av-project--wide { flex: 0 0 256px; }
  .av-project__img { height: 418px; }
  .av-team .av-person { flex: 0 0 213px; }
  .av-person img { height: 200px; }
  /* opiniones: solo las reseñas */
  .theme-av .opinions__top .trustpilot { display: flex; align-self: flex-start; }
  .theme-av .carousel__track--testimonials .testimonial { display: none; }
  .av-review { flex: 0 0 256px; }
  /* DavantePlay: una sola foto */
  .av-play-mod__media { height: 300px; }
  .av-play-mod__media .m1 { left: 0; width: 291px; height: 231px; }
  .av-play-mod__media .m2 { display: none; }
  .av-play-mod__media .av-symbol { display: block; left: 291px; right: auto; top: 231px; }
  /* contenido: tarjetas apiladas */
  .av-posts { flex-direction: column; }
  .av-posts .av-post { flex: 0 0 auto; width: 100%; min-width: 0; height: 186px; }
  .av-posts .av-post:nth-child(4) { display: none; }
  .av-posts .av-post > img { width: 120px; }
  /* footer */
  .av-footer__top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .av-footer__cols > div:not(.av-footer__about) { border-bottom: 1px solid #5c5c5c; padding: 14px 0; }
  .av-footer__h { display: flex; justify-content: space-between; align-items: center; }
  .av-footer__cols .av-footer__h::after { content: ""; flex: 0 0 20px; width: 20px; height: 20px; box-sizing: border-box; border: 1.5px solid var(--av-lila); border-radius: 50%;
    background: linear-gradient(45deg, transparent 45%, var(--av-lila) 45% 55%, transparent 55%) 3px 4px/7px 7px no-repeat,
                linear-gradient(-45deg, transparent 45%, var(--av-lila) 45% 55%, transparent 55%) 8px 4px/7px 7px no-repeat; }
  .av-footer__cert { margin-top: 56px; }
  .av-footer__logos { justify-content: space-between; }
  .theme-av .bottom-bar { background: var(--white); }
  .theme-av .bottom-bar .icon-circle--line { border-color: var(--av-ink); }
  .theme-av .bottom-bar .ico-w { filter: brightness(0); }
  .theme-av .bottom-bar .btn--dark { flex: 1; }
}
