/* ======= Estilos Base ======= */
html, body {
    width: 100%;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    font-family: 'Nunito', sans-serif;
    background-size: cover;
    height: 100%;
}


/* ======= Header ======= */
header {
  text-align: center;
  margin-bottom: 10px;
  background-color: rgba(107, 66, 38, 0.9);
  color: white;
  padding: 15px;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-family: 'Noto Serif JP', serif;
}

header p {
  margin: 10px 0 0 0;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

header .home-link {
  text-decoration: none;
  color: white;
}

header .home-link:hover {
  text-decoration: none;
  color: #d3bfa7;
}


/* ======= Navegación ======= */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  margin: 1rem 0;
}

nav a {
  text-decoration: none;
  color: #6B4226;
  font-weight: bold;
  font-size: 1rem;
}

nav a:hover {
  opacity: 0.8;
  text-decoration: none;
  border-bottom: none;
}
/* ====== Navbar layout ====== */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-bar.minimal {
  justify-content: center;
  position: relative;
}
.nav-center { display:flex; align-items:center; justify-content:center; }
.logo-stack { display:flex; flex-direction:column; align-items:center; }
.logo-stack .tagline { margin-top:4px; }

/* Responsive: mover botones auth debajo del logo en pantallas pequeñas */
@media (max-width: 900px) {
  .nav-bar.minimal { flex-direction: column; gap: 0.5rem; }
  .nav-bar.minimal .nav-center { order: 0; }
  .nav-bar.minimal .nav-auth { position: static !important; transform: none !important; right: auto; top: auto; order: 1; width: 100%; display: flex; justify-content: center; }
  .nav-auth { justify-content: center; width: 100%; }
  .btn-auth { font-size: 0.9rem; padding: 0.45rem 0.9rem; }
}
.nav-bar.minimal .nav-auth {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}
.logo-img {
  max-height: 64px;
  height: auto;
  width: auto;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  transition: transform 0.3s ease;
}
.logo-img:hover { transform: scale(1.05); }

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

.tagline {
  font-size: 0.95rem;
}

.nav-main ul {
  margin: 0;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logout-form { display:inline; margin:0; }
.logout-form button { cursor:pointer; }

.btn-auth {
  background-color: #ffffff;
  color: #6B4226;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
}

.btn-auth.login-btn {
  background-color: #fdf3ee;
}

.btn-auth.register-btn {
  background-color: #ffd9e6;
}

.btn-auth.account-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
}

.btn-auth.account-btn:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  opacity: 1;
}

.btn-auth:hover {
  opacity: 0.9;
}

.link-like {
  background: none;
  border: none;
  color: #fafafa;
  text-decoration: underline;
  cursor: pointer;
}

/* ======= Sección Hero ======= */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px); /* Asegura que ocupe toda la altura de la pantalla */
  /* keep the hero as a positioned container and center the inner box absolutely
     to avoid subtle misalignment when header height changes on small screens */
  display: block;
  text-align: center;
  color: #fff;
  overflow: hidden;
}


.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/7965655.jpg") no-repeat center center/cover;
  background-color: #fff;
  filter: brightness(0.5);
  z-index: 0;
}

.hero-box {
  /* absolutely center the box inside the hero so it remains perfectly centered
     on all viewports (including mobile simulator frames) regardless of header size */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  max-width: 600px;
  width: min(92%, 600px);
  box-sizing: border-box;
}

.hero-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #fff;
  font-family: 'Noto Serif JP', serif;
}

.hero-text p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #f0f0f0;
}

/* ======= Botones ======= */
.btn {
  display: inline-block;
  padding: 1.2rem 3rem; /* Más grande */
  background-color: #6B4226;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem; /* Texto más grande */
  border-radius: 40px;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn:hover {
  background-color: #4E2E1C;
  transform: translateY(-3px) scale(1.05);
}

/* ======= Sección de niveles ======= */
.levels {
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  overflow: hidden;
}

.levels h2 {
  position: relative;
  display: inline-block;
  font-family: 'Noto Serif JP', serif;
  margin-bottom: 2rem;
  color: #6B4226;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: clamp(1.3rem, 2.2vw + 0.2rem, 2.2rem);
  line-height: 1.3;
  transition: font-size 0.3s ease;
}

.levels h2::before,
.levels h2::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  background: url("../img/flor.png") no-repeat center center/contain;
  vertical-align: middle;
  margin: 0 0.3rem;
}

.levels h2 span {
  padding: 0 0.5rem;
}

.level-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

.level-card {
  flex: 1 1 260px;
  max-width: 300px;
  background-color: #f19aa8;
  color: #fff;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  border: none;
}

.level-card h3 {
  margin-bottom: 1rem;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  color: #fff;
}

.level-card p {
  color: #fff;
  margin-bottom: 1rem;
}

.level-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* --- Beta section --- */
.beta-section {
  /* Estilo compacto similar al viejo: menos aire y ancho controlado */
  background: rgba(243, 240, 255, 0.8);
  backdrop-filter: blur(4px);
  border-top: 4px solid #6c63ff;
  border-radius: 14px;
  margin: 1.5rem auto 2.5rem; /* centrado y márgenes más pequeños */
  padding: 1.25rem 1rem;      /* menos padding vertical */
  max-width: 980px;           /* limita el ancho en desktop para evitar grandes vacíos */
}

.beta-section .level-card {
  border: 2px dashed #6c63ff;
  background: #ffffff;
  color: #333;
  padding: 1.25rem 1rem;   /* más compacto */
  max-width: 540px;        /* tarjeta más angosta como el viejo estilo */
  margin: 0 auto;          /* centrada */
}

.beta-section .level-card h3 {
  color: #4a3aff;
}

.beta-section .level-card p {
  color: #333;
}

.beta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #6c63ff, #8a7dff);
  border: none;
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.beta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(108, 99, 255, 0.25);
}

/* Contenedor de la sección beta: centrar y reducir separación */
.beta-section .level-container {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
}

/* Responsive: da un poco más de aire en móviles */
@media (max-width: 768px) {
  .beta-section {
    padding: 1.5rem 1.25rem;
    margin: 1.25rem 1rem 2rem;
  }
  .beta-section .level-card {
    max-width: 100%;
  }
}

/* ======= Detalles de nivel ======= */
.level-details {
  text-align: left;
  margin: 15px 0;
}

.level-details p {
  margin: 10px 0 5px 0;
  font-weight: bold;
}

.level-details ul {
  margin: 5px 0;
  padding-left: 20px;
}

.level-details li {
  margin: 3px 0;
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .hero-box {
    position: absolute; /* keep absolute centering on smaller screens */
    text-align: center;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .level-card {
    max-width: 340px;
  }

}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.6rem;
  }

  .hero-text h2 {
    font-size: 1.6rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
  }

  /* reduce padding and ensure the hero box doesn't push off-center on very small screens */
  .hero-box {
    padding: 1.2rem 1rem;
    border-radius: 16px;
    /* ensure a comfortable gap from screen edges on very small viewports */
    /* force a safe gap on both sides (48px total) so it never touches the screen edges */
    width: calc(100% - 64px);
    max-width: 420px;
    /* switch to flow layout and let the container center it via flexbox */
    position: static;
    margin: 0 auto;
    transform: none;
    top: auto;
    left: auto;
  }

  /* Use flexbox on the hero container for symmetric centering */
  .hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
  }
}
@media (max-width: 380px) {
   .levels h2 {
    font-size: 0.85rem; /* reduce más en móviles ultra pequeños */
    line-height: 1.1;
    white-space: nowrap; /* fuerza una sola línea */
  }
}

@media (min-width: 1200px) {
  .levels h2::before {
    content: "";
    display: inline-block;
    width: 6em; /* más ancho = más flores */
    height: 1.2em;
    background: url("../img/flor.png") repeat-x right center/contain;
    margin-right: 1rem;
  }

  .levels h2::after {
    content: "";
    display: inline-block;
    width: 6em;
    height: 1.2em;
    background: url("../img/flor.png") repeat-x left center/contain;
    margin-left: 1rem;
  }
}
@media (min-width: 850px) and (max-width: 1300px) {
  .levels h2 {
    font-size: 1.4rem;
  }
}

/* Ajustes para móviles */
@media (max-width: 480px) {
  .levels h2 {
    font-size: 1.1rem;
  }
}

.seccion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin: 4rem auto;
  padding: 0 6%;
  max-width: 1200px;
  flex-wrap: wrap;
}

.texto {
  flex: 1 1 50%;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.7;
}

.texto h2 {
  font-family: 'Noto Serif JP', serif;
  color: #b91c1c;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.texto ul {
  margin-top: 1rem;
  color: #444; /* más suave que negro */
  padding-left: 1.2rem;
}

.texto li {
  margin-bottom: 0.5rem;
}

.imagen {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
}

.imagen img {
  width: 100%;
  max-width: 400px;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* Alternar posiciones */
.seccion:nth-child(even) {
  flex-direction: row-reverse;
}

/* Versión móvil */
@media (max-width: 768px) {
  .seccion {
    flex-direction: column;
    padding: 0 1.5rem;
    text-align: center;
  }

  .imagen {
    margin-top: 1.5rem;
  }
  .texto {
    flex: 1 1 100%;
  }
}
.footer {
  background-color: rgba(107, 66, 38, 0.9);
  color: #fff;
  padding: 50px 8%;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column h3 {
  border-bottom: 2px solid #fafafa;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.footer-column p,
.footer-column a {
  font-size: 0.95rem;
  color: #fafafa;
  line-height: 1.6;
}

.footer-column a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #ff7acc;
}

.footer-bottom {
  border-top: 1px solid #ffffff;
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #fcd6d6;
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 6%;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

.blog {
  background-color: #fafafa;
  padding: 0rem 2rem 3rem 2rem;
  font-family: 'Nunito', sans-serif;
  color: #2c2c2c;
}

.blog-container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 3rem;
}

.blog h1 {
  font-family: 'Noto Serif JP', serif;
  color: #C85D78;
  font-size: 2.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.blog h2 {
  color: #6B4226;
  font-family: 'Noto Serif JP', serif;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog p {
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: #333;
}

.blog ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.blog ul li {
  margin-bottom: 0.6rem;
  padding-left: 1.5rem;
  position: relative;
}

.blog ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #C85D78;
  font-weight: bold;
}

.blog blockquote {
  background-color: #fbe9ec;
  border-left: 5px solid #C85D78;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-style: italic;
  color: #444;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .blog-container {
    padding: 2rem 1.5rem;
  }
}
/* Auth pages tighter spacing on very small screens */
@media (max-width: 480px) {
  .blog-container { padding: 1.4rem 1rem; }
}
@media (max-width: 480px) { .logo-img { max-height: 50px; } }
