/* Estilos comunes a todas las webs de demostración */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

/* Franja de aviso: web de demostración */
.demo-bar {
  background: #111;
  color: #f1f1f1;
  font: 500 .82rem/1.4 "Inter", system-ui, sans-serif;
  text-align: center;
  padding: .5rem 1rem;
}

.demo-bar a {
  color: #c8f169;
}

/* Cabecera */
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.top nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: .93rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 .95rem/1 "Inter", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}

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

.btn-sm {
  padding: .55rem 1rem;
  font-size: .88rem;
}

.btn-block {
  width: 100%;
}

.btn-line {
  border-color: currentColor;
  color: inherit;
  background: transparent;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.8rem;
}

/* Bloques */
.block {
  padding: 4.5rem 0;
}

.block-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 .6rem;
  line-height: 1.2;
}

.block-lead {
  margin: 0 0 2rem;
  opacity: .8;
  max-width: 640px;
}

/* Formularios */
.demo-form label {
  display: block;
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: .9rem;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  display: block;
  width: 100%;
  margin-top: .3rem;
  padding: .65rem .8rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font: inherit;
  font-size: .95rem;
  background: #fafafa;
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  outline: 2px solid rgba(0, 0, 0, .15);
  border-color: transparent;
}

/* Pie */
.foot {
  padding: 1.6rem 0;
  font-size: .85rem;
  text-align: center;
  background: #111;
  color: #ccc;
}

.foot a {
  color: #c8f169;
}

/* Aviso emergente */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 150%);
  max-width: min(92vw, 520px);
  background: #111;
  color: #fff;
  padding: .9rem 1.2rem;
  border-radius: 12px;
  font: 500 .92rem/1.4 "Inter", system-ui, sans-serif;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  transition: transform .3s ease;
  z-index: 100;
  white-space: pre-line;
}

.toast.show {
  transform: translate(-50%, 0);
}

@media (max-width: 640px) {
  .top nav a:not(.btn) {
    display: none;
  }

  .block {
    padding: 3.2rem 0;
  }
}
