/* ==========================================================================
   V-Vision Web — styles.css
   Sistema visual inspirado en dosier.dicopt.com
   Web estática HTML + CSS + JS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */

:root {
  /* Marca / producto */
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-soft: #eff6ff;

  --color-accent: #06b6d4;
  --color-accent-dark: #0891b2;
  --color-accent-soft: #ecfeff;

  /* Neutros */
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-bg-muted: #f1f5f9;

  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-text-soft: #64748b;

  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;

  /* Course specific styles */
  --color-course-bg: #f8fbff;

  /* Estados */
  --color-success: #16a34a;
  --color-warning: #f59e0b;
  --color-error: #dc2626;

  /* Layout */
  --container: 1120px;
  --container-wide: 1280px;
  --container-narrow: 820px;

  /* Radios */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.14);

  /* Tipografía */
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Transiciones */
  --transition: 180ms ease;

  /* Header */
  --header-height: 76px;
}

/* --------------------------------------------------------------------------
   2. Reset básico
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  display: block;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--color-primary);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. Layout global
   -------------------------------------------------------------------------- */

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 32px, var(--container-wide));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 32px, var(--container-narrow));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.section-lg {
  padding: 128px 0;
}

.section-muted {
  background: var(--color-bg-soft);
}

.section-border-top {
  border-top: 1px solid var(--color-border);
}

.section-border-bottom {
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-description {
  margin: 18px 0 0;
  max-width: 680px;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

/* --------------------------------------------------------------------------
   4. Tipografía
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  margin-bottom: 0;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin-bottom: 0;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  margin-bottom: 0;
}

p {
  margin: 0;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-text-muted);
  max-width: 720px;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-soft {
  color: var(--color-text-soft);
}

.text-primary {
  color: var(--color-primary);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: var(--shadow-sm);
  font-weight: 900;
}

.brand-text {
  font-size: 1.08rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.main-nav a {
  position: relative;
  transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-text);
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
}

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

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-weight: 750;
}

.mobile-nav {
  display: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 34px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #ffffff;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* --------------------------------------------------------------------------
   6. Botones
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 750;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.30);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  color: var(--color-primary);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--color-primary-soft);
}

.btn-light {
  background: #ffffff;
  color: var(--color-primary);
}

.btn-light:hover {
  box-shadow: var(--shadow-md);
}

.btn-lg {
  min-height: 52px;
  padding: 0 24px;
  font-size: 1rem;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
  transform: none;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 36%),
    radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.10), transparent 34%),
    #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: center;
  gap: 56px;
}

.hero-content {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.76);
  color: var(--color-primary);
  font-size: 0.86rem;
  font-weight: 850;
}

.hero-lead {
  margin-top: 24px;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  color: var(--color-text-muted);
  max-width: 680px;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 18px;
  color: var(--color-text-soft);
  font-size: 0.94rem;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-bg-muted);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media-placeholder {
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 40px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.12)),
    var(--color-bg-muted);
  color: var(--color-text-muted);
  text-align: center;
}

.hero-company {
  overflow: hidden;
}

.hero-company-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
}

.hero-company-visual {
  display: grid;
  gap: 18px;
}

.hero-media-company {
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-media-company img {
  aspect-ratio: 16 / 10;
  object-position: 68% center;
}

.hero-company-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(180px, 0.95fr);
  gap: 16px;
}

.hero-panel-card,
.hero-panel-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.hero-panel-card {
  padding: 24px;
}

.hero-panel-card h2 {
  margin: 14px 0 10px;
  font-size: 1.45rem;
  line-height: 1.12;
}

.hero-panel-card p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.hero-panel-list {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.hero-panel-list div {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  display: grid;
  gap: 4px;
}

.hero-panel-list strong {
  font-size: 0.95rem;
}

.hero-panel-list span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   8. Grids y cards
   -------------------------------------------------------------------------- */

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.card-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.card-text {
  color: var(--color-text-muted);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   9. Cards de producto
   -------------------------------------------------------------------------- */

.product-card {
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 38%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0.01)),
    #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-lg);
}

.product-card-content {
  max-width: 520px;
}

.product-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--color-primary);
  font-weight: 850;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-card h2 {
  margin-bottom: 14px;
}

.product-card p {
  margin-bottom: 24px;
  color: var(--color-text-muted);
}

.solutions-grid {
  display: grid;
  gap: 24px;
}

.product-card-pro,
.product-card-home {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  isolation: isolate;
}

.product-card-pro::before,
.product-card-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.24;
  z-index: -2;
}

.product-card-pro::after,
.product-card-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.92) 72%);
  z-index: -1;
}

.product-card-pro::before {
  background-image: url("../img/dicopt-pro-square.png");
}

.product-card-home::before {
  background-image: url("../img/dicopt-home-casa-square.png");
}

.company-capability-card,
.audience-card {
  min-height: 100%;
}

.audience-grid {
  gap: 20px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 40px;
  align-items: center;
}

.split-content,
.split-media {
  min-width: 0;
}

.company-steps {
  margin-top: 28px;
}

.stack-media {
  position: relative;
  min-height: 560px;
}

.stack-media-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  background: #ffffff;
}

.stack-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stack-media-card-top {
  inset: 0 40px 120px 0;
}

.stack-media-card-bottom {
  width: min(72%, 360px);
  right: 0;
  bottom: 0;
  aspect-ratio: 4 / 4.4;
}

.trust-metrics {
  margin-top: 8px;
}

.trust-note-box {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   10. Métricas, pasos y badges
   -------------------------------------------------------------------------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.metric-card {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.metric-stars {
  margin-top: 4px;
  color: var(--color-warning);
  font-size: 1rem;
}

.metric-label {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 900;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.badge-success {
  background: #ecfdf5;
  color: var(--color-success);
}

/* --------------------------------------------------------------------------
   11. Tablas
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

th {
  background: var(--color-bg-soft);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 850;
}

td {
  color: var(--color-text-muted);
}

tr:last-child td {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   13. CTA final
   -------------------------------------------------------------------------- */

.cta-section {
  padding: 96px 0;
}

.cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.22), transparent 34%),
    linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.cta-box h2 {
  color: #ffffff;
}

.cta-box p {
  margin-top: 14px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.cta-box .section-eyebrow {
  color: #93c5fd;
}

/* --------------------------------------------------------------------------
   14. Formularios
   -------------------------------------------------------------------------- */

.form-card {
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.consent-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.consent-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
}

.consent-field label {
  font-weight: 500;
  color: var(--color-text-muted);
}

.consent-field a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  font-weight: 750;
  color: var(--color-text);
  font-size: 0.94rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: #ffffff;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

/* --------------------------------------------------------------------------
   14.b Inversores
   -------------------------------------------------------------------------- */

.hero-investors {
  background:
    radial-gradient(circle at 8% 8%, rgba(37, 99, 235, 0.16), transparent 38%),
    radial-gradient(circle at 90% 22%, rgba(6, 182, 212, 0.14), transparent 34%),
    linear-gradient(180deg, #f8fbff, #ffffff 58%);
}

.investor-hero-support {
  margin-top: 16px;
  max-width: 700px;
  color: var(--color-text-muted);
  font-size: 1.04rem;
}

.investor-hero-panel {
  display: grid;
  gap: 16px;
}

.investor-panel-card,
.investor-panel-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}

.investor-panel-card {
  padding: 28px;
}

.investor-panel-card h2 {
  margin: 14px 0 10px;
  font-size: 1.55rem;
  line-height: 1.14;
}

.investor-panel-card p {
  color: var(--color-text-muted);
}

.investor-panel-list {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.investor-panel-list div {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  display: grid;
  gap: 4px;
}

.investor-panel-list strong {
  font-size: 0.95rem;
}

.investor-panel-list span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.investor-rich-text {
  display: grid;
  gap: 16px;
}

.investor-rich-text p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
}

.investor-principles .card,
.investor-values .card {
  display: grid;
  gap: 10px;
}

.investor-values {
  margin-top: 24px;
}

.investor-lines {
  align-items: start;
}

.investor-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 26px;
  align-items: start;
}

.investor-doc-list {
  margin: 2px 0 0;
  padding-left: 20px;
  color: var(--color-text-muted);
  display: grid;
  gap: 8px;
}

.investor-note {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  padding: 24px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.07), rgba(255, 255, 255, 0.98)),
    #ffffff;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 12px;
}

.investor-note p {
  color: var(--color-text);
  font-weight: 650;
  line-height: 1.5;
}

.investor-form-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 1)),
    #ffffff;
}

.investor-form-grid {
  gap: 24px;
}

.investor-fieldset {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 14px;
}

.investor-fieldset legend {
  padding: 0 8px;
  color: var(--color-primary-dark);
  font-weight: 850;
  letter-spacing: 0.01em;
}

.investor-fields-grid {
  gap: 16px 18px;
}

.investor-input-hint {
  margin-top: 8px;
  color: var(--color-text-soft);
  font-size: 0.88rem;
}

.investor-privacy-intro {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.investor-form-actions {
  grid-template-columns: 1fr;
  justify-items: start;
}

.investor-form-actions .btn {
  min-width: 250px;
}

.investor-response {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(22, 163, 74, 0.28);
  border-radius: var(--radius-lg);
  background: #f0fdf4;
  display: grid;
  gap: 10px;
}

.investor-response h3 {
  margin: 0;
  font-size: 1.16rem;
  color: #166534;
}

.investor-response p {
  color: #166534;
  font-size: 0.96rem;
}

[hidden].investor-response {
  display: none;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 64px 0 28px;
  background: #0f172a;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}

.footer-brand .brand-text {
  color: #ffffff;
}

.footer-text {
  margin-top: 18px;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.68);
}

.footer-col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-col h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-bottom a:hover {
  color: #ffffff;
}

.footer-grid-company {
  grid-template-columns: 1.2fr repeat(3, 1fr);
}

.brand-logo-footer {
  filter: brightness(0) invert(1);
}

.footer-support-strip {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-support-title {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-support-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.footer-support-logos img {
  height: 42px;
  width: auto;
  border-radius: 10px;
  background: #ffffff;
  padding: 6px 10px;
}

.cta-actions {
  display: flex;
  align-items: center;
}

/* --------------------------------------------------------------------------
   16. Blog
   -------------------------------------------------------------------------- */

.hero-blog {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 36%),
    radial-gradient(circle at right 18%, rgba(6, 182, 212, 0.12), transparent 32%),
    #ffffff;
}

.hero-blog-content {
  max-width: 900px;
}

.blog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 14px;
  margin-bottom: 24px;
}

.blog-search-box,
.blog-sort-box {
  display: grid;
  gap: 8px;
}

.blog-search-box label,
.blog-sort-box label {
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--color-text);
}

.blog-search-box input,
.blog-sort-box select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 14px;
  background: #ffffff;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.blog-search-box input:focus,
.blog-sort-box select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.blog-results-count {
  margin-bottom: 18px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.blog-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.blog-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-soft);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--color-text-soft);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.08)),
    var(--color-bg-soft);
  font-size: 0.92rem;
}

.blog-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.blog-card-date {
  margin: 0;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-soft);
  font-weight: 700;
}

.blog-card-title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.22;
}

.blog-card-title a:hover {
  color: var(--color-primary-dark);
}

.blog-card-description {
  color: var(--color-text-muted);
}

.blog-card-link {
  justify-self: start;
}

.blog-empty {
  margin: 14px 0 10px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border-strong);
  background: var(--color-bg-soft);
  color: var(--color-text-muted);
}

.blog-pagination {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text-muted);
  font-weight: 700;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.blog-page-link:hover {
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.blog-page-link.is-current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.blog-page-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.blog-post-shell {
  padding-top: 72px;
}

.blog-back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--color-primary);
  font-weight: 700;
}

.blog-back-link:hover {
  color: var(--color-primary-dark);
}

.blog-post-header {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.blog-post-header h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.06;
}

.blog-post-date {
  margin: 0;
  color: var(--color-text-soft);
  font-weight: 650;
}

.blog-post-figure {
  margin: 0 0 30px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.blog-post-figure img {
  width: 100%;
  height: auto;
}

.markdown-body {
  max-width: 760px;
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--color-text);
}

.markdown-body > * {
  margin-top: 0;
  margin-bottom: 18px;
}

.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin-top: 36px;
  margin-bottom: 12px;
}

.markdown-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.markdown-body h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

.markdown-body p,
.markdown-body li,
.markdown-body blockquote {
  color: var(--color-text-muted);
}

.markdown-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.markdown-body a:hover {
  color: var(--color-primary-dark);
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 22px;
}

.markdown-body blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 14px 18px;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--color-primary-soft);
}

.markdown-body img {
  margin: 24px 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.markdown-body code {
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--color-bg-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
}

.markdown-body pre {
  margin: 22px 0;
  border-radius: var(--radius-md);
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px;
  overflow-x: auto;
}

.markdown-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.blog-not-found {
  min-height: 52vh;
  display: grid;
  align-items: center;
}

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .main-nav {
    gap: 18px;
  }

  .header-actions .btn-secondary {
    display: none;
  }
}

@media (max-width: 960px) {
  :root {
    --header-height: 68px;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header.is-open .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(var(--header-height) + 8px);
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-lg);
  }

  .site-header.is-open .main-nav a {
    padding: 12px 10px;
    border-radius: var(--radius-md);
  }

  .site-header.is-open .main-nav a:hover {
    background: var(--color-bg-soft);
  }

  .site-header.is-open .main-nav a[aria-current="page"]::after {
    display: none;
  }

  .site-header.is-open .mobile-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(var(--header-height) + 8px);
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-lg);
  }

  .mobile-nav a {
    padding: 12px 10px;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
  }

  .mobile-nav a:hover {
    background: var(--color-bg-soft);
    color: var(--color-text);
  }

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

  .hero-media-company img {
    aspect-ratio: 5 / 4;
    object-position: center;
  }

  .hero-company-panel,
  .split-section,
  .investor-grid-2 {
    grid-template-columns: 1fr;
  }

  .blog-toolbar,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .investor-note {
    position: static;
  }

  .stack-media {
    min-height: auto;
    display: grid;
    gap: 18px;
  }

  .stack-media-card {
    position: static;
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .steps,
  .metrics,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .section-lg {
    padding: 88px 0;
  }

  .hero {
    padding: 72px 0 56px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container,
  .container-wide,
  .container-narrow {
    width: min(100% - 24px, var(--container));
  }

  .brand-text {
    font-size: 1rem;
  }

  .brand-logo {
    height: 28px;
  }

  .card,
  .product-card,
  .step-card,
  .faq-item,
  .form-card {
    padding: 22px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .form-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .investor-fieldset {
    padding: 18px;
  }

  .investor-form-actions .btn {
    min-width: 0;
    width: 100%;
  }

  .product-card {
    min-height: 300px;
  }

  .blog-pagination {
    justify-content: center;
  }

  .hero-panel-card,
  .hero-panel-list,
  .trust-note-box {
    padding-left: 18px;
    padding-right: 18px;
  }

  .footer-support-logos img {
    height: 38px;
  }
}

/* --------------------------------------------------------------------------
  18. Página de formación — Curso VR Salud Visual 2024
   -------------------------------------------------------------------------- */

.hero-course {
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.14), transparent 38%),
    radial-gradient(circle at 88% 18%, rgba(6, 182, 212, 0.12), transparent 32%),
    linear-gradient(180deg, #f8fbff, #ffffff 62%);
}

.hero-course-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: start;
}

.hero-chips {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-course-panel {
  display: grid;
  gap: 16px;
}

.hero-course-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.hero-course-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-course-summary {
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 10px;
}

.hero-course-summary div {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  display: grid;
  gap: 4px;
}

.hero-course-summary strong {
  font-size: 0.95rem;
}

.hero-course-summary span {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.rich-copy {
  display: grid;
  gap: 16px;
}

.rich-copy p {
  color: var(--color-text-muted);
  font-size: 1.04rem;
}

.audience-dual-grid {
  align-items: stretch;
}

.audience-qualifier-card {
  display: grid;
  gap: 14px;
}

.audience-qualifier-card-muted {
  background: linear-gradient(180deg, #ffffff, var(--color-bg-soft));
}

.feature-list {
  margin: 0;
  padding-left: 20px;
  color: var(--color-text-muted);
  display: grid;
  gap: 10px;
}

.feature-list-muted {
  color: var(--color-text-soft);
}

.feature-list-tight {
  gap: 12px;
}

.learning-grid {
  align-items: stretch;
}

.learning-card {
  display: grid;
  gap: 12px;
}

.content-grid {
  align-items: stretch;
}

.ponentes-banner {
  margin: 0 0 40px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  position: relative;
  max-height: 440px;
}

.ponentes-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.ponentes-banner figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 18px;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.68));
  color: #ffffff;
  font-size: 0.88rem;
}

.talk-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.talk-card-text {
  grid-template-columns: 1fr;
}

.talk-card-wide {
  grid-column: 1 / -1;
}

.talk-media {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 2px);
  background: var(--color-bg-soft);
}

.talk-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.talk-body {
  display: grid;
  gap: 10px;
}

.talk-kicker {
  color: var(--color-primary);
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.application-split {
  align-items: center;
}

.practical-list-card {
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

/* Fotos del evento */
.event-photos {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.event-photo-panorama,
.event-photo-group {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.event-photo-panorama img,
.event-photo-group img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-photo-panorama {
  min-height: 360px;
}

.event-photo-group {
  position: relative;
}

.event-photo-group figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 18px;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.72));
  color: #ffffff;
  font-size: 0.88rem;
}

/* Testimonios */
.testimonials-strip {
  display: grid;
  gap: 20px;
  margin-bottom: 48px;
}

.testimonials-grid {
  align-items: stretch;
}

.testimonial-card {
  display: grid;
  gap: 14px;
}

.testimonial-quote {
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.65;
  font-style: italic;
}

.testimonial-author {
  margin: 0;
  font-weight: 800;
  font-size: 0.92rem;
}

.testimonial-role {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.86rem;
}

/* Carrusel de Shorts */
.shorts-section {
  display: grid;
  gap: 16px;
}

.shorts-carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) transparent;
  padding-bottom: 8px;
  border-radius: var(--radius-xl);
}

.shorts-track {
  display: flex;
  gap: 16px;
}

.short-item {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #0f172a;
  aspect-ratio: 9 / 16;
  position: relative;
}

.short-item iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.shorts-hint {
  color: var(--color-text-soft);
  font-size: 0.88rem;
  text-align: center;
}

/* Sección de acceso */
.access-grid {
  align-items: stretch;
}

.access-card {
  display: grid;
  gap: 14px;
}

.access-card-highlight {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.05), #ffffff);
}

.access-list {
  display: grid;
  gap: 10px;
}

.access-list div {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  display: grid;
  gap: 4px;
}

.access-list strong {
  font-size: 0.95rem;
}

.access-list span {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* Formulario del curso */
.course-form-card {
  display: grid;
  gap: 22px;
}

.course-form-grid {
  gap: 22px;
}

.form-pair-grid {
  gap: 16px 18px;
}

.form-response {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: var(--color-primary-soft);
  display: grid;
  gap: 10px;
}

.form-response h3 {
  margin: 0;
  font-size: 1.16rem;
}

.form-response p {
  color: var(--color-text-muted);
}

[hidden].form-response {
  display: none;
}

/* Footer recursos del curso */
.footer-course-resources {
  gap: 10px;
}

.resource-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 650;
}

/* Responsive: página del curso */
@media (max-width: 960px) {
  .hero-course-grid,
  .event-photos {
    grid-template-columns: 1fr;
  }

  .event-photo-panorama {
    min-height: 240px;
  }

  .ponentes-banner {
    max-height: 320px;
  }

  .talk-card-wide {
    grid-column: auto;
  }

  .hero-chips {
    gap: 8px;
  }
}
