/* =====================================================================
   Álex Ruiz System · Cambios pendientes del cliente (v48)
   Se carga la última en todas las páginas. Cada bloque cita su código
   del documento «CAMBIOS PENDIENTES».
   ===================================================================== */

/* HOME-01 · Iconos de la barra de especialidades: misma familia, trazo fino */
.pillar .round svg.ico48 { width: 46%; height: 46%; min-width: 34px; min-height: 34px; stroke-width: 1.2; }

/* HOME-02 · «Formación en diferentes universidades.» en una línea en escritorio */
@media (min-width: 1260px) { .stats .stat .detail-nowrap { white-space: nowrap; max-width: none !important; width: auto !important; margin-right: -40px; } }

/* JOURNAL-01 · Portada del artículo y aviso de texto pendiente */
body .ars-journal-reading .ars-post-cover { margin: 30px 0 44px !important; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; background: #eae1d7; }
body .ars-journal-reading .ars-post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ars-post-pending { padding: 22px 26px; border-left: 2px solid #7a5a3e; background: #f3ede5; color: #655e56; }
.ars-journal-reading section ul { padding-left: 22px; margin: 0 0 18px; }
.ars-journal-reading section li { margin-bottom: 8px; line-height: 1.8; }
.ars-journal-reading section blockquote { margin: 18px 0; padding: 4px 0 4px 22px; border-left: 2px solid #7a5a3e; font: italic 400 19px/1.6 "Banner Libre", "Libre Baskerville", serif; color: #404035; }

/* SOBRE-01 · Visión, Experiencia y Actualidad: tarjetas equilibradas */
body .ars-about-story-pillars { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; align-items: stretch !important; gap: 0 !important; }
body .ars-about-story-detail { height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; padding: 34px 32px 36px !important; display: flex !important; flex-direction: column !important; justify-content: flex-start !important; gap: 16px !important; }
body .ars-about-story-detail .ar-label { margin: 0 !important; min-height: 1.4em; }
body .ars-about-story-detail p { margin: 0 !important; }
@media (max-width: 900px) {
  body .ars-about-story-pillars { grid-template-columns: 1fr !important; }
  body .ars-about-story-detail { padding: 28px 22px !important; border-right: 0 !important; border-left: 0 !important; }
}

/* SOBRE-02 · «Una forma de entender la salud» */
.ars-health-way48 { background: linear-gradient(135deg, #f3ede5 0%, #eae1d7 100%); padding: clamp(80px, 9vw, 130px) 0; }
.ars-health-way48-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.ars-health-way48 h2 { margin: 0; font: 500 clamp(34px, 4vw, 58px)/1.08 "Banner Poppins", Poppins, sans-serif; letter-spacing: -.035em; color: #201d19; }
.ars-health-way48 h2 em { font: italic 400 1em/1 "Banner Libre", "Libre Baskerville", serif; color: #7a5a3e; letter-spacing: -.02em; }
.ars-health-way48-body { max-width: 62ch; display: flex; flex-direction: column; gap: 22px; }
.ars-health-way48-body p { margin: 0; font-size: 17px; line-height: 1.85; color: #504a43; }
.ars-health-way48 .ars-health-way48-head, .ars-health-way48 .ars-health-way48-body p { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }
.ars-health-way48.is-in .ars-health-way48-head, .ars-health-way48.is-in .ars-health-way48-body p { opacity: 1; transform: none; }
.ars-health-way48.is-in .ars-health-way48-body p:nth-child(2) { transition-delay: .12s; }
.ars-health-way48.is-in .ars-health-way48-body p:nth-child(3) { transition-delay: .24s; }
@media (max-width: 860px) { .ars-health-way48-grid { grid-template-columns: 1fr; gap: 26px; } .ars-health-way48-body p { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .ars-health-way48 .ars-health-way48-head, .ars-health-way48 .ars-health-way48-body p { opacity: 1; transform: none; transition: none; } }

/* SOBRE-03 · Retícula de deportistas en recuadros con relieve sutil */
body section .ars-about-athletes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 18px !important; border: 0 !important; }
body section .ars-about-athletes-grid > div:nth-child(n) { border: 1px solid #cdbba6 !important; border-radius: 16px !important; background: linear-gradient(160deg, #fdfbf8, #f5efe7) !important; box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 14px 30px -22px rgba(64,64,53,.35) !important; /* !important: refine-v45.css los anulaba y el relieve no se veía */ padding: 30px 28px !important; min-height: 0 !important; }
body section .ars-about-athletes-grid > div.ars-about-athletes-more h3 { font: italic 400 clamp(24px, 2.3vw, 32px)/1.2 "Banner Libre", "Libre Baskerville", serif !important; color: #7a5a3e !important; letter-spacing: -.01em; }
body .ars-about-former { border-top: 1px solid #d8cbbc !important; margin-top: 48px !important; padding-top: 48px !important; }
body .ars-about-former .ars-former-paragraph, body .ars-about-former p { border-top: 0 !important; }
body .ars-about-former .ars-former-em.ars-nowrap48 { white-space: nowrap !important; font-family: "Banner Libre", "Libre Baskerville", serif; font-style: italic; color: #7a5a3e; }
@media (max-width: 900px) { body section .ars-about-athletes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; } }
@media (max-width: 760px) { body section .ars-about-athletes-grid > div:nth-child(n) { padding: 22px 18px !important; border: 1px solid #cdbba6 !important; } }
@media (max-width: 420px) { body section .ars-about-athletes-grid { grid-template-columns: 1fr !important; } }

/* SOBRE-04 · Fisioterapia: línea vertical marrón a la izquierda, sin negritas */
body .ars-about-former .ars-former-note48 { border-top: 0 !important; border-left: 1.5px solid #7a5a3e !important; padding: 2px 0 2px 22px !important; margin-top: 26px !important; font-weight: 400 !important; }
body .ars-about-former .ars-former-note48::before, body .ars-about-former .ars-former-note48::after { content: none !important; display: none !important; }
body .ars-about-former .ars-former-note48 strong { font-weight: 400; }

/* SOBRE-05 · Logotipos: dos filas de cuatro en escritorio */
body .ars-about-teaching .ars-logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 22px 26px !important; }
body .ars-logo-cell img { opacity: .78; }
body .ars-logo-cell .ars-logo-yopro { width: auto; max-width: 100%; max-height: 40px; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; }
@media (max-width: 1100px) { body .ars-about-teaching .ars-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* SOBRE-06 · FIP Academy: logotipo más grande y alineado con su título */
body .ars-fip-section .ars-fip { align-items: center !important; }
body .ars-fip-section .ars-fip > div:first-child { display: flex !important; flex-direction: column; align-items: center; justify-content: center; text-align: center !important; padding: 36px 24px !important; }
body .ars-fip-section .ars-fip-image { width: min(300px, 80%) !important; height: auto; margin: 0 auto !important; opacity: .78; }
body .ars-fip-section .ars-fip > div:first-child .ar-label { margin-top: 18px !important; }

/* CONTACTO · Preguntas añadidas desde Servicios */
.ar-faq .ars-faq-answer { max-width: 820px; padding: 0 60px 26px 14px; color: #655e56; }
.ar-faq .ars-faq-answer p { margin: 0 0 14px; font-size: 15px; line-height: 1.85; }
.ar-faq .ars-faq-answer strong { color: #404035; font-weight: 600; }
.ar-faq .ars-faq-answer ul { padding-left: 22px; margin: 8px 0 22px; list-style: disc; }
.ar-faq .ars-faq-answer li { font-size: 15px; line-height: 1.85; margin: 0 0 10px; }
.ar-faq .ars-faq-answer blockquote { margin: 18px 0 0; padding: 16px 22px; border-left: 2px solid #a8815b; background: #eee7df; font-size: 15px; line-height: 1.85; }
@media (max-width: 640px) { .ar-faq .ars-faq-answer { padding: 0 14px 22px 8px; } }

/* MÓVIL · campos a 16 px para que iOS no haga zoom al tocarlos */
@media (max-width: 760px) { input, select, textarea { font-size: 16px !important; } }

/* =====================================================================
   Validación final (docs/WEB_FINAL_ACCEPTANCE.md). Defectos confirmados en
   navegador; ninguno cambia el diseño aprobado: restauran reglas que una
   capa posterior anuló o dan a un texto el color que su fondo exige.
   ===================================================================== */

/* SERVICIOS · en móvil las áreas de atención se salían de la pantalla: services-experience.css
   fija dos columnas sin condición y anulaba la columna única de service-areas.css */
@media (max-width: 760px) { .service-detail-grid { grid-template-columns: 1fr; gap: 27px; } }


/* CONTRASTE · bloques que pasaron a fondo oscuro o claro sin que su texto cambiara de color */
body .ar-main .ar-location.large .ar-label, body .ar-main .ar-location.large p,
body .ar-sport-categories .ar-label, body .ar-sport-categories p { color: #ded0c0 !important; }
body #testimonios > .wrap > p, body #testimonios .service-review figcaption strong { color: #404035 !important; }
body #testimonios .service-review figcaption a { color: #7a5a3e; text-decoration-color: #7a5a3e; }
body #testimonios .ars-review-arrow { color: #404035; border-color: #a9937a; }
body #testimonios .ars-review-arrow:focus-visible, body #testimonios .ars-review-dots button:focus-visible { outline-color: #7a5a3e; }
body .page-cta h2 em, body .ar-close h2 em { color: #7a5a3e !important; }
/* textos secundarios que no llegaban a 4,5:1 sobre el greige y sus degradados */
body .ar-crumb, body .ar-crumb a, body .crumb, body .crumb a, body .crumb span { color: #5a534b; }
.media-mini strong, .media-mini .serif, .media-mini small { color: #5a534b; }
.ar-number { color: #a3886c; }

/* TÁCTIL · puntos del carrusel de testimonios: zona de 24 px con el mismo punto visible de 8 px */
body #testimonios .ars-review-dots { gap: 0; }
body #testimonios .ars-review-dots button { width: 24px; height: 24px; padding: 8px; box-sizing: border-box; background-color: #a9937a80; background-clip: content-box; }
body #testimonios .ars-review-dots button.is-current { background-color: #7a5a3e; background-clip: content-box; transform: none; padding: 7px; } /* el punto activo crece sin invadir al vecino */

/* MOVIMIENTO REDUCIDO · la cinta de deportistas se detiene: se muestra entera en lugar de cortada */
@media (prefers-reduced-motion: reduce) {
  .marquee .track { width: auto; flex-wrap: wrap; justify-content: center; padding-inline: 20px; }
  .marquee .track [aria-hidden="true"] { display: none; } /* la copia que solo existe para el bucle */
}

/* SERVICIOS · los pasos ya no llevan role=button (ver services-experience.js): conservan el cursor */
#primera-consulta .process-grid li { cursor: pointer; }

/* CRITERIOS GENERALES · terracota del documento (#854522) en el único texto que seguía en #904b25 */
.marquee .track .sport-kind { color: #854522; }

/* JOURNAL-01 · las páginas de artículo (nuevas en v48) usaban el margen lateral de la plantilla antigua (48 px);
   cabecera, portada y cierre se alinean con el resto de la web, como piden los criterios generales */
body.ars-journal-article .inner-page > section > .wrap:not(.ars-journal-reading) { width: 86%; max-width: 1600px; }
