#app {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--bg-panel);
  border: 4px solid var(--manga-black);
  border-radius: 0;
  box-shadow: 
    12px 12px 0 rgba(0, 0, 0, 0.3),
    inset 0 0 0 8px var(--bg-panel),
    inset 0 0 0 12px var(--manga-black);
  position: relative;
}

/* Esquinas decorativas estilo manga */
#app::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 2px dashed var(--manga-gray);
  pointer-events: none;
  opacity: 0.3;
}

/* Patrón de fondo estilo papel manga */
#app::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 2px 2px, rgba(0,0,0,0.02) 1px, transparent 0);
  background-size: 30px 30px;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

.header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--manga-gray);
}

.section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-main);
  border: 3px solid var(--manga-black);
  border-radius: 0;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

/* Decoración manga en las secciones */
.section::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 30px;
  height: 30px;
  background: var(--manga-black);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.section::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 30px;
  height: 30px;
  background: var(--manga-black);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.section-title {
  font-size: 2rem;
  color: var(--manga-black);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  padding-bottom: 1rem;
}

/* Línea decorativa bajo el título - estilo manga */
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: var(--manga-black);
  box-shadow: 0 6px 0 var(--manga-black);
}

/* Estrellas decorativas en los títulos - REMOVED */
.section-title::before {
  display: none;
}

/* Responsive Design - Modern Devices (2024-2025) */

/* Tablets & Foldable Open (iPad, Galaxy Z Fold open) */
@media (max-width: 884px) {
  #app {
    max-width: 96%;
    margin: 1.25rem auto;
    padding: 1.25rem;
  }
}

/* Small Tablets & Foldable Exterior (Galaxy Z Fold exterior) */
@media (max-width: 768px) {
  #app {
    max-width: 95%;
    margin: 1rem auto;
    padding: 1rem;
    box-shadow: 
      8px 8px 0 rgba(0, 0, 0, 0.3),
      inset 0 0 0 8px var(--bg-panel),
      inset 0 0 0 12px var(--manga-black);
  }

  #app::before {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .section {
    padding: 1rem;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  }

  .section::before,
  .section::after {
    width: 20px;
    height: 20px;
  }

  .section-title {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .section-title::after {
    width: 150px;
  }
}

/* Foldable Closed (Galaxy Z Flip closed) */
@media (max-width: 540px) {
  #app {
    max-width: 98%;
    margin: 0.75rem auto;
    padding: 0.9rem;
  }

  .section {
    padding: 0.9rem;
    margin-bottom: 1.75rem;
  }

  .section-title {
    font-size: 1.4rem;
    letter-spacing: 1.5px;
  }
}

/* Large Modern Phones (iPhone Pro Max, Samsung S24 Ultra) */
@media (max-width: 430px) {
  #app {
    max-width: 98%;
    margin: 0.6rem;
    padding: 0.85rem;
    border-width: 3px;
  }

  .navbar {
    padding: 0.5rem 0;
  }

  .navbar-list {
    gap: 0.5rem;
    padding: 0 0.5rem;
  }

  .nav-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.95rem;
    box-shadow: 3px 3px 0 var(--manga-black);
  }

  .nav-btn:hover,
  .nav-btn.active {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--manga-black);
  }

  .section {
    padding: 0.85rem;
    margin-bottom: 1.6rem;
  }

  .section-title {
    font-size: 1.35rem;
    letter-spacing: 1.2px;
  }
}

/* Standard Modern Phones (iPhone 14/15, Samsung S23/S24) */
@media (max-width: 393px) {
  #app {
    max-width: 100%;
    margin: 0.5rem;
    padding: 0.75rem;
    border-width: 3px;
  }

  .nav-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .title {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .profile-img {
    width: 100px;
    height: 100px;
  }

  .section {
    padding: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }

  .section-title::after {
    width: 100px;
    height: 3px;
  }
}

/* Small Phones (iPhone SE, older Samsung) */
@media (max-width: 360px) {
  #app {
    max-width: 100%;
    margin: 0.4rem;
    padding: 0.65rem;
  }

  .nav-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
  }

  .title {
    font-size: 1.6rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .profile-img {
    width: 90px;
    height: 90px;
  }

  .section {
    padding: 0.65rem;
    margin-bottom: 1.3rem;
  }

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

  .section-title::after {
    width: 90px;
  }
}

/* Very Small Devices */
@media (max-width: 320px) {
  #app {
    max-width: 100%;
    margin: 0.3rem;
    padding: 0.5rem;
  }

  .nav-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }

  .title {
    font-size: 1.4rem;
  }

  .subtitle {
    font-size: 0.85rem;
  }

  .profile-img {
    width: 80px;
    height: 80px;
  }

  .section {
    padding: 0.5rem;
    margin-bottom: 1rem;
  }

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

  .section-title::after {
    width: 80px;
  }
}

/* Galaxy Z Fold 6 Cover Display (Extra Narrow ~280px) */
@media (max-width: 280px) {
  #app {
    max-width: 100%;
    margin: 0.2rem;
    padding: 0.4rem;
    border-width: 2px;
    box-shadow: 
      6px 6px 0 rgba(0, 0, 0, 0.3),
      inset 0 0 0 6px var(--bg-panel),
      inset 0 0 0 8px var(--manga-black);
  }

  #app::before {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-width: 1px;
  }

  .header {
    gap: 0.5rem;
  }

  .navbar {
    padding: 0.5rem 0.25rem;
  }

  .navbar-list {
    gap: 0.3rem;
    padding: 0 0.25rem;
  }

  .nav-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
    box-shadow: 2px 2px 0 var(--manga-black);
    border-width: 2px;
  }

  .nav-btn:hover,
  .nav-btn.active {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--manga-black);
  }

  .title {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
  }

  .subtitle {
    font-size: 0.8rem;
  }

  .profile-img {
    width: 70px;
    height: 70px;
  }

  .section {
    padding: 0.4rem;
    margin-bottom: 0.8rem;
    border-width: 2px;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
  }

  .section::before,
  .section::after {
    width: 15px;
    height: 15px;
  }

  .section-title {
    font-size: 1rem;
    letter-spacing: 0.5px;
    padding-bottom: 0.5rem;
  }

  .section-title::after {
    width: 70px;
    height: 2px;
  }
}