:root {
    --ae-ink: #202321;
    --ae-muted: #666b67;
    --ae-brand: #008fc7;
    --ae-brand-dark: #0076a6;
    --ae-brand-soft: #e8f7fc;
    --ae-brand-pale: #f5fbfe;
    --ae-gold: var(--ae-brand);
    --ae-gold-dark: var(--ae-brand-dark);
    --ae-soft: #f3fafd;
    --ae-soft-2: #eaf6fb;
    --ae-line: #d5ebf4;
    --ae-white: #ffffff;
    --ae-dark: var(--ae-brand);
    --ae-radius: 22px;
    --ae-shadow: 0 18px 55px rgba(0, 112, 157, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ae-ap-standalone {
    margin: 0;
    background: var(--ae-white);
    color: var(--ae-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.ae-ap-standalone img { max-width: 100%; height: auto; }
body.ae-ap-standalone a { color: inherit; }

.ae-skip-link {
    position: fixed;
    z-index: 99999;
    top: 8px;
    left: 8px;
    transform: translateY(-150%);
    padding: 10px 14px;
    background: var(--ae-brand-dark);
    color: #fff !important;
    border-radius: 6px;
}
.ae-skip-link:focus { transform: none; }

.ae-shell {
    width: min(1180px, calc(100% - 44px));
    margin-inline: auto;
}


.ae-main, .ae-main .wp-block-html { margin: 0; padding: 0; }
.ae-landing { overflow: clip; }

.ae-hero {
    position: relative;
    padding: 72px 0 66px;
    background:
        radial-gradient(circle at 85% 12%, rgba(0,143,199,.14), transparent 34%),
        linear-gradient(180deg, #fff 0%, #faf9f6 100%);
}
.ae-hero:after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,143,199,.38), transparent);
}
.ae-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(390px, .94fr);
    align-items: center;
    gap: clamp(42px, 7vw, 90px);
}
.ae-eyebrow {
    margin: 0 0 14px;
    color: var(--ae-gold-dark);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .16em;
    line-height: 1.35;
}
.ae-hero h1,
.ae-section h2,
.ae-mid-cta h2,
.ae-final-cta h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.06;
}
.ae-hero h1 { font-size: clamp(42px, 5vw, 66px); max-width: 800px; }
.ae-lead { margin: 24px 0 0; max-width: 680px; color: #4f5450; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; }
.ae-hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; }
.ae-hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid var(--ae-line);
    background: rgba(255,255,255,.72);
    border-radius: 999px;
}
.ae-hero-points span:before { content: "✓"; color: var(--ae-gold-dark); font-weight: 900; }

.ae-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 13px 22px;
    border-radius: 999px;
    text-decoration: none !important;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.ae-btn:hover { transform: translateY(-2px); }
.ae-btn-primary { background: var(--ae-brand); color: var(--ae-white) !important; box-shadow: 0 12px 26px rgba(0,143,199,.24); }
.ae-btn-primary:hover { background: var(--ae-brand-dark); box-shadow: 0 16px 32px rgba(0,118,166,.28); }
.ae-btn-light { background: var(--ae-white); color: var(--ae-brand-dark) !important; box-shadow: 0 12px 28px rgba(0,79,110,.16); }
.ae-btn-lg { min-height: 66px; padding: 14px 25px; }
.ae-btn-xl { min-height: 72px; padding: 15px 30px; font-size: 23px; }
.ae-btn span > small, .ae-btn small { display: block; margin-top: 3px; opacity: .75; font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.ae-phone-icon { font-size: 24px; line-height: 1; }
.ae-cta-note { margin: 12px 0 0; color: var(--ae-muted); font-size: 13px; }

.ae-product-card {
    position: relative;
    padding: 20px;
    background: var(--ae-white);
    border: 1px solid rgba(0,143,199,.13);
    border-radius: 34px;
    box-shadow: var(--ae-shadow);
}
.ae-product-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 23px; }
.ae-product-badge {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 34px;
    padding: 12px 15px;
    border-radius: 14px;
    background: rgba(0, 143, 199, .92);
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    text-align: center;
    backdrop-filter: blur(10px);
}

.ae-proof { background: var(--ae-brand); color: var(--ae-white); }
.ae-proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.ae-proof-grid > div { padding: 28px 26px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.ae-proof-grid > div:last-child { border-right: 0; }
.ae-proof-grid strong { display: block; color: #ffffff; font-family: Georgia, serif; font-size: clamp(29px, 3vw, 42px); font-weight: 500; line-height: 1; }
.ae-proof-grid span { display: block; margin-top: 8px; color: rgba(255,255,255,.72); font-size: 13px; }

.ae-section { padding: clamp(74px, 9vw, 116px) 0; }
.ae-section-light { background: var(--ae-soft); }
.ae-section-soft { background: var(--ae-brand-pale); }
.ae-section-heading { max-width: 760px; margin-bottom: 42px; }
.ae-section-heading h2, .ae-section h2 { font-size: clamp(37px, 4vw, 54px); }
.ae-section-heading > p:last-child { margin: 20px 0 0; color: var(--ae-muted); font-size: 18px; }
.ae-heading-center { margin-inline: auto; text-align: center; }

.ae-card-grid { display: grid; gap: 22px; }
.ae-card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ae-card {
    padding: 30px;
    background: var(--ae-white);
    border: 1px solid rgba(0,143,199,.13);
    border-radius: var(--ae-radius);
    box-shadow: 0 10px 30px rgba(0,112,157,.06);
}
.ae-card h3, .ae-mini-grid h3 { margin: 18px 0 9px; font-size: 21px; line-height: 1.25; }
.ae-card p, .ae-mini-grid p { margin: 0; color: var(--ae-muted); }
.ae-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ae-brand-soft); color: var(--ae-brand-dark); font-weight: 900; font-size: 12px; }

.ae-mid-cta { padding: 62px 0; background: linear-gradient(135deg, #008fc7 0%, #0076a6 100%); color: white; }
.ae-mid-cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 60px; align-items: center; }
.ae-mid-cta h2 { font-size: clamp(34px, 4vw, 50px); max-width: 720px; }
.ae-mid-cta p:not(.ae-eyebrow) { margin: 15px 0 0; max-width: 720px; color: rgba(255,255,255,.7); }
.ae-eyebrow-on-dark { color: rgba(255,255,255,.86); }

.ae-advisor-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: clamp(44px, 7vw, 86px); align-items: center; }
.ae-advisor-panel {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 5vw, 52px);
    border-radius: 28px;
    background: linear-gradient(145deg, #008fc7 0%, #0076a6 100%);
    color: #fff;
    box-shadow: var(--ae-shadow);
}
.ae-advisor-kicker { margin: 0 0 18px; color: rgba(255,255,255,.86); font-size: 12px; font-weight: 850; letter-spacing: .16em; }
.ae-advisor-panel strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 46px); font-weight: 500; line-height: 1.1; }
.ae-advisor-panel span { display: block; margin-top: 18px; color: rgba(255,255,255,.72); font-size: 16px; }
.ae-advisor-copy > p:not(.ae-eyebrow) { color: var(--ae-muted); font-size: 18px; }
.ae-checks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.ae-checks li { position: relative; padding-left: 31px; }
.ae-checks li:before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--ae-brand-soft); color: var(--ae-brand-dark); font-size: 12px; font-weight: 900; }

.ae-support-grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: clamp(42px, 7vw, 82px); align-items: center; }
.ae-support-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: var(--ae-shadow); }
.ae-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 28px; }
.ae-mini-grid article { padding: 22px; background: white; border: 1px solid var(--ae-line); border-radius: 16px; }
.ae-mini-grid h3 { margin-top: 0; font-size: 17px; }
.ae-mini-grid p { font-size: 14px; }

.ae-testimonials { align-items: stretch; }
.ae-quote { margin: 0; padding: 30px; border-radius: var(--ae-radius); background: white; border: 1px solid var(--ae-line); box-shadow: 0 10px 30px rgba(0,112,157,.055); }
.ae-quote:before { content: "“"; display: block; height: 42px; color: var(--ae-gold); font-family: Georgia, serif; font-size: 68px; line-height: .9; }
.ae-quote p { margin: 8px 0 20px; color: #404440; font-size: 17px; }
.ae-quote footer { color: var(--ae-muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.ae-proof-note { margin: 24px 0 0; text-align: center; color: var(--ae-muted); font-size: 13px; }

.ae-faq-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(44px, 8vw, 100px); align-items: start; }
.ae-faq-intro { position: sticky; top: 120px; }
.ae-faq-intro > p:not(.ae-eyebrow) { color: var(--ae-muted); }
.ae-text-link { display: inline-block; margin-top: 14px; color: var(--ae-brand-dark) !important; font-weight: 800; text-underline-offset: 4px; }
.ae-faqs { display: grid; gap: 12px; }
.ae-faqs details { background: white; border: 1px solid var(--ae-line); border-radius: 16px; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.ae-faqs details:hover { border-color: rgba(0,143,199,.45); }
.ae-faqs details[open] { background: var(--ae-brand-soft); border-color: rgba(0,143,199,.42); box-shadow: 0 10px 26px rgba(0,143,199,.08); }
.ae-faqs summary { cursor: pointer; list-style: none; position: relative; padding: 20px 54px 20px 22px; font-weight: 800; line-height: 1.35; }
.ae-faqs summary::-webkit-details-marker { display: none; }
.ae-faqs summary:after { content: "+"; position: absolute; top: 50%; right: 21px; transform: translateY(-50%); color: var(--ae-gold-dark); font-size: 26px; font-weight: 400; }
.ae-faqs details[open] summary:after { content: "−"; }
.ae-faqs details p { margin: 0; padding: 0 22px 22px; color: var(--ae-muted); font-size: 15px; }

.ae-final-cta { padding: clamp(76px, 10vw, 118px) 0; background: var(--ae-brand); color: white; text-align: center; }
.ae-final-inner { max-width: 850px; }
.ae-final-logo { width: 190px; max-height: 70px; object-fit: contain; filter: brightness(0) invert(1); opacity: .94; margin-bottom: 25px; }
.ae-final-cta h2 { font-size: clamp(40px, 5vw, 62px); }
.ae-final-cta p:not(.ae-eyebrow):not(.ae-final-hours) { max-width: 680px; margin: 20px auto 30px; color: rgba(255,255,255,.72); font-size: 18px; }
.ae-final-hours { margin: 13px 0 0; color: rgba(255,255,255,.58); font-size: 12px; }

.ae-legal { padding: 32px 0 96px; background: #005f86; color: rgba(255,255,255,.72); font-size: 11px; }
.ae-legal p { margin: 0 0 8px; }
.ae-legal a { color: rgba(255,255,255,.86) !important; text-underline-offset: 3px; }

.ae-mobile-callbar { display: none; }

@media (max-width: 980px) {
    .ae-hero-grid { grid-template-columns: 1fr 390px; gap: 36px; }
    .ae-card-grid-3 { grid-template-columns: 1fr 1fr; }
    .ae-card-grid-3 > :last-child { grid-column: 1 / -1; }
    .ae-advisor-grid, .ae-support-grid { gap: 45px; }
}

@media (max-width: 781px) {
    .ae-shell { width: min(100% - 28px, 680px); }
    .ae-hero { padding: 45px 0 50px; }
    .ae-hero-grid, .ae-mid-cta-grid, .ae-advisor-grid, .ae-support-grid, .ae-faq-layout { grid-template-columns: 1fr; }
    .ae-advisor-panel { min-height: 0; }
    .ae-hero-copy { order: 1; }
    .ae-hero-media { order: 2; }
    .ae-hero h1 { font-size: clamp(38px, 11vw, 54px); }
    .ae-lead { font-size: 18px; }
    .ae-product-card { max-width: 520px; margin-inline: auto; }
    .ae-proof-grid { grid-template-columns: repeat(2, 1fr); }
    .ae-proof-grid > div:nth-child(2) { border-right: 0; }
    .ae-proof-grid > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
    .ae-section { padding: 72px 0; }
    .ae-card-grid-3 { grid-template-columns: 1fr; }
    .ae-card-grid-3 > :last-child { grid-column: auto; }
    .ae-mid-cta { padding: 55px 0; text-align: center; }
    .ae-mid-cta-grid { gap: 28px; }
    .ae-mid-cta .ae-btn { width: 100%; max-width: 430px; margin-inline: auto; }
    .ae-support-media { max-width: 520px; margin-inline: auto; }
    .ae-faq-intro { position: static; }
    .ae-mini-grid { grid-template-columns: 1fr 1fr; }
    .ae-legal { padding-bottom: 112px; }
    .ae-mobile-callbar {
        display: block;
        position: fixed;
        z-index: 500;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    .ae-mobile-callbar a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        min-height: 62px;
        padding: 10px 18px;
        background: var(--ae-brand);
        color: white !important;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 17px;
        box-shadow: 0 15px 35px rgba(0,0,0,.28);
        text-decoration: none !important;
    }
    .ae-mobile-callbar a > span:first-child { color: #ffffff; font-size: 24px; }
    .ae-mobile-callbar strong, .ae-mobile-callbar small { display: block; line-height: 1.1; }
    .ae-mobile-callbar small { margin-top: 3px; color: rgba(255,255,255,.7); font-size: 11px; }
}

@media (max-width: 520px) {
    .ae-hero h1 { font-size: 40px; }
    .ae-hero-points { gap: 7px; }
    .ae-hero-points span { font-size: 12px; }
    .ae-btn-lg, .ae-btn-xl { width: 100%; }
    .ae-proof-grid > div { padding: 22px 10px; }
    .ae-proof-grid span { font-size: 11px; }
    .ae-card { padding: 24px; }
    .ae-mini-grid { grid-template-columns: 1fr; }
    .ae-product-badge { left: 26px; right: 26px; bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *:before, *:after { transition: none !important; animation: none !important; }
}

/* v1.2: never show the plugin's retired header on the standalone landing. */
body.ae-ap-standalone .ae-topbar { display: none !important; }

/* Aparatología catalogue additions */
.ae-card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ae-equipment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ae-equipment-card { display: grid; grid-template-columns: 190px minmax(0,1fr); overflow: hidden; background: #fff; border: 1px solid var(--ae-line); border-radius: 22px; box-shadow: 0 10px 30px rgba(0,112,157,.06); }
.ae-equipment-image { min-height: 250px; background: var(--ae-brand-pale); }
.ae-equipment-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ae-equipment-body { padding: 24px; }
.ae-equipment-body h3 { margin: 4px 0 10px; font-size: 23px; line-height: 1.18; }
.ae-equipment-body p { color: var(--ae-muted); font-size: 14px; }
.ae-card-kicker { margin: 0 !important; color: var(--ae-brand-dark) !important; font-size: 10px !important; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.ae-equipment-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 18px; align-items: center; }
.ae-equipment-actions a { font-size: 13px; font-weight: 800; color: var(--ae-brand-dark) !important; }
.ae-selection-card { padding: clamp(30px,4vw,48px); border-radius: 30px; background: var(--ae-brand); color: #fff; box-shadow: var(--ae-shadow); }
.ae-selection-card > span { display: inline-block; margin: 0 5px 8px 0; padding: 7px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 11px; font-weight: 800; }
.ae-selection-card strong { display: block; margin-top: 24px; font-family: Georgia,serif; font-size: clamp(34px,4vw,48px); line-height: 1.05; font-weight: 500; }
.ae-selection-card p { margin: 18px 0 0; color: rgba(255,255,255,.75); }
.ae-treatment-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(45px,8vw,95px); align-items: start; }
.ae-treatment-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ae-treatment-list li { position: relative; padding: 17px 18px 17px 45px; background: var(--ae-brand-pale); border: 1px solid var(--ae-line); border-radius: 14px; font-weight: 750; }
.ae-treatment-list li:before { content: "✓"; position: absolute; left: 17px; color: var(--ae-brand-dark); font-weight: 900; }
.ae-mini-grid-4 { grid-template-columns: repeat(4,1fr); }

@media (max-width: 980px) {
    .ae-card-grid-4 { grid-template-columns: repeat(2,1fr); }
    .ae-equipment-grid { grid-template-columns: 1fr; }
    .ae-mini-grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 781px) {
    .ae-equipment-card { grid-template-columns: 150px minmax(0,1fr); }
    .ae-treatment-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .ae-card-grid-4, .ae-mini-grid-4, .ae-treatment-list { grid-template-columns: 1fr; }
    .ae-equipment-card { grid-template-columns: 1fr; }
    .ae-equipment-image { min-height: 260px; }
}
