/* contacto.css — Estilos. Las reglas adaptables están al final y en bloques de medios. */

.contact-page {
  max-width: 1250px;
  margin: auto;
  padding: 46px 5% 70px;
}
.contact-intro {
  border-bottom: 1px solid #e2e6ef;
  padding-bottom: 30px;
  margin-bottom: 35px;
}
.contact-intro > span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.contact-intro h1 {
  font: 700 clamp(65px, 8vw, 100px) / 1 var(--heading);
  margin: 12px 0;
  color: var(--blue);
}
.contact-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: #737b8b;
}
.contact-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.contact-choices {
  display: grid;
  gap: 14px;
}
.contact-choices > button {
  text-align: left;
  position: relative;
  background: white;
  border: 1px solid #d8deeb;
  border-radius: 12px;
  padding: 22px 40px 22px 22px;
  color: var(--blue);
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.contact-choices > button:hover {
  transform: translateX(3px);
}
.contact-choices > button[aria-pressed="true"] {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.choice-number {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 13px;
}
.contact-choices strong {
  display: block;
  font: 600 29px/1.1 var(--heading);
  margin-bottom: 8px;
}
.contact-choices > button > span:last-of-type {
  display: block;
  font-size: 12px;
  line-height: 1.5;
}
.contact-choices b {
  position: absolute;
  right: 20px;
  top: 22px;
  font-size: 22px;
  font-weight: 400;
}
.contact-help {
  padding: 15px 5px;
  font-size: 13px;
  line-height: 1.8;
  color: #707889;
}
.contact-help a {
  color: var(--blue);
  font-weight: 600;
}
.contact-panel {
  border: 1px solid #dfe4ee;
  border-radius: 16px;
  padding: 28px 32px;
  background: white;
  box-shadow: 0 10px 35px #213e8a06;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.demo-badge {
  background: #f0f3fc;
  padding: 5px 9px;
  border-radius: 4px;
}
.contact-panel h2 {
  font: 600 37px/1.1 var(--heading);
  margin-bottom: 12px;
}
.contact-panel > p {
  color: #72798a;
  font-size: 14px;
  line-height: 1.7;
}
.contact-panel .demo-info {
  font-size: 12px;
  line-height: 1.6;
  padding: 12px 14px;
  background: #f7f8fc;
  border-left: 2px solid #aab8de;
  margin: 17px 0;
}
.required-note {
  font-size: 11px;
  color: #747c8c;
  margin: 20px 0 16px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.contact-panel label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  min-width: 0;
}
.contact-panel input,
.contact-panel select,
.contact-panel textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #d5dbe6;
  background: #fff;
  border-radius: 6px;
  padding: 12px;
  margin-top: 7px;
  font: 400 14px/1.5 var(--body);
  color: #30394b;
}
.contact-panel input::placeholder,
.contact-panel textarea::placeholder {
  color: #9399a4;
  font-size: 13px;
}
.contact-panel textarea {
  resize: vertical;
  min-height: 125px;
}
.contact-panel fieldset {
  border: 0;
  padding: 22px 0 0;
  margin: 22px 0 0;
  border-top: 1px solid #e4e8ef;
  min-width: 0;
}
.contact-panel legend {
  font: 600 22px var(--heading);
  padding: 0 10px 0 0;
}
.contact-panel fieldset > label {
  margin-top: 18px;
}
.contact-panel small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #7a8293;
  margin-top: 7px;
  line-height: 1.6;
}
.form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e4e8ef;
}
.form-bottom p {
  font-size: 11px;
  line-height: 1.6;
  color: #7c8390;
  max-width: 200px;
}
.contact-submit {
  background: var(--red);
  color: white;
  padding: 13px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.contact-submit span {
  margin-left: 20px;
}
.contact-submit:hover {
  background: #cd0030;
}
.contact-panel [hidden] {
  display: none !important;
}
#contact-confirmation {
  padding: 25px 0;
  outline: none;
}
.confirmation-check {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  background: #edf2fc;
  color: var(--blue);
  border-radius: 50%;
  font-size: 30px;
  margin-bottom: 20px;
}
#contact-confirmation h3 {
  font: 600 30px var(--heading);
  margin-bottom: 12px;
}
#contact-confirmation p {
  font-size: 14px;
  line-height: 1.7;
  color: #737b8b;
}
#confirmation-details {
  font-size: 14px;
  margin: 25px 0;
  overflow-wrap: anywhere;
}
#confirmation-details dt {
  font-weight: 600;
  margin-top: 12px;
}
#confirmation-details dd {
  margin: 4px 0 0;
  color: #737b8b;
}
#edit-request {
  background: var(--blue);
  color: white;
  padding: 13px 20px;
  border-radius: 5px;
  font-size: 14px;
}
.contact-panel.changing {
  animation: contact-in 0.28s ease-out;
}
@keyframes contact-in {
  from {
    opacity: 0.5;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* ADAPTACIÓN DE PANTALLA O PREFERENCIAS */
@media (max-width: 1000px) {
  .contact-layout {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 24px;
  }
  .contact-panel {
    padding: 25px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .contact-choices strong {
    font-size: 27px;
  }
}
/* ADAPTACIÓN DE PANTALLA O PREFERENCIAS */
@media (max-width: 720px) {
  .contact-page {
    padding-top: 30px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-choices {
    gap: 10px;
  }
  .contact-choices > button {
    padding: 15px 40px 15px 20px;
  }
  .choice-number {
    display: none;
  }
  .contact-choices strong {
    font-size: 25px;
    margin-bottom: 5px;
  }
  .contact-help {
    padding: 5px;
  }
  .contact-panel {
    padding: 23px 20px;
  }
  .contact-intro {
    margin-bottom: 22px;
  }
  .form-bottom {
    align-items: stretch;
    flex-direction: column;
  }
  .form-bottom p {
    max-width: none;
  }
  .contact-submit {
    min-height: 48px;
  }
  .contact-panel input,
  .contact-panel select,
  .contact-panel textarea {
    font-size: 16px;
  }
}
/* ADAPTACIÓN DE PANTALLA O PREFERENCIAS */
@media (prefers-reduced-motion: reduce) {
  .contact-choices > button {
    transition: none;
  }
  .contact-choices > button:hover {
    transform: none;
  }
  .contact-panel.changing {
    animation: none;
  }
}
