/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
:root { --page-bg: #ac1f23; --text-color: #fff; }
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--page-bg);
  color: var(--text-color);
}
.page { max-width: 1200px; margin: 0 auto; padding: 16px; }

/* Logo */
.logo-row { display: grid; place-items: center; padding: 12px 0; }
.logo { max-width: 360px; width: min(60vw, 360px); height: auto; }
.logo-small { max-width: 50px; height: auto; margin: 0 8px; }

/* ===== Layout de secciones ===== */
.triple-row {
  display: grid;
  grid-template-columns: 20% 50% 30%;
  gap: 16px;
  background: var(--page-bg);
  padding: 16px;
  margin: 8px 0;
  border-radius: 12px;
}
.triple-row.reverse { grid-template-columns: 30% 50% 20%; }

.col img,
.col video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: var(--page-bg);
}
.col-2,
.col-b {
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 8px;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.5;
}
.swap-target { cursor: pointer; }

@media (max-width: 900px) {
  .triple-row { grid-template-columns: 1fr !important; }
  .col-2, .col-b { justify-items: start; text-align: left; }
}

/* ===== Responsive Upgrade (sin menú) ===== */

/* Tipografía fluida */
html { font-size: 100%; }
h1 { font-size: clamp(1.75rem, 2.5vw + 1rem, 3rem); }
h2 { font-size: clamp(1.25rem, 1.5vw + 0.9rem, 2rem); }
p, li { font-size: clamp(1rem, 0.5vw + 0.9rem, 1.125rem); line-height: 1.6; }

/* Contenedor y espaciado */
:root { --space: clamp(0.75rem, 1.2vw, 1.5rem); }
.container { max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
section { padding-block: calc(var(--space) * 2); }
.stack > * + * { margin-block-start: var(--space); }

/* Utilidades de grid */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }

/* Tablas seguras en móvil */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; }

/* Breakpoints genéricos */
@media (max-width: 1024px) { /* tablet horizontal */ }
@media (max-width: 768px)  { /* tablet vertical */ }
@media (max-width: 480px)  { /* móvil pequeño */ }

/* Accesibilidad: elementos táctiles */
a, button { min-height: 44px; min-width: 44px; }

.header-title {
  margin-top: 8px;
  font-size: 1.5rem;
  text-align: center;
  color: var(--text-color);
}

.footer-text {
  margin: 0 12px;
  font-size: 1rem;
  text-align: center;
  color: var(--text-color);
}

.gradient-1 {
  background: linear-gradient(to right, #ffffff, #ffd86b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.gradient-2 {
  background: linear-gradient(to right, #ffd86b, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}
