:root {
  --sidebar-width: 20%;
  --top-bar-height-desktop: 8%;
  --top-bar-height-mobile: 65px;
  --bg-main: #f5f7fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafd;
  --bg-soft: #f0f4f9;
  --border-color: #e0e4e8;
  --border-light: #e9ecef;
  --accent-red: #7B1E1E;
  --accent-blue: #4472c4;
  --accent-green: #28a745;
  --accent-orange: #f57c00;
  --text-primary: #1a2c3e;
  --text-secondary: #2c3e50;
  --text-muted: #4a5568;
  --text-light: #718096;
  --text-extra-light: #a0aec0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.08);
  --font-main: "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-serif: 'Lora', serif;
  --font-display: 'Syne', sans-serif;
}

body {
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-main);
}

.about-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2% 4rem;
}

/* ── BANNER BIENVENIDA REDISEÑADO (solo primera visita) ── */
.welcome-banner {
  background: linear-gradient(145deg, #1e3a5f 0%, #2b4b7c 100%);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.2);
  animation: fadeUp 0.5s ease both;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(2px);
}

/* Patrón de fondo más sutil y elegante */
.welcome-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.02) 25%, transparent 25%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px;
  pointer-events: none;
}

/* Línea decorativa superior */
.welcome-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7B1E1E, #4a7db5, #7B1E1E);
  border-radius: 3px 3px 0 0;
}

.welcome-text-group {
  position: relative;
  z-index: 1;
  flex: 1;
}

.welcome-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: inline-block;
  padding: 0.25rem 1rem;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
}

.welcome-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.8rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.welcome-title em {
  font-style: normal;
  color: #a5ccff;
  font-weight: 800;
  background: linear-gradient(135deg, #a5ccff, #c8e0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-subtitle {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  max-width: 550px;
  margin: 0;
  font-weight: 400;
}

.welcome-action-group {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
  flex-shrink: 0;
}

.btn-acceder {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--accent-red);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 12px;
  padding: 1rem 2.2rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  box-shadow: 0 6px 20px rgba(123,30,30,0.3);
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

.btn-acceder::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-acceder:hover::before {
  width: 300px;
  height: 300px;
}

.btn-acceder:hover {
  background: #942525;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(123,30,30,0.4);
  color: white;
  text-decoration: none;
}

.btn-acceder:active {
  transform: translateY(0) scale(1);
}

.btn-acceder-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.btn-acceder:hover .btn-acceder-arrow {
  transform: translateX(5px) rotate(90deg);
}

.welcome-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
  padding-right: 0.5rem;
}

/* Indicador de scroll mejorado */
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  justify-content: center;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.5s ease 0.1s both;
}

.scroll-hint::before,
.scroll-hint::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  max-width: 150px;
}

.scroll-hint i {
  font-size: 1rem;
  color: var(--accent-red);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 2.5rem;
  animation: fadeUp 0.4s ease 0.15s both;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--text-primary);
}

.hero-title em {
  font-style: normal;
  color: var(--accent-red);
  font-weight: 800;
}

.hero-desc {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  font-weight: 500;
}

.hero-badge-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  background: var(--bg-card);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.badge.green { border-color: var(--accent-green); color: var(--accent-green); background: #e8f5e9; }
.badge.blue  { border-color: var(--accent-blue);  color: var(--accent-blue);  background: #e9f0fa; }

/* ── PRINCIPIO FUNDAMENTAL ── */
.principle-banner {
  background: linear-gradient(135deg, var(--accent-red) 0%, #a52828 100%);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(123,30,30,0.2);
  animation: fadeUp 0.4s ease 0.2s both;
}

.principle-banner::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-family: var(--font-serif);
  font-size: 8rem;
  color: rgba(255,255,255,0.1);
  line-height: 1;
  pointer-events: none;
}

.principle-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.principle-text {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-style: italic;
  color: #ffffff;
  line-height: 1.5;
  font-weight: 700;
  margin: 0 0 1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.principle-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ── SECTION LABEL ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ── CINCO CAPAS ── */
.layers-section {
  margin-bottom: 2.5rem;
  animation: fadeUp 0.4s ease 0.25s both;
}

.layers-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.layer-item {
  flex: 1;
  padding: 1.4rem 1rem;
  text-align: center;
  position: relative;
  transition: background 0.2s;
}

.layer-item:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -0.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent-blue);
  z-index: 2;
  background: var(--bg-card);
  padding: 0 0.2rem;
}

.layer-item:hover { background: var(--bg-soft); }

.layer-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.layer-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: block;
}

.layer-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

/* ── COMPONENTES GRID ── */
.components-section {
  margin-bottom: 2.5rem;
  animation: fadeUp 0.4s ease 0.3s both;
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.component-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.2rem 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.component-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-blue);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: left;
}

.component-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue);
}

.component-card:hover::before { transform: scaleX(1); }

.comp-icon {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  display: block;
}

.comp-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

/* ── DOS COLUMNAS ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.4s ease 0.35s both;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.info-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-light);
}

.info-card-title span { color: var(--accent-red); }

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 700;
}

.benefit-list li::before {
  content: '✓';
  font-family: var(--font-mono);
  color: var(--accent-green);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── CONTACTO ── */
.contact-list { display: flex; flex-direction: column; gap: 0.8rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  cursor: pointer;
}

.contact-item:hover { border-color: var(--accent-blue); background: #e9f0fa; transform: translateX(3px); }
.contact-item.whatsapp:hover { border-color: #25D366; background: #e8f8ef; }

.contact-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.contact-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-copy {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-blue);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.15s;
}

.contact-item.whatsapp .contact-copy { color: #25D366; }
.contact-item:hover .contact-copy { opacity: 1; }

/* ── VISIÓN ── */
.impact-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-blue);
  border-radius: 10px;
  padding: 1.8rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.4s ease 0.4s both;
}

.impact-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.impact-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.impact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.impact-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
}

.pill-blue   { background: #e9f0fa; color: var(--accent-blue);   border: 1px solid var(--accent-blue); }
.pill-green  { background: #e8f5e9; color: var(--accent-green);  border: 1px solid var(--accent-green); }
.pill-amber  { background: #fff3e0; color: var(--accent-orange); border: 1px solid var(--accent-orange); }
.pill-red    { background: #fdecea; color: var(--accent-red);    border: 1px solid var(--accent-red); }

/* ── CTA INFERIOR (solo primera visita) ── */
.cta-footer {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.8rem 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.4s ease 0.45s both;
  position: relative;
  overflow: hidden;
}

.cta-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
}

.cta-footer-text {}

.cta-footer-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.cta-footer-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.btn-acceder-footer {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--accent-red);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 0.9rem 2rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(123,30,30,0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-acceder-footer:hover {
  background: #9b2424;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(123,30,30,0.35);
  color: white;
  text-decoration: none;
}

.btn-acceder-footer-arrow {
  transition: transform 0.2s ease;
}
.btn-acceder-footer:hover .btn-acceder-footer-arrow { transform: translateX(3px); }

/* ── FEEDBACK ── */
.feedback-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.4s ease 0.5s both;
}

.feedback-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
}

.feedback-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feedback-subtitle {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
  line-height: 1.6;
  font-weight: 500;
}

.feedback-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.5rem; }
.fb-group { display: flex; flex-direction: column; gap: 0.4rem; }
.fb-group.full { grid-column: 1 / -1; }

.fb-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 700;
}

.fb-input, .fb-select, .fb-textarea {
  background: var(--bg-soft);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
  outline: none;
  font-weight: 500;
}

.fb-input:focus, .fb-select:focus, .fb-textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(68,114,196,0.15);
  background: var(--bg-card);
}

.fb-textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.fb-select { cursor: pointer; }

.btn-send {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent-blue);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-send:hover { background: #345da1; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-send:active { transform: translateY(0); }

.feedback-footer-note {
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.toast {
  display: none;
  align-items: center;
  gap: 0.8rem;
  background: #e8f5e9;
  border: 1px solid var(--accent-green);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #1e7e34;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.toast.visible { display: flex; }

/* ── VERSION BAR ── */
.version-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: 1rem;
}

.version-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.version-text strong { color: var(--text-primary); font-weight: 800; }
.powered-by {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.powered-by span { color: var(--accent-red); font-weight: 800; }

.btn-registrarse-topbar:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  color: #5a1515;
  text-decoration: none;
}

/* ── ANIMACIONES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .component-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .about-page { padding: 1.5rem 1.5%; }

  .welcome-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
  }

  .welcome-action-group {
    align-items: flex-start;
    width: 100%;
  }

  .btn-acceder {
    width: 100%;
    justify-content: center;
  }

  .welcome-hint {
    text-align: center;
    width: 100%;
    padding-right: 0;
  }

  .cta-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-acceder-footer { width: 100%; justify-content: center; }

  .hero { grid-template-columns: 1fr; }
  .hero-badge-group { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .layers-flow { flex-direction: column; }
  .layer-item:not(:last-child)::after {
    content: '↓';
    right: 50%;
    top: auto;
    bottom: -0.6rem;
    transform: translateX(50%);
  }
  .component-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .feedback-grid { grid-template-columns: 1fr; }
  .fb-group.full { grid-column: 1; }
  .version-bar { flex-direction: column; gap: 0.8rem; text-align: center; }
}

@media (max-width: 480px) {
  .welcome-banner {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .welcome-title {
    font-size: 1.4rem;
  }

  .btn-acceder {
    padding: 0.9rem 1.5rem;
    font-size: 0.8rem;
  }

  .hero-title { font-size: 2rem; }
  .component-grid { grid-template-columns: 1fr; }
  .btn-send { width: 100%; justify-content: center; }
  .btn-acceder { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

/* ── BOTÓN STICKY FLOTANTE ── */
.sticky-login {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  animation: fadeUp 0.6s ease 0.3s both;
}

.sticky-login-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--accent-red);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 0.85rem 1.6rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(123,30,30,0.35), 0 1px 4px rgba(0,0,0,0.1);
  transition: all 0.25s ease;
  border: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
}

.sticky-login-btn:hover {
  background: #9b2424;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(123,30,30,0.45), 0 2px 8px rgba(0,0,0,0.12);
  color: white;
  text-decoration: none;
}

.sticky-login-btn:active {
  transform: translateY(-1px) scale(1);
}

.sticky-login-icon {
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.sticky-login-btn:hover .sticky-login-icon {
  transform: translateX(2px);
}

.sticky-login-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-extra-light);
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
  font-weight: 600;
}

/* Pulso suave para llamar atención al inicio */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(123,30,30,0.35), 0 1px 4px rgba(0,0,0,0.1); }
  50%       { box-shadow: 0 4px 28px rgba(123,30,30,0.55), 0 1px 8px rgba(0,0,0,0.15); }
}

.sticky-login-btn {
  animation: pulse-glow 3s ease-in-out 1.5s 3;
}

/* El sticky se oculta en pantallas muy pequeñas donde ya hay CTA prominente */
@media (max-width: 480px) {
  .sticky-login {
    bottom: 1.2rem;
    right: 1.2rem;
  }
  .sticky-login-btn {
    padding: 0.75rem 1.2rem;
    font-size: 0.75rem;
  }
}

/* ── BOTÓN EN TOP HEADER (inyectado vía JS) ── */
.header-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: white;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  padding: 0.45rem 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
}

.header-login-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
  color: white;
  text-decoration: none;
}