/* ==============================================================================
   SAYPRES - CONTACTO
   ============================================================================== */

.contacto-pagina {
  min-height: 70vh;
  background: #f7f9f9;
  padding: 54px 20px 70px;
}


.contacto-encabezado {
  width: min(760px, 100%);
  margin: 0 auto 30px;
  text-align: center;
}


.contacto-etiqueta {
  display: inline-block;
  margin-bottom: 10px;
  color: #28676E;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}


.contacto-encabezado h1 {
  margin: 0;
  color: #26383b;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
}


.contacto-encabezado p {
  max-width: 620px;
  margin: 14px auto 0;
  color: #69787b;
  font-size: 16px;
  line-height: 1.6;
}


.contacto-contenedor {
  width: min(760px, 100%);
  margin: 0 auto;
}


.contacto-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 15px;
}


.contacto-selector-opcion {
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid #dce4e5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #fff;
  color: #566669;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition:
    border-color .2s ease,
    background .2s ease,
    color .2s ease;
}


.contacto-selector-opcion:hover {
  border-color: #28676E;
  color: #28676E;
}


.contacto-selector-opcion.activo {
  border-color: #28676E;
  background: #28676E;
  color: #fff;
}


.contacto-selector-opcion .material-symbols-rounded {
  font-size: 19px;
}


.contacto-tarjeta {
  padding: 30px;
  border: 1px solid #e0e7e8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(26, 52, 56, .05);
}


.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}


.contacto-campo {
  min-width: 0;
}


.contacto-campo-completo,
.contacto-producto-bloque {
  grid-column: 1 / -1;
}


.contacto-campo label {
  display: block;
  margin-bottom: 7px;
  color: #344649;
  font-size: 13px;
  font-weight: 700;
}


.contacto-opcional {
  margin-left: 5px;
  color: #8b999b;
  font-size: 11px;
  font-weight: 500;
}


.contacto-campo input,
.contacto-campo textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccd7d9;
  border-radius: 9px;
  background: #fff;
  color: #26383b;
  font: inherit;
  outline: none;
  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}


.contacto-campo input {
  min-height: 45px;
  padding: 0 12px;
}


.contacto-campo textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
  line-height: 1.5;
}


.contacto-campo input:focus,
.contacto-campo textarea:focus {
  border-color: #28676E;
  box-shadow: 0 0 0 3px rgba(40, 103, 110, .09);
}


.contacto-campo small {
  display: block;
  margin-top: 6px;
  color: #849194;
  font-size: 11px;
}


.contacto-producto-bloque {
  display: grid;
  gap: 18px;
}


.contacto-imagen-vista {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border: 1px solid #dde5e6;
  border-radius: 10px;
  background: #f8fafa;
}


.contacto-imagen-vista img {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  object-fit: cover;
}


.contacto-imagen-vista button {
  border: 0;
  background: transparent;
  color: #6b787b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-weight: 600;
}


.contacto-aviso {
  display: none;
  margin-top: 18px;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}


.contacto-aviso.visible {
  display: block;
}


.contacto-aviso.error {
  background: #fff1f0;
  color: #9d3434;
}


.contacto-aviso.exito {
  background: #edf7f5;
  color: #28676E;
}


.contacto-boton-enviar {
  width: 100%;
  min-height: 49px;
  margin-top: 20px;
  border: 0;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #28676E;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition:
    opacity .2s ease,
    transform .15s ease;
}


.contacto-boton-enviar:hover {
  opacity: .94;
}


.contacto-boton-enviar:active {
  transform: scale(.995);
}


.contacto-boton-enviar:disabled {
  opacity: .55;
  cursor: not-allowed;
}


.contacto-nota {
  margin: 13px 4px 0;
  color: #829093;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
}


.oculto {
  display: none !important;
}


@media (max-width: 700px) {

  .contacto-pagina {
    padding: 34px 14px 50px;
  }


  .contacto-selector {
    grid-template-columns: 1fr;
  }


  .contacto-selector-opcion {
    justify-content: flex-start;
    padding-left: 16px;
  }


  .contacto-tarjeta {
    padding: 20px 16px;
    border-radius: 13px;
  }


  .contacto-grid {
    grid-template-columns: 1fr;
  }


  .contacto-campo-completo,
  .contacto-producto-bloque {
    grid-column: auto;
  }


  .contacto-campo input,
  .contacto-campo textarea {
    font-size: 16px;
  }

}

/* ==========================================================
   CONTACTO COMPACTO
   ========================================================== */

/* ==========================================================
   CONTACTO - CABECERA COMPACTA
   ========================================================== */

/* Ocultamos solo la etiqueta superior */
.contacto-encabezado > span {
  display: none;
}

/* Ocultamos el título grande */
.contacto-encabezado h1 {
  display: none;
}

/* Conservamos el subtítulo dinámico */
.contacto-encabezado p {
  margin: 0;

  font-size: 15px;

  line-height: 1.45;

  text-align: center;
}


/* Reducimos el espacio superior */
.contacto-encabezado {
  padding-top: 18px;
  padding-bottom: 14px;
}


/* Acercamos las pestañas al subtítulo */
.contacto-selector {
  margin-top: 0;
}

.contacto-pagina {
  padding-top: 24px;
}

.contacto-contenedor {
  padding-top: 0;
}

.contacto-pagina {
  padding-top: 16px;
}
.contacto-selector {
  margin-top: 0;
}

.contacto-tarjeta {
  margin-top: 16px;
}

/* ==========================================================
   CONTACTO - AJUSTE COMPACTO DE ESPACIOS
   ========================================================== */

.contacto-pagina {
  padding-top: 6px !important;
}


.contacto-encabezado {
  padding-top: 4px !important;
  padding-bottom: 0 !important;

  margin-bottom: 7px !important;
}


.contacto-encabezado p {
  margin: 0 !important;
}


.contacto-selector {
  margin-top: 0 !important;
  margin-bottom: 4px !important;
}


.contacto-formulario,
.contacto-tarjeta {
  margin-top: 0 !important;
}