/* Páginas de disciplina de Moof Active (page-ma-disciplina.php). Se apoya en ma.css. */
.mad-migas { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13.5px; font-weight: 700; }
.ma .mad-migas a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 99px; color: var(--ma-azul); text-decoration: none; background: rgba(255,255,255,.8); border: 1px solid var(--ma-linea); box-shadow: 0 6px 16px rgba(3,104,157,.1); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .3s, transform .3s; }
.ma .mad-migas a:hover { background: #fff; color: var(--ma-azul); transform: translateX(-2px); }
.mad-migas > span { color: var(--ma-azul) !important; opacity: .75; }
@media (max-width: 1024px) { .mad-migas { justify-content: center; } }
.mad-migas > span { color: var(--ma-amarillo); letter-spacing: .14em; text-transform: uppercase; font-size: 11.5px; }

.mad-intro { padding-bottom: 60px; }
.mad-intro__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.mad-intro .ma-kicker { margin-bottom: 14px; }
.mad-intro .ma-titulo { text-align: left; }
.mad-p { margin-top: 20px !important; font-size: 17px; line-height: 1.75; color: var(--ma-texto); }
.mad-nivel { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px !important; padding: 12px 18px; border-radius: 16px; background: var(--ma-suave); border: 1px solid var(--ma-linea); color: var(--ma-tinta); font-size: 15px; }
.mad-nivel .ma-ico { color: var(--ma-azul); }
.mad-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 28px; }
.mad-act { position: relative; padding: 18px 18px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--ma-linea); box-shadow: var(--ma-sombra); overflow: hidden; transition: transform .35s var(--ma-ease); }
.mad-act::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--sec); }
.mad-act:hover { transform: translateY(-3px); }
.mad-act h3 { font-size: 17.5px; font-weight: 800; color: var(--ma-tinta); }
.mad-act__niv { margin-top: 4px !important; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--sec-txt); }
.mad-act p:not(.mad-act__niv) { margin-top: 8px !important; font-size: 14.5px; line-height: 1.55; }
.mad-act__n { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--ma-azul); }
.mad-intro__foto { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -24px rgba(3,104,157,.45); }
.mad-intro__foto img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 1.2s var(--ma-ease); }
.mad-intro__foto:hover img { transform: scale(1.04); }
.mad-intro__foto figcaption { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(3,60,95,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.mad-para { margin-top: 60px; padding: 34px 38px; border-radius: 26px; background: linear-gradient(135deg, var(--ma-azul) 0%, #0a7db8 60%, #3e95d1 100%); color: #fff; box-shadow: 0 26px 56px -22px rgba(3,104,157,.55); }
.mad-para .ma-kicker { color: var(--ma-amarillo); margin-bottom: 18px; }
.mad-para ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.mad-para li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; font-weight: 700; }
.mad-para li > span { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--ma-azul); }
.ma-js .mad-para.ma-rv li { opacity: 0; transform: translateX(-10px); transition: opacity .6s ease calc(.25s + var(--i) * .1s), transform .6s var(--ma-ease) calc(.25s + var(--i) * .1s); }
.ma-js .mad-para.ma-rv.is-in li { opacity: 1; transform: none; }

.mad-profes { margin-top: 34px; text-align: center; }
.mad-profes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.mad-profes li { display: flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border-radius: 99px; background: #fff; border: 1px solid var(--ma-linea); box-shadow: 0 8px 20px rgba(3,104,157,.07); text-align: left; }
.mad-profe__ini { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(140deg, var(--ma-azul), var(--ma-cielo)); }
.mad-profes li > span:last-child { display: flex; flex-direction: column; font-size: 12.5px; color: var(--ma-texto); }
.mad-profes b { font-size: 15px; color: var(--ma-tinta); }

.ma .mad-clinica { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding: 18px 22px; border-radius: 20px; text-decoration: none; color: var(--ma-tinta); background: var(--ma-suave); border: 1px solid var(--ma-linea); transition: border-color .3s, transform .3s; }
.ma .mad-clinica:hover { border-color: var(--ma-cielo); transform: translateY(-2px); color: var(--ma-tinta); }
.mad-clinica > span:first-child { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; background: linear-gradient(140deg, var(--ma-azul), #3e95d1); }
.mad-clinica > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.mad-clinica small { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ma-cielo); }
.mad-clinica strong { font-size: 17px; color: var(--ma-azul); }
.mad-clinica > .ma-ico { color: var(--ma-azul); transition: transform .3s; }
.ma .mad-clinica:hover > .ma-ico { transform: translateX(4px); }

.mad-otras { padding-top: 40px; }
.mad-otras__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ma .mad-otra { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; text-decoration: none; background: #fff; border: 1px solid var(--ma-linea); box-shadow: var(--ma-sombra); color: var(--ma-tinta); transition: transform .4s var(--ma-ease), box-shadow .4s; }
.ma .mad-otra:hover { transform: translateY(-5px); box-shadow: 0 26px 50px rgba(3,104,157,.16); color: var(--ma-tinta); }
.mad-otra__foto { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ma-suave); }
.mad-otra__foto img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .9s var(--ma-ease); }
.ma .mad-otra:hover .mad-otra__foto img { transform: scale(1.06); }
.mad-otra__txt { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.mad-otra__txt .ma-chip { align-self: flex-start; }
.mad-otra__txt strong { font-size: 18px; font-weight: 800; color: var(--ma-tinta); }
.mad-otra__txt small { font-size: 13.5px; color: var(--ma-texto); }
.mad-otra > .ma-ico { position: absolute; right: 16px; bottom: 20px; color: var(--ma-azul); transition: transform .3s; }
.ma .mad-otra:hover > .ma-ico { transform: translateX(4px); }
.mad-todo { margin-top: 30px !important; text-align: center; }
.ma .mad-todo a { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ma-azul); text-decoration: none; border-bottom: 2px solid rgba(3,104,157,.2); padding-bottom: 3px; }
.ma .mad-todo a:hover { border-color: var(--ma-azul); }

@media (max-width: 1024px) {
  .mad-intro__grid { grid-template-columns: 1fr; gap: 36px; }
  .mad-intro__foto { aspect-ratio: 16 / 10; }
  .mad-otras__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .mad-intro { padding-bottom: 30px; }
  .mad-p { font-size: 16px; }
  .mad-para { margin-top: 40px; padding: 26px 22px; border-radius: 22px; }
  .mad-para ul { grid-template-columns: 1fr; }
  .mad-para li { font-size: 15px; }
  .mad-otras__grid { grid-template-columns: 1fr; gap: 12px; }
  .ma .mad-otra { flex-direction: row; align-items: center; }
  .mad-otra__foto { flex: 0 0 110px; aspect-ratio: 1; }
  .mad-otra__txt { padding: 12px 40px 12px 14px; }
  .mad-otra__txt strong { font-size: 16.5px; }
  .mad-profes ul { flex-direction: column; align-items: stretch; }
}

/* ---------- Cabecera de disciplina: texto limpio + foto enmarcada (sin parallax) ---------- */
.mad-hero { overflow: hidden; background: linear-gradient(180deg, #fff 0%, #F3F8FC 60%, #E6F1FA 100%); }
.mad-hero::before { background: radial-gradient(60% 70% at 85% 30%, rgba(115,176,237,.22), transparent 70%), radial-gradient(40% 50% at 5% 90%, rgba(253,194,60,.10), transparent 70%); }
.mad-hero__blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.mad-hero__blob--a { width: 420px; height: 420px; right: 4%; top: 12%; background: rgba(115,176,237,.35); animation: mad-flota 16s ease-in-out infinite alternate; }
.mad-hero__blob--b { width: 300px; height: 300px; left: -80px; bottom: 60px; background: rgba(3,104,157,.12); animation: mad-flota 20s ease-in-out infinite alternate-reverse; }
.mad-hero .ma-hero__inner { grid-template-columns: minmax(0, 1fr) 470px; gap: 60px; }
.mad-hero__der { position: relative; display: flex; flex-direction: column; align-items: center; }
.mad-hero__der .mad-hero__visual { width: 100%; }
.mad-hero__badges .ma-badges { margin-top: 26px; justify-content: center; gap: 12px; }
.mad-hero__badges .ma-badge img { height: 44px; }
.ma-js .mad-hero__badges { animation: ma-movil-entra 1.1s var(--ma-ease) .35s both; }
.mad-hero__visual { position: relative; padding: 0 0 30px 40px; }
.mad-hero__foto { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; background: var(--ma-suave); box-shadow: 0 40px 80px -30px rgba(3,60,95,.55); transform: rotate(1.5deg); }
.mad-hero__foto::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); background: linear-gradient(180deg, transparent 60%, rgba(2,50,80,.35)); pointer-events: none; }
.mad-hero__foto img { width: 100%; height: 100% !important; object-fit: cover; animation: mad-zoom 18s ease-in-out infinite alternate; }
.mad-hero__foto figcaption { position: absolute; z-index: 1; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(3,60,95,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mad-hero__visual::before { content: ""; position: absolute; inset: 24px -18px 6px 58px; border-radius: 34px; border: 2px dashed rgba(3,104,157,.22); transform: rotate(-3deg); z-index: -1; }
.mad-hero__app { position: absolute; left: -14px; bottom: -6px; width: 150px; z-index: 2; }
.mad-hero__app .ma-phone { width: 150px; }
.mad-hero__app .ma-hero__tilt { transform: perspective(900px) rotateY(10deg) rotateX(4deg) rotate(-4deg); }
.mad-hero__visual .ma-float { z-index: 3; }
.mad-float--1 { top: 14%; left: -6%; animation: ma-flota 6s ease-in-out infinite .6s; }
.mad-float--2 { bottom: 26%; right: -5%; animation: ma-flota 6.5s ease-in-out infinite 1.2s; }
.mad-float--2 .ma-ico { color: var(--ma-amarillo); }
.ma-js .mad-hero__visual { animation: ma-movil-entra 1.1s var(--ma-ease) .1s both; }
@keyframes mad-zoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@keyframes mad-flota { from { transform: translate(0, 0); } to { transform: translate(-30px, 24px); } }
@media (prefers-reduced-motion: reduce) { .mad-hero__foto img, .mad-hero__blob { animation: none; } }
@media (max-width: 1024px) {
  .mad-hero .ma-hero__inner { grid-template-columns: 1fr; gap: 50px; }
  .mad-hero__visual { max-width: 460px; width: 100%; margin: 0 auto; }
  .mad-hero__der { max-width: 460px; width: 100%; margin: 0 auto; }
}
@media (max-width: 767px) {
  .mad-hero .ma-hero__inner { gap: 34px; }
  .mad-hero__badges .ma-badges { margin-top: 18px; gap: 10px; }
  .mad-hero__visual { padding: 0 0 24px 26px; }
  .mad-hero__foto { aspect-ratio: 4 / 4.4; border-radius: 26px; }
  .mad-hero__app, .mad-hero__app .ma-phone { width: 104px; }
  .mad-hero__app { left: -6px; }
  .mad-hero__visual .ma-float { font-size: 11px; padding: 7px 10px; border-radius: 11px; gap: 5px; }
  .mad-float--1 { left: 0; top: 8%; }
  .mad-float--2 { right: -2%; bottom: 30%; }
}
@media (max-width: 767px) {
  .mad-migas { order: 1; align-self: center; }
  .mad-hero__der { order: 3; margin: 30px auto 4px; }
  .mad-hero__badges .ma-badge img { height: 38px; }
  .ma-hero.mad-hero::before { background: radial-gradient(70% 40% at 80% 45%, rgba(115,176,237,.22), transparent 70%); }
  .mad-hero .ma-hero__sub { text-align: center; }
}
.mad-hero .ma-hero__title .mad-l { white-space: normal; text-wrap: balance; }

/* Móvil de la app en pequeño: esquinas, marco y isla a escala (que parezca un iPhone, no un huevo) */
.mad-hero__app .ma-phone { border-radius: 26px; padding: 6px; box-shadow: 0 26px 50px -12px rgba(0,20,40,.5), inset 0 0 0 1.5px rgba(255,255,255,.14); }
.mad-hero__app .ma-phone::before { top: 11px; width: 44px; height: 12px; border-radius: 8px; }
.mad-hero__app .ma-phone__screen { border-radius: 20px; }
@media (max-width: 767px) {
  .mad-hero__app, .mad-hero__app .ma-phone { width: 112px; }
  .mad-hero__app .ma-phone { border-radius: 19px; padding: 4px; }
  .mad-hero__app .ma-phone::before { top: 8px; width: 32px; height: 9px; border-radius: 6px; }
  .mad-hero__app .ma-phone__screen { border-radius: 15px; }
  .mad-hero__app .ma-hero__tilt { transform: rotate(-5deg); }
  .mad-hero__app .ma-hero__tilt::after { display: none; }
}
