/* ============================================================
   GEP Studio — styles.css
   Versión optimizada y ordenada.
   Incluye efectos modernos: hover con escala y sombra,
   transiciones suaves, subrayado animado y fade-up al cargar.
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --background: #ffffff;
  --foreground: #0b1220;
  --card: #ffffff;
  --card-foreground: #0b1220;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #f1f5f9;
  --accent-foreground: #0b1220;
  --primary: #1e293b;
  --primary-foreground: #f8fafc;
  --primary-tint: rgba(30, 41, 59, 0.08);
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #94a3b8;
  --success: #059669;
  --danger: #dc2626;
  --radius: 0.625rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 10px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset y base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
input,
select,
textarea {
  font-family: inherit;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Layout containers ---------- */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.container-narrow {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .container-narrow {
    padding: 0 1.5rem;
  }
}

/* ---------- Header principal ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  gap: 0.5rem 1rem;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

/* Menú de categorías dentro del header */
.suite-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0 auto; /* centrado */
}
.suite-toc a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  transition: background 0.15s, color 0.15s;
}
.suite-toc a:hover {
  background: var(--accent);
  color: var(--foreground);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}
.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  position: relative;
  transition: color 0.3s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--foreground);
  transition: width 0.3s var(--ease-out);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--foreground);
  font-weight: 600;
}
.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Ajuste responsive del header */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .suite-toc {
    order: 3; /* lo colocamos después de la marca y el main-nav */
    margin: 0;
    justify-content: center;
  }
  .main-nav {
    justify-content: flex-end;
  }
  .brand {
    text-align: center;
  }
}
@media (max-width: 480px) {
  .suite-toc a {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }
}

/* ---------- Sub-header de Suite ---------- */
.suite-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
}
.suite-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.suite-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.suite-brand svg {
  color: var(--primary);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.back-link:hover {
  color: var(--foreground);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: auto;
}

/* ---------- Hero ---------- */
.hero {
  padding: 6rem 1rem;
  text-align: center;
}
.hero .eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 1rem;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
}
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}
.hero .lede {
  max-width: 36rem;
  margin: 1.5rem auto 0;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}
.hero .cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  background: var(--primary);
  color: var(--primary-foreground);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, border-color 0.2s;
  will-change: transform;
}
.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md);
  background: #0f172a;
}
.btn:active {
  transform: scale(0.96);
}

.btn-outline {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--input);
}
.btn-outline:hover {
  background: var(--accent);
  border-color: var(--border);
}

.btn.small {
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border-color: var(--input);
}
.btn-ghost:hover {
  background: var(--accent);
}

/* ---------- Secciones ---------- */
.section {
  padding: 4rem 1rem;
  border-top: 1px solid var(--border);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.section-title h2 {
  font-size: 1.5rem;
  font-weight: 600;
}
.section-title svg {
  color: var(--primary);
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 {
  grid-template-columns: 1fr;
}
.grid-3 {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Tarjetas de herramientas ---------- */
.tool-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    border-color 0.3s, background-color 0.3s;
  will-change: transform;
  backface-visibility: hidden;
}
.tool-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: var(--shadow-lg) !important;
  border-color: var(--primary) !important;
  background: var(--accent) !important;
}

.tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--primary-tint);
  color: var(--primary);
  margin-bottom: 1rem;
}

.tool-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
}
.tool-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  flex: 1;
}

.tool-card .cta-inline {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}
.tool-card .cta-inline svg {
  transition: transform 0.15s;
}
.tool-card:hover .cta-inline svg {
  transform: translateX(4px);
}

/* ---------- Suite landing header ---------- */
.page-header {
  margin-bottom: 2.5rem;
  max-width: 42rem;
}
.page-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) {
  .page-header h1 {
    font-size: 2.25rem;
  }
}
.page-header p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

/* ---------- Secciones de Suite ---------- */
.suite-section {
  margin-top: 3rem;
  scroll-margin-top: 6rem;
}
.suite-section:first-of-type {
  margin-top: 1rem;
}

.suite-section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.suite-section-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.suite-section-head h2 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.suite-section-head p {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

/* ---------- Botón colapsar ---------- */
.collapse-toggle {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.collapse-toggle:hover {
  background: var(--accent);
  color: var(--foreground);
}
.collapse-toggle[aria-expanded="false"] svg {
  transform: rotate(180deg);
}

.grid.collapsed {
  display: none;
}

/* Ajuste para pantallas muy pequeñas */
@media (max-width: 480px) {
  .suite-section-head {
    flex-wrap: wrap;
  }
  .collapse-toggle {
    margin-left: 0;
    align-self: flex-end;
  }
}

/* ---------- Página de herramienta ---------- */
.tool-page {
  padding: 2.5rem 1rem;
  max-width: 72rem;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .tool-page {
    padding: 2.5rem 1.5rem;
  }
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.tool-header .icon-lg {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}
@media (min-width: 640px) {
  .tool-header h1 {
    font-size: 1.875rem;
  }
}
.tool-header p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb a {
  transition: color 0.15s;
}
.breadcrumb a:hover {
  color: var(--foreground);
}
.breadcrumb .current {
  color: var(--foreground);
  font-weight: 500;
}
.breadcrumb svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* ---------- Paneles ---------- */
.panel {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  padding: 1.5rem;
}
.panel h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.panel h2.mt {
  margin-top: 0.5rem;
}

/* ---------- Formularios ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.field label {
  font-size: 0.875rem;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--input);
  border-radius: 0.375rem;
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.12);
}

.field-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .field-row.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Métricas ---------- */
.metrics {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

.metric {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
  padding: 1rem;
}
.metric .label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}
.metric .value {
  margin-top: 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.metric .value.positive {
  color: var(--success);
}
.metric .value.negative {
  color: var(--danger);
}

/* ---------- Resultados / KPIs ---------- */
.result-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.result-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--muted);
}
.result-item .label {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.result-item .value {
  font-size: 1.125rem;
  font-weight: 600;
}
.result-item .value.positive {
  color: var(--success);
}
.result-item .value.negative {
  color: var(--danger);
}
.result-item.highlight {
  background: var(--primary);
  border-color: var(--primary);
}
.result-item.highlight .label {
  color: rgba(248, 250, 252, 0.75);
}
.result-item.highlight .value {
  color: var(--primary-foreground);
  font-size: 1.375rem;
}

/* ---------- Gráficos ---------- */
.chart-wrap {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  padding: 1rem;
}
.chart-wrap h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.chart-svg {
  width: 100%;
  height: 260px;
  display: block;
}
.chart-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.chart-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.375rem;
  vertical-align: middle;
}

/* ---------- Layout para páginas de herramientas ---------- */
.two-col {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.three-col {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .three-col {
    grid-template-columns: 1fr 2fr;
  }
}

/* ---------- Fases de plan de marketing ---------- */
.phase {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.phase-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.phase-num {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}
.phase-head h3 {
  font-size: 1.125rem;
  font-weight: 600;
}
.phase-head .meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 2px;
}
.phase ul {
  margin-left: 2.75rem;
  list-style: disc;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}
.phase ul li {
  margin: 0.5rem 0;
}

/* ---------- Firma de email ---------- */
.sig-preview {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--background);
  padding: 1.5rem;
}
.color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.color-swatch {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.color-swatch.active {
  border-color: var(--foreground);
  transform: scale(1.1);
}
.color-picker {
  width: 2rem;
  height: 2rem;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

/* ---------- Acciones y utilidades ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.stack > * + * {
  margin-top: 1.25rem;
}
.hint {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}
.tool-note {
  margin-top: 1.5rem;
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  background: var(--muted);
  border-radius: 0.5rem;
}
.status-msg {
  font-size: 0.8125rem;
  color: var(--success);
  margin-top: 0.5rem;
  min-height: 1rem;
}

/* ---------- Copiar fila ---------- */
.copy-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin-top: 0.5rem;
}
.copy-row input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--input);
  border-radius: 0.375rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
}

/* ---------- Import widget ---------- */
.import-drop {
  border: 2px dashed var(--border);
  border-radius: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
  background: var(--muted);
  transition: border-color 0.15s, background-color 0.15s;
}
.import-drop.is-drag {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.import-drop p {
  margin: 0.25rem 0;
  font-size: 0.9375rem;
}
.import-mapping {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  margin-top: 0.75rem;
}
@media (min-width: 640px) {
  .import-mapping {
    grid-template-columns: repeat(2, 1fr);
  }
}
.mapping-row {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.mapping-row label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.mapping-row select {
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--input);
  border-radius: 0.375rem;
  background: var(--background);
  font-size: 0.875rem;
}

/* ---------- Tabla de datos ---------- */
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.data-table th,
.data-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table th {
  background: var(--muted);
  font-weight: 600;
}
.data-table td.num,
.data-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tr.total-row td {
  background: var(--muted);
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
}
.badge.a {
  background: #dcfce7;
  color: #166534;
}
.badge.b {
  background: #fef3c7;
  color: #92400e;
}
.badge.c {
  background: #fee2e2;
  color: #991b1b;
}

/* ---------- Constructor de cotización ---------- */
.item-row {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr 90px 110px 110px auto;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.item-row input {
  padding: 0.375rem 0.5rem;
  border: 1px solid var(--input);
  border-radius: 0.375rem;
  font-size: 0.8125rem;
}
.item-row .btn-remove {
  padding: 0.25rem 0.5rem;
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  font-size: 0.75rem;
}

/* ---------- Video showcase ---------- */
.video-showcase {
  width: 100%;
  padding: 80px 24px;
  background: var(--muted);
  margin-top: 80px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.video-header {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}
.video-header h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.video-header p {
  color: var(--muted-foreground);
  font-size: 16px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.video-item {
  position: relative;
  background: #0a0a0a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  aspect-ratio: 16 / 9;
}
.video-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

/* ---------- Utilidades ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Animación de entrada ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.section,
.suite-section,
.tool-page {
  animation: fadeUp 0.8s var(--ease-out) both;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .video-header h3 {
    font-size: 22px;
  }
  .video-showcase {
    padding: 60px 16px;
  }
  .item-row {
    grid-template-columns: 1fr 80px 80px 80px auto;
    gap: 0.375rem;
  }
  .item-row input {
    font-size: 0.75rem;
  }
}

/* ---------- Preferencia de movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero,
  .section,
  .suite-section,
  .tool-page {
    animation: none;
    opacity: 1;
    transform: none;
  }
}