@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&family=Quicksand:wght@500;700&display=swap&subset=latin,latin-ext');

:root {
  --pink: #ed8db8;
  --light-pink: #fff5fa;
  --dark-pink: #d86e9e;
  --black: #111111;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--black);
  background-color: var(--pink);
  font-family: 'Quicksand', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  scroll-behavior: smooth;
}

/* Botón flotante para volver */
.back-home-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  background-color: var(--light-pink);
  color: var(--dark-pink);
  border: 3px solid var(--dark-pink);
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  z-index: 999;
  transition: all 0.2s ease;
}

.back-home-btn:hover {
  background-color: var(--dark-pink);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Encabezado unificado idéntico al principal */
.header {
  position: relative;
  min-height: 125px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-image: url('../fondo.png');
  background-position: center;
  background-repeat: repeat;
}

.header h1 {
  z-index: 2;
  margin: 0;
  font-family: 'Patrick Hand', 'Quicksand', cursive;
  font-size: clamp(3.5rem, 9vw, 6rem);
  line-height: 1;
  letter-spacing: 3px;
  color: #111111;
  text-shadow: 
    -2px -2px 0 #ffffff,  
     2px -2px 0 #ffffff,
    -2px  2px 0 #ffffff,
     2px  2px 0 #ffffff,
     4px  4px 0 rgba(216, 110, 158, 0.4);
}

.catgirl-image {
  position: absolute;
  z-index: 3;
  height: 85%;
  width: auto;
  object-fit: contain;
  right: max(5%, calc(50% - 380px));
  bottom: 0;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.15));
}

/* Franja de cuadros ultra-limpia con conic-gradient */
.checker-stripe {
  width: 100%;
  height: 20px;
  background-color: #ef99bd;
  background-image: conic-gradient(
    #7f3157 90deg, 
    #ef99bd 90deg 180deg, 
    #7f3157 180deg 270deg, 
    #ef99bd 270deg
  );
  background-size: 20px 20px;
  background-repeat: repeat-x;
}

/* Área principal */
.container {
  min-height: calc(100vh - 145px);
  padding: 45px 20px 70px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.cards-wrapper {
  width: min(100%, 850px);
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.welcome-card {
  width: 100%;
  padding: 35px 45px 42px;
  text-align: center;
  border-radius: 18px;
  background: var(--light-pink);
  box-shadow: 0 5px 0 rgba(155, 53, 101, 0.08);
}

.welcome-card h2 {
  margin: 0 0 8px;
  font-family: 'Patrick Hand', 'Quicksand', cursive;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.1;
  text-align: center;
}

/* Opciones del Test - Estilo Píldora Redondeada */
.options-quiz {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.option-btn {
  background-color: var(--dark-pink);
  border: none;
  padding: 12px 22px;
  border-radius: 50px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 0 rgba(155, 53, 101, 0.2);
}

.option-btn:hover {
  background-color: var(--pink);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(155, 53, 101, 0.2);
}

.restart-btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--dark-pink);
  color: #ffffff;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(155, 53, 101, 0.2);
  transition: all 0.2s ease;
}

.restart-btn:hover {
  background-color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(155, 53, 101, 0.2);
}

.back-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--dark-pink);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--black);
}

.stat-bar-container {
  background: #f7d6e5;
  border-radius: 10px;
  overflow: hidden;
  height: 22px;
  width: 100%;
  position: relative;
}

.stat-bar-fill {
  height: 100%;
  background-color: var(--dark-pink);
  width: 0%;
  transition: width 0.8s ease-in-out;
}

.stat-bar-text {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--black);
}

/* Footer */
.site-footer {
  width: 100%;
  background-color: #ffffff;
  border-top: none; /* Línea de puntos eliminada */
  padding: 25px 20px;
  text-align: center;
  color: #444444;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: transparent;
  border: none;
  padding: 0;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.instagram-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.instagram-btn:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

/* --- ADAPTACIÓN PARA MÓVILES IDÉNTICA A LA PRINCIPAL --- */
@media (max-width: 600px) {
  .header {
    min-height: 105px;
  }

  .header h1 {
    font-size: 3.6rem;
    margin-right: 65px;
  }

  .catgirl-image {
    height: 85%;
    width: auto;
    right: 5px;
    bottom: 0;
  }

  .checker-stripe {
    height: 15px;
    background-size: 15px 15px;
  }

  .container {
    padding: 28px 12px 45px;
  }

  .welcome-card {
    padding: 27px 18px 32px;
    border-radius: 15px;
  }
}
