/* ===========================
   VARIABLES CSS
   =========================== */
:root {
  /* Usando los colores del arcoíris de la página principal */
  --red: #E63946;
  --orange: #FF6B35;
  --yellow: #FFC300;
  --green: #06A77D;
  --blue: #0077B6;
  --purple: #7209B7;
  
  /* Gradientes */
  --gradient-warm: linear-gradient(135deg, #E63946, #FF6B35, #FFC300);
  --gradient-cool: linear-gradient(135deg, #06A77D, #0077B6, #7209B7);
  --gradient-full: linear-gradient(135deg, #E63946, #FF6B35, #FFC300, #06A77D, #0077B6, #7209B7);
  
  /* Colores de uso general */
  --card-bg: #ffffff;
  --primary: #FF6B35;
  --text: #222222;
  --muted: #666666;
  --border: #e5e5e5;
}

/* ===========================
   RESET Y BASE
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gradient-full);
  color: var(--text);
  min-height: 100vh;
}

/* ===========================
   LAYOUT PRINCIPAL
   =========================== */
.page-container {
  min-height: 100vh;
  max-height: 100vh;
  padding: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Decoraciones de fondo */
.page-container::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  left: -100px;
  pointer-events: none;
}

.page-container::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.09) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -150px;
  right: -150px;
  pointer-events: none;
}

.cards-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===========================
   TARJETA FORMULARIO
   =========================== */
.form-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 28px 32px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.08);
  grid-column: 2;
  justify-self: center;
}

.form-card__header {
  text-align: center;
  margin-bottom: 24px;
}

.form-card__title {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.form-card__subtitle {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
  font-weight: 400;
}

.form-card__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

/* ===========================
   CAMPOS DE FORMULARIO
   =========================== */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.2px;
}

.form-field__input,
.form-field__select {
  width: 100%;
  height: 42px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: all 0.18s ease;
  outline: none;
}

.form-field__input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.form-field__input:hover,
.form-field__select:hover {
  border-color: var(--primary);
}

.form-field__input:focus,
.form-field__select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

.form-field__select {
  cursor: pointer;
  padding-right: 40px;
}

.form-field--optional .form-field__label::after {
  content: ' (opcional)';
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}

/* ===========================
   BOTÓN CTA
   =========================== */
.form-card__button {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  background: var(--gradient-warm);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

.form-card__button:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
}

.form-card__button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

/* ===========================
   TARJETA RESUMEN
   =========================== */
.summary-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 28px 24px;
  width: 100%;
  max-width: 240px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  grid-column: 3;
  justify-self: center;
}

.summary-card::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--primary);
  opacity: 0.08;
  border-radius: 50%;
  top: -20px;
  right: -20px;
  pointer-events: none;
}

.summary-card::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--primary);
  opacity: 0.06;
  border-radius: 50%;
  bottom: -15px;
  left: -15px;
  pointer-events: none;
}

.summary-card__header {
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.summary-card__title {
  font-size: 18px;
  font-weight: 600;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.summary-card__divider {
  border: none;
  border-top: 2px dashed var(--border);
  margin: 0;
}

.summary-card__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.summary-row__label {
  color: var(--muted);
  font-weight: 400;
}

.summary-row__value {
  color: var(--text);
  font-weight: 500;
}

.summary-row--descuento {
  background: rgba(255, 107, 53, 0.1);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-row--total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.summary-row--total .summary-row__label {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.summary-row--total .summary-row__value {
  font-weight: 700;
  font-size: 18px;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .page-container {
    padding: 16px;
    min-height: 100vh;
    max-height: none;
    overflow-y: auto;
  }

  .cards-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .form-card {
    max-width: 100%;
    padding: 24px 20px;
    grid-column: unset;
  }

  .form-card__title {
    font-size: 22px;
    margin-bottom: 4px;
  }
  
  .form-card__header {
    margin-bottom: 20px;
  }
  
  .form-card__form {
    gap: 12px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .form-field__label {
    font-size: 13px;
    margin-bottom: 6px;
  }
  
  .form-field__input,
  .form-field__select {
    height: 44px;
    font-size: 15px;
  }
  
  .form-card__button {
    height: 46px;
    margin-top: 4px;
  }

  .summary-card {
    max-width: 100%;
    grid-column: unset;
    padding: 20px;
  }
  
  .summary-card__title {
    font-size: 16px;
  }
  
  .summary-row {
    font-size: 13px;
  }

  .page-container::before,
  .page-container::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .form-card {
    padding: 28px 20px;
  }

  .form-card__form {
    gap: 16px;
  }

  .form-field__input,
  .form-field__select {
    height: 44px;
    font-size: 14px;
  }

  .form-card__button {
    height: 48px;
    font-size: 15px;
  }
}

.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #7defa7; /* Verde WhatsApp */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-button img {
  width: 30px;
  height: 30px;
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
