:root {
  --rojo-torero: #b3001b;
  --negro-tela: #1a1a1a;
  --dorado-capote: #f5c542;
  --crema-sandia: #fff6e6;
  --gris-suave: #f4f4f4;
  --fuente-principal: "Poppins", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--fuente-principal);
  background: radial-gradient(circle at top left, rgba(245, 197, 66, 0.22), transparent 55%),
    radial-gradient(circle at bottom right, rgba(179, 0, 27, 0.28), transparent 60%),
    var(--crema-sandia);
  color: var(--negro-tela);
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

body.celebration-mode {
  overflow: hidden;
}

body.celebration-mode::before,
body.celebration-mode::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1500;
  opacity: 0.4;
  mix-blend-mode: screen;
}

body.celebration-mode::before {
  background: radial-gradient(circle at 20% 20%, rgba(245, 197, 66, 0.45), transparent 55%),
    radial-gradient(circle at 80% 35%, rgba(255, 112, 67, 0.35), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(179, 0, 27, 0.4), transparent 65%);
  animation: sparkleDrift 18s linear infinite;
}

body.celebration-mode::after {
  background: repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.15) 0,
      rgba(255, 255, 255, 0.15) 8px,
      transparent 8px,
      transparent 16px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.1) 0,
      rgba(255, 255, 255, 0.1) 10px,
      transparent 10px,
      transparent 20px
    );
  animation: shimmer 12s linear infinite;
}

a {
  color: inherit;
}

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

header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(26, 26, 26, 0.95);
  box-shadow: 0 10px 25px rgba(26, 26, 26, 0.35);
  color: white;
  backdrop-filter: blur(6px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.primary-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus {
  background: rgba(245, 197, 66, 0.2);
  transform: translateY(-2px);
}

.primary-nav .nav-link--quiz {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.9), rgba(179, 0, 27, 0.9));
  color: var(--negro-tela);
  font-weight: 700;
  padding: 0.5rem 1rem;
  box-shadow: 0 12px 25px rgba(179, 0, 27, 0.25);
}

.primary-nav .nav-link--quiz:hover,
.primary-nav .nav-link--quiz:focus {
  color: var(--negro-tela);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 35px rgba(179, 0, 27, 0.3);
}

.primary-nav .nav-link--quiz:focus-visible {
  outline: 3px solid rgba(245, 197, 66, 0.6);
  outline-offset: 3px;
}

.nav-link--quiz__icon {
  font-size: 1.1rem;
}

.nav-link--quiz__label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: white;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-toggle__icon {
  position: relative;
  width: 20px;
  height: 2px;
  background: currentColor;
  display: inline-block;
  transition: transform 0.3s ease;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before,
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  top: 0;
  transform: rotate(90deg);
}

.nav-toggle__label {
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.hero {
  display: grid;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  color: var(--rojo-torero);
}

.hero p {
  margin: 0 auto;
  max-width: 680px;
  font-size: 1.1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--rojo-torero);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 15px 30px rgba(179, 0, 27, 0.25);
}

.cta-button:hover,
.cta-button:focus {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(179, 0, 27, 0.32);
}

section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--rojo-torero);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 680px;
  margin-bottom: 2rem;
}

.crew-photo {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.crew-photo-img {
  max-width: 600px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(26, 26, 26, 0.18);
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: white;
  border-radius: 18px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(26, 26, 26, 0.12);
  border: 2px solid rgba(179, 0, 27, 0.08);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.15), transparent 60%);
  pointer-events: none;
}

.card h3 {
  margin-top: 0;
  color: var(--negro-tela);
  font-size: 1.3rem;
}

.card p {
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 15px 25px rgba(26, 26, 26, 0.15);
  min-height: 350px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(0deg, rgba(26, 26, 26, 0.85), transparent 65%);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.team-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.team-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem auto 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.team-toggle__icon {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid currentColor;
  position: relative;
  transition: transform 0.2s ease;
}

.team-toggle__icon::before,
.team-toggle__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.team-toggle__icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.team-toggle__icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.team-toggle--collapsed .team-toggle__icon {
  transform: none;
}

.team-toggle--collapsed .team-toggle__icon::before {
  transform: translate(-50%, -50%) rotate(0deg);
}

.team-toggle--collapsed .team-toggle__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.team-card {
  background: white;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 18px 35px rgba(26, 26, 26, 0.12);
}

.team-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 4px solid var(--dorado-capote);
  object-fit: cover;
  background: linear-gradient(135deg, rgba(179, 0, 27, 0.4), rgba(245, 197, 66, 0.4));
}

.contact-section {
  background: rgba(255, 255, 255, 0.85);
}

form {
  display: grid;
  gap: 1rem;
  max-width: 540px;
  margin: 0 auto;
}

label {
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(26, 26, 26, 0.1);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--rojo-torero);
  box-shadow: 0 0 0 3px rgba(179, 0, 27, 0.15);
  outline: none;
}

button {
  background: var(--dorado-capote);
  color: var(--negro-tela);
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
button:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(245, 197, 66, 0.35);
}

.quiz-section {
  background: radial-gradient(circle at top, rgba(179, 0, 27, 0.2), transparent 70%),
    rgba(255, 255, 255, 0.9);
}

.quiz-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 45px rgba(26, 26, 26, 0.15);
}

.quiz-progress {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rojo-torero);
  margin-bottom: 1rem;
}

#question-text {
  margin-top: 0;
  margin-bottom: 1rem;
}

.quiz-option {
  display: block;
  margin-bottom: 0.5rem;
  background: rgba(245, 197, 66, 0.15);
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.quiz-option input[type="radio"] {
  margin-right: 0.5rem;
}

.quiz-option:hover {
  transform: translateX(4px);
  background: rgba(245, 197, 66, 0.3);
}

.feedback {
  font-weight: 600;
  margin-top: 0.5rem;
}

.feedback.correct {
  color: var(--rojo-torero);
}

.feedback.incorrect {
  color: #a53100;
}

.hint-button,
.next-button {
  margin-top: 0.75rem;
}

.hint-button {
  background: rgba(179, 0, 27, 0.15);
  color: var(--rojo-torero);
  border: 2px dashed var(--rojo-torero);
}

.hint-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hint-text {
  margin: 0.5rem 0 0;
  font-style: italic;
  color: #633200;
  background: rgba(245, 197, 66, 0.2);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
}

.error-log {
  margin-top: 1.5rem;
  background: rgba(179, 0, 27, 0.08);
  border-radius: 14px;
  padding: 1rem;
  font-size: 0.95rem;
}

.error-log ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.error-log li {
  margin-bottom: 0.35rem;
}

.secret-date {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: radial-gradient(circle at 20% 20%, rgba(245, 197, 66, 0.9), rgba(179, 0, 27, 0.9));
  color: white;
  text-align: center;
  z-index: 2000;
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.35);
  animation: celebrationFade 0.8s ease-out forwards;
}

.secret-date--visible {
  display: flex;
}

.secret-date[hidden] {
  display: none;
}

.secret-date__content {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  animation: celebrationPop 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.secret-date__headline {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 25px rgba(0, 0, 0, 0.45), 0 0 12px rgba(245, 197, 66, 0.85);
  animation: celebrationGlow 1.6s ease-in-out infinite alternate;
}

.secret-date__details {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 2.1rem);
  font-weight: 600;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
}

.confetti {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.45));
  animation: confettiSwing 1.6s ease-in-out infinite alternate;
}

.confetti--reverse {
  animation-direction: alternate-reverse;
}

@keyframes celebrationFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes celebrationPop {
  0% {
    transform: scale(0.8) rotate(-2deg);
  }
  60% {
    transform: scale(1.05) rotate(2deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

@keyframes celebrationGlow {
  0% {
    text-shadow: 0 0 12px rgba(245, 197, 66, 0.65), 0 0 30px rgba(179, 0, 27, 0.4);
  }
  100% {
    text-shadow: 0 0 22px rgba(255, 255, 255, 0.85), 0 0 35px rgba(245, 197, 66, 0.9);
  }
}

@keyframes confettiSwing {
  0% {
    transform: translateY(-10px) rotate(-6deg);
  }
  100% {
    transform: translateY(10px) rotate(6deg);
  }
}

@keyframes sparkleDrift {
  0% {
    transform: rotate(0deg) scale(1);
  }
  100% {
    transform: rotate(360deg) scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    transform: translate3d(-10%, -10%, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(10%, 10%, 0) rotate(360deg);
  }
}

.quiz-completed {
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

footer {
  background: var(--negro-tela);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 2rem 1rem;
}

footer p {
  margin: 0.5rem 0;
}

footer a {
  color: var(--dorado-capote);
  text-decoration: none;
}

.diwo-chatbot {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: min(320px, 90vw);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(26, 26, 26, 0.2);
  border: 2px solid rgba(179, 0, 27, 0.15);
  overflow: hidden;
  z-index: 1000;
}

.diwo-chatbot__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(179, 0, 27, 0.9), rgba(245, 197, 66, 0.85));
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.diwo-chatbot__identity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.diwo-chatbot__avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.1rem;
}

.diwo-chatbot__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  margin-left: auto;
  flex-shrink: 0;
  touch-action: manipulation;
}

.diwo-chatbot__close:hover,
.diwo-chatbot__close:focus {
  background: rgba(0, 0, 0, 0.35);
  transform: rotate(90deg);
}

.diwo-chatbot__close:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.diwo-chatbot__body {
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  max-height: clamp(200px, 50vh, 320px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.diwo-chatbot__messages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.diwo-chatbot__message {
  margin: 0;
  font-weight: 600;
  color: var(--negro-tela);
  animation: diwo-fade 0.6s ease;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(179, 0, 27, 0.12);
  max-width: 85%;
  box-shadow: 0 8px 18px rgba(26, 26, 26, 0.08);
}

.diwo-chatbot__message--bot {
  align-self: flex-start;
  background: linear-gradient(
    135deg,
    rgba(179, 0, 27, 0.1),
    rgba(245, 197, 66, 0.25)
  );
  border-color: rgba(179, 0, 27, 0.3);
}

.diwo-chatbot__message--user {
  align-self: flex-end;
  background: rgba(179, 0, 27, 0.85);
  color: white;
  border-color: rgba(179, 0, 27, 0.85);
}

.diwo-chatbot__form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(179, 0, 27, 0.15);
}

.diwo-chatbot__input {
  flex: 1;
  border: 1px solid rgba(179, 0, 27, 0.2);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.diwo-chatbot__input:focus {
  border-color: rgba(179, 0, 27, 0.55);
  box-shadow: 0 0 0 3px rgba(179, 0, 27, 0.15);
}

.diwo-chatbot__send {
  border: none;
  background: linear-gradient(135deg, rgba(179, 0, 27, 0.95), rgba(245, 197, 66, 0.9));
  color: white;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.diwo-chatbot__send:hover,
.diwo-chatbot__send:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(179, 0, 27, 0.25);
}

.diwo-chatbot__send:active {
  transform: translateY(0);
  box-shadow: none;
}

.diwo-chatbot__launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(179, 0, 27, 0.95), rgba(245, 197, 66, 0.9));
  color: white;
  box-shadow: 0 18px 45px rgba(26, 26, 26, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 999;
}

.diwo-chatbot__launcher:hover,
.diwo-chatbot__launcher:focus {
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(179, 0, 27, 0.3);
}

.diwo-chatbot__launcher:focus {
  outline: 3px solid rgba(179, 0, 27, 0.35);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes diwo-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nav-fade-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .team-grid--collapsible.is-collapsed {
    display: none;
  }

  .team-grid--collapsible {
    margin-top: 0.5rem;
  }

  .team-toggle {
    display: inline-flex;
  }
}

@media (min-width: 769px) {
  .team-grid--collapsible.is-collapsed {
    display: grid;
  }
}

@media (max-width: 1100px) {
  .navbar {
    padding: 0.75rem 1.25rem;
  }

  .hero {
    padding: 4.5rem 1.5rem 3rem;
  }

  .section-inner {
    max-width: 960px;
  }
}

@media (max-width: 900px) {
  header {
    position: sticky;
  }

  .navbar {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    margin-top: 0.5rem;
    background: rgba(26, 26, 26, 0.94);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
    justify-content: flex-start;
  }

  .primary-nav.primary-nav--open {
    display: flex;
    animation: nav-fade-in 0.25s ease;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .primary-nav li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .primary-nav a {
    display: block;
    padding: 0.9rem 0.25rem;
  }

  .primary-nav .nav-link--quiz {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .hero {
    text-align: left;
    padding: 4rem 1.25rem 2.5rem;
  }

  .hero p {
    margin: 0;
  }
}

@media (max-width: 720px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  .cta-button {
    width: 100%;
  }

  .quiz-card,
  .card,
  .team-card {
    padding: 1.5rem;
  }

  .quiz-card {
    padding: 1.75rem;
  }
}

@media (max-width: 600px) {
  section {
    padding: 3.25rem 1.25rem;
  }

  .hero {
    padding: 3.5rem 1.25rem 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .diwo-chatbot {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
    border-radius: 22px;
  }

  .diwo-chatbot__launcher {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
  }

  footer {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 520px) {
  .diwo-chatbot__form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .diwo-chatbot__send {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .diwo-chatbot {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    border-radius: 20px;
  }

  .diwo-chatbot__launcher {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }

  .diwo-chatbot__header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .diwo-chatbot__identity {
    justify-content: center;
    text-align: center;
  }
}
