@font-face {
  font-family: "jersey10regular";
  src: url("jersey10regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "jersey10regular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #FCA54C; /* 0xFFFCA54C */
  color: #492E06; /* 0xFF492E06 */
}

.app-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background-color: #ddcf8e; /* color secundario 0xFFB68B6C */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.topbar-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-link {
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background-color: transparent;
  color: #492E06;
  font-family: inherit;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.menu-link:hover {
  background-color: rgba(73, 46, 6, 0.12);
  transform: translateY(-1px);
}

.menu-link.active {
  background-color: #492E06;
  color: #FCA54C;
}

.main-container {
  flex: 1;
  padding: 1.5rem 1rem 2rem;
  display: flex;
  justify-content: center;
  
}

.section {
  display: none;
  width: 100%;
  max-width: 960px;
}

.section.active {
  display: block;
}

.section-inner {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}

.section-title {
  margin: 0 0 1rem;
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Portada grid 2x2 */
.portada-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.portada-cell {
  min-height: 220px;
  border-radius: 0.85rem;
  background-color: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(73, 46, 6, 0.2);
}

.portada-image-cell {
  overflow: hidden;
}

.portada-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portada-text-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.portada-text-cell p {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.25;
}

#section-portada .section-inner {
  background-color: #ddcf8e;
  margin-bottom: 5%;
}

/* Acordeón Sobre la aplicación */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.accordion-item {
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: rgba(182, 139, 108, 0.85);
  color: #492E06;
}

.accordion-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.7rem 1rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-summary::-webkit-details-marker {
  display: none;
}

.accordion-summary::after {
  content: "+";
  font-size: 1.2rem;
}

.accordion-item[open] .accordion-summary::after {
  content: "−";
}

.accordion-panel {
  padding: 0 1rem 0.8rem;
  font-size: 0.95rem;
}

.privacy-policy {
  white-space: pre-line;
  font-family: inherit;
  line-height: 1.55;
  background-color: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(73, 46, 6, 0.2);
  border-radius: 0.6rem;
  padding: 0.9rem 1rem;
  max-height: 60vh;
  overflow: auto;
}

/* Responsive */
@media (max-width: 600px) {
  .topbar {
    flex-direction: row;
  }

  .topbar-menu {
    gap: 0.25rem;
  }

  .menu-link {
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
  }

  .section-inner {
    padding: 1rem;
  }

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

  .portada-grid {
    grid-template-columns: 1fr;
  }

  .portada-cell {
    min-height: 180px;
  }

  .portada-text-cell p {
    font-size: 1.15rem;
  }
}

