/* ----- Importación de fuentes ----- */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* ----- Variables globales ----- */
:root {
  --main-color: #5247b9;
  --secondary-color: rgba(0, 250, 186, 0.3);
  --lighter-color: #e0e0e7;
  --light-color: #b0b0c0;
  --dark-color: #52505e;
}

/* ----- Reset general ----- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

html, body {
  height: 100vh;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: linear-gradient(to right, rgba(82, 71, 185, 0.9), rgba(0, 250, 186, 0.1)),
              url('/assets/img/sections/about/montaje11.jpg') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5em;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

.container, #page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* ----- Formulario ----- */
.form-box {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 1400px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  /* overflow: hidden; */
  /* evitar q se modifique segun steps */
  transition: min-height 0.3s ease;
  overflow-y: auto;
  min-height: 700px;
  max-height: 90vh;
  overflow: hidden;
}

.form-box .form-progress {
  flex: 1;
  padding: 1.5rem;
  background: #3b3291;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* overflow-y: auto; */
}

.form-box .logo img {
  max-width: 200px;
  margin-bottom: 1rem;
}

.form-progress ul.form-progress-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.form-progress ul.form-progress-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-progress ul.form-progress-steps li > span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--lighter-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: black;
}

.form-progress ul.form-progress-steps li.active > span {
  background-color: var(--main-color);
  color: white;
}

.form-progress ul.form-progress-steps li p {
  font-size: 12px;
  color: #00faba;
  text-align: center;
  margin-top: 8px;
}

/* ----- Contenido del formulario ----- */
form {
  flex: 2;
  padding: 2.5rem;
  background: white;
  border-radius: 0 20px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2rem;
  /* overflow-y: auto; */
  /* max-height: calc(100vh - 120px); */
  padding-bottom: 6rem;
  overflow-y: auto;
}

form > .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.form-grid .full-width {
  grid-column: 1 / -1;
}


.form-subgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

form label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: block;
}

form input,
form select {
  width: 100%;
  height: 44px;
  padding: 0 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: 0.3s ease;
  font-size: 1rem;
  background-color: white;
  margin-bottom: 1rem; /* Espaciado entre campos */
}

.form-step {
  display: none;
  min-height: 520px; 
}

/* ----- Botones ----- */
form .btn-group {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

form .btn-group button {
  flex: 1;
  padding: 0.75rem 1.2rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  background: var(--main-color);
  color: white;
  border: none;
  min-width: 120px;
  transition: 0.3s ease;
}

form .btn-group button:hover {
  background: #3b3291;
  transform: scale(1.02);
}

form .btn-group button:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
  opacity: 0.6;
}

form p {
  margin-bottom: 1.5rem;
}

.date-input-wrapper {
  position: relative;
}

.date-input-wrapper input[type="date"] {
  width: 100%;
  padding-right: 40px;
  cursor: pointer;
}

.calendar-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--light-color);
  pointer-events: none;
  font-size: 1.3rem;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .form-box {
    flex-direction: column;
    max-width: 95vw;
  }

  .form-box .form-progress {
    border-radius: 20px 20px 0 0;
    padding: 1rem;
  }

  .form-progress ul.form-progress-steps {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .form-progress ul.form-progress-steps li {
    flex: 0 1 28%;
  }

  form {
    border-radius: 0 0 20px 20px;
    padding: 2rem 1rem;
  }

  form > .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  /* Navbar adaptado */
  .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
  }

  .dropdown .dropdown-toggle {
    font-size: 0.9rem;
    padding: 0.1rem;
  }

  /* Wizard pasos en fila */
  .form-progress ul.form-progress-steps {
    flex-direction: row !important;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 1rem 0;
    scrollbar-width: none;
  }

  .form-progress ul.form-progress-steps::-webkit-scrollbar {
    display: none;
  }

  .form-progress ul.form-progress-steps li {
    flex: 0 0 auto;
    text-align: center;
    min-width: 80px;
  }

  .form-box {
    flex-direction: column;
    padding: 1rem;
    border-radius: 20px;
    max-width: 700px;
    margin: 20px auto;
  }

  .form-box .form-progress {
    border-radius: 20px 20px 0 0;
  }

  form {
    border-radius: 0 0 20px 20px;
    padding: 2rem 1.5rem;
  }
}
.back-to-site {
  width: 100%;
  text-align: left;
  padding: 1rem 2rem;
  margin-bottom: -1rem;
}

.btn-volver {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background-color: #5247b9;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  display: inline-block;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-volver:hover {
  text-decoration: none;
  background: linear-gradient(to right, #a3fbc1, #00faba);
  color: #003940;
  box-shadow: 0 4px 12px rgba(0, 250, 186, 0.4);
  transform: translateY(-1px);
}

.form-progress-steps li p::after {
  content: attr(data-full);
  display: block;
}

@media (max-width: 768px) {
  .form-progress-steps li p::after {
    content: attr(data-short);
    font-size: 0.65rem;
    white-space: nowrap;
  }

  .form-progress-steps {
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: space-around;
    gap: 0.5rem;
    overflow-x: auto;
  }

  .form-progress-steps li {
    min-width: 60px;
    flex: 0 0 auto;
    text-align: center;
  }

  .form-progress-steps li span {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

/* Imagen guía de talles */
.img-container-talles {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.img-container-talles img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #ccc;
}

/* Descuentos Bootstrap */
.pill-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pill-checkbox input[type="checkbox"] {
  display: none;
}

.pill-checkbox label {
  cursor: pointer;
  font-size: 1rem;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  background-color: #f8f9fa;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: inline-block;
}

.pill-checkbox label:hover {
  background-color: var(--main-color, #6c63ff);
  color: white;
  border-color: var(--main-color, #6c63ff);
  box-shadow: 0 0 8px rgba(108, 99, 255, 0.4);
}

.pill-checkbox input[type="checkbox"]:checked + label {
  background-color: var(--main-color, #6c63ff);
  color: white;
  border-color: var(--main-color, #6c63ff);
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(108, 99, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(108, 99, 255, 0);
  }
}

.pill-checkbox label {
  animation: pulse-border 2s ease-out infinite;
}

@media (max-width: 576px) {
  .pill-checkbox {
    width: 100%;
    justify-content: center;
  }

  .pill-checkbox label {
    width: 100%;
    text-align: center;
  }
}

#discountStatus {
  min-height: 1.5em;
  font-size: 0.95rem;
  margin-top: 0.25rem;
  transition: all 0.3s ease;
}

@media (max-width: 576px) {
  .form-check-label{
    margin-top: 15px;
  }
}

/* Descuento */
.descuento-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-check-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-top: 15px;
  margin-left: -30px;
}

.form-check-label {
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 768px) {
  .img-container-talles img {
    max-width: 100%;
  }

  .form-check {
    align-items: flex-start;
  }
} 

.form-field {
  margin-bottom: 1rem;
}

#runnerOverlay {
  display: none;
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #00c18d;
  border-radius: 40px;
  padding: 10px 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

.runner-text {
  font-size: 0.9rem;
  color: #333;
  margin-top: 6px;
  font-weight: 500;
}

#btnSiguiente {
  cursor: pointer;
}


/* Estilo del mensaje de error */
.error-msg {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 4px;
  font-size: 0.9rem;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.form-group .error-msg {
  margin-top: 4px;
  margin-bottom: 8px;
}

/* Estilo del borde de error */
.error {
  border-color: #e74c3c;
  padding: 6px;
  margin-bottom: 4px;
}

/* Ajuste específico para select */
select.error {
  border-color: #e74c3c;
}


.resumen-box {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  /* margin: 1.5rem 0; */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  /* margin-left: auto;
  margin-right: auto; */
}

.resumen-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
  text-align: center;
}

.resumen-section p {
  margin: 0.3rem 0;
  font-size: 1rem;
  color: #555;
}

.centered-checkbox {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #333;
}

.checkbox-inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.checkbox-inline a {
  color: #5247b9;
  text-decoration: underline;
}

.checkbox-inline a:hover {
  color: #3a3592;
}

.form-check a {
  color: var(--main-color, #6c63ff); /* o cualquier color que destaque */
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.form-check a:hover {
  color: #4a3fd9; /* un poco más oscuro al pasar el mouse */
}

.form-step {
  display: none;
  min-height: 520px;
  position: relative;
  flex-grow: 1;
}

.form-step.active {
  display: block;
}

form {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 2.5rem;
  background: white;
  border-radius: 0 20px 20px 0;
  overflow-y: auto;
}

/* INFO IMPORTANTE */
.info-importante {
  font-size: 0.95rem; /* o 0.9rem si la querés más pequeña */
  color: #333;
}

.info-importante p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.info-importante ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.info-importante li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.4;
  font-size: 0.8rem;
}

.info-importante li span:first-child {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.4;
  margin-top: 0.1rem;
}

.info-importante li a {
  color: #5247b9;
  text-decoration: underline;
}

.info-mobile {
  display: none;
  margin-bottom: 1rem;
}

/* @media (max-width: 768px) {
  .info-desktop {
    display: none;
  }
  .info-mobile {
    display: block;
  }
} */

@media (max-width: 1024px) {
  form {
    max-height: none !important;
    overflow: visible !important;
  }

  .form-box {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    flex-direction: column;
  }

  .container, #page {
    height: auto !important;
    min-height: auto !important;
  }

  html, body {
    height: auto !important;
    overflow-y: auto !important;
  }
}

.mensaje-gorra {
  background-color: #e6fffa;
  border-left: 5px solid #00faba;
  padding: 12px 16px;
  margin-top: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  font-weight: 500;
  color: #046a5d;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.mensaje-gorra .emoji {
  font-size: 1.4rem;
  line-height: 1;
}


