/* ═══════════════════════════════════════════════
   PsicoWork — Design System v2
   Minimalista · Limpio · Tecnológico
   ═══════════════════════════════════════════════ */

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

@font-face {
  font-family: 'Anderfont';
  src: url('AnderfontFree.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─── CSS VARIABLES ─── */
:root {
  --blue: #00AEEF;
  --blue-light: rgba(0, 174, 239, 0.08);
  --blue-glow: rgba(0, 174, 239, 0.20);
  --magenta: #C026D3;
  --magenta-light: rgba(192, 38, 211, 0.08);
  --violet: #5B21F0;
  --navy: #0D1B2A;
  --ink: #111827;
  --text: #374151;
  --muted: #6B7280;
  --subtle: #9CA3AF;
  --light: #F9FAFB;
  --lighter: #F3F4F6;
  --border: #E5E7EB;
  --white: #FFFFFF;

  --gradient-brand: linear-gradient(135deg, var(--blue), var(--magenta));

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --section-padding: 100px 0;
  --container-max: 1100px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

/* ─── LAYOUT ─── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── TYPOGRAPHY ─── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.2;
}

h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

p {
  color: var(--text);
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #7DD3FC, #F472B6);
  /* Colores un poco más claros (cyan/pink) */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  /* Eliminar sombras del degradado para mayor claridad */
}

.lead {
  font-size: 18px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.8;
}

.lead-wrapper {
  max-width: 800px;
  text-align: left;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  display: inline-block;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-medium);
}

.navbar.scrolled {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__logo img {
  height: 32px;
  width: auto;
}

.navbar__logo-text {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition-fast);
}

.navbar__link:hover {
  color: var(--ink);
}

/* Dropdown Styles */
.navbar__item {
  position: relative;
  display: flex;
  align-items: center;
}

.navbar__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  min-width: 260px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-medium);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.navbar__item:hover .navbar__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar__dropdown-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__dropdown-link:hover {
  background: var(--blue-light);
  color: var(--blue);
}

.navbar__dropdown-link span {
  opacity: 0;
  transform: translateX(-5px);
  transition: all var(--transition-fast);
}

.navbar__dropdown-link:hover span {
  opacity: 1;
  transform: translateX(0);
}

.navbar__link--arrow::after {
  content: '▾';
  font-size: 10px;
  margin-left: 5px;
  vertical-align: middle;
}

.navbar__cta {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.navbar__cta:hover {
  background: var(--blue);
  transform: translateY(-1px);
}

.navbar__cta--secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.navbar__cta--secondary:hover {
  background: var(--light);
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* Mobile menu */
.navbar__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.navbar__menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.navbar__menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: transparent;
  /* Antes era var(--white) y tapaba el video */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 27, 42, 0.9) 0%, rgba(13, 27, 42, 0.75) 100%);
  /* Usando var(--navy) oscuro */
  z-index: -1;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: orbFloat 10s ease-in-out infinite;
}

.hero__orb--blue {
  width: 500px;
  height: 500px;
  background: rgba(0, 174, 239, 0.12);
  top: -15%;
  right: 5%;
}

.hero__orb--magenta {
  width: 400px;
  height: 400px;
  background: rgba(192, 38, 211, 0.08);
  bottom: -10%;
  left: -5%;
  animation-delay: -5s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(20px, -15px) scale(1.03);
  }
}

.hero__content {
  position: relative;
  z-index: 10;
  /* Asegurar que el contenido esté por encima del video */
  max-width: 700px;
}

.hero__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: fadeUp 0.6s 0.4s forwards;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  max-width: 520px;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.6s 0.6s forwards;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.6s 0.8s forwards;
}

.btn-primary {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 174, 239, 0.2);
}

.btn-secondary {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 100px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════
   SECTION — CONTEXT
   ═══════════════════════════════════════════════ */
.context {
  padding: var(--section-padding);
  background: var(--white);
  border-top: 1px solid var(--border);
}

.context-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.context-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px 24px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-medium);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.context-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--blue);
}

.context-card--highlight {
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  /* Softer, light blue gradient */
  border-color: #bae6fd;
}

.context-card--highlight .context-card__title {
  color: var(--ink);
}

.context-card--highlight .context-card__text {
  color: var(--muted);
}

.context-card--highlight .context-card__icon {
  background: var(--white);
  color: #00AEEF;
  /* Celestial/Light Blue */
}

.context-card--highlight .context-card__era {
  color: var(--blue);
  background: rgba(0, 174, 239, 0.1);
}

.context-card--highlight:hover {
  border-color: transparent;
}


.context-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.context-card__icon {
  width: 44px;
  height: 44px;
  background: var(--light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.context-card__era {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--light);
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.context-card__title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.context-card__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 24px;
  flex-grow: 1;
}


.context-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  background: #E8FF7A;
  /* Lime color from image */
  color: var(--ink);
  width: fit-content;
  transition: all var(--transition-fast);
}

.context-card__btn:hover {
  background: #d4f04d;
  transform: scale(1.02);
}

.context-card--highlight .context-card__btn {
  background: var(--ink);
  color: var(--white);
}

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

@media (max-width: 576px) {
  .context-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════
   SECTION — DIFFERENTIATOR
   ═══════════════════════════════════════════════ */
.differentiator {
  padding: var(--section-padding);
  background: var(--white);
  color: var(--ink);
}

.differentiator h2 {
  color: var(--ink);
}

.differentiator .lead {
  color: var(--muted);
}

.diff-dashboard {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
  /* Fix vertical jumping: keep tops aligned */
  background: #fdfdfd;
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

/* Background glows for light mode */
.diff-dashboard::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.05), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.diff-dashboard::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(192, 38, 211, 0.05), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.diff-dashboard__left,
.diff-dashboard__right {
  position: relative;
  z-index: 2;
}

.diff-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.diff-subtitle {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 40px;
  font-weight: 300;
}

.diff-tree {
  position: relative;
  padding-left: 20px;
}

.diff-tree::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 10px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(to bottom, var(--border) 0%, transparent 100%);
}

.diff-node {
  position: relative;
  margin-bottom: 32px;
  padding-left: 24px;
}

.diff-node:last-child {
  margin-bottom: 0;
}

.diff-node__dot {
  position: absolute;
  left: -20px;
  top: 5px;
  width: 7px;
  height: 7px;
  background: var(--muted);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--white);
  transition: all 0.3s ease;
}

.diff-node__dot--highlight {
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--white), 0 0 10px rgba(0, 174, 239, 0.3);
}

.diff-node__content h4 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.diff-node__content p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

/* Lado Derecho: Light Panel & Tabs */
.diff-glass-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.diff-glass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.diff-glass-tag {
  font-size: 24px;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 12px;
}

.diff-glass-icon {
  color: var(--muted);
  opacity: 0.5;
}

.diff-interactive {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.diff-interactive__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.diff-tab {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 70px;
  /* Consistencia de altura para usar 'dos líneas' */
  text-align: left;
  line-height: 1.2;
}

.diff-tab-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.diff-tab.active .diff-tab-icon {
  opacity: 1;
}

.diff-tab:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--light);
}

.diff-tab.active {
  background: linear-gradient(135deg, var(--blue), #7DD3FC);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.15);
}

.diff-interactive__content {
  background: #f9fafb;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  min-height: 260px;
}

.diff-compare-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.4s ease-out forwards;
}

.diff-compare-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.diff-compare-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.diff-approach {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.diff-approach--old {
  color: var(--muted);
}

.diff-approach--new {
  color: var(--blue);
}

.diff-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .diff-dashboard {
    grid-template-columns: 1fr;
    padding: 40px 32px;
  }
}

@media (max-width: 576px) {
  .diff-interactive__tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════
   SECTION — SERVICES
   ═══════════════════════════════════════════════ */
.services {
  padding: var(--section-padding);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* Subtle dot texture */
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
}

/* Soft glow orb */
.services::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(0, 174, 239, 0.04);
  filter: blur(80px);
  border-radius: 50%;
  top: 10%;
  left: -10%;
  pointer-events: none;
  z-index: 0;
}

.services .container {
  position: relative;
  z-index: 2;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  background: var(--white);
  transition: all var(--transition-medium);
  position: relative;
}

.service-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-card__subtitle {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--blue);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: block;
}

.service-card__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}

.service-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px 0;
  line-height: 1.6;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-top: auto;
}

.service-card__link span {
  font-size: 14px;
  color: var(--blue);
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card__link {
  color: var(--blue);
}

.service-card:hover .service-card__link span {
  transform: translate(2px, -2px);
}

/* ═══════════════════════════════════════════════
   SECTION — FOUNDER V2 (Editorial Layout)
   ═══════════════════════════════════════════════ */
.founder-v2 {
  padding: 120px 0;
  /* Fondo dividido: blanco arriba, gris claro abajo */
  background: linear-gradient(to bottom, var(--white) 0%, var(--white) 55%, var(--light) 55%, var(--light) 100%);
  position: relative;
  overflow: hidden;
}

.founder-v2__container {
  max-width: 1100px;
  /* Un feel más editorial y contenido */
  position: relative;
  z-index: 2;
}

/* HERO: Title & Image */
.founder-v2__hero {
  position: relative;
  display: flex;
  justify-content: flex-end;
  /* Imagen a la derecha */
  margin-bottom: 80px;
}

.founder-v2__title {
  position: absolute;
  left: 0;
  top: 30%;
  transform: translateY(-30%);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  z-index: 10;
  pointer-events: none;
  /* Subtle text shadow for depth */
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.founder-v2__bg-text {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(80px, 15vw, 250px);
  font-weight: 900;
  color: var(--muted);
  opacity: 0.05;
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}

.founder-v2__image-wrapper {
  width: 65%;
  /* Ocupa buena parte de la derecha */
  aspect-ratio: 4 / 3;
  /* Formato apaisado / cuadrado ancho */
  overflow: hidden;
  position: relative;
  background: var(--light);
}

.founder-v2__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  /* Recorte para ocultar la marca de agua (zoom intenso y mover imagen hacia arriba y la izquierda
     para dejar la esquina inferior derecha fuera del recuadro) */
  transform: scale(1.15) translateY(-5%) translateX(-3%);
}

.founder-v2__signature {
  position: absolute;
  left: 0;
  bottom: -5px;
  font-family: 'Anderfont', cursive, serif;
  font-size: 4rem;
  color: var(--ink);
  z-index: 3;
  transform: rotate(-1deg);
  opacity: 1;
}

/* CONTENT: 3 Columns */
.founder-v2__content {
  display: grid;
  grid-template-columns: 200px 1fr 300px;
  gap: 60px;
  align-items: start;
}

/* Column 1: Social */
.founder-v2__col-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  color: var(--ink);
}

.founder-v2__social-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.founder-v2__social-list li {
  border-bottom: 1px solid var(--border);
}

.founder-v2__social-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.founder-v2__social-list a:hover {
  color: var(--ink);
  transform: translateX(4px);
}

.social-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.social-icon svg {
  width: 100%;
  height: 100%;
  fill: url(#brand-gradient);
  transition: all var(--transition-fast);
}

/* Specific colors removed to use brand gradient */
.social-icon--instagram svg,
.social-icon--youtube svg,
.social-icon--tiktok svg,
.social-icon--linkedin svg {
  fill: url(#brand-gradient);
}

.social-icon--youtube svg {
  fill: url(#brand-gradient);
}

.social-icon--tiktok svg {
  fill: url(#brand-gradient);
}

.social-icon--linkedin svg {
  fill: url(#brand-gradient);
}

.founder-v2__social-list a:hover .social-icon {
  transform: scale(1.1);
}

.founder-v2__social-list span {
  font-size: 12px;
  color: var(--subtle);
  margin-left: auto;
}

/* Column 2: Text */
.founder-v2__text p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  text-justify: auto;
  hyphens: none;
  -webkit-hyphens: none;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
}

.founder-v2__dropcap {
  float: left;
  font-size: 3.5rem;
  line-height: 0.8;
  font-weight: 900;
  margin-right: 8px;
  margin-top: 5px;
  background: linear-gradient(135deg, #7DD3FC, #F472B6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Column 3: Quote */
.founder-v2__quote {
  position: relative;
}

.founder-v2__quote blockquote {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 20px 0;
  padding: 0;
  border: none;
}

.founder-v2__quote blockquote::before {
  content: '“';
  font-family: serif;
  font-size: 3rem;
  color: var(--ink);
  line-height: 0;
  vertical-align: bottom;
  margin-right: 5px;
}

.founder-v2__quote-author {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 992px) {
  .founder-v2__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .founder-v2__hero {
    flex-direction: column;
    justify-content: center;
    margin-bottom: 40px;
  }

  .founder-v2__image-wrapper {
    width: 100%;
  }

  .founder-v2__title {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-bottom: 20px;
    font-size: clamp(3rem, 12vw, 6rem);
  }

  .founder-v2__signature {
    bottom: -10px;
    right: 5%;
    left: auto;
  }
}


/* ═══════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════ */
.cta-section {
  padding: 80px 0;
  background: var(--white);
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-section h2 {
  max-width: 600px;
  margin: 0 auto 16px;
}

.cta-section p {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ═══════════════════════════════════════════════
   FOOTER MODERN
   ═══════════════════════════════════════════════ */
.footer-modern {
  position: relative;
  background: var(--light);
  padding: 80px 0 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.footer-modern__container {
  position: relative;
  z-index: 2;
  margin-bottom: 120px;
  /* Space to let the PSICOWORK text peek out */
}

.footer-modern__card {
  background: var(--white);
  border-radius: 24px;
  padding: 60px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
}

.footer-modern__grid {
  display: grid;
  grid-template-columns: 1.5fr auto auto;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-modern__col {
  min-width: max-content;
}

.footer-modern__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
}

.footer-modern__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-modern__links li {
  margin-bottom: 12px;
}

.footer-modern__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: block;
}

.footer-modern__links a:hover {
  color: var(--blue);
  transform: translateX(4px);
}

.footer-modern__brand {
  max-width: 320px;
}

.footer-modern__logo {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #7DD3FC, #F472B6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-modern__brand p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-modern__social {
  display: flex;
  gap: 16px;
}

.footer-modern__social a {
  color: var(--ink);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.footer-modern__social a svg {
  width: 100%;
  height: 100%;
  fill: url(#brand-gradient);
}

.footer-modern__social a:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.footer-modern__bottom-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-modern__bottom-links a:hover {
  color: var(--ink);
}

.footer-modern__bg-text {
  position: absolute;
  bottom: -5%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(80px, 15vw, 250px);
  font-weight: 900;
  color: var(--muted);
  opacity: 0.05;
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════ */
.contact-section {
  padding: var(--section-padding);
  background: var(--light);
  border-top: 1px solid var(--border);
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact__text-col p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 480px;
}

/* Contact Form */
.contact__form {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--subtle);
}

.form-group input:focus,
.form-group textarea:focus {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.06);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Form success */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
}

.form-success.show {
  display: block;
}



/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__photo-col {
    flex-direction: row;
    gap: 32px;
    align-items: center;
  }

  .about__photo {
    width: 200px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 72px 0;
  }

  .container {
    padding: 0 24px;
  }

  .navbar {
    padding: 14px 24px;
  }

  .navbar.scrolled {
    padding: 12px 24px;
  }

  .navbar__menu-btn {
    display: flex;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 260px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform var(--transition-medium);
    border-left: 1px solid var(--border);
    z-index: 999;
  }

  .navbar__links.open {
    transform: translateX(0);
  }

  .navbar__link {
    font-size: 16px;
    color: var(--ink);
  }

  .navbar__item {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    padding-left: 16px;
    padding-top: 10px;
    min-width: 100%;
    display: flex;
    gap: 8px;
  }

  .navbar__dropdown-link {
    font-size: 14px;
    padding: 6px 0;
  }

  .navbar__link--arrow::after {
    display: none;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero__title {
    font-size: clamp(30px, 7vw, 44px);
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .compare {
    grid-template-columns: 1fr;
  }

  .compare__col--old {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .about__layout {
    grid-template-columns: 1fr;
  }

  .about__photo-col {
    flex-direction: column;
  }

  .footer-modern__card {
    padding: 40px 24px;
  }

  .footer-modern__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-modern__bottom {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .footer-modern__container {
    margin-bottom: 80px;
  }

  .contact__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact__form {
    padding: 30px 20px;
  }
}

/* ═══════════════════════════════════════════════
   ACTUALIZACIONES (BENTO GRID)
   ═══════════════════════════════════════════════ */
.updates {
  padding: var(--section-padding);
  background: var(--light);
}

.updates__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}

.updates__header-content {
  flex: 1;
  min-width: 300px;
}

.updates__subtitle {
  font-size: 16px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.6;
  max-width: 500px;
  margin: 12px 0 0 0;
}

.updates__title {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 0;
  max-width: 500px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.updates__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--ink);
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.updates__btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 174, 239, 0.25);
}

.updates__btn svg {
  transition: transform 0.3s ease;
}

.updates__btn:hover svg {
  transform: translateX(4px);
}

.updates-bento {
  display: grid;
  grid-template-columns: 2fr 1.15fr;
  gap: 24px;
}

.bento-card {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Grid areas setup */
.bento-card--large {
  grid-column: 1 / 2;
  grid-row: 1 / span 2;
  min-height: 520px;
  justify-content: flex-end;
  padding: 40px;
  background: var(--ink); /* Fallback */
  color: var(--white);
  border: none;
}

.bento-card--large .bento-card__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
  z-index: 1;
  pointer-events: none;
}

.bento-card--video {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  background: linear-gradient(145deg, #f0f9ff, #e0f2fe);
  color: var(--ink);
  justify-content: space-between;
  padding: 32px;
  border: 1px solid rgba(0, 174, 239, 0.1);
  position: relative;
  overflow: hidden;
}

.bento-card--video::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: all 0.5s ease;
}

.bento-card--video:hover::before {
  transform: scale(1.2);
  opacity: 0.8;
}

.bento-card--video::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(192, 38, 211, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.bento-card--categories {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  background: linear-gradient(145deg, #fdfdfd, #f8fafc);
  border: 1px solid rgba(0, 174, 239, 0.08);
}

.bento-card--categories::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Specific elements inside cards */
.bento-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .bento-card__bg {
  transform: scale(1.05);
}

.bento-card__content {
  position: relative;
  z-index: 2;
}

/* Overlay gradient for readability on images */
/* Overlay removed for light version */
.bento-card--large::after {
  display: none;
}

.bento-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.bento-card__badge {
  background: linear-gradient(135deg, var(--blue), #0ea5e9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  color: var(--white);
  box-shadow: 0 2px 12px rgba(0, 174, 239, 0.25);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.bento-card__date {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.bento-card__tag {
  background: var(--ink);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}

.bento-card__title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.bento-card__categories-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  margin-bottom: 20px;
}

.bento-card__categories-title svg {
  flex-shrink: 0;
}

.bento-card--large .bento-card__title {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--white);
  letter-spacing: -0.02em;
  margin-top: 10px;
  z-index: 2;
}

.bento-card--large .bento-card__date {
  color: #fff;
  opacity: 1;
}

.bento-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

.bento-card--large .bento-card__excerpt {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  max-width: 90%;
  z-index: 2;
  line-height: 1.6;
}

.bento-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--ink);
  margin-top: 24px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.bento-card--large:hover .bento-card__cta {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: var(--blue);
  color: var(--white);
}

.bento-card__link {
  font-size: 13px;
  font-weight: 600;
  margin-top: auto;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.bento-card__link:hover {
  color: var(--blue);
  gap: 10px;
}

.bento-card__link svg {
  transition: transform 0.3s ease;
}

.bento-card__link:hover svg {
  transform: translateX(4px);
}

/* Video specific */
.bento-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 27, 42, 0.4);
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.bento-card__play-btn {
  width: 56px;
  height: 56px;
  background: var(--white);
  border: none;
  box-shadow: 0 8px 24px rgba(0, 174, 239, 0.12);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px 0;
  color: var(--blue);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  position: relative;
}

.bento-card__play-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.2), rgba(192, 38, 211, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.bento-card--video:hover .bento-card__play-btn {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(0, 174, 239, 0.2);
}

.bento-card--video:hover .bento-card__play-btn::before {
  opacity: 1;
}

.bento-card__video-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.bento-card__webinar-badge {
  background: rgba(0, 174, 239, 0.1);
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 6px 12px;
  border-radius: 100px;
  text-transform: uppercase;
}

.bento-card__video-text {
  position: relative;
  z-index: 2;
}

.bento-card--video .bento-card__title {
  font-size: 24px;
  margin-bottom: 8px;
  color: #0f172a;
}

.bento-card--video .bento-card__excerpt {
  font-size: 15px;
  color: #475569;
  margin-bottom: 24px;
  line-height: 1.5;
}

.bento-card__link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
}

.bento-card__link-arrow svg {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.bento-card--video:hover .bento-card__link-arrow {
  gap: 12px;
}

.bento-card--video:hover .bento-card__link-arrow svg {
  transform: translate(4px, -4px);
}

/* Stats */
.bento-card__icon-wrapper {
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Categories */
.bento-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bento-cat-pill {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: #475569;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bento-cat-pill:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.2);
}

.bento-cat-pill--count {
  background: rgba(0, 174, 239, 0.1);
  color: var(--blue);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 700;
}

.bento-cat-pill:hover .bento-cat-pill--count {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .updates-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .updates__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .updates-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(200px, auto);
  }

  .bento-card--large,
  .bento-card--video,
  .bento-card--medium,
  .bento-card--stats,
  .bento-card--categories {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-card--large {
    min-height: 400px;
  }
}

/* ═══════════════════════════════════════════════
   SECTION — TESTIMONIOS
   ═══════════════════════════════════════════════ */
.testimonials {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--blue-light), var(--magenta-light));
  overflow: hidden;
  position: relative;
}

.testimonials .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonials__header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 600px;
}

.testimonials__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.testimonials__badge-icon {
  color: var(--blue);
  font-size: 16px;
  line-height: 1;
}

.testimonials__marquee-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  /* fade edges */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee {
  display: flex;
  gap: 24px;
  overflow: hidden;
  user-select: none;
}

.marquee__content {
  display: flex;
  flex-shrink: 0;
  gap: 24px;
  animation: marquee 40s linear infinite;
}

.marquee--reverse .marquee__content {
  animation-direction: reverse;
}

.marquee:hover .marquee__content {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - 24px));
  }
}

.testimonial-card {
  width: 400px;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.06);
}

.testimonial-card__quote-mark {
  font-size: 40px;
  line-height: 1;
  color: var(--blue);
  opacity: 0.8;
  margin-bottom: 20px;
  font-family: Georgia, serif;
}

.testimonial-card__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 32px;
  flex-grow: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--blue);
  border: 2px solid var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-card__info {
  display: flex;
  flex-direction: column;
}

.testimonial-card__info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

/* ═══════════════════════════════════════════════
   LEGAL PAGES PREMIUM STYLES
   ═══════════════════════════════════════════════ */
.legal-hero {
  background: linear-gradient(135deg, #0A0B1E 0%, #1A1C3E 100%);
  padding: 160px 0 120px;
  position: relative;
  overflow: hidden;
  clip-path: ellipse(150% 100% at 50% 0%);
  margin-bottom: 60px;
  text-align: center;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(0, 174, 239, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(192, 38, 211, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.legal-hero .section-label {
  color: var(--blue);
  margin-bottom: 20px;
  opacity: 0.9;
}

.legal-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.legal-hero p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
}

.legal-body {
  padding-bottom: 120px;
}

.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 120px;
}

.legal-nav {
  list-style: none;
  padding-left: 0;
  border-left: 2px solid var(--border);
}

.legal-nav li {
  margin-bottom: 0;
}

.legal-nav a {
  display: block;
  padding: 12px 24px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  margin-left: -2px;
  border-left: 2px solid transparent;
}

.legal-nav a:hover {
  color: var(--blue);
}

.legal-nav a.active {
  color: var(--ink);
  font-weight: 700;
  border-left-color: var(--blue);
}

.legal-article h2 {
  font-size: 28px;
  margin: 60px 0 24px;
  color: var(--ink);
  scroll-margin-top: 120px;
}

.legal-article h2:first-child {
  margin-top: 0;
}

.legal-article p,
.legal-article li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}

.legal-article ul {
  padding-left: 20px;
  margin-bottom: 30px;
}

@media (max-width: 992px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-sidebar {
    position: static;
    margin-bottom: 20px;
  }

  .legal-nav {
    display: flex;
    overflow-x: auto;
    border-left: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    gap: 20px;
  }

  .legal-nav a {
    padding: 8px 0;
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
    margin-left: 0;
  }

  .legal-nav a.active {
    border-bottom-color: var(--blue);
  }
}

/* ═══════════════════════════════════════════════
   SECTION — DETAILED SERVICES (servicios.html)
   ═══════════════════════════════════════════════ */
.services-page {
  background: var(--light);
}

.services-hero {
  padding: 160px 0 100px;
  min-height: 80vh;
}

.services-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
}

/* Sidebar */
.services-sidebar {
  background: var(--light);
  padding: 60px 40px;
  border-right: 1px solid var(--border);
}

.services-sidebar__header {
  margin-bottom: 40px;
}

.services-sidebar__header h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.services-sidebar__header p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.services-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-tabs__item {
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

.services-tabs__item:last-child {
  border-bottom: none;
}

.services-tabs__item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 24px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.services-tabs__item:hover button {
  color: var(--ink);
  transform: translateX(4px);
}

.services-tabs__item.active button {
  color: var(--ink);
  font-weight: 700;
}

/* Content Area */
.services-content-area {
  padding: 60px 60px 60px 0;
  position: relative;
}

/* NEW: Subtle grid pattern background */
.services-content-area::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 174, 239, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 174, 239, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: top right;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.services-content-area:hover::before {
  opacity: 1;
}

.services-pane {
  display: none;
}

.services-pane.active {
  display: block;
  animation: fadeInSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* REDESIGNED: Vertically Stacked Hero Layout */
.services-pane__layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.services-pane__visual {
  width: 100%;
  position: relative;
  margin-bottom: 40px;
}

.services-pane__image-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08),
              0 0 0 1px rgba(0, 174, 239, 0.15),
              inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* Animated gradient border */
.services-pane__image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.6), rgba(192, 38, 211, 0.6), rgba(91, 33, 240, 0.6)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.services-pane__layout:hover .services-pane__image-wrapper::after {
  opacity: 1;
}

/* NEW: Corner accent decorations */
.services-pane__image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  pointer-events: none;
  z-index: 1;
  box-shadow:
    inset 0 0 0 1px rgba(0, 174, 239, 0) ,
    inset 0 0 40px rgba(0, 174, 239, 0);
  transition: all 0.6s ease;
}

.services-pane__layout:hover .services-pane__image-wrapper::before {
  box-shadow:
    inset 0 0 0 1px rgba(0, 174, 239, 0.3),
    inset 0 0 60px rgba(0, 174, 239, 0.15);
}

.services-pane__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s ease;
}

.services-pane__layout:hover .services-pane__img {
  transform: scale(1.03);
}

.services-pane__image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(13, 27, 42, 0.5) 0%, rgba(13, 27, 42, 0.15) 40%, transparent 70%),
    linear-gradient(90deg, rgba(0, 174, 239, 0.1) 0%, transparent 50%, rgba(192, 38, 211, 0.1) 100%);
  pointer-events: none;
  border-radius: 24px;
  z-index: 2;
}

/* NEW: Shimmer effect on hover */
.services-pane__image-wrapper .shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%);
  transition: left 0.8s ease;
  z-index: 3;
  pointer-events: none;
}

.services-pane__layout:hover .shimmer {
  left: 100%;
}

.services-pane__content {
  padding: 20px 0;
}

/* NEW: Header with stacked subtitle + title */
.services-pane__header {
  margin-bottom: 24px;
}

.services-pane__subtitle {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 8px;
  display: block;
}

.services-pane__title {
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* NEW: Floating Badge on Images */
.services-pane__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
              0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  z-index: 10;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-pane__layout:hover .services-pane__badge {
  transform: translateY(-4px);
}

.services-pane__badge .badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--blue);
}

.services-pane__badge .badge-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.services-pane__badge .badge-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Special badge style for AI service */
.services-pane__badge.badge--ai {
  background: linear-gradient(135deg, rgba(91, 33, 240, 0.95), rgba(192, 38, 211, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.services-pane__badge.badge--ai .badge-icon {
  color: var(--white);
}

.services-pane__badge.badge--ai .badge-text {
  color: var(--white);
}

.services-pane__description {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 32px;
}

/* Features List with Icons */
.services-pane__features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.services-pane__feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.services-pane__feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.12) 0%, rgba(192, 38, 211, 0.12) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.services-pane__feature-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue), var(--magenta));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.services-pane__feature-icon svg {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-fast);
}

.services-pane__feature:hover .services-pane__feature-icon {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 174, 239, 0.2);
}

.services-pane__feature:hover .services-pane__feature-icon::before {
  opacity: 1;
}

.services-pane__feature:hover .services-pane__feature-icon svg {
  transform: scale(1.1);
  color: var(--white);
}

.services-pane__feature-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.services-pane__feature-text strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.services-pane__feature-text span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* NEW: Decorative divider */
.services-pane__divider {
  height: 1px;
  background: linear-gradient(90deg,
    rgba(0, 174, 239, 0) 0%,
    rgba(0, 174, 239, 0.3) 50%,
    rgba(192, 38, 211, 0.3) 100%);
  margin: 32px 0;
  border-radius: 1px;
}

/* NEW: Enhanced actions area */
.services-pane__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.services-pane__actions .btn-primary {
  position: relative;
  overflow: hidden;
}

.services-pane__actions .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%);
  transition: left 0.6s ease;
}

.services-pane__actions .btn-primary:hover::before {
  left: 100%;
}

/* NEW: Subtle pattern overlay on description */
.services-pane__description {
  position: relative;
  padding-left: 16px;
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, var(--blue), var(--magenta));
  border-image-slice: 1;
}

/* Legacy styles for backwards compatibility */
.services-pane__body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 24px;
}

.services-pane__list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.services-pane__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.6;
}

.services-pane__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: bold;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .services-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .services-sidebar {
    padding: 40px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .services-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 16px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .services-tabs__item {
    border-bottom: none;
    white-space: nowrap;
  }

  .services-tabs__item button {
    padding: 12px 0;
    border-bottom: 2px solid transparent;
  }

  .services-tabs__item.active button {
    border-bottom-color: var(--blue);
  }

  .services-content-area {
    padding: 40px;
  }

  /* Two-column pane becomes single column on tablet */
  .services-pane__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .services-pane__visual {
    position: static;
  }

  .services-pane__img {
    height: 280px;
  }
}

.testimonial-card__info p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 480px) {
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .services-pane__img {
    height: 220px;
  }

  .services-pane__title {
    font-size: 28px;
  }

  .services-pane__feature {
    gap: 12px;
  }

  .services-pane__feature-icon {
    width: 40px;
    height: 40px;
  }

  .services-pane__feature-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* ═══════════════════════════════════════════════
   DIAGNÓSTICO IA SECTION
   ═══════════════════════════════════════════════ */
/* ─────────────────────────────────────────────────────────────────
   DIAGNOSTIC SECTION - Enhanced Design
   ───────────────────────────────────────────────────────────────── */

.diagnostic-section {
  padding: var(--section-padding);
  background: linear-gradient(135deg, #f8fafc 0%, #fef7ff 50%, #f0f9ff 100%);
  position: relative;
  overflow: hidden;
}

/* Ambient background orbs */
.diagnostic-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(192, 38, 211, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: orbFloat 20s ease-in-out infinite;
}

.diagnostic-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: orbFloat 25s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

/* ─── Ribbon Banner ─── */
.diagnostic__ribbon {
  position: absolute;
  top: 55px;
  right: -70px;
  width: 300px;
  background: linear-gradient(135deg, var(--magenta) 0%, #a855f7 50%, var(--magenta) 100%);
  color: var(--white);
  padding: 10px 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  transform: rotate(45deg);
  z-index: 10;
  box-shadow:
    0 3px 10px rgba(192, 38, 211, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Ribbon folded corners effect */
.diagnostic__ribbon::before,
.diagnostic__ribbon::after {
  content: '';
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
}

.diagnostic__ribbon::before {
  left: -12px;
  border-width: 0 12px 16px 0;
  border-color: transparent #6b21a8 transparent transparent;
}

.diagnostic__ribbon::after {
  right: -12px;
  border-width: 16px 12px 0 0;
  border-color: #6b21a8 transparent transparent transparent;
}

.diagnostic__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.diagnostic__text-col {
  position: relative;
}

.diagnostic__text-col .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.1) 0%, rgba(192, 38, 211, 0.1) 100%);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--magenta);
  margin-bottom: 16px;
  border: 1px solid rgba(192, 38, 211, 0.15);
}

.diagnostic__text-col .section-label::before {
  content: '✨';
  font-size: 14px;
}

.diagnostic__text-col h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.diagnostic__subtitle {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--ink) 0%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.diagnostic__text-col > p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 8px;
}

.diagnostic__features {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
}

.diagnostic__features li {
  position: relative;
  padding: 12px 0 12px 36px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.diagnostic__features li:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(4px);
}

.diagnostic__features li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--blue) 0%, #60a5fa 100%);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 174, 239, 0.3);
}

.diagnostic__features li::after {
  content: '✓';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 10px;
  font-weight: bold;
}

.diagnostic__features li strong {
  color: var(--ink);
  font-weight: 600;
}

.diagnostic__text-col .btn-primary {
  padding: 16px 32px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #0a1628 100%);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
  box-shadow: 0 4px 20px rgba(0, 174, 239, 0.2);
  transition: all 0.3s ease;
}

.diagnostic__text-col .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 174, 239, 0.35);
}

.diagnostic__text-col .btn-primary svg:first-child {
  opacity: 0.9;
}

.diagnostic__text-col .btn-primary svg:last-child {
  transition: transform 0.3s ease;
}

.diagnostic__text-col .btn-primary:hover svg:last-child {
  transform: translateX(4px);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ─── Visual Column Enhanced ─── */
.diagnostic__visual-col {
  position: relative;
}

/* Glow effect behind the card */
.diagnostic__visual-col::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(ellipse, rgba(192, 38, 211, 0.15) 0%, rgba(0, 174, 239, 0.1) 40%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.diagnostic__glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.02),
    0 12px 24px rgba(0, 0, 0, 0.04),
    0 24px 48px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.diagnostic__glass-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 12px rgba(0, 0, 0, 0.03),
    0 20px 40px rgba(0, 0, 0, 0.06),
    0 32px 64px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Inner glow effect */
.diagnostic__glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 50%);
  pointer-events: none;
}

/* Accent line top */
.diagnostic__glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--magenta), transparent);
  border-radius: 0 0 3px 3px;
}

.robot-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  margin-bottom: 24px;
  position: relative;
}

/* Subtle ring around robot */
.robot-container::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.08) 0%, transparent 70%);
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0.3; }
}

.robot-img {
  height: 100%;
  width: auto;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.15));
  animation: floatEnhanced 5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes floatEnhanced {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(0.5deg); }
  50% { transform: translateY(-12px) rotate(0deg); }
  75% { transform: translateY(-6px) rotate(-0.5deg); }
}

.diagnostic__glass-card p {
  font-size: 17px;
  color: var(--ink);
  margin: 0;
  line-height: 1.6;
  position: relative;
  padding: 0 16px;
}

/* Quote decoration */
.diagnostic__glass-card p::before {
  content: '"';
  position: absolute;
  left: -8px;
  top: -10px;
  font-size: 48px;
  font-family: Georgia, serif;
  color: var(--blue);
  opacity: 0.2;
  line-height: 1;
}

@media (max-width: 991px) {
  .diagnostic__layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .diagnostic__visual-col {
    order: -1;
  }

  .diagnostic__glass-card {
    padding: 36px 28px;
  }

  .robot-container {
    height: 180px;
  }

  .diagnostic__ribbon {
    top: 25px;
    right: -45px;
    width: 140px;
    font-size: 10px;
  }
}

@media (max-width: 576px) {
  .diagnostic__glass-card {
    padding: 32px 20px;
  }

  .diagnostic__features li {
    padding: 10px 0 10px 32px;
    font-size: 14px;
  }

  .robot-container {
    height: 160px;
  }
}

/* ═══════════════════════════════════════════════
   DIAGNÓSTICO IA MODAL
   ═══════════════════════════════════════════════ */
.diag-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.diag-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.diag-modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 95%;
  max-width: 800px;
  padding: 50px 40px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  /* El modal puede tener scroll si el contenido es gigante, pero el texto se ve completo */
  max-height: 95vh;
  overflow-y: auto;
}

/* Step 2 gets its own lavender dotted background */
#diag-step-2 {
  display: none;
  margin: -50px -40px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background-color: #eeeeff;
  background-image:
    radial-gradient(circle at 35% 30%, rgba(180,160,255,0.22) 0%, transparent 55%),
    radial-gradient(circle at 70% 75%, rgba(140,160,255,0.15) 0%, transparent 50%),
    radial-gradient(rgba(160,140,220,0.35) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
  min-height: 480px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#diag-step-2.active {
  display: flex;
}

.diag-modal-overlay.open .diag-modal-content {
  transform: scale(1) translateY(0);
}

.diag-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.diag-modal-close:hover {
  color: var(--ink);
}

.diag-step {
  display: none;
  animation: fadeInStep 0.5s ease forwards;
}

.diag-step.active {
  display: block;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateX(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.diag-step h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--ink);
  text-align: center;
}

.diag-step-desc {
  text-align: center;
  color: var(--muted);
  margin-bottom: 30px;
}

.diag-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.diag-form input {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.diag-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}

.diag-disclaimer {
  font-size: 12px;
  color: var(--muted);
  background: var(--light);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
  border-left: 3px solid var(--magenta);
}

.diag-next-btn {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

.diag-next-btn.hidden {
  display: none;
}

.diag-ai-text {
  font-size: 18px;
  text-align: center;
  color: #3d3a5c;
  margin-bottom: 24px;
  /* Eliminadas las restricciones de altura para que el texto se vea completo */
  min-height: 60px;
  width: 100%;
  line-height: 1.6;
  padding: 0 10px;
}

.diag-hint-text {
  font-size: 13px;
  text-align: center;
  color: rgba(60, 50, 120, 0.7);
  margin-top: -8px;
  margin-bottom: 10px;
  min-height: 20px;
  line-height: 1.4;
}

/* ─── Nova AI Orb ─── */
.voice-orb-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 20px 0 16px;
  gap: 20px;
}

/* Outer halo wrapper */
.voice-orb {
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  /* Diffuse halo glow */
  filter:
    drop-shadow(0 0 38px rgba(147, 112, 219, 0.6))
    drop-shadow(0 0 70px rgba(100, 130, 237, 0.35));
  animation: novaFloat 5s ease-in-out infinite;
  transition: filter 0.6s ease;
}

/* Wide diffuse halo ring */
.voice-orb::before {
  content: '';
  position: absolute;
  inset: -36px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(160, 140, 230, 0.22) 0%,
    rgba(140, 120, 210, 0.12) 45%,
    transparent 72%);
  z-index: 0;
  animation: haloBreath 5s ease-in-out infinite;
}

/* The actual glass sphere */
.voice-orb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* Matches the image: white glare top-left, gentle mid-blue, violet base */
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.45) 22%, transparent 42%),
    radial-gradient(circle at 68% 70%, rgba(255,255,255,0.18) 0%, transparent 28%),
    radial-gradient(ellipse at 50% 50%,
      #ddd8ff 0%,
      #b8c8f8 22%,
      #9ab0f5 42%,
      #a090ee 62%,
      #b060d8 80%,
      #9040c0 100%);
  box-shadow:
    inset -18px -18px 30px rgba(0,0,0,0.12),
    inset 12px 12px 24px rgba(255,255,255,0.6),
    0 8px 32px rgba(147,112,219,0.4);
  z-index: 1;
  animation: novaShimmer 8s ease-in-out infinite;
}

/* Speaking state — blue pulsing, bigger glow */
.voice-orb.speaking {
  filter: drop-shadow(0 0 40px rgba(0, 174, 239, 0.7)) drop-shadow(0 0 80px rgba(0, 174, 239, 0.35));
  animation: novaFloat 5s ease-in-out infinite, novaSpeak 0.9s ease-in-out infinite alternate;
}
.voice-orb.speaking::after {
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.90) 0%, transparent 32%),
    radial-gradient(circle at 68% 72%, rgba(255,255,255,0.25) 0%, transparent 28%),
    radial-gradient(ellipse at 50% 50%,
      #c2f0ff 0%,
      #8ac7ff 30%,
      #60a5fa 55%,
      #38bdf8 75%,
      #0ea5e9 100%);
  box-shadow:
    inset -18px -18px 30px rgba(0,0,0,0.10),
    inset 12px 12px 24px rgba(255,255,255,0.7),
    0 8px 40px rgba(0,174,239,0.5);
  animation: novaShimmer 4s ease-in-out infinite;
}
.voice-orb.speaking::before {
  background: radial-gradient(ellipse at center,
    rgba(0, 174, 239, 0.25) 0%,
    rgba(0, 174, 239, 0.12) 40%,
    transparent 70%);
  animation: haloBreath 2.5s ease-in-out infinite;
}

/* Listening state — magenta/violet pulsing morph */
.voice-orb.listening {
  filter: drop-shadow(0 0 45px rgba(192, 38, 211, 0.75)) drop-shadow(0 0 90px rgba(192, 38, 211, 0.35));
  animation: novaFloat 5s ease-in-out infinite, novaListen 1.4s ease-in-out infinite;
}
.voice-orb.listening::after {
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.88) 0%, transparent 32%),
    radial-gradient(ellipse at 50% 50%,
      #f0d6ff 0%,
      #d4a5fb 25%,
      #b57cf5 50%,
      #9333ea 75%,
      #c026d3 100%);
  box-shadow:
    inset -18px -18px 30px rgba(0,0,0,0.12),
    inset 12px 12px 24px rgba(255,255,255,0.65),
    0 8px 40px rgba(192,38,211,0.55);
  animation: novaShimmer 3s ease-in-out infinite;
}
.voice-orb.listening::before {
  background: radial-gradient(ellipse at center,
    rgba(192, 38, 211, 0.28) 0%,
    rgba(192, 38, 211, 0.13) 40%,
    transparent 70%);
  animation: haloBreath 1.8s ease-in-out infinite;
}

/* Pulse idle variant */
.voice-orb.pulse {
  animation: novaFloat 5s ease-in-out infinite, novaPulse 2s ease-in-out infinite;
}

/* ── Soundwave bars — always visible, animate on active states ── */
.voice-soundwave {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 36px;
  pointer-events: none;
}

.voice-soundwave .bar {
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(160,130,220,0.45), rgba(130,160,240,0.35));
  transform-origin: bottom;
  /* Idle: very gentle slow sway */
  animation: barIdle 3s ease-in-out infinite;
}

/* active: fast bounce, full opacity, brand colors */
.voice-orb-container.is-listening .bar {
  background: linear-gradient(180deg, #c026d3, #8ab4f8);
  animation: barBounce 1.0s ease-in-out infinite;
}
.voice-orb-container.is-speaking .bar {
  background: linear-gradient(180deg, #00aeef, #60a5fa);
  animation: barBounce 0.8s ease-in-out infinite;
}

/* Natural heights so they look like "|||||||" */
.voice-soundwave .bar:nth-child(1) { height: 10px; animation-delay: 0.00s; }
.voice-soundwave .bar:nth-child(2) { height: 20px; animation-delay: 0.12s; }
.voice-soundwave .bar:nth-child(3) { height: 30px; animation-delay: 0.22s; }
.voice-soundwave .bar:nth-child(4) { height: 22px; animation-delay: 0.08s; }
.voice-soundwave .bar:nth-child(5) { height: 34px; animation-delay: 0.04s; }
.voice-soundwave .bar:nth-child(6) { height: 18px; animation-delay: 0.18s; }
.voice-soundwave .bar:nth-child(7) { height: 28px; animation-delay: 0.14s; }
.voice-soundwave .bar:nth-child(8) { height: 12px; animation-delay: 0.28s; }

/* ── Keyframes ── */
@keyframes novaFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes novaShimmer {
  0%   { background-position: 0% 50%; }
  50%  { filter: brightness(1.08); }
  100% { filter: brightness(1); }
}

@keyframes haloBreath {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.15); opacity: 0.7; }
}

@keyframes novaSpeak {
  0%   { transform: scale(0.95); }
  100% { transform: scale(1.10); }
}

@keyframes novaListen {
  0%, 100% { transform: scale(1);    border-radius: 50%; }
  25%       { transform: scale(1.06); border-radius: 46% 54% 52% 48% / 50% 48% 52% 50%; }
  50%       { transform: scale(1.04); border-radius: 52% 48% 48% 52% / 48% 52% 48% 52%; }
  75%       { transform: scale(1.07); border-radius: 48% 52% 54% 46% / 52% 50% 50% 48%; }
}

@keyframes novaPulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.06); opacity: 0.90; }
}

@keyframes barIdle {
  0%, 100% { transform: scaleY(0.3);  opacity: 0.45; }
  50%       { transform: scaleY(0.55); opacity: 0.65; }
}

@keyframes barBounce {
  0%, 100% { transform: scaleY(0.3); opacity: 0.7; }
  50%       { transform: scaleY(1);   opacity: 1; }
}

.diag-wordcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 30px 0;
  padding: 20px;
  background: var(--light);
  border-radius: var(--radius-md);
}

.diag-wordcloud .word {
  display: inline-block;
  font-weight: 700;
  border-radius: 20px;
  padding: 6px 14px;
}

.word.high {
  font-size: 24px;
  background: rgba(192, 38, 211, 0.15);
  color: var(--magenta);
}

.word.med {
  font-size: 18px;
  background: rgba(0, 174, 239, 0.15);
  color: var(--blue);
}

.word.low {
  font-size: 14px;
  background: var(--border);
  color: var(--muted);
}

.diag-summary-box {
  background: var(--lighter);
  border: 1px solid var(--border);
  border-left: 4px solid var(--magenta);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 32px 0;
  text-align: left;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.6;
  font-style: italic;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.diag-summary-box strong {
  font-style: normal;
  color: var(--ink);
  font-size: 15px;
}

.diag-question {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 32px;
}

.diag-approval-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.diag-approval-actions button {
  flex: none;
  min-width: 210px;
}

@media (max-width: 576px) {
  .diag-approval-actions {
    flex-direction: column-reverse;
  }
  .diag-approval-actions button {
    width: 100%;
  }
}


.diag-success-icon {
  width: 80px;
  height: 80px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 30px;
}

.diag-final-text {
  font-size: 18px;
  text-align: center;
  color: var(--ink);
  font-weight: 500;
}

.diag-final-subtext {
  font-size: 15px;
  text-align: center;
  color: var(--muted);
  margin-top: 16px;
}

/* ── REPORT/PDF VIEWER STYLES ── */
.report-viewer-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #f1f5f9; z-index: 10000; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; align-items: center; padding: 40px 20px; gap: 40px; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.report-viewer-overlay.active { opacity: 1; visibility: visible; }
.report-viewer-nav { position: fixed; top: 0; left: 0; right: 0; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); height: 60px; z-index: 10001; border-bottom: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; padding: 0 40px; transition: transform 0.3s ease; }
.report-viewer-overlay:not(.active) .report-viewer-nav { transform: translateY(-100%); }
.pdf-page { width: 800px; min-height: 1131px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-radius: 4px; position:relative; overflow:hidden; padding: 80px; box-sizing: border-box; flex-shrink:0; color: #1e293b; font-family: 'Inter', sans-serif; text-align:left; }
.pdf-watermark { position:absolute; bottom:30px; left:40px; right:40px; display:flex; justify-content:space-between; align-items:center; font-size:10px; color:#cbd5e1; border-top:1px solid #f1f5f9; padding-top:10px; }
.pdf-title { font-size:42px; font-weight:800; line-height:1.1; letter-spacing:-1px; color:#0f172a; margin-top:200px; margin-bottom:20px; }
.pdf-mesh-bg { position:absolute; top:-100px; right:-100px; width:500px; height:500px; background:radial-gradient(circle, rgba(0,174,239,0.1) 0%, rgba(237,0,140,0.05) 50%, transparent 70%); border-radius:50%; z-index:0; pointer-events:none; }
.pdf-h2 { font-size:24px; font-weight:800; color:var(--blue); margin-bottom:24px; border-bottom:2px solid var(--border-soft); padding-bottom:8px; display:inline-block; }
.pdf-cols { display:column; column-count:2; column-gap:40px; font-size:14px; line-height:1.7; color:#475569; }
.pdf-chart-container { display:flex; justify-content:center; align-items:center; height:400px; position:relative; margin: 40px 0; }
.pdf-node { position:absolute; display:flex; flex-direction:column; align-items:center; justify-content:center; border-radius:50%; background:#fff; box-shadow:0 4px 15px rgba(0,0,0,0.05); text-align:center; padding:10px; z-index:2; border: 1px solid #e2e8f0; }
.pdf-node-value { font-size:20px; font-weight:800; color:var(--blue); margin-top:4px; white-space: nowrap; }
.pdf-line { position:absolute; background:#e2e8f0; height:2px; z-index:1; transform-origin:left center; }

@media print {
  @page { size: A4; margin: 0; }
  body, html { width: 210mm; height: 297mm; overflow: visible !important; background: #fff !important; margin: 0 !important; padding: 0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #diag-modal, .navbar, .hero, section, footer { display: none !important; }
  .report-viewer-overlay { position: absolute !important; top: 0 !important; left: 0 !important; width: 210mm !important; display: block !important; padding: 0 !important; background: #fff !important; opacity: 1 !important; visibility: visible !important; overflow: visible !important; height: auto !important; }
  .pdf-page { display: block !important; width: 210mm !important; height: 297mm !important; min-height: 297mm !important; page-break-after: always !important; page-break-inside: avoid !important; margin: 0 !important; padding: 20mm !important; box-shadow: none !important; border-radius: 0 !important; position: relative !important; overflow: hidden !important; box-sizing: border-box !important; background: #fff !important; }
  .pdf-node { background: transparent !important; box-shadow: none !important; border: 1px solid #e2e8f0 !important; }
  .pdf-chart-container { background: transparent !important; border: none !important; }
  .report-viewer-overlay > div:not(.pdf-page) { display: none !important; }
  .btn-teal { background: #00AEEF !important; color: #fff !important; border: none !important; }
}


@media (max-width: 991px) {
  /* ─── GLOBAL MOBILE FIXES ─── */
  .container { padding: 0 24px !important; }
  h1 { font-size: 34px !important; }
  h2 { font-size: 28px !important; }

  /* ─── FOUNDER SECTION REPAIR ─── */
  .founder-v2 { padding: 60px 0 !important; }
  .founder-v2__hero {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 30px !important;
    position: relative !important;
    justify-content: flex-start !important;
  }
  .founder-v2__title {
    position: static !important;
    transform: none !important;
    font-size: clamp(32px, 8vw, 42px) !important;
    margin-bottom: 24px !important;
    width: 100% !important;
    pointer-events: auto !important;
    text-align: left !important;
  }
  .founder-v2__image-wrapper {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 15px !important;
  }
  .founder-v2__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: none !important;
  }
  .founder-v2__signature {
    position: static !important;
    font-size: 2.5rem !important;
    text-align: right !important;
    margin-top: -20px !important;
    margin-bottom: 40px !important;
    transform: rotate(-2deg) !important;
  }
  .founder-v2__content {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .founder-v2__bg-text { display: none !important; }

  /* ─── UPDATES BENTO REPAIR ─── */
  .updates-bento {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .bento-card--large {
    grid-column: 1 / -1 !important;
    min-height: 380px !important;
    padding: 24px !important;
  }
  .bento-card {
    min-height: 180px !important;
  }

  /* ─── DIFFERENTIATOR ─── */
  .diff-dashboard {
    grid-template-columns: 1fr !important;
    padding: 30px 20px !important;
    flex-direction: column !important;
  }
  .diff-tabs { display: flex !important; flex-wrap: wrap !important; }
  .diff-tab { flex: 1 1 calc(50% - 10px) !important; font-size: 13px !important; }

  /* ─── MODALS & UI ─── */
  .diag-approval-actions { flex-direction: column-reverse !important; width: 100% !important; gap: 12px !important; }
  .diag-approval-actions button { width: 100% !important; min-width: 0 !important; }
  .navbar__links { display: none !important; }
}

@media (max-width: 576px) {
  .hero { padding: 100px 0 60px !important; }
  .hero__title { font-size: 32px !important; }
  .hero__actions { flex-direction: column !important; width: 100% !important; }
  .hero__actions button { width: 100% !important; }
  .footer-modern__grid { grid-template-columns: 1fr !important; gap: 40px !important; }
}

/* ═══ TRANSCRIPT EDITOR ═══ */
.transcript-editor {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,0.5);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  position: relative;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.transcript-editor:hover {
  border-color: var(--blue);
  background: #fff;
}

.editable-transcript {
  flex: 1;
  outline: none;
  font-style: italic;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  min-height: 1.5em;
  display: block;
}

.editable-transcript:focus {
  font-style: normal;
}

.edit-transcript-btn {
  background: var(--lighter);
  border: none;
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.edit-transcript-btn:hover {
  background: var(--blue-light);
  color: var(--blue);
}
