/* --- Variables globales y Reset --- */
:root {
  --bg-main: #141828;
  --text-muted: #c3c3cc;
  --text-slate-400: #9aa0a6;
  --text-slate-500: #5f6368;
  --text-slate-600: #475569;
  --blue-primary: #3b82f6;
  --blue-hover: #2563eb;
  --bg-box: rgba(15, 23, 42, 0.5);

  /* Definición de fuentes modernas */
  --font-display: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-muted);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  line-height: 1.7; /* Más aire entre líneas globales */
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- Header --- */
.site-header {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px; /* Más aire en el header superior */
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.brand-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.brand-logo-container {
  display: block;
}

.brand-logo-svg {
  display: block;
  height: 32px;
  width: auto;
}

.header-tag {
  font-size: 11px;
  color: var(--text-slate-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 2px;
}

/* --- Contenido Principal --- */
.main-container {
  width: 100%;
  max-width: 780px; /* Un poco más ancho para monitores */
  margin: 0 auto;
  padding: 60px 24px; /* Más aire arriba y abajo en monitores */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

/* Título Principal */
.main-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 40px; /* Más separación inicial */
}

@media (min-width: 768px) {
  .main-title {
    font-size: 46px;
    margin-bottom: 48px; /* Más separación en monitores grandes */
  }
}

/* Contenedor de mensajes */
.message-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  margin: 0 auto;
  gap: 16px; /* Aire consistente entre los bloques de texto */
  border-bottom: 0.5px solid white;
  padding-bottom: 4rem;
}

.text-principal {
  font-size: 27px;
  color: #e2e8f0;
  font-weight: 500;
  line-height: 1.4;
}

.highlight {
  color: #ffffff;
  font-weight: 600;
}

.highlight-blue {
  color: #60a5fa;
  font-weight: 600;
}

/* Transición de dominios (Por defecto Escritorio/Tablet) */
.domain-transition {
  margin: 32px 0 50px 0; /* Más espacio en escritorio */
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 16px; /* Más aire entre el texto y la flecha */
  font-size: 24px; /* Un poco más grande para destacar con el aire */
  font-weight: 600;
  width: 100%;
  border-bottom: 0.5px solid white;
  padding-bottom: 50px;
}

.old-domain {
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.new-domain {
  color: #60a5fa;
  letter-spacing: 0.02em;
  padding: 6px 14px; /* Botón de dominio nuevo más holgado */
  background-color: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 6px;
  white-space: nowrap;
}

.transition-arrow {
  width: 20px;
  height: 20px;
  color: var(--blue-primary);
  animation: pulse-subtle 3s infinite ease-in-out;
  display: inline-block;
}

/* Control interno de las flechas del SVG */
.arrow-vertical {
  display: none;
}
.arrow-horizontal {
  display: block;
}

/* --- Caja de Redirección (Card) --- */
.redirect-box {
  margin: 56px auto 0 auto; /* Más aire separando el texto de la card */
  background-color: var(--bg-box);
  padding: 36px; /* Card interna con mucho más aire */
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.25);
}

.redirect-label {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-slate-400);
  margin-bottom: 16px;
}

.counter-wrapper {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 32px; /* Más separación interna hacia los botones */
  letter-spacing: -0.01em;
}

.counter-number {
  color: var(--blue-primary);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 700;
}

/* Contenedor horizontal de acciones por defecto */
.redirect-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
}

/* Botón principal */
.btn-redirect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding: 16px 24px; /* Botón con más padding, más imponente */
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--blue-primary);
  border-radius: 12px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}

.btn-redirect:hover {
  background-color: var(--blue-hover);
}

.btn-redirect:active {
  transform: scale(0.98);
}

.btn-icon {
  width: 16px;
  height: 16px;
  margin-left: 8px;
}

/* Botón de Pausa */
.btn-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; /* Un poco más grande para emparejar visualmente con la altura del nuevo padding */
  height: 56px;
  min-width: 56px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

.btn-pause:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-pause.paused {
  background-color: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.btn-icon-pause {
  width: 20px;
  height: 20px;
}

.hidden {
  display: none !important;
}

/* --- Footer --- */
.site-footer {
  width: 100%;
  text-align: center;
  padding: 40px 24px; /* Más aire al final de la página */
  font-size: 13px;
  color: rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* --- Animaciones --- */
@keyframes pulse-subtle {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Evita que los nombres comerciales se rompan en fragmentos */
.no-break {
  white-space: nowrap;
}

/* Estilos para el bloque de evolución */
.text-evolucion {
  font-size: 20px;
  color: #cbd5e1;
  line-height: 1.9; /* Más interlineado en la lectura central */
  text-align: center;
}

.text-evolucion br {
  display: inline;
  content: normal;
}

.parrafo2 {
  margin-top: 0.7rem; /* Más separación entre los dos párrafos informativos */
}

/* --- CONSULTAS DE MEDIOS PARA DISPOSITIVOS MÓVILES --- */
@media (max-width: 640px) {
  /* Contenedor con más aire vertical en móvil */
  .main-container {
    padding: 40px 20px;
  }

  /* Transición de dominios verticalizada con un aire drástico arriba y abajo */
  .domain-transition {
    flex-direction: column;
    gap: 16px;
    margin: 48px 0 56px 0; /* Aire extra considerable para desahogar la vista móvil */
    padding-bottom: 70px !important;
  }

  /* Cambia la flecha horizontal por la vertical apuntando hacia abajo */
  .arrow-horizontal {
    display: none;
  }
  .arrow-vertical {
    display: block;
  }

  /* Fuerza que los dominios ocupen su línea completa sin romperse */
  .old-domain,
  .new-domain {
    display: inline-block;
    width: auto;
  }

  /* Acciones en columna invertida para que la pausa se muestre primero (arriba) */
  .redirect-actions {
    flex-direction: column-reverse;
    gap: 16px; /* Más separación entre los dos botones móviles */
  }

  /* Hacemos que ambos botones cubran el ancho completo del contenedor */
  .btn-redirect {
    width: 100%;
    padding: 16px 20px;
  }

  .btn-pause {
    width: 100%;
    height: 54px;
  }

  /* Más separación interna de la card en entornos móviles */
  .redirect-box {
    padding: 32px 24px;
    margin-top: 48px;
  }
}
