/* Homepage only. Composition follows referencias/Homepage Corporativa Amplus Tecnologia.png. */
.home { --h51-ink: #102b3b; --h51-muted: #526775; }
.home .amplus-container.amplus-main--home { width: 100%; max-width: none; padding-block: 0; }
.home .h51-section { padding-block: 2.75rem; }
.home .h51-section-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,2fr); gap: 2.25rem; align-items: start; }
.home .h51-section h2 { color: var(--h51-ink); font-size: clamp(1.6rem,2.25vw,2rem); line-height: 1.15; }
.home .h51-section p { color: var(--h51-muted); line-height: 1.55; }
.home .h51-kicker { display: flex; align-items: center; gap: .6rem; color: var(--amplus-dark); font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem; }
.home .h51-section header .h51-kicker::before { content: ''; height: 2px; width: 2rem; background: var(--amplus-green); flex-shrink: 0; }
.home .h51-hero { position: relative; overflow: hidden; background: linear-gradient(110deg,#f0faf7 0%,#f6fafb 52%,#e7f5f1); }
.home .h51-hero::before { content: ''; position: absolute; inset: 10% auto auto -7rem; width: 14rem; height: 28rem; background: #def3ed; border-radius: 60%; transform: rotate(-35deg); pointer-events: none; }
.home .h51-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 2rem; position: relative; align-items: center; padding-block: 3.25rem 2.75rem; }
.home .h51-hero h1 { color: var(--h51-ink); font-size: clamp(2rem,3.2vw,3rem); line-height: 1.12; max-width: 18ch; margin-bottom: 1.2rem; }
.home .h51-hero h1 span { color: #007d5c; }
.home .h51-lead { color: var(--h51-muted); line-height: 1.6; font-size: 1.0625rem; max-width: 52ch; }
.home .h51-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.home .h51-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 2rem 0 0; gap: 1rem; }
.home .h51-facts > div + div { border-left: 1px solid var(--amplus-border); padding-left: .9rem; }
.home .h51-facts dt { color: var(--amplus-dark); font-size: .9375rem; font-weight: 750; line-height: 1.3; }
.home .h51-facts dd { margin: .3rem 0 0; font-size: .8125rem; line-height: 1.45; color: var(--h51-muted); }
.home .h51-hero-visual { position: relative; min-width: 0; align-self: stretch; min-height: 26rem; }
.home .h51-context { width: 100%; height: auto; position: absolute; top: 0; right: 0; border-radius: 1rem; }
.home .h51-screen { position: absolute; width: 89%; right: 0; bottom: .5rem; min-height: 15rem; padding: 1.8rem; border: 1px solid #d6e8e2; border-top: .6rem solid var(--amplus-primary); border-radius: .75rem; background: linear-gradient(130deg,#fff,#effaf6); box-shadow: 0 1rem 2.5rem #103d332b; }
.home .h51-screen strong { display: block; color: var(--h51-ink); font-size: clamp(1.3rem,2vw,1.9rem); line-height: 1.25; margin-bottom: .8rem; }
.home .h51-screen > p:not(.h51-kicker) { color: var(--h51-muted); font-size: .9375rem; }
.home .h51-screen a { font-weight: 650; }
.home .h51-products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.home .h51-product { min-width: 0; padding: 1.25rem; border: 1px solid #dfefeb; border-radius: .8rem; background: #effbf6; display: flex; flex-direction: column; }
.home .h51-product.amplus-clinic { background: #f0f7fc; border-color: #e0ebf2; }
.home .h51-product h3 { display: flex; align-items: center; margin: 0 0 .85rem; min-height: 3rem; }
.home .h51-product h3 img { display: block; width: 12rem; max-width: 100%; height: auto; }
.home .h51-product.amplus-educa h3 img { width: 13rem; }
.home .h51-product > p { font-size: .9375rem; margin-bottom: 1rem; }
.home .h51-product-body { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: center; gap: .8rem; margin-bottom: 1rem; flex: 1; }
.home .h51-product figure { margin: 0; }
.home .h51-product figure img { display: block; max-height: 10rem; width: auto; height: auto; margin: auto; object-fit: contain; }
.home .h51-product ul { list-style: none; padding: 0; margin: 0; font-size: .8125rem; line-height: 1.4; }
.home .h51-product li { position: relative; padding-left: 1.1rem; }
.home .h51-product li::before { content: '✓'; color: #006b50; font-weight: 800; position: absolute; left: 0; }
.home .h51-product .amplus-button { align-self: stretch; text-align: center; justify-content: center; margin-top: auto; }
.home .h51-complementary { padding-top: 0; }
.home .h51-small-card { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem; border: 1px solid #dfefeb; border-radius: .75rem; min-width: 0; }
.home .h51-small-card h3 { font-size: 1.0625rem; color: var(--h51-ink); margin-bottom: .4rem; }
.home .h51-small-card p { font-size: .875rem; margin-bottom: .5rem; }
.home .h51-small-card a { display: inline-flex; gap: .5rem; min-height: 44px; align-items: center; font-weight: 650; font-size: .875rem; }
.home .h51-icon-box { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; color: #007556; background: #e0f7ed; border-radius: .8rem; flex-shrink: 0; }
.home .h51-benefits { background: #eff8f5; }
.home .h51-benefit-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.25rem; }
.home .h51-benefit-grid .amplus-icon { width: 2.5rem; height: 2.5rem; color: #007556; margin-bottom: .75rem; }
.home .h51-benefit-grid h3 { color: var(--h51-ink); font-size: 1rem; margin-bottom: .5rem; }
.home .h51-benefit-grid p { font-size: .875rem; margin: 0; }
.home .h51-about { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); gap: 2rem; align-items: center; }
.home .h51-about-image { position: relative; padding-bottom: 1rem; }
.home .h51-about-image img { display: block; width: 100%; height: auto; border-radius: .75rem; }
.home .h51-since { position: absolute; bottom: 0; left: 1.5rem; border: 1px solid var(--amplus-border); border-radius: .6rem; padding: .6rem 1.2rem; background: white; color: var(--amplus-dark); box-shadow: var(--amplus-shadow); font-size: .875rem; }
.home .h51-since strong { display: block; font-size: 1.75rem; line-height: 1.15; }
.home .h51-testimonials { padding-top: .5rem; }
.home .h51-testimonial-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.home .h51-quote { position: relative; padding: 1.25rem 1.25rem 1.25rem 2.75rem; border: 1px solid #dcebe6; border-radius: .8rem; margin: 0; display: flex; flex-direction: column; }
.home .h51-quote-mark { position: absolute; left: .8rem; top: .25rem; font-family: Georgia,serif; font-size: 3rem; color: #007556; }
.home .h51-quote blockquote { margin: 0 0 1rem; padding: 0; font-size: .9375rem; line-height: 1.6; }
.home .h51-quote blockquote p { margin: 0; }
.home .h51-quote figcaption { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.home .h51-quote figcaption img { width: 3rem; height: auto; max-height: 4rem; border-radius: .5rem; object-fit: contain; }
.home .h51-quote figcaption strong { color: var(--h51-ink); font-size: .875rem; display: block; }
.home .h51-quote figcaption span { color: var(--h51-muted); font-size: .8125rem; display: block; }
.home .h51-blog { background: linear-gradient(0deg,#f3faf7,white); }
.home .h51-post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.home .h51-post { min-width: 0; border: 1px solid #dcebe6; background: white; border-radius: .5rem; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 .2rem .4rem #063d3308; }
.home .h51-post figure { position: relative; flex-shrink: 0; margin: 0; background: #eff6f4; aspect-ratio: 16 / 10; }
.home .h51-post figure img { position: absolute; inset: .5rem; display: block; width: calc(100% - 1rem); height: calc(100% - 1rem); object-fit: contain; }
.home .h51-post > div { padding: .9rem; display: flex; flex-direction: column; flex: 1; }
.home .h51-post time { color: #40594e; font-size: .75rem; margin-bottom: .4rem; }
.home .h51-post h3 { font-size: 1rem; line-height: 1.35; margin-bottom: .65rem; }
.home .h51-post h3 a { color: var(--h51-ink); text-decoration: none; }
.home .h51-post > div > a { display: block; padding-block: .5rem; margin-top: auto; font-weight: 650; font-size: .875rem; }
.home .h51-contact { background: radial-gradient(ellipse at 5% 120%,#00867470,transparent 65%),#00594d; border-radius: 1.25rem 1.25rem 0 0; }
.home .h51-contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 4rem; align-items: center; }
.home .h51-contact h2,.home .h51-contact p,.home .h51-contact .h51-kicker,.home .h51-contact a { color: white; }
.home .h51-contact :focus-visible { outline-color: #32d9a4; }
.home .h51-form-card { border-radius: .75rem; padding: 1.5rem; background: white; box-shadow: var(--amplus-shadow); min-width: 0; }
.home .h51-form-card .amplus-contact-form { margin: 0; padding: 0; border: 0; }
.home .h51-form-card h2 { color: var(--h51-ink); font-size: 1.25rem; }
.home .h51-form-card p { color: var(--h51-muted); font-size: .875rem; }
.home .h51-form-card :is(label,input,textarea) { color: var(--h51-ink); }
.home .h51-form-card a { color: var(--amplus-primary); }
.home .h51-form-card form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.home .h51-form-card .amplus-contact-field { margin: 0; }
.home .h51-form-card .amplus-contact-field:has([name="phone"]),.home .h51-form-card .amplus-contact-field:has([name="subject"]),.home .h51-form-card .amplus-contact-field:has([name="message"]),.home .h51-form-card button,.home .h51-form-card .amplus-contact-progress { grid-column: 1 / -1; }
.home .h51-form-card label { font-size: .8125rem; }
.home .h51-form-card input,.home .h51-form-card textarea { padding: .6rem; font-size: .9375rem; }
.home .h51-form-card textarea { min-height: 6rem; height: 7rem; }
.home .h51-form-card :focus-visible { outline-color: var(--amplus-primary); }
.home .h51-form-card p.amplus-contact-error { color: #942020; }
@media (max-width: 74em) { .home .h51-section-grid { grid-template-columns: minmax(0,.75fr) minmax(0,2fr); gap: 1.4rem; } .home .h51-product-body { grid-template-columns: 1fr; } .home .h51-product figure img { max-height: 8rem; } }
@media (max-width: 63.99em) { .home .h51-section-grid { grid-template-columns: 1fr; } .home .h51-section-grid > header { max-width: 44rem; } .home .h51-hero-grid { gap: 1.5rem; } .home .h51-hero-visual { min-height: 26rem; } .home .h51-screen { padding: 1.25rem; min-height: 14rem; } .home .h51-facts { grid-template-columns: 1fr; gap: .65rem; } .home .h51-facts > div + div { border: 0; padding: 0; } .home .h51-contact-grid { gap: 2rem; } }
@media (max-width: 39.99em) { .home .h51-hero-grid,.home .h51-products,.home .h51-about,.home .h51-contact-grid,.home .h51-testimonial-grid,.home .h51-post-grid { grid-template-columns: 1fr; } .home .h51-hero-grid { padding-block: 2rem; } .home .h51-hero h1 { font-size: 2.25rem; } .home .h51-hero-visual { min-height: 23rem; } .home .h51-screen { bottom: 0; width: 92%; } .home .h51-facts { grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; } .home .h51-facts dt { font-size: .8125rem; } .home .h51-facts dd { font-size: .75rem; } .home .h51-actions .amplus-button { width: 100%; justify-content: center; } .home .h51-section { padding-block: 2rem; } .home .h51-benefit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem 1rem; } .home .h51-product-body { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); } .home .h51-form-card { padding: 1rem; } .home .h51-form-card form { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .home *, .home *::before, .home *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

/* Stage 5.2: decorative composition and reversible, native disclosure of full testimonials. */
.home .h52-about-graphic { display: block; width: 100%; height: auto; border-radius: .75rem; }
.home .h51-quote .h52-quote-preview { min-height: 10.25rem; margin-bottom: .5rem; }
.home .h51-quote figcaption { min-height: 5.5rem; }
.home .h52-quote-more { margin-bottom: 1rem; }
.home .h52-quote-more summary { min-height: 44px; padding-block: .65rem; color: var(--amplus-primary); cursor: pointer; font-weight: 650; font-size: .875rem; line-height: 1.5; }
.home .h52-quote-more .h52-collapse { display: none; }
.home .h52-quote-more[open] .h52-expand { display: none; }
.home .h52-quote-more[open] .h52-collapse { display: inline; }
.home .h51-quote:has(.h52-quote-more[open]) .h52-quote-preview { display: none; }
.home .h51-testimonial-grid:has(.h52-quote-more[open]) { align-items: start; }
.home .h51-quote .h52-quote-full { margin-block: .5rem 1rem; }

/* Stage 5.2.1: authorized original dashboard, with no crop or synthetic indicators. */
.home .h51-screen.h521-dashboard { display: block; width: 100%; min-height: 0; padding: .35rem; border: 1px solid #d6e8e2; border-radius: .8rem; background: #fff; text-decoration: none; overflow: hidden; }
.home .h521-dashboard img { display: block; width: 100%; height: auto; border-radius: .5rem; }
.home .h521-dashboard-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .5rem .45rem .2rem; color: var(--h51-ink); font-size: .75rem; }
.home .h521-dashboard-caption > span { color: var(--amplus-primary); text-decoration: underline; text-underline-offset: .15em; }
.home .h521-dashboard:focus-visible { outline: 3px solid var(--amplus-primary); outline-offset: 4px; }
@media (min-width: 40em) and (max-width: 63.99em) { .home .h51-hero-grid { grid-template-columns: 1fr; } .home .h51-hero-visual { min-height: 0; padding-top: 6rem; } .home .h51-hero-visual .h521-dashboard { position: relative; bottom: auto; width: 94%; margin-left: auto; } .home .h51-context { width: 85%; right: auto; left: 0; max-height: 100%; object-fit: cover; } }
@media (max-width: 39.99em) { .home .h51-hero-visual { min-height: 0; padding-top: 5rem; } .home .h51-hero-visual .h521-dashboard { position: relative; bottom: auto; width: 100%; } }
@media (min-width: 64em) { .home .h51-hero-visual { padding-top: 6rem; min-height: 0; align-self: center; } .home .h51-hero-visual .h521-dashboard { position: relative; bottom: auto; width: 96%; margin-left: auto; } .home .h51-context { width: 90%; right: auto; left: 0; } }
