* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: #fff8ef;
  color: #0f2a59;
}

.hero {
  min-height: 220px;
  background: linear-gradient(90deg, #0062c7 0%, #ff9800 52%, #ffd54f 100%);
  display: flex;
  align-items: end;
  justify-content: center;
  border-bottom: 8px solid #ff8f00;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.hero__overlay {
  width: min(1100px, 92%);
  padding: 1.25rem 0;
  color: #fff;
  display: grid;
  justify-items: start;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
}

.site-logo {
  width: clamp(130px, 18vw, 220px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
}

.hero p {
  margin: 0.35rem 0 0;
  font-weight: 600;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  background: #ff9800;
  padding: 0.7rem;
  border-bottom: 4px solid #ff8f00;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  transition: 0.2s ease;
}

.main-nav a:hover {
  background: #ffd54f;
  color: #6d2f00;
}

.language-floating {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 1001;
}

.language-toggle {
  min-width: 42px;
  height: 30px;
  border-radius: 12px;
  padding: 0 10px;
  font-size: 0.78rem;
  background: #f1f1f1;
  color: #333;
  border: 1px solid #dedede;
}

.language-menu {
  margin-top: 8px;
  background: #f1f1f1;
  border: 1px solid #dedede;
  border-radius: 8px;
  padding: 6px;
  display: grid;
  gap: 4px;
}

.lang-btn {
  min-width: 52px;
  padding: 0.35rem 0.5rem;
  background: transparent;
  color: #111;
  font-size: 0.82rem;
}

.lang-btn.active {
  background: #ffffff;
  color: #000;
}

.content {
  width: min(1100px, 92%);
  margin: 1.4rem auto 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(6, 39, 94, 0.13);
  padding: 1rem;
  border-top: 8px solid #ffb300;
}

.card h2 {
  margin: 0 0 0.45rem;
  color: #ff8f00;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.section-subtitle {
  margin: 0 0 0.8rem;
  color: #4a5568;
  font-size: 0.92rem;
}

.parte-diario-custom-text {
  margin: 0 0 0.7rem;
  text-align: center;
  font-weight: 700;
  color: #6d2f00;
  border: 1px dashed #d6b38c;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: #fff8ef;
}

.image-frame {
  background: #f7fafc;
  border: 2px dashed #b3c3d7;
  border-radius: 10px;
  overflow: hidden;
  min-height: 170px;
  display: grid;
  place-items: center;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame iframe {
  width: 100%;
  min-height: 300px;
  border: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chips a {
  background: #ff9800;
  color: #532100;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.chips a:hover {
  border-color: #6d2f00;
  transform: translateY(-1px);
}

.actividades-section {
  grid-column: 1 / -1;
}

.activity-jump-nav {
  margin-bottom: 0.25rem;
}

.activity-block {
  border-top: 2px solid #ffe0b2;
  padding-top: 1rem;
  margin-top: 1rem;
  scroll-margin-top: 5rem;
}

.activity-block h3 {
  margin: 0 0 0.5rem;
  color: #0062c7;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.activity-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
}

.activity-status-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.activity-status-badge--active {
  background: #c6f6d5;
  color: #22543d;
}

.activity-status-badge--suspended {
  background: #fed7d7;
  color: #822727;
}

.activity-status-badge--tracks {
  background: #bee3f8;
  color: #2c5282;
}

.activity-block h4 {
  margin: 0.85rem 0 0.35rem;
  color: #ff8f00;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.activity-block p {
  margin: 0 0 0.55rem;
  line-height: 1.55;
  font-size: 0.92rem;
}

.activity-notice {
  margin: 0.35rem 0 0.55rem;
  padding: 0.45rem 0.6rem;
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.activity-block .button-link {
  margin-top: 0.35rem;
}

.button-link,
button {
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  background: #ff9800;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button-link:hover,
button:hover {
  filter: brightness(1.08);
}

button.secondary {
  background: #0062c7;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-links a {
  text-decoration: none;
  color: #1a202c;
  font-weight: 700;
  background: #edf2f7;
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  background: #ff9800;
  color: #fff;
}

.icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.form-grid {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.95rem;
}

.admin {
  grid-column: 1 / -1;
  border-top-color: #ffd54f;
}

.activities-admin-list {
  display: grid;
  gap: 0.75rem;
}

.activity-admin-row {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem;
  margin: 0;
}

.activity-admin-row legend {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0062c7;
  padding: 0 0.25rem;
}

.activity-admin-fields {
  display: grid;
  gap: 0.5rem;
}

.label-inline {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.label-inline input[type="checkbox"] {
  width: auto;
  margin: 0;
}

@media (min-width: 640px) {
  .activity-admin-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-admin-fields label:last-child {
    grid-column: 1 / -1;
  }
}

.status-message {
  margin: 0.8rem 0 0;
  min-height: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.status-message.error {
  color: #e53e3e;
}

.status-message.ok {
  color: #ff9800;
}

.chat-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9800, #ffd54f);
  color: #fff;
  font-size: 2.2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  z-index: 1000;
}

.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 122px;
  width: min(390px, calc(100vw - 20px));
  max-height: 76vh;
  display: grid;
  grid-template-rows: auto auto 1fr;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #ffb300;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.chat-header {
  background: #ff9800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.7rem;
}

.chat-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.1rem 0.3rem;
  min-width: auto;
  position: relative;
  z-index: 2;
}

.chat-menu {
  padding: 0.6rem;
  border-bottom: 1px solid #d9e2f1;
  background: #f7fbff;
}

.chat-menu-title {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: #ff8f00;
}

.faq-list {
  display: grid;
  gap: 0.4rem;
}

.faq-item {
  text-align: left;
  background: #ffffff;
  color: #0f2a59;
  border: 1px solid #c7d7ef;
  border-radius: 7px;
  padding: 0.45rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.faq-item:hover {
  border-color: #ffb300;
}

.faq-pagination {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

#faq-page-indicator {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ff8f00;
}

.chat-body {
  padding: 0.7rem;
  overflow-y: auto;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.chat-message {
  max-width: 92%;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.35;
}

.chat-message.user {
  align-self: flex-end;
  background: #ff9800;
  color: #fff;
}

.chat-message.bot {
  align-self: flex-start;
  background: #e8f1ff;
  border: 1px solid #c5d8f7;
  color: #0f2a59;
}

.hidden,
.chat-widget.hidden {
  display: none !important;
}

@media (max-width: 620px) {
  .main-nav {
    justify-content: start;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .chat-widget {
    right: 10px;
    width: calc(100vw - 20px);
    bottom: 112px;
  }
}
