:root {
    --bg: #f0fafa;
    --bg-alt: #e0f5f5;
    --ink: #0d3b3b;
    --muted: #1a7a7a;
    --muted-light: #4da8a8;
    --teal: #00a2a2;
    --white: #ffffff;
    --line: rgba(0, 162, 162, .22);
    --shadow: 0 2px 20px rgba(0, 162, 162, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 0; background: none; }

.site-nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: transparent; backdrop-filter: none; border-bottom: 1px solid rgba(255, 255, 255, .16); transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.site-nav.nav-scrolled { background: #0a4447; backdrop-filter: blur(20px); border-bottom-color: rgba(0, 162, 162, .35); box-shadow: 0 8px 24px rgba(0, 40, 40, .18); }
.nav-contact { display: flex; justify-content: flex-end; gap: 24px; padding: 6px 32px; border-bottom: 1px solid rgba(255, 255, 255, .12); color: rgba(255,255,255,.86); font-size: 12px; }
.nav-scrolled .nav-contact { color: rgba(255,255,255,.82); border-bottom-color: rgba(0, 162, 162, .28); }
.nav-main { max-width: 1280px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; padding: 0; }
.brand img { display: block; height: 62px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; color: rgba(255,255,255,.9); font-size: 12px; font-weight: 600; letter-spacing: .2em; }
.nav-links a:not(.book-link)::after { content: ""; display: block; width: 0; height: 1px; margin-top: 4px; background: var(--teal); transition: width .25s ease; }
.nav-links a:hover::after { width: 100%; }
.book-link { padding: 10px 20px; border-radius: 999px; background: var(--teal); color: white; }
.menu-toggle, .mobile-menu { display: none; }

.hero { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,30,40,.45) 0%, rgba(0,60,60,.5) 60%, rgba(0,40,40,.75) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 960px; padding: 130px 24px 80px; text-align: center; color: white; }
.eyebrow-line { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 24px; color: var(--teal); font-size: 12px; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; }
.eyebrow-line span { width: 48px; height: 1px; background: var(--teal); }
.hero h1 { margin: 0 0 24px; font-size: clamp(54px, 9vw, 112px); line-height: .94; font-weight: 800; letter-spacing: 0; }
h1:focus { outline: none; }
.hero h1 span { display: block; }
.hero h1 span:nth-child(2) { color: #4dd9d9; }
.hero p { max-width: 560px; margin: 0 auto 36px; color: rgba(255,255,255,.85); font-size: 18px; line-height: 1.7; }
.hero-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px 40px; margin-bottom: 38px; color: rgba(255,255,255,.9); font-size: 14px; font-weight: 600; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.primary-cta, .secondary-cta { padding: 16px 32px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .15em; }
.primary-cta { background: var(--teal); color: white; box-shadow: 0 8px 30px rgba(0,162,162,.35); }
.secondary-cta { color: var(--teal); border: 1.5px solid var(--teal); background: rgba(0,162,162,.06); }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; z-index: 3; transform: translateX(-50%); color: var(--teal); font-size: 36px; animation: bob 2s infinite; }

.section { padding: 96px 24px; }
.programs { background: var(--bg); }
.section-heading { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-heading span, .about-copy > span { display: block; margin-bottom: 12px; color: var(--teal); font-size: 12px; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; }
.section-heading h2, .about-copy h2 { margin: 0; color: var(--ink); font-size: clamp(40px, 5vw, 56px); line-height: 1; font-weight: 800; letter-spacing: 0; }
em { color: var(--teal); font-style: normal; }
.section-heading p { margin-top: 16px; color: var(--muted); font-size: 14px; }

.program-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.program-card { border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); cursor: pointer; background: white; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }
.program-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,162,162,.18); }
.program-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #f0f9f9; transition: transform .5s ease; display: block; }
.program-card:hover img { transform: scale(1.04); }
.program-card::after { display: none; }
.program-content { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); }
.icon-pill { display: none; }
.program-card h3 { margin: 0; color: var(--ink); font-size: 17px; font-weight: 800; }
.program-card strong { color: var(--teal); font-size: 22px; font-weight: 800; }
.program-card p { display: none; }
.program-card small { margin: 0; color: var(--muted); font-size: 12px; font-style: italic; }
.program-card button { display: none; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; max-width: 1280px; margin: 0 auto; background: linear-gradient(to bottom, var(--bg), var(--bg-alt)); }
.about-image { position: relative; }
.about-image > img { width: 100%; height: 500px; object-fit: cover; border: 1px solid rgba(0,162,162,.25); border-radius: 16px; }
.absorption-badge { position: absolute; right: 32px; bottom: -24px; padding: 20px; border: 1px solid rgba(0,162,162,.3); border-radius: 16px; background: rgba(255,255,255,.9); box-shadow: 0 12px 30px rgba(0,0,0,.12); animation: float 4s infinite; }
.absorption-badge strong { display: block; color: var(--teal); font-size: 32px; }
.absorption-badge span { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.about-copy p { margin: 24px 0 36px; color: var(--muted); line-height: 1.8; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card, .process-card, .faq details, .contact-grid > * { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.7); }
.feature-card { padding: 16px; }
.feature-card b { display: block; margin-bottom: 8px; color: var(--teal); }
.feature-card strong, .feature-card small { display: block; }
.feature-card strong { color: var(--ink); font-size: 14px; }
.feature-card small { margin-top: 4px; color: var(--muted); font-size: 12px; }

.process { background: var(--bg-alt); }
.process-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.process-card { position: relative; padding: 24px; box-shadow: var(--shadow); }
.process-card div { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.process-card b { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(0,162,162,.12); color: var(--teal); }
.process-card b svg { display: block; }
.process-card span { color: rgba(0,162,162,.22); font-size: 32px; font-weight: 800; }
.process-card h3 { margin: 0 0 10px; font-size: 16px; }
.process-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.faq { background: linear-gradient(to bottom, var(--bg-alt), var(--bg)); }
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 0 24px; }
.faq summary { padding: 20px 0; color: var(--ink); font-weight: 700; list-style: none; cursor: pointer; }
.faq summary::after { content: "+"; float: right; color: var(--teal); }
.faq details[open] summary::after { content: "-"; }
.faq details p { margin: 0; padding-bottom: 20px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.footer { padding-top: 80px; background: var(--bg); }
.map-wrap { max-width: 860px; margin: 0 auto 40px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(0,162,162,.25); box-shadow: 0 12px 40px rgba(0,0,0,.13); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }
.contact-grid { max-width: 1280px; margin: 40px auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.contact-grid > * { padding: 20px; display: block; }
.contact-grid span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
.contact-grid strong { color: var(--ink); font-size: 14px; }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.footer-bottom a { padding: 10px 20px; border-radius: 999px; background: #25d366; color: white; font-weight: 700; }

.whatsapp-widget { position: fixed; right: 24px; bottom: 24px; z-index: 60; }
.whatsapp-widget > button { width: 56px; height: 56px; border-radius: 999px; background: #25d366; color: white; font-size: 20px; box-shadow: 0 4px 20px rgba(37,211,102,.4); }
.wa-button svg { width: 31px; height: 31px; fill: currentColor; display: block; margin: auto; }
.chat-card { width: 288px; margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.chat-card div { padding: 16px 20px; background: #25d366; color: white; }
.chat-card button { float: right; color: white; }
.chat-card span { display: block; margin-top: 4px; color: rgba(255,255,255,.82); font-size: 12px; }
.chat-card p { margin: 16px; padding: 12px; border-radius: 12px 12px 12px 3px; background: var(--bg); color: var(--ink); font-size: 12px; line-height: 1.6; }
.chat-card a { display: block; margin: 0 16px 16px; padding: 12px; border-radius: 12px; background: #25d366; color: white; text-align: center; font-weight: 700; font-size: 14px; }

.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #e7f5f5, #f0fafa); }
.login-card { width: min(420px, 100%); padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 20px 60px rgba(0, 80, 80, .12); }
.login-card span { color: var(--teal); font-size: 12px; letter-spacing: .35em; text-transform: uppercase; }
.login-card h1 { margin: 10px 0 24px; font-size: 40px; }
.login-card label { display: grid; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: 13px; font-weight: 700; }
.login-card input { padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.login-card button { width: 100%; padding: 13px; border-radius: 999px; background: var(--teal); color: white; font-weight: 800; }
.form-error { padding: 10px 12px; border-radius: 10px; background: #fff1f1; color: #a40000; font-size: 13px; }

.admin-app { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); background: #edf8f8; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 18px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); background: #dff1f1; }
.admin-sidebar div { margin-bottom: 24px; }
.admin-sidebar span { display: block; color: var(--teal); font-size: 12px; letter-spacing: .35em; }
.admin-sidebar strong { display: block; margin-top: 6px; color: var(--ink); font-size: 28px; }
.admin-sidebar button, .admin-sidebar a { width: 100%; padding: 13px 14px; border-radius: 12px; color: var(--ink); text-align: left; font-weight: 800; }
.admin-sidebar button.active, .admin-sidebar button:hover, .admin-sidebar a:hover { background: var(--teal); color: white; }
.admin-content { padding: 40px 28px; }
.admin-header, .admin-layout { max-width: 1200px; margin: 0 auto; }
.admin-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.admin-header span { color: var(--teal); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.admin-header h1 { margin: 8px 0; font-size: 44px; }
.admin-header p { margin: 0; color: var(--muted); }
.admin-header a, .admin-actions button, .admin-list button, .wide-form button, .admin-create-button, .admin-table button { padding: 11px 18px; border-radius: 999px; background: var(--teal); color: white; font-weight: 700; }
.admin-layout { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-form, .admin-list article { border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.admin-form { position: sticky; top: 24px; padding: 24px; }
.wide-form { position: static; max-width: 720px; margin: 0 auto; }
.admin-form h2 { margin: 0 0 20px; }
.admin-form label { display: grid; gap: 8px; margin-bottom: 14px; color: var(--muted); font-size: 13px; font-weight: 700; }
.admin-form input, .admin-form textarea, .admin-form select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.admin-form textarea { min-height: 74px; resize: vertical; }
.check-row { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 10px !important; }
.check-row input { width: auto; }
.admin-preview { width: 100%; max-height: 340px; height: auto; object-fit: contain; border-radius: 12px; margin-bottom: 16px; background: #f0f9f9; }
.admin-actions { display: flex; gap: 10px; }
.admin-actions button:nth-child(2), .admin-list button:nth-of-type(2) { background: #d9eeee; color: var(--ink); }
.admin-list { display: grid; gap: 14px; }
.admin-list article { padding: 14px; display: grid; grid-template-columns: 96px 1fr auto auto; gap: 14px; align-items: center; }
.faq-admin-list article { grid-template-columns: 1fr auto auto; }
.admin-list img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.admin-list h3 { margin: 4px 0; }
.admin-list p, .admin-list small { margin: 0; color: var(--muted); }

.admin-table-wrap { max-width: 1200px; margin: 0 auto; overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 880px; }
.admin-table th, .admin-table td { padding: 14px 16px; border-bottom: 1px solid rgba(0,162,162,.14); color: var(--ink); text-align: left; vertical-align: middle; }
.admin-table th { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; background: #f3fbfb; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table img { width: 68px; height: 68px; object-fit: cover; border-radius: 10px; }
.admin-table strong, .admin-table span { display: block; }
.admin-table span { max-width: 320px; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.admin-table td:last-child { white-space: nowrap; text-align: right; }
.admin-table td:last-child button { margin-left: 8px; }
.admin-table td:last-child button:nth-child(2) { background: #d9eeee; color: var(--ink); }

.admin-modal-backdrop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(0, 28, 32, .68); backdrop-filter: blur(8px); }
.admin-modal { position: relative; width: min(860px, 100%); max-height: calc(100vh - 48px); overflow: auto; margin: 0; }
.modal-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.modal-form-grid label:nth-child(3), .modal-form-grid label:nth-child(5), .modal-form-grid label:nth-child(8), .modal-form-grid label:nth-child(9) { grid-column: 1 / -1; }

.product-modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(0, 28, 32, .7); backdrop-filter: blur(8px); }
.product-modal { position: relative; width: min(980px, 100%); height: min(760px, calc(100dvh - 48px)); max-height: calc(100dvh - 48px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); overflow: hidden; border-radius: 18px; background: #f0fafa; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.product-modal > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #f0f9f9; }
.product-modal > div { min-height: 0; max-height: 100%; padding: 40px; padding-right: 48px; display: flex; flex-direction: column; justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.product-modal span { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--teal); background: rgba(0,162,162,.12); }
.product-modal h2 { margin: 0 0 8px; font-size: 42px; line-height: 1; }
.product-modal strong { color: var(--teal); font-size: 34px; }
.product-modal p { color: var(--muted); line-height: 1.7; white-space: pre-line; }
.product-modal small { color: var(--muted-light); font-style: italic; white-space: pre-line; }
.product-modal a { margin-top: 28px; padding: 15px 22px; border-radius: 999px; background: var(--teal); color: white; text-align: center; font-weight: 800; }
.modal-close { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink); font-weight: 900; }

@keyframes bob { 50% { transform: translate(-50%, 8px); } }
@keyframes float { 50% { transform: translateY(-8px); } }
.reveal { animation: reveal .7s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

#blazor-error-ui { background: #fff3cd; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, .2); display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

@media (max-width: 1000px) {
    .program-grid, .about, .process-grid, .contact-grid, .admin-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about { padding-left: 24px; padding-right: 24px; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-form { position: static; }
    .admin-app { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .product-modal { height: auto; grid-template-columns: 1fr; overflow: auto; }
    .product-modal > img { min-height: 280px; height: 320px; }
    .product-modal > div { max-height: none; overflow: visible; }
}

@media (max-width: 760px) {
    .nav-contact, .nav-links { display: none; }
    .site-nav { background: rgba(0, 28, 32, .36); backdrop-filter: blur(10px); }
    .menu-toggle { display: block; color: white; font-size: 24px; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
    .mobile-menu { display: none; padding: 20px 24px 28px; border-top: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 35, 38, .82); box-shadow: 0 18px 34px rgba(0, 20, 24, .28); text-align: center; }
    .mobile-menu a { color: white; }
    .menu-open .mobile-menu { display: grid; gap: 18px; }
    .brand img { height: 52px; }
    .hero h1 { font-size: 54px; }
    .hero-stats { gap: 16px; }
    .program-grid, .about, .process-grid, .feature-grid, .contact-grid, .admin-list article { grid-template-columns: 1fr; }
    .section { padding: 72px 18px; }
    .about { gap: 40px; }
    .about-image > img { height: 360px; }
    .footer-bottom, .admin-header { align-items: flex-start; flex-direction: column; }
}
