/* ================================
   LAYOUT BASE
================================== */

.registration-container {
  display: flex;
  height: 100%;
  width: 100%;
  position: relative;
}

/* -------------------------------
   LEFT SECTION
-------------------------------- */

.registration-left {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  min-height: 100vh;
}

.registration-bg {
  position: absolute;
  inset: 0;
  background-image: url("../public/fondo_inscripcion_gris.webp");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.registration-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #b80b24 0%, #b80b258a 90%);
  z-index: 2;
}

.registration-info {
  position: relative;
  z-index: 3;
  animation: fadeInUp 0.8s ease-out;
}

.registration-info h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.3);
}

.registration-info p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
}

.pictet-logo {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  max-width: 100%;
}

/* Logos decorativos */
.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo-section i {
  width: 3.75rem;
  height: 3.75rem;
  color: #ffffff;
}

.logo-section span {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.125rem;
  color: #ffffff;
}

/* -------------------------------
   RIGHT SECTION
-------------------------------- */

.registration-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem;
  background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
}

.form-container {
  width: 100%;
  max-width: 31.25rem;
  background: #ffffff;
  border-radius: 0.625rem;
  padding: 2.125rem 1.875rem;
  box-shadow: 0 1.125rem 2.5rem rgba(0, 0, 0, 0.25);
  border-top: 0.25rem solid #b81530;
}

.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-header h1 {
  font-size: 2rem;
  color: #b80b24;
  margin-bottom: 0.625rem;
}

.form-header p {
  font-size: 1rem;
  color: var(--text-light);
}

/* -------------------------------
   FORM
-------------------------------- */

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9375rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

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

.form-group label {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: #b80b24;
  text-transform: uppercase;
  letter-spacing: 0.03125rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--white);
  color: var(--text);
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #b81530;
  box-shadow: 0 0 0 0.1875rem rgba(184, 21, 48, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 5rem;
}

/* -------------------------------
   LEVEL SELECTOR
-------------------------------- */

.level-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.level-btn {
  padding: 0.75rem 0.625rem;
  border: 2px solid var(--border);
  border-radius: 0.375rem;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.level-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 2px solid var(--text);
  transition: all 0.3s ease;
}

.level-btn:hover {
  border-color: #b81530;
  color: #b81530;
}

.level-btn:hover .level-dot {
  border-color: #b81530;
}

.level-btn.active {
  border-color: #b81530;
  background: rgba(184, 21, 48, 0.1);
  color: #b81530;
}

.level-btn.active .level-dot {
  background: #b81530;
  border-color: #b81530;
}

/* -------------------------------
   SUBMIT BUTTON
-------------------------------- */

.btn-register-submit {
  padding: 0.875rem 2.25rem;
  margin-top: 0.625rem;
  width: 100%;
  background: linear-gradient(135deg, #b81530 0%, #c92940 100%);
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
}

.btn-register-submit:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1.5625rem rgba(184, 21, 48, 0.3);
}

.btn-register-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* -------------------------------
   FOOTER
-------------------------------- */

.registration-footer {
  text-align: center;
  margin-top: 0.625rem;
  padding-top: 1.25rem;
}

.registration-footer p {
  font-size: 0.95rem;
  color: var(--text-light);
}

.registration-footer a {
  color: #b81530;
  text-decoration: none;
  font-weight: 600;
}

.registration-footer a:hover {
  text-decoration: underline;
}

/* -------------------------------
   MODAL
-------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeInUp 0.5s ease-out;
}

.modal.hidden {
  display: none;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 31.25rem;
  margin: 1.25rem;
}

.modal-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: 0.5rem;
  z-index: 1;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184, 21, 48, 0.9) 0%, rgba(184, 21, 48, 0.8) 100%);
  border-radius: 0.5rem;
  z-index: 2;
}

.modal-body {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 3.75rem 2.5rem;
  color: white;
}

/* ================================
   PRIVACY MODAL
================================ */

.privacy-content {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 90%;
  overflow: hidden;
}

.privacy-body {
  color: #333;
  text-align: left;
  padding: 2rem;
  max-height: 80vh;
  overflow-y: auto;
}

.privacy-body h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.8rem;
}

.privacy-body p {
  margin-bottom: 1rem;
  text-align: justify;
  line-height: 1.6;
  font-size: 1rem;
  color: #444;
}

.privacy-body h5 {
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.6;
  font-size: 1rem;
  color: #444;
}

.privacy-text strong {
  color: #222;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.close-btn:hover {
  background-color: #f0f0f0;
  color: #333;
}

/* ================================
   BACK TO HOME BUTTON
================================ */

.back-home-btn {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--light-gray);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  z-index: 10;
}

.back-home-btn:hover {
  background-color: var(--primary);
  color: white;
  transform: scale(1.1);
}

.back-home-btn i {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 48rem) {
  .back-home-btn {
    top: 1rem;
    left: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
  }
}

/* ================================
   RESPONSIVE — TABLETS
================================ */

@media (max-width: 64rem) {
  .registration-container {
    flex-direction: column;
  }

  .registration-left {
    min-height: 40vh;
  }

  .registration-info h2 {
    font-size: 2rem;
  }

  .registration-right {
    padding: 1.875rem 1.25rem;
  }

  .form-container {
    max-width: 100%;
  }
}

/* ================================
   RESPONSIVE — MOVILES PEQUEÑOS
================================ */

@media (max-width: 48rem) {
  .registration-left {
    min-height: 30vh;
  }

  .registration-info h2 {
    font-size: 1.75rem;
  }

  .registration-info p {
    font-size: 1rem;
  }

  .logo-section i {
    width: 2.5rem;
    height: 2.5rem;
  }

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

  .level-selector {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================
   RESPONSIVE — MOBILE FIX (768px)
================================ */

@media (max-width: 48rem) {

  .registration-container {
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    overflow: visible;
  }

  .registration-left {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;

    height: auto;
    min-height: 25vh;

    background-size: cover;
    background-position: center;
  }

  .pictet-logo {
    max-height: 18vh;
    max-width: 100%;
    width: auto;
    object-fit: contain;
  }

  .logo-section i,
  .logo-section img,
  .logo-section svg {
    width: 3.75rem;
    height: 3.75rem;
  }

  .registration-right {
    height: auto;
    overflow-y: auto;
    padding: 1rem;
  }
}

/* ================================
   RESPONSIVE — XS MOBILE
================================ */

@media (max-width: 30rem) {
  .registration-info h2 {
    font-size: 1.5rem;
  }

  .form-header h1 {
    font-size: 1.25rem;
  }

  .form-group label {
    font-size: 0.75rem;
  }

  .level-selector {
    grid-template-columns: 1fr 1fr;
  }

  .level-btn {
    padding: 0.625rem 0.5rem;
    font-size: 0.7rem;
  }
}