:root {
  --copro-blue: #003d7a;
  --copro-blue-light: #0a79b7;
  --copro-orange1: #ff8c42;
  --copro-orange2: #ff4f19;
  --copro-cyan: #00b8d4;
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(
    180deg,
    #88a058 0%,
    #a5be4d 15%,
    #c5d945 35%,
    #ddf85c 55%,
    #d1e788 75%,
    #b8d06f 100%
  );
  font-family: "Montserrat", system-ui, sans-serif;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  color: var(--copro-blue);
}
.step.bg-home {
  background: url("../img/bg_01.png") no-repeat center center;
  background-size: cover;
}
.cyan {
  color: var(--copro-cyan);
}
.app {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding: 1rem 1rem 0;
}

/* HEADER */
.logo {
  margin: 0.5rem 0 1rem;
}

/* ZONA CENTRAL (CENTRADA VERTICAL) */
.center-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.title-main {
  font-weight: 900;

  line-height: 1.15;
  /* borde blanco (fake stroke) */
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff,
    /* sombra suave */ 0 4px 8px rgba(0, 0, 0, 0.15);
}

.subtitle {
  font-weight: 800;

  color: var(--copro-blue);
  /* margin-bottom: 1rem; */
}

.subtitle.cyan {
  color: var(--copro-cyan);
}

.step {
  display: none;
  width: 100%;
}
.step.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* TARJETA BLANCA */
.card-box {
  background: #fff;
  border-radius: 28px;
  padding: 1.5rem 1.2rem 1.6rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  margin: 1.2rem auto 0;
}

/* INPUT */
.doc-input {
  border: 3px solid var(--copro-blue-light);
  border-radius: 14px;
  padding: 1rem;
  font-weight: 800;
  text-align: center;
}

/* BOTONES */
.btn-main {
  border: none;
  border-radius: 14px;
  padding: 1rem 1.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(
    180deg,
    var(--copro-orange1),
    var(--copro-orange2)
  );
  width: 100%;
  max-width: 380px;
  margin: 1.2rem auto 0;
  box-shadow: 0 6px 14px rgba(255, 79, 25, 0.45);
}

.btn-main:active {
  transform: scale(0.97);
}
.btn-main:disabled {
  background: #cfcfcf;
  color: #888;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* SCRATCH */
.scratch-container {
  margin: 0.5rem auto 0.8rem;
  width: 100%;
  aspect-ratio: 1.35;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: white;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.scratch-prize {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background: #01aada;
  color: white;
}

.scratch-prize .big {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
}
.scratch-prize .small {
  font-weight: 800;
  font-size: 1rem;
}

canvas {
  position: absolute;
  inset: 0;
  z-index: 5;
  touch-action: none;
  cursor: pointer;
}

.scratch-text {
  color: var(--copro-blue);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.35;
  margin-top: 0.6rem;
}

/* FOOTER */
.footer-links {
  width: 100vw;
  margin-left: calc(50% - 50vw);

  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.5);

  padding: 0.8rem 1rem;
  text-align: center;

  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--copro-blue);
}

.footer-links a {
  color: var(--copro-blue);
  text-decoration: none;
  margin: 0 0.6rem;
}

.footer-links a:hover {
  text-decoration: underline;
}
/* normal */
#appRoot {
  display: block;
}

/* ocultar app solo en móvil horizontal */
@media screen and (max-width: 900px) and (orientation: landscape) {
  #appRoot {
    display: none;
  }
}
.home-art {
  animation: floatUp 3s ease-in-out infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}
/* ===== MODAL BENEFICIOS – ESTILO CORPORATIVO ===== */

#benefitsModal .modal-content {
  border-radius: 20px;
  border: 2px solid rgba(0, 61, 122, 0.12);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

/* Header */
#benefitsModal .modal-header {
  border-bottom: 1px solid #e6eef6;
  padding: 1rem 1.2rem;
}

#benefitsModal .modal-title {
  font-weight: 800;
  color: #003d7a;
  letter-spacing: -0.2px;
}

/* Botón cerrar */
#benefitsModal .btn-close {
  opacity: 0.6;
}
#benefitsModal .btn-close:hover {
  opacity: 1;
}

/* Body */
#benefitsModal .modal-body {
  padding: 1.1rem 1.3rem 1.4rem;
}

#benefitsModal .modal-body p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4a4a4a;
  margin: 0;
}

/* En desktop que no se vea mini */
@media (min-width: 768px) {
  #benefitsModal .modal-dialog {
    max-width: 520px;
  }
}
