/* ==================== VARIABLES ==================== */
:root {
  --navy: #002F6E;
  --navy-deep: #001B40;
  --turquoise-deep: #007F82;
  --turquoise: #00B8BA;
  --slate: #64748B;
  --ink: #0F172A;
  --white: #FFFFFF;
  --light-bg: #F7F9FC;

  /*
    Apple sirve su propia tipografía (San Francisco / SF Pro) solo dentro de sus
    plataformas; no está licenciada para usarse en sitios de terceros. En Mac,
    iPhone y iPad, -apple-system ya renderiza San Francisco de forma nativa (el
    visitante ve la tipografía real de Apple). Para el resto de los dispositivos
    usamos Inter, la alternativa abierta más cercana a SF Pro en forma y en el
    contraste de pesos que pide el estilo Apple.
  */
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --nav-h: 104px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.narrow { max-width: 760px; text-align: center; }
.lead-wide { max-width: 920px; text-align: center; }

section.section { padding: clamp(72px, 12vw, 160px) 0; }
.section-tight { padding: clamp(48px, 8vw, 96px) 0; }

.section-light { background: var(--white); color: var(--ink); }
.section-dark { background: var(--navy-deep); color: var(--white); }

.eyebrow {
  display: block;
  color: var(--turquoise);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: 780px;
}
.section-title-wide { max-width: none; }
.nowrap-chunk { white-space: nowrap; }

.section-intro {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--slate);
  max-width: 680px;
  line-height: 1.6;
}
.section-intro-2lines { max-width: none; }
.section-intro-1line { max-width: none; white-space: nowrap; font-size: clamp(0.85rem, 1.4vw, 1.05rem); }
@media (max-width: 900px) {
  .section-intro-1line { white-space: normal; font-size: clamp(1.05rem, 2vw, 1.25rem); }
}
.section-dark .section-intro { color: rgba(255,255,255,0.72); }
.section-intro-spaced { margin-top: 20px; }

.section-close {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  max-width: 920px;
  margin: 64px auto 0;
  text-align: center;
  line-height: 1.4;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--turquoise); color: var(--navy-deep); }
.btn-accent:hover { background: #00d2d4; }
.btn-outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { border-color: var(--white); }
.btn-lg { padding: 13px 28px; font-size: 0.95rem; }

/* ==================== NAV ==================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(0, 27, 64, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(0, 27, 64, 0.85);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 100%;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img { height: clamp(90px, 14vw, 150px); width: auto; }
.nav-links { display: flex; justify-content: center; gap: 32px; min-width: 400px; }
.nav-links a,
.nav-about-trigger {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-about-trigger:hover { color: var(--turquoise); }
.nav-about-trigger {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.nav-cta { padding: 10px 24px; font-size: 0.9rem; min-width: 122px; }

/* ==================== LANGUAGE TOGGLE ==================== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.lang-switch-label {
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
}

.lang-toggle {
  position: relative;
  width: 50px;
  height: 21px;
  border-radius: 999px;
  border: 2px solid #fff;
  padding: 0;
  display: block;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.lang-toggle:hover { border-color: #fff; filter: brightness(1.05); }
.lang-toggle-track { position: absolute; top: 0; bottom: 0; width: 50%; }
.lang-toggle-track-en {
  left: 0;
  background-color: #0A3161;
  background-image:
    /* Cruz recta de San Jorge (roja sobre blanca), encima de todo */
    linear-gradient(to right, transparent 43%, #C8102E 43%, #C8102E 57%, transparent 57%),
    linear-gradient(to bottom, transparent 43%, #C8102E 43%, #C8102E 57%, transparent 57%),
    linear-gradient(to right, transparent 36%, #fff 36%, #fff 64%, transparent 64%),
    linear-gradient(to bottom, transparent 36%, #fff 36%, #fff 64%, transparent 64%),
    /* Cruces diagonales de San Andrés/San Patricio, detrás */
    linear-gradient(45deg, transparent 47%, #C8102E 47%, #C8102E 53%, transparent 53%),
    linear-gradient(135deg, transparent 47%, #C8102E 47%, #C8102E 53%, transparent 53%),
    linear-gradient(45deg, transparent 42%, #fff 42%, #fff 58%, transparent 58%),
    linear-gradient(135deg, transparent 42%, #fff 42%, #fff 58%, transparent 58%);
}
.lang-toggle-track-es {
  right: 0;
  background: linear-gradient(to bottom,
    #AA151B 0%, #AA151B 25%,
    #F1BF00 25%, #F1BF00 75%,
    #AA151B 75%, #AA151B 100%);
}
.lang-toggle-knob {
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.55), inset 0 1px 1px rgba(255,255,255,0.9);
  transition: transform 0.25s ease;
  transform: translateX(27px);
}
.lang-switch.is-en .lang-toggle-knob { transform: translateX(0); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-logo img { height: 40px; }
  .nav-cta { padding: 8px 16px; font-size: 0.8rem; min-width: 0; }
  .nav-inner { gap: 10px; }
}
@media (max-width: 640px) {
  .nowrap-chunk { white-space: normal; }
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  padding-top: var(--nav-h);
  padding-bottom: clamp(10px, 2vh, 30px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 32%;
  background-color: var(--navy-deep);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 115% at 50% 48%, rgba(0,16,40,0.68) 0%, rgba(0,16,40,0.5) 45%, rgba(0,16,40,0.12) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}
/* Prólogo: solo dos tamaños de letra, siempre en blanco */
.hero-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 clamp(36px, 5vh, 64px);
  color: var(--white);
}
.hero-sub,
.hero-emphasis,
.hero-question {
  color: var(--white);
  line-height: 1.6;
  margin: 0 auto 20px;
  max-width: 640px;
}
.hero-sub, .hero-question {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
}
.hero-emphasis {
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  line-height: 1.3;
  color: #F4DB65;
}
.hero-sub { font-weight: 300; }
.hero-emphasis { font-weight: 700; }
.hero-question { font-weight: 300; margin-bottom: 0; }
@media (min-width: 900px) {
  .hero-sub, .hero-question-1line, .hero-emphasis-1line {
    max-width: none;
    width: min(1000px, 92vw);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
  .hero-question-1line, .hero-emphasis-1line { white-space: nowrap; }
}

/* En pantalla de computador, evitar que quede una palabra sola en la última línea */
@media (min-width: 900px) {
  .hero-title, .hero-sub, .hero-emphasis, .hero-question {
    text-wrap: pretty;
  }
}

/* ==================== ONE-SENTENCE / LEAD ==================== */
.que-es-logo {
  height: 135px;
  width: auto;
  margin: 0 auto 32px;
}
.lead-sentence {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.5;
}

/* ==================== LAPTOP FLOTANTE ==================== */
.laptop-scene {
  position: relative;
  z-index: 5;
  margin: -55px auto -273px;
  max-width: 600px;
  width: 92%;
  text-align: center;
}
.laptop-scroll-react {
  will-change: transform;
}
.laptop-bob {
  animation: laptopBob 5s ease-in-out infinite;
}
.laptop-static {
  width: 100%;
  height: auto;
  display: block;
}
.laptop-bob { position: relative; }
.laptop-stats {
  position: absolute;
  left: 14.2%;
  top: 5.7%;
  width: 71.8%;
  height: 62.8%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 8%;
  padding-left: 4%;
  pointer-events: none;
}
.laptop-stats-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  background: rgba(0, 16, 40, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 7px 16px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  white-space: nowrap;
}
.laptop-stats-pill.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.laptop-stat-company {
  color: #fff;
  font-weight: 600;
  font-size: clamp(0.65rem, 1.5vw, 0.85rem);
}
.laptop-stat-value {
  color: #6FE3D4;
  font-weight: 800;
  font-size: clamp(0.75rem, 1.8vw, 1rem);
}
.laptop-shadow {
  width: 86%;
  height: 32px;
  margin: 90px auto 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,16,40,0.65), transparent 68%);
  animation: laptopShadowBob 5s ease-in-out infinite;
}

@keyframes laptopBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes laptopShadowBob {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.8); opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  .laptop-bob, .laptop-shadow { animation: none; }
}

/* ==================== ICEBERG ==================== */
.iceberg-section {
  background-image:
    linear-gradient(180deg, rgba(0,27,64,0.85) 0%, rgba(0,16,40,0.9) 100%),
    url('images/iceberg/agua-fondo.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--navy-deep);
}
.iceberg-section .container { text-align: center; }
.iceberg-section .container.reveal:first-of-type { display: flex; flex-direction: column; align-items: center; margin-top: 140px; }

.iceberg-diagram {
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1fr;
  align-items: center;
  gap: clamp(24px, 6vw, 64px);
  max-width: 1000px;
  margin: 64px auto 150px;
  padding: 0 clamp(20px, 5vw, 48px);
}

.iceberg-shape {
  position: relative;
  width: 100%;
  transform-origin: 50% 30%;
  transform: translateY(28.5px) scale(1.139);
}
.iceberg-shape img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 32px rgba(0, 184, 186, 0.18));
}
.water-line {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 30%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,184,186,0.9), transparent);
  pointer-events: none;
}

.iceberg-levels {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: left;
}
.level-row { padding-left: 20px; border-left: 3px solid rgba(255,255,255,0.15); }
.level-row.is-jazlatam { border-left-color: var(--turquoise); }
.level-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 6px;
}
.level-row h3 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 700; }
.level-row p { margin: 0; color: rgba(255,255,255,0.75); font-weight: 300; line-height: 1.6; }

.pull-quote {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.4;
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--white);
}

@media (max-width: 760px) {
  .iceberg-diagram { grid-template-columns: 1fr; }
  .iceberg-shape { max-width: 260px; margin: 0 auto; }
}

/* ==================== TIMELINE (ECOSISTEMA) ==================== */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 72px auto 0;
  padding: 0 clamp(20px, 5vw, 48px);
}
.timeline-track {
  position: absolute;
  left: calc(clamp(20px, 5vw, 48px) + 23px);
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #E2E8F0;
}
.timeline-progress {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0%;
  background: var(--turquoise);
  transition: height 0.3s ease;
}
.step {
  position: relative;
  display: flex;
  gap: 28px;
  padding-bottom: 56px;
}
.step:last-child { padding-bottom: 0; }
.step-marker {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid #E2E8F0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: var(--slate);
  transition: all 0.3s ease;
  z-index: 1;
}
.step.is-active .step-marker {
  background: var(--turquoise);
  border-color: var(--turquoise);
  color: var(--navy-deep);
  transform: scale(1.1);
}
.step-content h3 {
  margin: 6px 0 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: #CBD5E1;
  transition: color 0.3s ease;
}
.step.is-active .step-content h3 { color: var(--navy); }
.step-content p {
  margin: 0;
  color: var(--slate);
  font-weight: 300;
  line-height: 1.65;
  max-width: 520px;
}
.step-lead-word {
  font-weight: 800;
  font-size: 1.08em;
  color: var(--ink);
}

/* ==================== SERVICIOS ==================== */
.service-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 36px);
  margin-top: 24px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.service-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.07); }

.service-icon {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  color: var(--service-accent, var(--turquoise));
}
.service-icon svg { width: 100%; height: 100%; }

.service-text h3 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 700; }
.service-benefit { color: var(--service-accent, var(--turquoise)); font-weight: 600; margin: 0 0 10px; }

/* Paleta por línea de negocio */
.service-color-navy { --service-accent: #4C8DFF; }
.service-color-teal { --service-accent: #00B8BA; }
.service-color-violet { --service-accent: #A78BFA; }
.service-color-amber { --service-accent: #FBBF24; }
.service-color-emerald { --service-accent: #34D399; }
.service-color-rose { --service-accent: #FB7185; }
.service-text p:last-child { margin: 0; color: rgba(255,255,255,0.75); font-weight: 300; line-height: 1.6; }

.service-featured { margin-top: 40px; }
.service-featured .service-text h3 { font-size: clamp(1.5rem, 2.5vw, 1.9rem); }
.service-featured .service-icon { width: 72px; height: 72px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.services-grid .service-card { margin-top: 0; flex-direction: column; gap: 16px; }

@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { flex-direction: column; }
}

/* ==================== SOBRE NOSOTROS ==================== */
.about-intro {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 28px;
}
/* ==================== OTROS PRODUCTOS PUNTUALES ==================== */
.otros-productos { margin-top: 72px; }
.otros-productos .section-intro { margin-top: 12px; max-width: 720px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.product-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 16px 18px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.product-chip:hover { transform: translateY(-3px); background: rgba(255,255,255,0.07); }
.product-chip-icon { flex: 0 0 auto; width: 26px; height: 26px; color: var(--turquoise); }
.product-chip-icon svg { width: 100%; height: 100%; }
.product-chip span { font-size: 0.92rem; font-weight: 400; color: rgba(255,255,255,0.85); line-height: 1.35; }

@media (max-width: 960px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ==================== CIERRE / CONTACTO ==================== */
.closing { text-align: center; }
.closing-title {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 900;
  margin: 0 0 32px;
}
@media (min-width: 1100px) {
  .closing-title-1line {
    white-space: nowrap;
    width: min(1500px, 94vw);
    max-width: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
}
.contact-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.email-btn-wrap { position: relative; }
.email-copied-toast {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.email-copied-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 40px 24px 56px;
}
.footer img { margin: 0 auto 16px; height: 24px; width: auto; }
.footer-tagline { margin: 0 0 6px; color: var(--turquoise); font-weight: 600; font-size: 0.9rem; }
.footer-year { margin: 0; font-size: 0.85rem; }

/* ==================== SCROLL REVEAL ==================== */
.reveal,
.reveal-repeat {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible,
.reveal-repeat.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-repeat { opacity: 1; transform: none; transition: none; }
  .step-marker, .btn { transition: none; }
}

/* ==================== BOTÓN OUTLINE SOBRE FONDO CLARO ==================== */
.section-light .btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}
.section-light .btn-outline:hover { border-color: var(--turquoise-deep); color: var(--turquoise-deep); }

/* ==================== BOTÓN FLOTANTE DE WHATSAPP ==================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,16,40,0.35);
  z-index: 150;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(0,16,40,0.4); }
.whatsapp-float svg { width: 30px; height: 30px; color: #fff; }
@media (max-width: 640px) {
  .whatsapp-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* ==================== MODAL: SOBRE NOSOTROS ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 16, 40, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-open { opacity: 1; }
.modal-panel {
  position: relative;
  background: var(--white);
  color: var(--ink);
  border-radius: 24px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: clamp(32px, 5vw, 56px);
  transform: scale(0.92) translateY(12px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}
.modal-overlay.is-open .modal-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.modal-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 4px 0 20px;
}
.modal-panel .about-intro { margin-bottom: 20px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #F1F5F9;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.modal-close:hover { background: #E2E8F0; }
