/* Color de la razón seleccionada: el valor se actualiza desde script.js. */
#contactMotivo {
  border-color: color-mix(in srgb, var(--reason-color, #27639A) 48%, #dbe5ef);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--reason-color, #27639A) 12%, transparent);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
#contactMotivo:focus { border-color: var(--reason-color, #27639A); }

.newsletter-note {
  flex-basis: 100%;
  margin: 0;
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  #contactMotivo { transition: none; }
}

/* Newsletter: checkbox a la izquierda y texto alineado a su lado */
.miniform .newsletter-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin: 4px 0 2px;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}
.miniform .newsletter-consent input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  padding: 0;
  margin: 2px 0 0;
  accent-color: var(--copper, #27639A);
  cursor: pointer;
}

/* Texto inferior centrado al ancho del botón Enviar */
.miniform .newsletter-note {
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
}
.miniform #newsletterMessage:empty { display: none; }
.miniform #newsletterMessage { grid-column: 1 / -1; text-align: center; margin: 0; }

/* =====================================================================
   Formulario "Contáctanos" — estilo mejorado
   ===================================================================== */
#contacto .contact-form {
  position: relative;
  overflow: hidden;
  padding: 40px 36px 30px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
  border: 1px solid rgba(39, 99, 154, .16);
  border-radius: 16px;
  box-shadow: 0 22px 48px rgba(15, 48, 89, .11), 0 2px 6px rgba(15, 48, 89, .06);
}
/* franja de color superior */
#contacto .contact-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #0F3059 0%, #27639A 55%, #5C95C7 100%);
}

#contacto .contact-form .row {
  gap: 16px;
  margin-bottom: 16px;
}

/* campos */
#contacto .contact-form input:not([type="checkbox"]),
#contacto .contact-form textarea,
#contacto .contact-form select {
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  background-color: #f3f7fb;
  border: 1px solid #d3e0ec;
  border-radius: 10px;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
#contacto .contact-form input:not([type="checkbox"])::placeholder,
#contacto .contact-form textarea::placeholder {
  color: #7f95ab;
}
#contacto .contact-form input:not([type="checkbox"]):hover,
#contacto .contact-form textarea:hover {
  border-color: #a9c2db;
}
#contacto .contact-form input:not([type="checkbox"]):focus,
#contacto .contact-form textarea:focus {
  outline: none;
  background-color: #fff;
  border-color: #27639A;
  box-shadow: 0 0 0 4px rgba(39, 99, 154, .15);
}

/* select con flecha propia (el color del borde lo maneja #contactMotivo) */
#contacto .contact-form select {
  margin-bottom: 16px;
  padding-right: 44px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2327639A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
#contacto .contact-form select:focus { outline: none; background-color: #fff; }

#contacto .contact-form textarea {
  margin-bottom: 16px;
  min-height: 130px;
  line-height: 1.5;
}

/* casilla de política de datos */
#contacto .contact-form .checkline {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
#contacto .contact-form .checkline input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  padding: 0;
  margin: 2px 0 0;
  accent-color: #27639A;
  cursor: pointer;
}

/* botón */
#contacto .contact-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(135deg, #154276 0%, #27639A 100%);
  border: none;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(15, 48, 89, .22);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
#contacto .contact-form button[type="submit"]::after {
  content: "→";
  font-size: 18px;
  line-height: 1;
  transition: transform .2s ease;
}
#contacto .contact-form button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 48, 89, .28);
  filter: brightness(1.06);
}
#contacto .contact-form button[type="submit"]:hover:not(:disabled)::after { transform: translateX(4px); }
#contacto .contact-form button[type="submit"]:active:not(:disabled) { transform: translateY(0); }
#contacto .contact-form button[type="submit"]:focus-visible {
  outline: 3px solid rgba(39, 99, 154, .35);
  outline-offset: 3px;
}

#contacto .contact-form .form-status {
  text-align: center;
  font-weight: 500;
}
#contacto .contact-form .form-status:empty { margin-top: 0; min-height: 0; }

/* WhatsApp / teléfono */
#contacto .contact-form .wa-row {
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed rgba(39, 99, 154, .28);
}
#contacto .contact-form .wa-pill {
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(37, 211, 102, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
#contacto .contact-form .wa-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, .36);
}
#contacto .contact-form .tel-line { color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  #contacto .contact-form { padding: 34px 20px 24px; border-radius: 14px; }
  #contacto .contact-form .wa-row { justify-content: center; text-align: center; }
}

/* WhatsApp directo: logo de WhatsApp a la izquierda (igual al botón flotante) */
#contacto .contact-form .wa-pill { gap: 10px; }
#contacto .contact-form .wa-pill svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* "VENTAJA STS": la etiqueta queda debajo del segundo párrafo */
#nosotros-somos .split-block:nth-child(3) {
  display: flex;
  flex-direction: column;
}
#nosotros-somos .split-block:nth-child(3)::before {
  order: 99;
  align-self: flex-start;
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
}

/* Logos de marcas (escritorio): más aire entre órbitas */
@media (min-width: 761px) {
  .brands-orbit__stage { min-height: 840px; }
}
