/* ==== ALMA – estilo consistente con Word Search / Memory ==== */
/* Paleta y tokens */
:root {
    --principal-celeste: #5EC0CF;
    --principal-violeta: #9A8BC2;
    --principal-blanco: #F4F4F4;
  
    --secundario-oscuro: #004F66;
    --secundario-rosa: #C8A2C9;
    --secundario-gris: #4D4D4D;
    --secundario-lila: #E8E6FB;
  
    --accent-naranja: #ff7043;
    --accent-naranja-hover: #ff5722;
    --verde-ok: #37c36a;
    --rojo-err: #e76666;
  }
  
  /* Reset básico */
  * { margin: 0; padding: 0; box-sizing: border-box; }
  
  body {
    font-family: 'Gotham Rounded', 'Nunito Sans', sans-serif;
    background:linear-gradient(135deg,#fff 0%,#e0e0e0 100%);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative;
    color: var(--secundario-oscuro);
  }
  
  /* Header y título */
  .header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 800px;
  }
  
  .title {
    color: #9A8BC2;
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 16px;
  }
  
  /* Stats SIEMPRE HORIZONTALES */
  .stats {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: nowrap;          /* <- no se apilan */
  }
  
  .stat {
    background: var(--principal-blanco);
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 140px;
    max-width: 220px;
    flex: 1 1 0;                /* <- se adaptan al espacio */
  }
  
  .stat-label {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
  }
  
  .stat-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--principal-celeste);
  }
  
  /* Tarjeta del juego */
  .game-container {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 22px;
    width: 100%;
    max-width: 720px;
  }
  
  /* Pregunta */
  .question {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 18px;
  }
  
  /* Respuestas */
  .answers {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 14px;
    justify-content: center;
    margin: 0 auto 12px;
    max-width: 560px;
  }
  
  .answer-btn {
    background: #ffffff;
    color: var(--secundario-oscuro);
    border: 2px solid rgba(94, 192, 207, 0.45);
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
  }
  
  .answer-btn:hover {
    transform: translateY(-2px);
    background: #f4feff;
    border-color: var(--principal-celeste);
  }
  
  .answer-btn.correct {
    background: var(--verde-ok);
    border-color: var(--verde-ok);
    color: #fff;
  }
  
  .answer-btn.incorrect {
    background: var(--rojo-err);
    border-color: var(--rojo-err);
    color: #fff;
  }
  
  /* Feedback textual */
  .feedback {
    min-height: 28px;
    text-align: center;
    font-weight: 900;
    margin: 6px 0 4px;
  }
  .feedback.ok { color: #188a4e; }
  .feedback.err { color: #a53e3e; }
  
  /* Controles */
  .controls {
    display: flex;
    justify-content: center;
    margin-top: 8px;
  }
  
  .size-btn {
    background: var(--principal-celeste);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(94,192,207,0.3);
    min-height: 44px;
  }
  .size-btn:hover {
    background: #4AA8B6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(94,192,207,0.4);
  }
  
  /* Botones inferiores */
  .bottom-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
  }
  
  .reset-btn {
    background: var(--accent-naranja);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,112,67,0.3);
    min-height: 44px;
  }
  .reset-btn:hover {
    background: var(--accent-naranja-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,112,67,0.4);
  }
  
  /* Footer */
  footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #004F66;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    z-index: 100;
  }
  footer p {
    margin: 0;
    padding: 8px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .watermark-logo{ height: clamp(28px, 4.2vh, 4.2vh); }
  
  /* Responsive */
  @media (max-width: 768px) {
    body { padding: 15px; }
    .title { font-size: 2.2rem; }
    .answers { grid-template-columns: 1fr; }
    .question { font-size: 2.2rem; }
    /* Stats siguen en fila en mobile */
    .stats { gap: 12px; flex-wrap: nowrap; }
    .stat  { min-width: 120px; padding: 12px 18px; }
    footer { bottom: 15px; right: 15px; font-size: 0.8rem; }
  }
  
  @media (max-width: 480px) {
    .title { font-size: 1.8rem; }
    .question { font-size: 2rem; }
    .reset-btn { padding: 12px 22px; font-size: 1rem; border-radius: 20px; }
    /* Mantener horizontales */
    .stats { gap: 10px; }
    .stat  { min-width: 110px; padding: 10px 16px; }
    footer { bottom: 10px; right: 10px; font-size: 0.75rem; }
    footer p { padding: 6px 10px; border-radius: 12px; }
  }
  
  @media (max-width: 360px) {
    .title { font-size: 1.6rem; }
    .question { font-size: 1.8rem; }
    .answers { gap: 10px; }
    /* Aún en fila */
    .stats { gap: 8px; }
    .stat  { min-width: 100px; padding: 10px 14px; }
    footer { bottom: 8px; right: 8px; font-size: 0.7rem; }
    footer p { padding: 5px 8px; border-radius: 10px; }
  }
  
  @media (max-width: 320px) {
    .title { font-size: 1.4rem; }
    .question { font-size: 1.6rem; }
    .answers { gap: 8px; }
    /* Mantener horizontales con tamaños mínimos */
    .stats { gap: 6px; }
    .stat  { min-width: 96px; padding: 8px 12px; }
    footer { bottom: 5px; right: 5px; font-size: 0.65rem; }
    footer p { padding: 4px 6px; border-radius: 8px; }
  }
  
  /* ---------- Responsive: PANTALLA GRANDE (≈52 pulgadas, 4K) ---------- */
  @media (min-width: 3800px) {
    html { font-size: 2.1rem; }
  
    .header { max-width: 4200px; margin-bottom: 72px; }
    .title { font-size: 4.2rem; margin-bottom: 40px; }
  
    .stats { gap: 80px; margin-bottom: 56px; }
    .stat { min-width: 900px; padding: 40px 56px; border-radius: 32px; }
    .stat-label { font-size: 1.8rem; margin-bottom: 14px; }
    .stat-value { font-size: 3.2rem; }
  
    .game-container { padding: 72px; max-width: 2200px; border-radius: 38px; }
  
    .question { font-size: 3.6rem; margin-bottom: 50px; }
  
    .answers { gap: 28px; max-width: 1400px; grid-template-columns: repeat(3, minmax(260px, 1fr)); }
    .answer-btn {
      padding: 28px 46px;
      font-size: 2rem;
      border-radius: 30px;
      min-height: 110px;
      font-weight: 900;
    }
  
    .feedback { font-size: 2rem; margin-top: 36px; min-height: 72px; }
  
    .controls { margin-top: 50px; }
    .size-btn {
      padding: 28px 54px;
      font-size: 2rem;
      min-height: 100px;
      border-radius: 34px;
      font-weight: 900;
    }
  
    .bottom-buttons { gap: 44px; margin-top: 60px; }
    .reset-btn {
      padding: 30px 64px;
      font-size: 2.1rem;
      min-height: 110px;
      border-radius: 34px;
      font-weight: 900;
    }
  
  footer { bottom: 48px; right: 48px; font-size: 1.6rem; }
  footer p { padding: 20px 150px; border-radius: 24px; }
}

/* ---------- Responsive: Pantalla vertical MUY grande (4K vertical) ---------- */
@media (max-width: 2160px) and (min-height: 3800px) {

  html {
    font-size: 1.8rem;
  }

  html,
  body {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    padding: 0;
    margin: 0;
  }

  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2vh 2vw;
    min-height: 100dvh;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    gap: 2vh;
  }

  .header {
    width: 100%;
    max-width: 1800px;
    margin: 0;
    text-align: center;
    flex-shrink: 0;
  }

  .title {
    font-size: clamp(4rem, 6vw, 8rem);
    line-height: 1.1;
    margin: 0 0 2vh 0;
    color: #9A8BC2;
    font-weight: 800;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
  }

  .stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 4vw;
    width: 100%;
    max-width: 1400px;
    margin: 2vh auto;
  }

  .stat {
    flex: 1;
    min-width: 800px;
    padding: 3vh 2vw;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .stat-label {
    font-size: clamp(1.8rem, 3vw, 3.5rem);
    margin-bottom: 1vh;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
  }

  .stat-value {
    font-size: clamp(2.5rem, 4vw, 5rem);
    font-weight: 900;
    color: var(--principal-celeste);
    text-align: center;
  }

  .game-container {
    width: 100%;
    max-width: 1600px;
    margin: 0;
    padding: 4vh 4vw;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-height: 0;
  }

  .question {
    font-size: clamp(3.5rem, 5.5vw, 7rem);
    font-weight: 900;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 4vh;
    color: var(--secundario-oscuro);
  }

  .answers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3vw, 40px);
    justify-content: center;
    margin: 0 auto 3vh;
    width: 100%;
    max-width: 1200px;
  }

  .answer-btn {
    background: #ffffff;
    color: var(--secundario-oscuro);
    border: 3px solid rgba(94, 192, 207, 0.3);
    border-radius: 28px;
    padding: 3vh 2vw;
    font-size: clamp(2.8rem, 4.5vw, 5.5rem);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: clamp(120px, 12vh, 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .answer-btn:hover {
    transform: translateY(-4px);
    background: #f8feff;
    border-color: var(--principal-celeste);
    box-shadow: 0 6px 20px rgba(94, 192, 207, 0.2);
  }

  .answer-btn.correct {
    background: var(--verde-ok);
    border-color: var(--verde-ok);
    color: #fff;
    transform: scale(1.05);
  }

  .answer-btn.incorrect {
    background: var(--rojo-err);
    border-color: var(--rojo-err);
    color: #fff;
  }

  .feedback {
    font-size: clamp(2.5rem, 4vw, 5rem);
    min-height: 5vh;
    text-align: center;
    font-weight: 900;
    margin: 3vh 0 2vh 0;
  }

  .feedback.ok {
    color: var(--verde-ok);
  }

  .feedback.err {
    color: var(--rojo-err);
  }

  .controls {
    display: flex;
    justify-content: center;
    margin-top: 3vh;
  }

  .size-btn {
    background: var(--principal-celeste);
    color: #fff;
    border: none;
    padding: 2.5vh 4vw;
    border-radius: 28px;
    cursor: pointer;
    font-size: clamp(2rem, 3.5vw, 4rem);
    font-weight: 900;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(94, 192, 207, 0.3);
    min-height: clamp(80px, 8vh, 120px);
  }

  .size-btn:hover {
    background: #4AA8B6;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(94, 192, 207, 0.4);
  }

  .bottom-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3vh;
    width: 100%;
    max-width: 1200px;
    flex-shrink: 0;
    z-index: 1;
    padding-bottom: 200px;
  }

  .reset-btn {
    background: var(--accent-naranja);
    color: white;
    border: none;
    padding: 1.0vh 0;
    border-radius: 28px;
    cursor: pointer;
    font-size: clamp(2rem, 3.5vw, 4rem);
    font-weight: 900;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 112, 67, 0.3);
    min-height: clamp(70px, 6vh, 100px);
    width: 100%;
    z-index: 1;
  }

  .reset-btn:hover {
    background: var(--accent-naranja-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(255, 112, 67, 0.4);
  }

  footer {
    position: fixed;
    right: 4vw;
    bottom: 3vh;
    z-index: 10;
    width: auto;
    text-align: center;
    font-size: clamp(1.8rem, 2.5vw, 3rem);
    margin-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-direction: row-reverse;
  }

  footer p {
    border-radius: 28px;
    line-height: 1;
    font-size: clamp(2rem, 2.8vw, 3.5rem);
    min-width: 0;
    min-height: 0;
    width: auto;
    height: auto;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    z-index: 0;
  }
}

  
/* ====== Watermark de fondo ====== */
:root {
  --wm-size: 1100px;       /* tamaño de la marca */
  --wm-rotate: -22deg;     /* inclinación */
  --wm-opacity: 0.14;      /* transparencia */
}

body {
  position: relative; /* necesario para el pseudo-elemento */
}

body::before {
  content: "";
  position: fixed; /* fijo en pantalla */
  top: 12vh;
  left: calc(-0.25 * var(--wm-size)); /* lo empuja hacia la izquierda */
  width: var(--wm-size);
  height: var(--wm-size);
  background: url("../statics/img/flor.png") no-repeat center / contain;
  opacity: var(--wm-opacity);
  transform: rotate(var(--wm-rotate));
  pointer-events: none; /* no bloquea clicks */
  z-index: 0; /* al fondo */
}

.container,
footer {
  position: relative;
  z-index: 1; /* el contenido queda por encima */
}

/* Responsivo */
@media (max-width: 1024px) {
  :root { --wm-size: 780px; }
  body::before {
    top: 18vh;
    left: calc(-0.35 * var(--wm-size));
  }
}

@media (max-width: 600px) {
  :root { --wm-size: 560px; }
  body::before {
    top: 24vh;
    left: calc(-0.40 * var(--wm-size));
  }
}