/* Ortopedia infantil: native Gutenberg categories and product catalogue. */
.ac-child-hero {gap:clamp(30px,5vw,70px);grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
.ac-child-hero h1 {font-size:clamp(41px,4.6vw,64px);max-width:21ch;line-height:1.1;}
.ac-child-hero .ac-hero-photo {height:auto;aspect-ratio:4/3;min-height:0;background:#fff;}
.ac-child-hero .ac-hero-photo img {object-fit:contain;padding:22px;}
.ac-child-nav {display:flex;flex-wrap:wrap;gap:8px 28px;border-block:1px solid var(--line);padding-block:15px;}
.ac-child-nav .ac-text-link {margin:0;}
.ac-child-nav a {min-height:44px;font-size:14px;}
.ac-child-section {scroll-margin-top:30px;}
.ac-child-section .ac-section-head h2 {font-size:clamp(34px,3.7vw,52px);max-width:25ch;}
.ac-child-section .ac-lead {max-width:70ch;}
.ac-child-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;}
.ac-child-grid-2 {grid-template-columns:repeat(2,minmax(0,1fr));}
.ac-child-card {background:#fff;border:1px solid var(--line);border-radius:5px;overflow:hidden;display:flex;flex-direction:column;min-width:0;scroll-margin-top:28px;}
.ac-child-photo {height:280px;margin:0;width:100%;background:#fff;}
.ac-child-photo > a {display:block;width:100%;height:100%;}
.ac-child-photo img {display:block;width:100%;height:100%;object-fit:contain;padding:22px;}
.ac-child-copy {padding:26px;display:flex;flex-direction:column;flex:1;border-top:1px solid var(--line);}
.ac-child-copy .ac-kicker {font-size:10px;letter-spacing:.06em;margin:0 0 14px;}
.ac-child-copy h3 {font-size:26px;line-height:1.2;letter-spacing:-.025em;margin:0 0 16px;}
.ac-child-copy h3 a {text-decoration:none;}
.ac-child-copy p:not(.ac-kicker):not(.ac-text-link) {font-size:15px;line-height:1.7;color:var(--muted);margin-bottom:18px;}
.ac-child-copy .ac-text-link {margin-top:auto;}
.ac-child-copy .ac-text-link a {font-size:14px;min-height:44px;}
.ac-child-facts {padding-left:20px;margin:0 0 24px;}
.ac-child-facts li {font-size:15px;line-height:1.7;color:var(--muted);margin-bottom:9px;}
.ac-child-note {padding:25px 28px;background:var(--sky);border-left:2px solid #72959b;margin-top:30px;}
.ac-child-note p {font-size:16px;line-height:1.7;color:var(--muted);max-width:85ch;margin:0;}
.ac-child-text-card {border-top:1px solid var(--line);padding-top:25px;min-width:0;}
.ac-child-text-card h3 {font-size:26px;line-height:1.25;margin:0 0 18px;}
.ac-child-text-card p {font-size:16px;line-height:1.7;color:var(--muted);}
.ac-child-visit {background:var(--ac-cta-bg,#e5eef7);padding-block:clamp(45px,6vw,85px);}
.ac-child-visit-inner {display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr);gap:40px;align-items:center;}
.ac-child-visit h2 {font-size:clamp(35px,3.8vw,52px);line-height:1.15;margin-bottom:22px;}
.ac-child-visit p {font-size:17px;line-height:1.7;max-width:65ch;}
.ac-child-visit .ac-actions {flex-direction:column;align-items:flex-start;}
.ac-child-source {font-size:14px;color:var(--muted);}
.ac-child-product-hero .ac-hero-photo {aspect-ratio:1;max-height:520px;}
.ac-child-product-hero .ac-hero-photo img {padding:32px;}
.ac-child-no-photo {grid-template-columns:1fr;}
.ac-child-context-hero .ac-hero-photo img {object-fit:cover;object-position:50% 25%;padding:0;}
.ac-child-context-hero .ac-hero-photo {aspect-ratio:4/3;overflow:visible;}
.ac-child-context-hero .ac-hero-photo figcaption {font-size:12px;line-height:1.55;color:var(--muted);margin-top:10px;}
.ac-child-context-hero .ac-hero-photo img {height:100%;}
.ac-child-specs {overflow-x:auto;max-width:100%;margin:28px 0 38px;}
.ac-child-specs table {width:100%;min-width:580px;border-collapse:collapse;font-size:15px;line-height:1.55;}
.ac-child-specs th,.ac-child-specs td {border:1px solid var(--line);padding:13px 15px;text-align:left;vertical-align:top;}
.ac-child-specs th {background:var(--sky);font-weight:600;}
.ac-child-specs tbody tr:nth-child(even) {background:var(--cream);}
.ac-child-specs figcaption {font-size:13px;color:var(--muted);line-height:1.6;margin-top:12px;}
.ac-child-detail-photo {max-width:720px;height:auto;margin:35px 0;background:#fff;}
.ac-child-detail-photo > a,.ac-child-gallery-photo > a {display:block;width:100%;}
.ac-child-detail-photo > a,.ac-child-detail-photo img {height:420px;}
.ac-child-detail-photo img,.ac-child-gallery-photo img {width:100%;object-fit:contain;}
.ac-child-gallery-photo > a,.ac-child-gallery-photo img {height:290px;}
.ac-child-gallery-photo {height:auto;margin:0;background:#fff;border:1px solid var(--line);padding:20px;}
.ac-child-gallery-photo figcaption {margin-top:12px;font-size:12px;line-height:1.6;color:var(--muted);}
@media(max-width:680px){.ac-child-detail-photo > a,.ac-child-detail-photo img {height:340px;}.ac-child-specs table {font-size:13px;}.ac-child-specs th,.ac-child-specs td {padding:11px 12px;}.ac-child-gallery-photo > a,.ac-child-gallery-photo img {height:270px;}}
@media(max-width:1000px){.ac-child-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}.ac-child-copy {padding:23px;}}
@media(max-width:860px){.ac-child-hero,.ac-child-visit-inner {grid-template-columns:1fr;gap:30px;}.ac-child-hero .ac-hero-photo {max-height:430px;}.ac-child-product-hero .ac-hero-photo {max-height:440px;}.ac-child-visit .ac-actions {justify-self:start;}}
@media(max-width:680px){.ac-child-grid,.ac-child-grid-2 {grid-template-columns:1fr;gap:26px;}.ac-child-hero h1 {font-size:41px;}.ac-child-photo {height:290px;}.ac-child-copy h3 {font-size:27px;}.ac-child-section .ac-section-head h2 {font-size:35px;}.ac-child-nav {gap:8px 22px;}.ac-child-note {padding:23px;}}

@media(max-width:680px){.ac-child-specs::before {content:"Desliza la tabla para ver todas las columnas →";display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-bottom:12px;}}

/* Gutenberg adds height:auto inline to images; preserve the same preview sizes. */
.editor-styles-wrapper .ac-child-context-hero .ac-hero-photo > img,.editor-styles-wrapper .ac-child-photo img {height:100%!important;}
.editor-styles-wrapper .ac-child-detail-photo img {height:420px!important;}
.editor-styles-wrapper .ac-child-gallery-photo img {height:290px!important;}
@media(max-width:680px){.editor-styles-wrapper .ac-child-detail-photo img {height:340px!important;}.editor-styles-wrapper .ac-child-gallery-photo img {height:270px!important;}}

/* Specific cover framing for the infant positioning area and its entry card. */
.ac-child-context-hero .ac-positioning-infantil-cover img,.ac-child-card .ac-positioning-infantil-cover img {object-position:100% 50%;}
.ac-child-card .ac-positioning-infantil-cover img {object-fit:cover;padding:0;}

/* Exact photograph selected by the user: keep face, boots and bar visible. */
.ac-child-context-hero .ac-ponseti-cover {aspect-ratio:651/611;max-width:651px;max-height:none;min-height:0;}
.ac-child-context-hero .ac-ponseti-cover img,.ac-child-card .ac-ponseti-cover img {object-fit:contain;object-position:50% 50%;padding:0;}

/* Cranial photographs from the selected MyCRO Band page. */
.ac-mycro-hero .ac-mycro-cover img {object-position:40% 50%;}
.ac-child-card .ac-mycro-card-photo img {object-fit:cover;object-position:40% 50%;padding:0;}
.ac-mycro-feature {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,4vw,58px);align-items:center;margin-top:45px;}
.ac-mycro-feature-photo {margin:0;background:#fff;}
.ac-mycro-feature-photo img {display:block;width:100%;height:auto;border-radius:5px;}
.ac-mycro-feature-copy {min-width:0;}
.ac-mycro-feature-copy .ac-kicker {font-size:11px;margin-bottom:16px;}
.ac-mycro-feature-copy h3 {font-size:clamp(25px,2.6vw,36px);line-height:1.2;margin-bottom:20px;}
.ac-mycro-feature-copy p:not(.ac-kicker) {font-size:16px;line-height:1.75;color:var(--muted);}
.ac-mycro-text-card {align-self:start;}
.ac-mycro-text-card .ac-child-copy {border-top:0;}
@media(max-width:860px){.ac-mycro-feature {grid-template-columns:1fr;gap:24px;margin-top:34px;}.ac-mycro-feature-reverse .ac-mycro-feature-photo {order:-1;}}

/* One cranial model: a wide native card, stacked on small screens. */
.ac-mycro-single-catalog {grid-template-columns:minmax(0,1fr);}
.ac-mycro-single-catalog .ac-child-card {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
.ac-mycro-single-catalog .ac-child-photo {height:100%;min-height:320px;}
.ac-mycro-single-catalog .ac-child-copy {border-top:0;border-left:1px solid var(--line);padding:clamp(26px,4vw,48px);justify-content:center;}
.ac-mycro-single-catalog .ac-child-copy .ac-text-link {margin-top:12px;}
@media(max-width:680px){.ac-mycro-single-catalog .ac-child-card {grid-template-columns:1fr;}.ac-mycro-single-catalog .ac-child-photo {height:290px;min-height:0;}.ac-mycro-single-catalog .ac-child-copy {border-left:0;border-top:1px solid var(--line);padding:26px;}}

/* DAFO: original user photographs and clear, complete product illustrations. */
.ac-dafo-main-hero .ac-hero-photo,.ac-dafo-hero .ac-hero-photo {aspect-ratio:3/4;max-height:570px;background:#fff;}
.ac-dafo-main-hero .ac-hero-photo img,.ac-dafo-hero .ac-hero-photo img {object-fit:contain;object-position:50% 50%;padding:0;}
.ac-product-exact-photo img {max-height:460px;object-fit:contain;}
.ac-dafo-diagram {margin:35px 0;max-width:100%;}
.ac-dafo-diagram img {display:block;width:100%;height:auto;}
.ac-dafo-diagram figcaption {font-size:13px;line-height:1.6;color:var(--muted);margin-top:12px;}
@media(max-width:680px){.ac-dafo-main-hero .ac-hero-photo,.ac-dafo-hero .ac-hero-photo {max-height:430px;}.ac-dafo-diagram figcaption {font-size:12px;}}

/* Custom seating: preserve the official user scene and exact product photographs. */
.ac-custom-seating-main-hero .ac-hero-photo,.ac-custom-seating-hero .ac-hero-photo{aspect-ratio:16/9;max-height:440px;background:#fff;}
.ac-custom-seating-main-hero .ac-hero-photo img,.ac-custom-seating-hero .ac-hero-photo img{object-fit:contain;object-position:50% 50%;padding:0;}
.ac-custom-seating-hero .ac-hero-photo figcaption{padding:12px 0;font-size:12px;line-height:1.6;color:var(--muted);}
@media(max-width:680px){.ac-custom-seating-main-hero .ac-hero-photo,.ac-custom-seating-hero .ac-hero-photo{max-height:none;}}

/* Approved Sedestacion layout: featured custom seating, nine categories, activity models. */
.ac-sedestacion-catalog .ac-sedestacion-featured {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin-bottom:28px;}
.ac-sedestacion-catalog .ac-sedestacion-featured .ac-child-photo {height:100%;min-height:245px;}
.ac-sedestacion-catalog .ac-sedestacion-featured .ac-child-copy {justify-content:center;border-top:0;border-left:1px solid var(--line);}
.ac-sedestacion-catalog .ac-sedestacion-featured .ac-child-copy .ac-text-link {margin-top:4px;}
.ac-sedestacion-catalog .ac-sedestacion-categories .ac-child-photo {height:220px;flex-shrink:0;}
.ac-sedestacion-catalog .ac-sedestacion-categories .ac-child-photo img {padding:12px;}
.ac-sedestacion-catalog .ac-sedestacion-context-photo img {object-fit:cover;object-position:50% 50%;padding:0;}
.ac-sedestacion-catalog .ac-sedestacion-categories .ac-sedestacion-context-photo img {padding:0;}
.ac-sedestacion-catalog .ac-sedestacion-categories .ac-child-copy h3 {font-size:22px;line-height:1.25;}
.ac-sedestacion-catalog .ac-sedestacion-categories .ac-child-copy {border-top:1px solid var(--line);}
.ac-sedestacion-activity-catalog .ac-sedestacion-range-heading {margin-top:48px;margin-bottom:26px;padding-top:30px;border-top:1px solid var(--line);}
.ac-sedestacion-activity-catalog .ac-sedestacion-range-heading-first {margin-top:0;padding-top:0;border-top:0;}
.ac-sedestacion-activity-catalog .ac-sedestacion-range-heading h3 {font-size:clamp(25px,2.5vw,34px);line-height:1.2;margin:0 0 14px;max-width:32ch;}
.ac-sedestacion-activity-catalog .ac-sedestacion-range-heading p {font-size:16px;line-height:1.6;color:var(--muted);max-width:75ch;margin:0;}
@media(max-width:680px){
 .ac-sedestacion-catalog .ac-sedestacion-featured {grid-template-columns:1fr;}
 .ac-sedestacion-catalog .ac-sedestacion-featured .ac-child-photo {height:260px;min-height:0;}
 .ac-sedestacion-catalog .ac-sedestacion-featured .ac-child-copy {border-left:0;border-top:1px solid var(--line);}
 .ac-sedestacion-catalog .ac-sedestacion-categories .ac-child-photo {height:260px;}
 .ac-sedestacion-catalog .ac-sedestacion-categories .ac-child-copy h3 {font-size:24px;}
}
