:root {
  --ink: #102f3b;
  --ink-soft: #4f6872;
  --navy: #073d4d;
  --navy-2: #0b5662;
  --teal: #16a99a;
  --teal-dark: #0b887d;
  --mint: #dff6ef;
  --aqua: #dff3f8;
  --lilac: #efebfa;
  --coral: #fff0e9;
  --surface: #ffffff;
  --canvas: #f5faf9;
  --line: #dce9e7;
  --shadow-sm: 0 10px 30px rgba(20, 67, 74, .08);
  --shadow-lg: 0 30px 80px rgba(15, 70, 77, .14);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 36px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  background: var(--canvas) !important;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
body::before { display: none !important; }
img, video { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, h4 { font-family: "Manrope", sans-serif; letter-spacing: -.035em; }
.site-main { min-height: calc(100vh - 240px); }
.page-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section-space { padding-block: 92px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.main-header {
  position: sticky !important;
  top: 0;
  z-index: 900;
  width: 100%;
  padding: 0 !important;
  background: rgba(248, 252, 251, .88);
  border-bottom: 1px solid rgba(199, 222, 219, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-shell { width: min(1240px, calc(100% - 48px)); height: 82px; margin: auto; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand .site-logo { width: 50px !important; height: 50px !important; margin: 0 !important; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-family: "Manrope", sans-serif; color: var(--navy); letter-spacing: .16em; font-size: 1rem; }
.brand-copy small { color: #698087; font-size: .7rem; margin-top: 5px; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.main-nav .nav-link { position: relative; padding: 10px 13px; border-radius: 12px; color: #49636c; font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.main-nav .nav-link:hover { color: var(--navy); background: #e9f4f1; }
.main-nav .nav-link.active { color: var(--navy); background: #e2f2ed; }
.main-nav .nav-link.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 5px; background: var(--teal); }
.nav-help-button { display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 14px; padding: 12px 17px; color: white; background: var(--navy); font-weight: 700; font-size: .85rem; text-decoration: none; box-shadow: 0 8px 22px rgba(7, 61, 77, .18); transition: transform .2s, background .2s; }
.nav-help-button:hover { color: white; background: var(--navy-2); transform: translateY(-1px); }
.status-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #55e1a4; box-shadow: 0 0 0 4px rgba(85, 225, 164, .18); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 13px; background: white; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 19px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }

/* Buttons and headings */
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border: 1px solid transparent; border-radius: 15px; text-decoration: none; font-weight: 700; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--navy); box-shadow: 0 12px 28px rgba(7, 61, 77, .2); }
.button-primary:hover { color: white; background: var(--navy-2); box-shadow: 0 15px 34px rgba(7, 61, 77, .24); }
.button-secondary { color: var(--navy); background: rgba(255,255,255,.72); border-color: #cbdedb; }
.button-secondary:hover { background: white; }
.button-light { color: var(--navy); background: white; box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.button-light:hover { color: var(--navy); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 36px; }
.section-heading > div { max-width: 680px; }
.section-heading h2 { margin: 7px 0 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; }
.section-heading > p { max-width: 390px; margin: 0 0 6px; color: var(--ink-soft); }
.section-kicker { color: var(--teal-dark); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; }
.section-kicker.light { color: #85ead8; }

/* Home hero */
.home-hero { position: relative; min-height: 720px; padding: 68px 0 78px; overflow: hidden; background: linear-gradient(145deg, #f8fcfb 0%, #eef9f6 60%, #e8f5f6 100%); }
.hero-grid { min-height: 570px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 60px; position: relative; z-index: 2; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(8px); pointer-events: none; }
.hero-glow-one { width: 480px; height: 480px; top: -210px; right: 3%; background: rgba(67, 210, 189, .17); }
.hero-glow-two { width: 330px; height: 330px; bottom: -190px; left: 34%; background: rgba(122, 185, 221, .17); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 13px; border: 1px solid #cce4df; border-radius: 999px; color: var(--navy-2); background: rgba(255,255,255,.72); font-size: .77rem; font-weight: 700; letter-spacing: .04em; }
.hero-copy h1 { max-width: 650px; margin: 24px 0 22px; color: var(--navy); font-size: clamp(3.2rem, 5.7vw, 5.7rem); line-height: .98; font-weight: 800; }
.hero-copy h1 em { color: var(--teal); font-style: normal; }
.hero-copy > p { max-width: 590px; margin: 0; color: var(--ink-soft); font-size: 1.1rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-trust { display: flex; gap: 19px; flex-wrap: wrap; margin-top: 27px; color: #5d737a; font-size: .8rem; font-weight: 600; }
.hero-trust span::first-letter { color: var(--teal); }
.hero-visual { position: relative; min-height: 570px; display: grid; place-items: center; }
.hero-art-card { position: relative; z-index: 2; width: min(430px, 84%); aspect-ratio: .86; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 48% 48% 32px 32px; background: linear-gradient(155deg, rgba(255,255,255,.95), rgba(197,238,229,.8)); box-shadow: var(--shadow-lg); }
.hero-art-card::after { content: ""; position: absolute; inset: auto -20% -26% -20%; height: 48%; border-radius: 50%; background: #a5ded1; filter: blur(2px); }
.hero-art-card img { position: relative; z-index: 2; width: 86%; filter: drop-shadow(0 24px 25px rgba(31, 84, 91, .14)); }
.art-label { position: absolute; z-index: 3; top: 20px; right: 22px; padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.8); color: var(--navy); font-size: .72rem; font-weight: 700; backdrop-filter: blur(10px); }
.hero-orbit { position: absolute; border: 1px solid rgba(22,169,154,.24); border-radius: 50%; }
.orbit-one { width: 510px; height: 510px; animation: spin 24s linear infinite; }
.orbit-two { width: 590px; height: 390px; transform: rotate(-24deg); }
.floating-card { position: absolute; z-index: 3; min-width: 205px; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.95); border-radius: 17px; background: rgba(255,255,255,.88); box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); }
.floating-card-top { top: 15%; left: -2%; animation: float 4.8s ease-in-out infinite; }
.floating-card-bottom { right: -3%; bottom: 15%; animation: float 5.2s ease-in-out infinite .5s; }
.floating-card div { display: flex; flex-direction: column; }
.floating-card strong { color: var(--navy); font-size: .82rem; }
.floating-card small { color: #6b8188; font-size: .67rem; }
.mini-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 12px; font-weight: 800; }
.heart-icon { background: var(--coral); color: #e87568; }
.pulse-icon { background: var(--mint); color: var(--teal-dark); font-size: 1.5rem; }
@keyframes float { 50% { transform: translateY(-9px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature-card { position: relative; min-height: 270px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; overflow: hidden; border: 1px solid rgba(13,73,80,.06); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.feature-card:hover { color: var(--ink); transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.feature-card::after { content: ""; position: absolute; width: 150px; height: 150px; right: -48px; top: -52px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; }
.feature-mint { background: var(--mint); }
.feature-blue { background: var(--aqua); }
.feature-lilac { background: var(--lilac); }
.feature-coral { background: var(--coral); }
.feature-number { color: rgba(16,47,59,.4); font-family: "Manrope"; font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
.feature-icon { position: absolute; top: 25px; right: 28px; width: 49px; height: 49px; display: grid; place-items: center; border-radius: 15px; color: var(--navy); background: rgba(255,255,255,.55); font-size: 1.4rem; }
.feature-card h3 { margin: 35px 0 10px; color: var(--navy); font-size: 1.4rem; }
.feature-card p { max-width: 480px; margin: 0; color: #526a72; font-size: .92rem; }
.text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; color: var(--navy); font-weight: 700; font-size: .84rem; }
.feature-card:hover .text-link b { transform: translateX(4px); }
.text-link b { transition: transform .2s; }

/* Editorial */
.editorial-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, 250px); gap: 18px; }
.editorial-card { position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--navy); box-shadow: var(--shadow-sm); }
.editorial-large { grid-row: 1 / 3; }
.editorial-card img, .editorial-card video { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.editorial-card:hover img, .editorial-card:hover video { transform: scale(1.035); }
.editorial-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,34,44,.88), rgba(4,34,44,0) 70%); }
.editorial-overlay { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 28px; color: white; }
.editorial-overlay small { color: #8ce4d6; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.editorial-overlay strong { max-width: 620px; margin: 7px 0; font-family: "Manrope"; font-size: 1.35rem; line-height: 1.25; }
.editorial-large .editorial-overlay strong { font-size: clamp(1.7rem, 3vw, 2.55rem); }
.editorial-overlay > span { font-size: .78rem; font-weight: 700; opacity: .82; }

/* Support and footer */
.support-strip { margin-top: 32px; padding: 33px 0; color: white; background: var(--teal-dark); }
.support-content { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.support-content > div { display: flex; align-items: center; gap: 17px; }
.support-content p { display: flex; flex-direction: column; margin: 0; }
.support-content p strong { font-family: "Manrope"; font-size: 1.12rem; }
.support-content p span { color: #d5f0eb; font-size: .87rem; }
.support-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 15px; font-size: 1.5rem; }
.site-footer { color: #c4d6d8; background: #062f3b; }
.footer-shell { width: min(1180px, calc(100% - 48px)); margin: auto; display: grid; grid-template-columns: 1fr auto 1.1fr; align-items: center; gap: 45px; padding: 52px 0; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 50px; height: 50px; object-fit: contain; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { color: white; font-family: "Manrope"; letter-spacing: .14em; }
.footer-brand span { max-width: 280px; color: #9db8bc; font-size: .76rem; }
.footer-links { display: grid; gap: 7px; }
.footer-links a { color: #c4d6d8; text-decoration: none; font-size: .82rem; }
.footer-links a:hover { color: white; }
.medical-note { max-width: 410px; justify-self: end; margin: 0; padding: 14px 16px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; color: #9fb9bd; background: rgba(255,255,255,.035); font-size: .74rem; }
.medical-note strong { color: #d8e8e9; }
.footer-bottom { min-height: 62px; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 12px 24px; border-top: 1px solid rgba(255,255,255,.07); text-align: center; color: #7f9fa4; font-size: .7rem; letter-spacing: .08em; }
.footer-powered { display: inline-flex; align-items: center; gap: 9px; color: #9db8bc; letter-spacing: 0; }
.footer-powered .romalabs-logo { position: relative; width: 94px; height: 34px; overflow: hidden; }
.footer-powered .romalabs-logo img { position: absolute; top: 50%; left: 50%; width: 94px; height: auto; max-width: none; transform: translate(-50%, -50%); opacity: .96; }
.romalabs-logo { display: inline-flex; align-items: center; justify-content: center; }
.romalabs-logo strong { display: none; color: white; font-family: "Manrope", sans-serif; letter-spacing: .04em; }
.romalabs-logo.is-missing img { display: none; }
.romalabs-logo.is-missing strong { display: inline; }
.institution-logo { position: relative; width: 190px; height: 108px; flex: 0 0 190px; border-radius: 20px; overflow: hidden; background: #081d2f; }
.institution-logo img { position: absolute; top: 50%; left: 50%; width: 190px; height: auto; max-width: none; transform: translate(-50%, -50%); }
.institution-logo strong { font-size: 1rem; }

.about-hero { text-align: left; }
.about-hero h1, .about-hero p { margin-left: 0; }
.about-definition { display: flex; align-items: center; gap: 25px; margin-bottom: 85px; padding: 31px 34px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow-sm); }
.about-definition > span { width: 66px; height: 66px; flex: 0 0 66px; display: grid; place-items: center; border-radius: 18px; color: white; background: var(--teal-dark); font-family: "Manrope"; font-size: 2rem; }
.about-definition p { margin: 0; color: var(--ink-soft); }
.about-definition strong { color: var(--navy); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.team-grid article { min-height: 230px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.team-grid article > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--navy); background: var(--mint); font-weight: 800; }
.team-grid h3 { margin: 38px 0 5px; color: var(--navy); font-size: 1.05rem; line-height: 1.3; }
.team-grid p { color: var(--teal-dark); font-size: .8rem; font-weight: 700; }
.institution-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.institution, .advisors { min-height: 220px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow-sm); }
.institution { display: flex; align-items: center; gap: 25px; }
.institution img { width: 115px; height: 115px; border-radius: 20px; object-fit: cover; }
.institution.romalabs-card .institution-logo { background: #081d2f; }
.institution.romalabs-card .institution-logo img { object-fit: initial; padding: 0; background: transparent; }
.institution h3, .advisors h3 { margin: 7px 0; color: var(--navy); }
.institution p, .advisors p { color: var(--ink-soft); font-size: .85rem; }
.advisors p { margin: 10px 0 0; }
.responsibility-note { display: flex; gap: 18px; margin-top: 18px; padding: 28px; border: 1px solid #ebdfba; border-radius: 20px; background: #fffaf0; }
.responsibility-note > span { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; color: #856a20; background: #f6e9b7; font-family: serif; font-weight: 800; }
.responsibility-note h3 { color: #6d5922; }
.responsibility-note p { margin: 5px 0 0; color: #786e51; font-size: .86rem; }

/* Scroll reveal */
.reveal { animation: revealUp .65s both; }
.reveal-delay { animation-delay: .12s; }
@keyframes revealUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .nav-shell { gap: 18px; }
  .main-nav .nav-link { padding-inline: 9px; font-size: .8rem; }
  .nav-help-button { padding-inline: 13px; }
  .hero-grid { gap: 25px; }
  .floating-card-top { left: -5%; }
  .floating-card-bottom { right: -5%; }
  .footer-shell { grid-template-columns: 1fr 1fr; }
  .medical-note { grid-column: 1 / 3; justify-self: stretch; max-width: none; }
}

@media (max-width: 860px) {
  .page-shell, .nav-shell, .footer-shell { width: min(100% - 32px, 720px); }
  .nav-shell { height: 72px; }
  .brand-copy small { display: none; }
  .menu-toggle { display: flex; }
  .nav-help-button { display: none; }
  .main-nav { position: fixed; top: 72px; left: 16px; right: 16px; display: grid; gap: 4px; padding: 13px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .2s; }
  .main-nav.active { opacity: 1; visibility: visible; transform: none; }
  .main-nav .nav-link { padding: 12px 14px; }
  .main-nav .nav-link.active::after { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 30px; }
  .home-hero { padding-top: 28px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { min-height: 500px; }
  .hero-art-card { width: min(390px, 75vw); }
  .feature-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 16px; }
  .editorial-grid { grid-template-columns: 1fr; grid-template-rows: 390px 230px 230px; }
  .editorial-large { grid-row: auto; }
  .recursos-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .enfermedad-layout { grid-template-columns: 1fr; }
  .video-cards-container { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .internal-hero-grid, .lifeline-shell { grid-template-columns: 1fr; }
  .internal-hero-grid { text-align: center; }
  .internal-hero-grid h1, .internal-hero-grid p { margin-inline: auto; }
  .mental-hero video, .verified-mark { margin-top: 12px; }
  .healthy-habits { grid-template-columns: 1fr; }
  .habit-image img { min-height: 330px; }
  .process-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .lifeline-page { min-height: 0; }
  .lifeline-visual { min-height: 250px; }
  .verified-directory-card { grid-template-columns: auto 1fr; }
  .verified-directory-card .button { grid-column: 1 / 3; }
}

@media (max-width: 600px) {
  .page-shell, .footer-shell { width: calc(100% - 28px); }
  .section-space { padding-block: 64px; }
  .brand .site-logo { width: 44px !important; height: 44px !important; }
  .brand-copy strong { font-size: .9rem; }
  .hero-copy h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .hero-copy > p { font-size: .98rem; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-trust { display: grid; gap: 7px; }
  .hero-visual { min-height: 420px; }
  .hero-art-card { width: min(330px, 86vw); border-radius: 44% 44% 25px 25px; }
  .hero-orbit { display: none; }
  .floating-card { min-width: 180px; padding: 10px 12px; }
  .floating-card-top { top: 7%; left: -2%; }
  .floating-card-bottom { right: -2%; bottom: 7%; }
  .feature-card { min-height: 250px; padding: 24px; }
  .support-content { flex-direction: column; align-items: stretch; text-align: left; }
  .support-content .button { width: 100%; }
  .footer-shell { grid-template-columns: 1fr; }
  .medical-note { grid-column: auto; }
  .ayuda-container, .salud-mental-container, .linea-vida-container, .contenedor-cards-acerca { width: calc(100% - 28px) !important; padding-block: 50px 70px !important; }
  .recursos-grid, .video-cards-container { grid-template-columns: 1fr !important; }
  .enfermedad-layout .info-container { padding: 25px !important; }
  .estado-content > .info-container { padding: 21px !important; }
  #viewer3D { width: calc(100% - 28px) !important; height: 500px !important; }
  .internal-hero { padding-block: 62px 55px; }
  .internal-hero h1 { font-size: clamp(2.5rem, 13vw, 3.8rem); }
  .wellness-grid, .process-grid, .team-grid, .institution-row, .verified-details { grid-template-columns: 1fr; }
  .habit-copy { padding: 30px 24px; }
  .emergency-callout { flex-direction: column; align-items: flex-start; }
  .lifeline-copy h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .lifeline-actions { display: grid; }
  .about-definition, .institution { align-items: flex-start; }
  .about-definition { flex-direction: column; }
  .institution { flex-direction: column; }
  .verified-directory-card { grid-template-columns: 1fr; text-align: center; }
  .verified-directory-card > img { margin: auto; }
  .verified-directory-card .button { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
