/* =========================================================
   DROGUERÍA KALEVI - Hoja de estilos compartida
   Sistema: Outfit + JetBrains Mono · Paleta Deep Ocean / French Blue
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- 1. VARIABLES ---------- */
:root {
  --ocean: #1e857b;
  --ocean-soft: #2ba39a;
  --ocean-tint: #e6f1f0;
  --french: #093e85;
  --french-soft: #1a5bb8;

  --ink: #0c1116;        /* zinc-950 */
  --ink-2: #1f242b;      /* zinc-800 */
  --ink-3: #3b424b;      /* zinc-700 */
  --ink-4: #6b7280;      /* zinc-500 */
  --ink-5: #9ca3af;      /* zinc-400 */
  --line: #e4e7eb;       /* zinc-200 */
  --line-soft: #eef0f3;
  --bg: #fafbfc;
  --bg-2: #f4f6f8;
  --white: #ffffff;

  --font-sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Menlo', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --shadow-tint: 0 30px 60px -20px rgba(30, 133, 123, 0.18);
  --shadow-soft: 0 1px 0 rgba(12, 17, 22, 0.04);
  --shadow-elev: 0 24px 50px -20px rgba(12, 17, 22, 0.18);
}

/* ---------- 2. RESET SUAVE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'ss02', 'cv11';
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ocean); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ocean); color: var(--white); }

/* ---------- 3. UTILIDADES TIPOGRÁFICAS ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ocean);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--ocean);
  display: inline-block;
}
.display-1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.display-2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.h-section {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.body-lg {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 60ch;
}
.body-md {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 60ch;
}
.body-sm {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-4);
}
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- 4. BOTONES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: all 220ms var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}
.btn-primary {
  background: var(--french);
  color: var(--white);
  border-color: var(--french);
  box-shadow: 0 6px 18px -8px rgba(9, 62, 133, 0.45);
}
.btn-primary:hover {
  background: var(--french-soft);
  border-color: var(--french-soft);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(9, 62, 133, 0.5);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- 5. NAV STICKY + GLASS ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 251, 252, 0.72);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease-out), background 240ms var(--ease-out);
}
.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 251, 252, 0.88);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-brand img { height: 32px; width: auto; }
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-brand-text small {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 3px;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-link {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-3);
  border-radius: var(--radius-pill);
  transition: color 180ms var(--ease-out), background 180ms var(--ease-out);
}
.nav-link:hover { color: var(--ink); background: var(--bg-2); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-pill);
  transition: background 200ms var(--ease-out);
}
.nav-cta:hover { background: var(--ocean); }
.nav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
}
@media (min-width: 768px) { .nav-burger { display: none; } }
.mobile-menu {
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--bg);
  z-index: 49;
  padding: 2rem 1.5rem;
  transform: translateY(-100%);
  transition: transform 360ms var(--ease-out);
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 70%;
  background:
    radial-gradient(closest-side, rgba(30, 133, 123, 0.10), transparent 70%),
    radial-gradient(closest-side at 70% 30%, rgba(9, 62, 133, 0.06), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }
}
.hero-text { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-eyebrow { display: flex; align-items: center; gap: 0.75rem; }
.hero-headline {
  font-size: clamp(2.6rem, 5.8vw, 4.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-headline .line { display: block; overflow: hidden; }
.hero-headline .line > span { display: inline-block; }
.hero-sub {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 48ch;
}
.hero-ctas { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
}
.hero-meta-item { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-meta-item strong { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.hero-meta-item small { font-size: 0.78rem; color: var(--ink-4); }
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
@media (min-width: 900px) { .hero-visual { min-height: 540px; } }
.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ocean-tint), #f0f4f6);
  padding: 1rem;
  box-shadow: var(--shadow-tint);
  overflow: visible;
  animation: floatSlow 7s ease-in-out infinite;
}
.hero-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 20%, rgba(30, 133, 123, 0.15), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(9, 62, 133, 0.10), transparent 50%);
  z-index: 0;
}
.hero-photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}
.hero-photo-tag {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocean);
}
.hero-photo-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ocean);
  box-shadow: 0 0 0 4px rgba(30, 133, 123, 0.18);
}
.hero-corner-mark {
  position: absolute;
  top: -1rem;
  right: 0.5rem;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--french);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 14px 30px -10px rgba(9, 62, 133, 0.5);
  animation: floatSlower 9s ease-in-out infinite;
  text-align: center;
  line-height: 1.2;
}
.hero-corner-mark strong { font-size: 14px; font-family: var(--font-sans); font-weight: 700; }

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes floatSlower {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-8px) rotate(-4deg); }
}

/* ---------- 7. SECTION GENERICA ---------- */
.section { padding: 5rem 0; position: relative; }
.section-tight { padding: 3.5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.section-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; max-width: 60ch; }
.section-head.center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- 8. INSTITUCIONAL PULL-QUOTE ---------- */
.institucional {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pull-quote {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 80ch;
}
@media (min-width: 900px) {
  .pull-quote { max-width: 64ch; }
}
.pull-quote-body {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--ocean);
}
.pull-quote-body p {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.pull-quote-body p strong {
  font-weight: 500;
  color: var(--ocean);
}
.pull-quote-attr {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-4);
}
.pull-quote-attr .line { width: 24px; height: 1px; background: var(--ink-4); }
.pilares {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.pilar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.pilar:last-child { border-bottom: 0; padding-bottom: 0; }
.pilar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ocean);
  margin-top: 4px;
  min-width: 32px;
}
.pilar h4 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.25rem;
}
.pilar p {
  font-size: 0.9rem;
  color: var(--ink-4);
  line-height: 1.55;
}

/* ---------- 8B. CATÁLOGO DEL SITIO (lista editorial) ---------- */
.site-catalog {
  margin-top: 4.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.site-catalog-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  max-width: 60ch;
}
.site-catalog-head .display-2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.site-catalog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.site-catalog-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: background 220ms var(--ease-out), padding-left 220ms var(--ease-out);
}
.site-catalog-row:hover {
  background: var(--bg);
  padding-left: 1rem;
}
@media (min-width: 720px) {
  .site-catalog-row {
    grid-template-columns: 56px 1fr auto auto;
    gap: 1.5rem;
    padding: 1.5rem 0.75rem;
  }
}
.site-catalog-row.documented {
  background: var(--bg);
}
.site-catalog-row.documented:hover {
  background: var(--white);
}
.product-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-4);
}
.site-catalog-row.documented .product-num { color: var(--ocean); }
.product-name {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.3;
  text-wrap: balance;
}
@media (min-width: 720px) {
  .product-name { font-size: 1.2rem; }
}
.product-meta {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  padding: 0.3rem 0.65rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
@media (min-width: 720px) {
  .product-meta { display: inline-flex; }
}
.product-status {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--line-soft);
  color: var(--ink-4);
  white-space: nowrap;
}
.site-catalog-row.documented .product-status {
  background: var(--ocean-tint);
  color: var(--ocean);
}

/* ---------- 9. PRODUCTO FEATURE (zig-zag) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .feature.reverse > .feature-visual { order: 2; }
  .feature.reverse > .feature-content { order: 1; }
}
.feature-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.feature-visual img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 600ms var(--ease-out);
}
.feature-visual:hover img { transform: scale(1.02); }
.feature-visual-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.feature-content { display: flex; flex-direction: column; gap: 1.5rem; }
.feature-content h3 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.feature-content .desc { font-size: 1.05rem; line-height: 1.6; color: var(--ink-3); }
.feature-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--ink-3);
}
.spec-chip .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ocean);
}
.feature-meta {
  display: flex;
  gap: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.feature-meta-item { display: flex; flex-direction: column; gap: 0.15rem; }
.feature-meta-item .label { font-size: 0.72rem; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.15em; font-family: var(--font-mono); }
.feature-meta-item .value { font-size: 1.1rem; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; }
.placeholder-note {
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--ink-4);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
}
.placeholder-note .icon { color: var(--ocean); flex-shrink: 0; margin-top: 1px; }

/* ---------- 10. COVERFLOW 3D ---------- */
.coverflow-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.coverflow-wrap {
  position: relative;
  margin-top: 1.5rem;
}
.coverflow-stage {
  overflow: hidden;
}
.coverflow {
  display: flex;
  gap: 1.5rem;
  transition: transform 600ms var(--ease-out);
  will-change: transform;
}
.cover-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--white), var(--bg-2));
  border: 1px solid var(--line);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  transition: box-shadow 300ms var(--ease-out), transform 300ms var(--ease-out);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.cover-card:hover {
  box-shadow: 0 20px 40px -15px rgba(12, 17, 22, 0.18);
  transform: translateY(-3px);
}
@media (max-width: 1023px) {
  .cover-card { flex: 0 0 calc((100% - 1.5rem) / 2); }
}
@media (max-width: 639px) {
  .cover-card { flex: 0 0 100%; }
}
.cover-card-icon {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--ocean), var(--ocean-soft));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 24px -10px rgba(30, 133, 123, 0.5);
  transition: transform 600ms var(--ease-out);
}
.cover-card-icon svg { width: 44px; height: 44px; }
.cover-card.dark .cover-card-icon {
  background: linear-gradient(135deg, var(--french), var(--french-soft));
  box-shadow: 0 12px 24px -10px rgba(9, 62, 133, 0.5);
}
.cover-card.muted .cover-card-icon {
  background: linear-gradient(135deg, #2a3038, #1a1f25);
  box-shadow: 0 12px 24px -10px rgba(12, 17, 22, 0.4);
}
.cover-card-body { display: flex; flex-direction: column; gap: 0.5rem; }
.cover-card-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--ocean);
}
.cover-card.dark .cover-card-num, .cover-card.muted .cover-card-num { color: var(--ocean); }
.cover-card h4 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
  text-wrap: balance;
}
.cover-card.dark h4, .cover-card.muted h4 { color: var(--ink); }
.cover-card p {
  font-size: 0.85rem;
  color: var(--ink-4);
  line-height: 1.5;
}
.cover-card.dark p, .cover-card.muted p { color: var(--ink-4); }
.cover-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.cover-card.dark .cover-card-foot, .cover-card.muted .cover-card-foot { border-top-color: var(--line-soft); }
.cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  background: var(--ocean-tint);
  color: var(--ocean);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.cover-card.dark .cover-badge,
.cover-card.muted .cover-badge {
  background: var(--ocean-tint);
  color: var(--ocean);
}
.cover-card .ph { width: 16px; height: 16px; }


/* Controles */
.coverflow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.cover-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 220ms var(--ease-out);
}
.cover-btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cover-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.cover-btn svg { width: 18px; height: 18px; }
.cover-dots { display: flex; gap: 0.5rem; align-items: center; }
.cover-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-5);
  border: 0;
  padding: 0;
  transition: all 240ms var(--ease-out);
  cursor: pointer;
}
.cover-dot.is-active { width: 24px; border-radius: var(--radius-pill); background: var(--ocean); }

/* ---------- 11. COMPROMISO (3 valores) ---------- */
.compromiso-head { margin-bottom: 3.5rem; }
.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) {
  .values { grid-template-columns: 1fr 1fr 1fr; }
}
.value {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
@media (min-width: 768px) {
  .value {
    padding: 2.5rem 2rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .value:last-child { border-right: 0; }
  .value:not(:first-child) { padding-left: 2.5rem; }
  .value:first-child { padding-left: 0; }
}
.value-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--ocean);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.value-num::after {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--ocean);
}
.value h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}
.value h3 em {
  font-style: normal;
  color: var(--ocean);
  font-weight: 500;
}
.value p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 32ch;
}

/* ---------- 12. CONTACTO ---------- */
.contacto {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.contacto::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side at 80% 20%, rgba(30, 133, 123, 0.18), transparent 60%),
    radial-gradient(closest-side at 10% 80%, rgba(9, 62, 133, 0.18), transparent 60%);
  pointer-events: none;
}
.contacto .container { position: relative; z-index: 1; }
.contacto .eyebrow { color: var(--ocean-soft); }
.contacto .eyebrow::before { background: var(--ocean-soft); }
.contacto h2 { color: var(--white); max-width: 22ch; text-wrap: balance; }
.contacto p { color: rgba(255, 255, 255, 0.7); max-width: 56ch; }
.contacto .section-head { align-items: center; text-align: center; margin: 0 auto 2.5rem; }
.contacto-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.contacto-card .pending {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: rgba(30, 133, 123, 0.15);
  border: 1px solid rgba(30, 133, 123, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--ocean-soft);
  font-weight: 500;
  align-self: center;
}
.contacto-card .pending .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ocean-soft); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* ---------- 13. FOOTER ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-col {
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-col {
    padding: 3rem 2rem;
    border-right: 1px solid var(--line);
  }
  .footer-col:last-child { border-right: 0; }
  .footer-col:not(:first-child) { padding-left: 2.5rem; }
  .footer-col:first-child { padding-left: 0; }
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ocean);
  margin: 0;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.footer-brand img { height: 36px; width: auto; }
.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.footer-brand-text strong {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.footer-brand-text small {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 2px;
}
.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 36ch;
  font-style: italic;
}
.footer-nav { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-nav a {
  font-size: 0.9rem;
  color: var(--ink-3);
  transition: color 200ms var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-nav a:hover { color: var(--ocean); }
.footer-info { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-info-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-3);
}
.footer-info-line .ph { width: 14px; height: 14px; color: var(--ocean); }
.footer-back {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--ocean);
  font-weight: 500;
  transition: gap 200ms var(--ease-out);
}
.footer-back:hover { gap: 0.7rem; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; text-align: left; }
}
.footer-bottom p { font-size: 0.78rem; color: var(--ink-4); }
.footer-bottom .legal { color: var(--ink-5); }

/* ---------- 14. REVEAL ON SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }
.reveal[data-delay="500"] { transition-delay: 500ms; }

/* Hero word-by-word reveal */
.hero-headline .line > span { display: inline-block; opacity: 0; transform: translateY(105%); }
.hero-headline.is-loaded .line:nth-child(1) > span { animation: wordUp 900ms var(--ease-out) forwards; }
.hero-headline.is-loaded .line:nth-child(2) > span { animation: wordUp 900ms var(--ease-out) forwards; animation-delay: 200ms; }
@keyframes wordUp {
  0% { opacity: 0; transform: translateY(105%); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow, .hero-sub, .hero-ctas, .hero-meta {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.hero.is-loaded .hero-eyebrow { opacity: 1; transform: translateY(0); transition-delay: 50ms; }
.hero.is-loaded .hero-sub { opacity: 1; transform: translateY(0); transition-delay: 450ms; }
.hero.is-loaded .hero-ctas { opacity: 1; transform: translateY(0); transition-delay: 600ms; }
.hero.is-loaded .hero-meta { opacity: 1; transform: translateY(0); transition-delay: 750ms; }
.hero-visual { opacity: 0; transform: translateY(20px); transition: opacity 900ms var(--ease-out) 300ms, transform 900ms var(--ease-out) 300ms; }
.hero.is-loaded .hero-visual { opacity: 1; transform: translateY(0); }

/* ---------- 15. DEMO POPUP ---------- */
.demo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 17, 22, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}
.demo-overlay.is-open { opacity: 1; }
.demo-overlay[hidden] { display: none; }
.demo-modal {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 40px 80px -20px rgba(12, 17, 22, 0.3), 0 0 0 1px var(--line);
  transform: translateY(20px) scale(0.97);
  transition: transform 300ms var(--ease-out);
}
.demo-overlay.is-open .demo-modal { transform: translateY(0) scale(1); }
.demo-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ocean-tint);
  color: var(--ocean);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.demo-icon svg { width: 28px; height: 28px; }
.demo-modal h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}
.demo-modal > p {
  font-size: 0.875rem;
  color: var(--ink-4);
  line-height: 1.65;
  margin-bottom: 2rem;
}
.demo-modal > p strong { color: var(--ink); font-weight: 600; }
.demo-actions { display: flex; flex-direction: column; gap: 0.65rem; }
.demo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out);
  text-decoration: none;
  border: 1.5px solid var(--line);
  font-family: inherit;
}
.demo-btn-ghost { background: transparent; color: var(--ink-3); }
.demo-btn-ghost:hover { background: var(--bg-2); border-color: var(--line); }
.demo-btn-primary { background: var(--ocean); color: var(--white); border-color: var(--ocean); }
.demo-btn-primary:hover { background: var(--ocean-soft); border-color: var(--ocean-soft); }

/* ---------- 16. PREFERS REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-photo-frame, .hero-corner-mark { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .hero-headline .line > span { opacity: 1; transform: none; }
  .hero-eyebrow, .hero-sub, .hero-ctas, .hero-meta, .hero-visual { opacity: 1; transform: none; }
  .contacto-card .pending .dot { animation: none; }
  .coverflow { transition: none; }
  .cover-card { transition: none; }
  .coverflow-controls { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-nav, .site-nav.is-scrolled, .hero-photo-tag, .feature-visual-tag, .contacto-card {
    background: var(--bg) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ---------- 16. IMPRESION ---------- */
@media print {
  .site-nav, .coverflow-controls, .footer-back, .hero-corner-mark { display: none; }
  body { background: white; color: black; }
}
